@arcgis/core 5.1.0-next.33 → 5.1.0-next.35
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/WebScene.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{91e9337bef87ada2e05c.js → 0e78678281bcb888964d.js} +1 -1
- package/assets/esri/core/workers/chunks/{8d4ddaace906dd09de2c.js → 0f2d6f267d235db48767.js} +1 -1
- package/assets/esri/core/workers/chunks/{8109476a7b1039d424ab.js → 0fd191f9c10b3b7c83f4.js} +1 -1
- package/assets/esri/core/workers/chunks/{f7e66295401b85e2c91d.js → 19955d064c17ba2fd9ad.js} +1 -1
- package/assets/esri/core/workers/chunks/{cf045900f179210f22d2.js → 2128a66f522d15493ce2.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab679e5d76d70a1672af.js → 266933f1139ed0e8919f.js} +1 -1
- package/assets/esri/core/workers/chunks/{55165b6b49b87c1aff8f.js → 2d49a611ad3441d7e759.js} +9 -13
- package/assets/esri/core/workers/chunks/{48968fb9e103ee6c3579.js → 2f20a21db44bd8448e9e.js} +1 -1
- package/assets/esri/core/workers/chunks/{5b22245bf02f839d79e3.js → 5691c1624190abeaebea.js} +1 -1
- package/assets/esri/core/workers/chunks/{bfdfa737f8e7b0bee417.js → 64e1273e4e79c73ed579.js} +1 -1
- package/assets/esri/core/workers/chunks/{6ba87ebb1c8c5f1d4798.js → 6f1c590abd0e3adeb8fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{5cb4cd1cc6c21f69b925.js → 7948d6f14ae44d346d88.js} +1 -1
- package/assets/esri/core/workers/chunks/{c2c339b2df1c4466f4d4.js → 7c16493ea34c49a6291e.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba477072b1d1d3b5f78b.js → 85f309c1888c1c8411b1.js} +1 -1
- package/assets/esri/core/workers/chunks/{938125c024e1524a57e6.js → 942e4d69b140bc2f97c9.js} +1 -1
- package/assets/esri/core/workers/chunks/{cc69e61d6a7c220e3dd8.js → a53979c45ee429e21b99.js} +2 -2
- package/assets/esri/core/workers/chunks/ad4f0a4e2dde44cd43d4.js +1 -0
- package/assets/esri/core/workers/chunks/bd902ae413887082b453.js +1 -0
- package/assets/esri/core/workers/chunks/{209d8ee81cc3ebb18b27.js → c3e711dc608eedda2d14.js} +1 -1
- package/assets/esri/core/workers/chunks/{d22cc7d485c032181bbc.js → e9dd60d0220036545ebb.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa62d43ccf5cb991dddd.js → eb811adbc5243d293ef5.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/kernel.js +1 -1
- package/package.json +4 -4
- package/portal/schemas/definitions.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
- package/views/3d/environment/EnvironmentManager.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/support/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/webgl-engine/collections/Component/ComponentDrawParameters.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +7 -11
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Normals.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/draw/plugins/CircularArcSegmentPlugin.js +1 -1
- package/views/support/euclideanLengthMeasurementUtils.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/2541724a29f6058718f8.js +0 -1
- package/assets/esri/core/workers/chunks/f104d83b7b31a16908ee.js +0 -1
- /package/assets/esri/core/workers/chunks/{cc69e61d6a7c220e3dd8.js.LICENSE.txt → a53979c45ee429e21b99.js.LICENSE.txt} +0 -0
package/WebScene.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{version as t}from"./kernel.js";import r from"./Map.js";import i from"./core/Collection.js";import o from"./core/Error.js";import{clone as s}from"./core/lang.js";import{LoadableMixin as a}from"./core/Loadable.js";import{loadAll as n}from"./core/loadAll.js";import l from"./core/Logger.js";import{destroyMaybe as p}from"./core/maybe.js";import{MultiOriginJSONSupportMixin as c,MultiOriginJSONSupport as d}from"./core/MultiOriginJSONSupport.js";import{EsriPromiseMixin as h}from"./core/Promise.js";import{debounce as u}from"./core/promiseUtils.js";import{on as m,watch as y}from"./core/reactiveUtils.js";import{urlToObject as w,addQueryParameter as f}from"./core/urlUtils.js";import g from"./core/Version.js";import b from"./core/Warning.js";import{property as v,subclass as _}from"./core/accessorSupport/decorators.js";import{updateOrigins as S}from"./core/accessorSupport/originUtils.js";import{readLoadable as A}from"./core/accessorSupport/read.js";import{isEarth as I}from"./geometry/ellipsoidUtils.js";import j from"./geometry/Extent.js";import L from"./geometry/HeightModelInfo.js";import{canProjectWithoutEngine as P}from"./geometry/projectionUtils.js";import R from"./geometry/SpatialReference.js";import{validateWebSceneError as U}from"./geometry/support/heightModelInfoUtils.js";import{fromJSON as V}from"./geometry/support/jsonUtils.js";import O from"./portal/Portal.js";import M from"./portal/PortalItem.js";import{createForItemWrite as E}from"./portal/support/jsonContext.js";import{toggleTypeKeyword as C,typeKeyword as T}from"./portal/support/portalItemUtils.js";import{hasDeveloperBasemapLayer as N}from"./support/basemapUtils.js";import{ensureType as x}from"./support/groundUtils.js";import F from"./support/MapFloorInfo.js";import{WebSceneTag as G}from"./support/tagSymbols.js";import{createSchemaValidationError as W}from"./support/webSceneUtils.js";import{isSpatialReferenceSupported as J}from"./views/support/spatialReferenceSupport.js";import k from"./webdoc/Widgets.js";import{updateItemWithResources as B,saveResources as $}from"./webdoc/support/resourceUtils.js";import{evaluateWriteErrors as q}from"./webdoc/support/saveUtils.js";import{getOptimalThumbnailSize as H}from"./webdoc/support/thumbnailUtils.js";import{addLayerUnsupportedError as D}from"./webdoc/support/unsupportedErrors.js";import{isCopyAllowed as z,initializeNewItem as K}from"./webdoc/support/webdocSaveUtils.js";import Q from"./webscene/ApplicationProperties.js";import X from"./webscene/Environment.js";import Y from"./webscene/InitialViewProperties.js";import Z from"./webscene/Presentation.js";import ee from"./webscene/TransportationNetwork.js";import{alphaCutoff as te}from"./webscene/support/AlphaCutoff.js";import{getLoader as re}from"./webscene/support/schemaValidatorLoader.js";import{supportsVisibleElevationLayersInSlides as ie,versionSupportsGround as oe,generateWebSceneVersions as se}from"./webscene/support/versionUtils.js";import{writer as ae}from"./core/accessorSupport/decorators/writer.js";import{reader as ne}from"./core/accessorSupport/decorators/reader.js";var le;const pe=new g(1,39,"webscene"),ce="Web Scene";let de=class extends(a(h(c(r)))){static{le=G}constructor(e){super(e),this[le]=!0,this._layersIdGCTimeoutId=void 0,this._updateFromPromise=null,this._afterLoadHooks=[],this.applicationProperties=null,this.clippingArea=null,this.clippingEnabled=!1,this.floorInfo=null,this.heightModelInfo=void 0,this.sourceVersion=null,this.transportationNetworks=null,this.presentation=new Z,this.initialViewProperties=new Y,this.portalItem=null,this.resourceInfo=null,this.widgets=null,this._debouncedSaveOperations=u(async(e,t,r)=>{switch(e){case 0:return this._saveImpl(t);case 1:return this._saveAsImpl(r,t)}}),this._loadContext={origin:"web-scene",initiator:this,hooks:{onAfterLoad:e=>this._afterLoadHooks.push(e)}},this._resourceReferences={portalItem:null,paths:[]},this.authoringApp=null,this.authoringAppVersion=null,this._isAuthoringAppSetByUser=!1,this._isAuthoringAppVersionSetByUser=!1}initialize(){if(this.when().catch(e=>{l.getLogger(this).error("#load()","Failed to load web scene",e)}),this.resourceInfo){let t;try{t=this._validateJSON(this.resourceInfo)}catch(e){return void this.addResolvingPromise(Promise.reject(e))}this.read(t),this.addResolvingPromise(this._validateSpatialReference()),this.addResolvingPromise(this._validateHeightModelInfo())}this.addHandles(m(()=>this.allLayers,"change",()=>this._scheduleLayersIdGC()))}destroy(){this._unscheduleLayersIdGC(),this.presentation&&this.presentation.destroy(),this.portalItem=p(this.portalItem)}writeClippingArea(e,t){t.clippingArea||(t.clippingArea={}),t.clippingArea.geometry=e.toJSON()}readClippingEnabled(e,t){return!!t.clippingArea&&!!t.clippingArea.clip}writeClippingEnabled(e,t){this.clippingArea&&(t.clippingArea||(t.clippingArea={}),t.clippingArea.clip=e)}writeLayers(e,t,r,i){t[r]=this._layersToJSON(e,"operational-layers",i)}get loaded(){return super.loaded}readSourceVersion(e,t){const[r,i]=t.version.split(".");return new g(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${pe.major}.${pe.minor}`}writeTables(e,t,r,i){const o=this._layersToJSON(e,"tables",i);o.length&&(t[r]=o)}get thumbnailUrl(){return this.portalItem?.thumbnailUrl??null}set thumbnailUrl(e){e?this._override("thumbnailUrl",e):(this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}set authoringApp(e){this._isAuthoringAppSetByUser=!0,this._set("authoringApp",e)}writeAuthoringApp(e,t){e&&this._isAuthoringAppSetByUser?t.authoringApp=e:t.authoringApp="ArcGIS API for JavaScript"}set authoringAppVersion(e){this._isAuthoringAppVersionSetByUser=!0,this._set("authoringAppVersion",e)}writeAuthoringAppVersion(e,r){e&&this._isAuthoringAppVersionSetByUser?r.authoringAppVersion=e:r.authoringAppVersion=t}get ground(){return this._get("ground")}set ground(e){const t=x(e);null!=t&&this._set("ground",t)}writeGround(e,t,r,i){t[r]=e?e.write({},i):{transparency:0,layers:[]}}readInitialViewProperties(e,t,r){const{viewingMode:i,spatialReference:o}=t,s=new Y,a={...t.initialState};return void 0!==o&&(a.spatialReference=o),void 0!==i&&(a.viewingMode=i),s.read(a,r),s}get spatialReference(){return this.initialViewProperties?.spatialReference??R.WebMercator}get viewingMode(){return this.initialViewProperties?.viewingMode??"global"}load(e){const t=this.ground;return this.addResolvingPromise(this._loadFromSource().then(()=>{t&&t!==this.ground&&t.destroy(),this._validateFeatureLayerSymbolVisibility()})),Promise.resolve(this)}loadAll(){return n(this,e=>{const t=this.presentation&&this.presentation.slides;e(this.ground,this.basemap,this.layers,t&&t.map(e=>e.basemap),this.tables)})}read(e,t){t??=this._loadContext,t.origin="web-scene";const r=this._isAuthoringAppVersionSetByUser,i=this._isAuthoringAppSetByUser;if(A(this,e,t=>super.read(e,t),t),i||(this._isAuthoringAppSetByUser=!1),r||(this._isAuthoringAppVersionSetByUser=!1),e.baseMap&&Array.isArray(e.baseMap.elevationLayers)&&ie(this.sourceVersion)){const t=e.baseMap.elevationLayers.map(e=>({id:e.id})),r=this.presentation.slides,i=t.filter(e=>!r.some(t=>t.visibleLayers.some(t=>t.id===e.id)));r.forEach(e=>e.visibleLayers.addMany(i))}}_writeBasemapElevationLayers(e){const t=e.ground?.layers;!e.baseMap&&t?.length&&(e.baseMap={title:"Basemap",baseMapLayers:[]}),e.baseMap&&(e.baseMap.elevationLayers=s(t))}_layersToJSON(e,t,r){const i={...r,layerContainerType:t};return e.map(e=>this._verifyWritableLayer(e,r)?e.write({},i):null).filter(e=>!!e).toArray()}_verifyWritableLayer(e,t){return!!e.persistenceEnabled&&("write"in e||(D(t,e),!1))}write(e,t){if("loaded"!==this.loadStatus){const e=new o("webscene:not-loaded","Web scene must be loaded before it can be serialized");throw l.getLogger(this).error("#toJSON()","Web scene must be loaded before it can be serialized",this.loadError||this.loadStatus),e}this._runLayersIdGC();const r=!t?.messages;t={messages:[],...t,origin:"web-scene"};const i=super.write(e,t);if(r){const e=t.messages?.filter(e=>"web-document-write:property-required"===e.name)??[];if(e.length){const t=new o("web-document:property-required","One or more properties that are required in the webscene JSON are missing, see details for the specific errors",{errors:e});throw l.getLogger(this).error("#toJSON()","One or more properties that are required in the webscene JSON are missing",e),t}}return this._writeBasemapElevationLayers(i),i}async save(e){return this._debouncedSaveOperations(0,e)}async _saveImpl(e){if(!this.portalItem)throw new o("webscene:portal-item-not-set","Portal item to save to has not been set on the WebScene");if(this.portalItem?.type!==ce)throw new o("webscene:portal-item-wrong-type",`Portal item needs to have type "${ce}"`);const t=this._updateFromPromise;await this._ensureLoadBeforeSave();const r=this._enableVerifyItemRelativeUrls(E(this.portalItem,"web-scene",!0)),i=this.write({},r);return await Promise.all(r.resources.pendingOperations),await this._verifySave(i,r,0,e),this._updateTypeKeywords(this.portalItem),await B(this.portalItem,i,this._resourceReferences,r),S(r),t&&await t,await this._saveThumbnail(),this.portalItem}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _saveAsImpl(e,t){let r=M.from(e);if(!r)throw new o("webscene:portal-item-required","saveAs requires a portal item to save to");r.id&&(r=r.clone(),r.id=null);const i=r.portal||O.getDefault();await this._ensureLoadBeforeSave(),r.type=ce,r.portal=i;const s=this._enableVerifyItemRelativeUrls(E(r,"web-scene",!0)),a=this.write({},s);await Promise.all(s.resources.pendingOperations),await this._verifySaveAs(a,s,t);const n=this.thumbnailUrl,l=!this._isOverridden("thumbnailUrl");this._updateTypeKeywords(r),await i.signIn();const p=this.portalItem,c={item:p,authenticated:!(!p?.id||!p.portal.user)},{copyAllowed:h,itemReloaded:u}=await z(c,i);if(c.authenticated||=u,!h)throw new o(`${s.name}:save-as-copy-not-allowed`,"Owner of this map does not allow others to save a copy");const m={...t,copyAllResources:!0};return await K(r,c,a,m)&&(this._resourceReferences.portalItem=r),await $(this._resourceReferences,s),this.portalItem=r,d.prototype.read.call(this,{version:a.version,authoringApp:a.authoringApp,authoringAppVersion:a.authoringAppVersion},{name:"web-scene",ignoreDefaults:!0,url:r.itemUrl?w(r.itemUrl):void 0}),S(s),n&&(this.thumbnailUrl=l?f(n,"w","8192"):n),s.portalItem=r,await this._saveThumbnail(),r}async _saveThumbnail(){this._isOverridden("thumbnailUrl")&&(await(this.portalItem?.updateThumbnail({thumbnail:this.thumbnailUrl})),this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}async _verifySave(e,t,r,i){if(!I(this.spatialReference))throw new o("webscene:unsupported-spatial-reference","Webscenes using spatial reference systems from Mars or Moon can not be saved currently.");const{ignoreUnsupported:s,requiredPropertyChecksDisabled:a,strictSchemaValidationEnabled:n}=i||{};q(t,{errorName:"webscene:save"},{ignoreUnsupported:s,supplementalUnsupportedErrors:["scenemodification:unsupported"],requiredPropertyChecksDisabled:a});const p=re();if(n&&p){const t=(await p()).validate(e);if(!t.length)return;const i=`webscene did not validate:\n${t.join("\n")}`;l.getLogger(this).error(`${1===r?"saveAs":"save"}(): ${i}`);const s=t.map(e=>new o("webscene:schema-validation",e));throw W(s)}}_verifySaveAs(e,t,r){return this._verifySave(e,t,1,r)}verifySaveAs(e){const t=this._enableVerifyItemRelativeUrls({origin:"web-scene",messages:[]}),r=this.write({},t);return this._verifySaveAs(r,t,e)}canNotSaveAs(){return!1}async updateFrom(e,t={}){const r=this._updateFrom(e,t);this._updateFromPromise=r,await r;this._updateFromPromise===r&&(this._updateFromPromise=null)}async _updateFrom(e,t={}){if(await e.whenReady(),!t.environmentExcluded&&e.environment&&(this.initialViewProperties.environment=X.prototype.clone.apply(e.environment)),!t.viewpointExcluded&&e.viewpoint&&(this.initialViewProperties.viewpoint=e.viewpoint.clone()),this.initialViewProperties.spatialReference=e.spatialReference.clone(),this.initialViewProperties.viewingMode=e.viewingMode,this.initialViewProperties.timeExtent=e.timeExtent?.clone()??null,this.initialViewProperties.analyses.updateFrom(e),null!=e.clippingArea?e.clippingArea!==this.clippingArea&&(this.clippingArea=e.clippingArea.clone(),this.clippingEnabled=!0):this.clippingEnabled=!1,e.heightModelInfo&&(this.heightModelInfo=e.heightModelInfo.clone()),e.map===this)for(const r of e.allLayerViews){const e="visible";e in r&&e in r.layer&&r._isOverridden(e)&&(r.layer[e]=r[e])}if(!t.widgetsExcluded)for(const r of e.persistableViewModels)r.updateWebDocument(this);(!1===t.thumbnailExcluded||null==t.thumbnailExcluded&&!t.viewpointExcluded)&&await this.updateThumbnail(e,{size:t.thumbnailSize})}async updateThumbnail(e,t){const r=H(e,t?.size),i=await e.takeScreenshot({format:"jpg",width:r.width,height:r.height,disableDecorations:!0});this.thumbnailUrl=i.dataUrl}async _loadFromSource(){this.resourceInfo?await this._loadFromJSON(this.resourceInfo):this.portalItem?.id?await this._loadFromItem(this.portalItem):await this._loadObjectsWithLayers(),await this._afterLoad()}async _afterLoad(){for(;this._afterLoadHooks.length;){const e=this._afterLoadHooks.slice();this._afterLoadHooks.length=0,await Promise.allSettled(e.map(e=>e(this._loadContext)))}}_readAndLoadFromJSON(e){const t=this._loadContext,r=this._validateJSON(e);return this.read(r,t),this._loadFromJSON(r)}_extractOperationalLayers(e){const t=[];if(!oe(this.sourceVersion)&&e.baseMap&&Array.isArray(e.baseMap.elevationLayers))for(const o of e.baseMap.elevationLayers)t.push(o);const r=[],i=e=>(e.layers&&(e.layers=e.layers.filter(i)),"ArcGISTiledElevationServiceLayer"!==e.layerType||(oe(this.sourceVersion)||r.push(e),!1));return{operationalLayers:e.operationalLayers?e.operationalLayers.filter(i):[],operationalElevationLayers:r,basemapElevationLayers:t}}async _loadFromJSON(e){const t=new i;await this._validateSpatialReference(),await this._validateHeightModelInfo();const{populateOperationalLayers:r}=await import("./layers/support/layersCreator.js"),{operationalLayers:o,operationalElevationLayers:s,basemapElevationLayers:a}=this._extractOperationalLayers(e),n=[],l={context:{...this._loadContext,layerContainerType:"operational-layers"}};if(this.portalItem&&(l.context.portal=this.portalItem.portal||O.getDefault()),a.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(this.ground.layers,a,e))}if(s.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(t,s,e))}o&&o.length>0&&n.push(r(this.layers,o,l)),e.tables?.length&&n.push(r(this.tables,e.tables,{...l,context:{...l.context,layerContainerType:"tables"},defaultLayerType:"ArcGISFeatureLayer"})),await Promise.allSettled(n),await this._loadObjectsWithLayers(),this.ground.layers.addMany(t.filter(e=>"base-elevation"===e.type||"elevation"===e.type))}async _ensureLoadBeforeSave(){await this.load(),await this._loadObjectsWithLayers();const e=[],t=[...this.allLayers.items];for(const{basemap:r}of this.presentation.slides.items)r&&(t.push(...r.baseLayers.items),t.push(...r.groundLayers.items),t.push(...r.referenceLayers.items));for(const r of t)if("beforeSave"in r&&"function"==typeof r.beforeSave){const t=r.beforeSave();t&&e.push(t)}await Promise.allSettled(e)}async _loadObjectsWithLayers(){const e=[];this.ground&&e.push(this.ground.load()),this.basemap&&e.push(this.basemap.load()),this.presentation.slides.forEach(t=>{t.basemap&&e.push(t.basemap.load())}),await Promise.allSettled(e)}async _loadFromItem(e){if(await e.load().catch(e=>{throw new o("webscene:load-portal-item","Failed to load portal item",{error:e})}),"Web Scene"!==e.type)throw new o("webscene:invalid-portal-item","Invalid portal item type '${type}', expected 'Web Scene'",{type:e.type});const t=await e.fetchData();this.resourceInfo=t;const r=this._loadContext;r.url=w(e.itemUrl),r.portal=e.portal||O.getDefault(),r.portalItem=e,r.readResourcePaths=[],await this._readAndLoadFromJSON(t),this._resourceReferences={portalItem:e,paths:r.readResourcePaths??[]}}_validateSpatialReference(){const e=this.initialViewProperties,t=this._sceneSpatialReference;let r;if("local"!==e.viewingMode){if(!J(t,1))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in global mode, only Web Mercator, WGS84 GCS or CGCS2000 are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||P(e,t)}else{if(!J(t,2))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in local mode, only projected coordinate systems are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||e.equals(t)}const i=e=>e?.camera?.position.spatialReference??e?.targetGeometry?.spatialReference,s=e.viewpoint,a=i(s);if(a&&!r(a))return Promise.reject(new o("webscene:incompatible-camera-spatial-reference","Camera spatial reference (${cameraSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{cameraSpatialReference:a,sceneSpatialReference:t,viewingMode:e.viewingMode}));const n=this.presentation.slides.find(e=>!r(i(e.viewpoint)));if(n){const r=i(n.viewpoint);return Promise.reject(new o("webscene:incompatible-slide-spatial-reference","Slide spatial reference (${slideSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{slideSpatialReference:r,sceneSpatialReference:t,viewingMode:e.viewingMode}))}return Promise.resolve()}_validateHeightModelInfo(){const e=this._sceneSpatialReference,t=U(this.heightModelInfo,e);return t?Promise.reject(t):Promise.resolve()}_validateFeatureLayerSymbolVisibility(){this.sourceVersion?.greaterEqual(1,35)||this.layers.forEach(e=>{"feature"===e.type&&e.addHandles(y(()=>e.loaded,()=>{"on-the-ground"===e.elevationInfo?.mode&&"simple"===e.renderer?.type&&"polygon-3d"===e.renderer.symbol?.type&&e.renderer.symbol.symbolLayers.some(t=>"fill"===t.type&&null!=t.material&&((!t.material.color||t.material.color.a*e.opacity<te)&&(e.loadWarnings.push(new b("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:e})),!0)))},{once:!0,sync:!0}))})}_validateJSON(e){const t=g.parse(e.version||"","webscene");return pe.validate(t),e.version=`${t.major}.${t.minor}`,1===t.major&&t.minor<=2&&(e.spatialReference=R.WebMercator.toJSON()),e}_updateTypeKeywords(e){C(e,T.LOCAL_SCENE,"local"===this.initialViewProperties.viewingMode),C(e,T.DEVELOPER_BASEMAP,N(this.basemap)||this.presentation.slides.some(({basemap:e})=>!!e&&N(e))),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}get _sceneSpatialReference(){return this.initialViewProperties.spatialReference||R.WebMercator}get _verifyItemRelativeRootPath(){return this.portalItem?.itemUrl?w(this.portalItem.itemUrl).path:null}_enableVerifyItemRelativeUrls(e){const t=this._verifyItemRelativeRootPath;return t&&(e.verifyItemRelativeUrls={rootPath:t,writtenUrls:[]}),e}_unscheduleLayersIdGC(){this._layersIdGCTimeoutId&&(clearTimeout(this._layersIdGCTimeoutId),this._layersIdGCTimeoutId=0)}_scheduleLayersIdGC(){this._unscheduleLayersIdGC(),this._layersIdGCTimeoutId=setTimeout(()=>{this._layersIdGCTimeoutId=0,this._runLayersIdGC()},3e3)}_runLayersIdGC(){this._unscheduleLayersIdGC();const e=this.applicationProperties?.viewing?.search,t=e=>this.allLayers.some(t=>t.id===e&&t.persistenceEnabled);e?.layers&&(e.layers=e.layers.filter(e=>t(e.id)));const r=this.presentation&&this.presentation.slides;r&&r.forEach(e=>{e.visibleLayers&&(e.visibleLayers=e.visibleLayers.filter(e=>t(e.id)))})}static fromJSON(e){if(!e)throw new o("webscene:empty-resource","Expected a JSON resource but got nothing");return new this({resourceInfo:e})}static{this.version=`${pe.major}.${pe.minor}`}};e([v({type:Q,json:{write:!0}})],de.prototype,"applicationProperties",void 0),e([v({type:j,json:{read:{source:"clippingArea.geometry",reader:V},write:{target:"clippingArea.geometry"}}})],de.prototype,"clippingArea",void 0),e([ae("clippingArea")],de.prototype,"writeClippingArea",null),e([v({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],de.prototype,"clippingEnabled",void 0),e([ne("clippingEnabled",["clippingArea"])],de.prototype,"readClippingEnabled",null),e([ae("clippingEnabled")],de.prototype,"writeClippingEnabled",null),e([v({type:F,json:{read:{source:"mapFloorInfo"},write:{target:"mapFloorInfo"}}})],de.prototype,"floorInfo",void 0),e([v({type:L,json:{write:!0}})],de.prototype,"heightModelInfo",void 0),e([v({json:{write:{target:"operationalLayers",ignoreOrigin:!0}}})],de.prototype,"layers",void 0),e([ae("layers")],de.prototype,"writeLayers",null),e([v({readOnly:!0,type:g,json:{type:se(pe).map(e=>e.toString()),write:{ignoreOrigin:!0,target:"version",isRequired:!0,overridePolicy:()=>({enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],de.prototype,"sourceVersion",void 0),e([ne("sourceVersion",["version"])],de.prototype,"readSourceVersion",null),e([ae("sourceVersion")],de.prototype,"writeSourceVersion",null),e([v({json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],de.prototype,"tables",void 0),e([ae("tables")],de.prototype,"writeTables",null),e([v()],de.prototype,"thumbnailUrl",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],de.prototype,"authoringApp",null),e([ae("authoringApp")],de.prototype,"writeAuthoringApp",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],de.prototype,"authoringAppVersion",null),e([ae("authoringAppVersion")],de.prototype,"writeAuthoringAppVersion",null),e([v({json:{write:{isRequired:!0,enabled:!0,overridePolicy:()=>({isRequired:!0,enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],de.prototype,"ground",null),e([ae("ground")],de.prototype,"writeGround",null),e([v({type:i.ofType(ee),json:{write:!0}})],de.prototype,"transportationNetworks",void 0),e([v({type:Z,nonNullable:!0,json:{write:{ignoreOrigin:!0,writer:(e,t,r,i)=>{if(e.slides&&e.slides.length>0){const r={...i,isPresentation:!0};t.presentation=e.write({},r)}}}}})],de.prototype,"presentation",void 0),e([v({type:Y,nonNullable:!0,json:{write:{target:"initialState",isRequired:!0,ignoreOrigin:!0},default:()=>new Y({viewingMode:"global",spatialReference:R.WebMercator})}})],de.prototype,"initialViewProperties",void 0),e([ne("initialViewProperties",["initialState","spatialReference","viewingMode"])],de.prototype,"readInitialViewProperties",null),e([v({type:R,json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],de.prototype,"spatialReference",null),e([v({type:["local","global"],json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],de.prototype,"viewingMode",null),e([v({type:M})],de.prototype,"portalItem",void 0),e([v()],de.prototype,"resourceInfo",void 0),e([v({type:k,json:{write:!0}})],de.prototype,"widgets",void 0),de=e([_("esri.WebScene")],de);const he=de;export{he as default};
|
|
2
|
+
import{__decorate as e}from"tslib";import{version as t}from"./kernel.js";import r from"./Map.js";import i from"./core/Collection.js";import o from"./core/Error.js";import{clone as s}from"./core/lang.js";import{LoadableMixin as a}from"./core/Loadable.js";import{loadAll as n}from"./core/loadAll.js";import l from"./core/Logger.js";import{destroyMaybe as p}from"./core/maybe.js";import{MultiOriginJSONSupportMixin as c,MultiOriginJSONSupport as d}from"./core/MultiOriginJSONSupport.js";import{EsriPromiseMixin as h}from"./core/Promise.js";import{debounce as u}from"./core/promiseUtils.js";import{on as m,watch as y}from"./core/reactiveUtils.js";import{urlToObject as w,addQueryParameter as f}from"./core/urlUtils.js";import g from"./core/Version.js";import b from"./core/Warning.js";import{property as v,subclass as _}from"./core/accessorSupport/decorators.js";import{updateOrigins as S}from"./core/accessorSupport/originUtils.js";import{readLoadable as A}from"./core/accessorSupport/read.js";import{isEarth as I}from"./geometry/ellipsoidUtils.js";import j from"./geometry/Extent.js";import L from"./geometry/HeightModelInfo.js";import{canProjectWithoutEngine as P}from"./geometry/projectionUtils.js";import R from"./geometry/SpatialReference.js";import{validateWebSceneError as U}from"./geometry/support/heightModelInfoUtils.js";import{fromJSON as V}from"./geometry/support/jsonUtils.js";import O from"./portal/Portal.js";import M from"./portal/PortalItem.js";import{createForItemWrite as E}from"./portal/support/jsonContext.js";import{toggleTypeKeyword as C,typeKeyword as T}from"./portal/support/portalItemUtils.js";import{hasDeveloperBasemapLayer as N}from"./support/basemapUtils.js";import{ensureType as x}from"./support/groundUtils.js";import F from"./support/MapFloorInfo.js";import{WebSceneTag as G}from"./support/tagSymbols.js";import{createSchemaValidationError as W}from"./support/webSceneUtils.js";import{isSpatialReferenceSupported as J}from"./views/support/spatialReferenceSupport.js";import k from"./webdoc/Widgets.js";import{updateItemWithResources as B,saveResources as $}from"./webdoc/support/resourceUtils.js";import{evaluateWriteErrors as q}from"./webdoc/support/saveUtils.js";import{getOptimalThumbnailSize as H}from"./webdoc/support/thumbnailUtils.js";import{addLayerUnsupportedError as D}from"./webdoc/support/unsupportedErrors.js";import{isCopyAllowed as z,initializeNewItem as K}from"./webdoc/support/webdocSaveUtils.js";import Q from"./webscene/ApplicationProperties.js";import X from"./webscene/Environment.js";import Y from"./webscene/InitialViewProperties.js";import Z from"./webscene/Presentation.js";import ee from"./webscene/TransportationNetwork.js";import{alphaCutoff as te}from"./webscene/support/AlphaCutoff.js";import{getLoader as re}from"./webscene/support/schemaValidatorLoader.js";import{supportsVisibleElevationLayersInSlides as ie,versionSupportsGround as oe,generateWebSceneVersions as se}from"./webscene/support/versionUtils.js";import{writer as ae}from"./core/accessorSupport/decorators/writer.js";import{reader as ne}from"./core/accessorSupport/decorators/reader.js";var le;const pe=new g(1,40,"webscene"),ce="Web Scene";let de=class extends(a(h(c(r)))){static{le=G}constructor(e){super(e),this[le]=!0,this._layersIdGCTimeoutId=void 0,this._updateFromPromise=null,this._afterLoadHooks=[],this.applicationProperties=null,this.clippingArea=null,this.clippingEnabled=!1,this.floorInfo=null,this.heightModelInfo=void 0,this.sourceVersion=null,this.transportationNetworks=null,this.presentation=new Z,this.initialViewProperties=new Y,this.portalItem=null,this.resourceInfo=null,this.widgets=null,this._debouncedSaveOperations=u(async(e,t,r)=>{switch(e){case 0:return this._saveImpl(t);case 1:return this._saveAsImpl(r,t)}}),this._loadContext={origin:"web-scene",initiator:this,hooks:{onAfterLoad:e=>this._afterLoadHooks.push(e)}},this._resourceReferences={portalItem:null,paths:[]},this.authoringApp=null,this.authoringAppVersion=null,this._isAuthoringAppSetByUser=!1,this._isAuthoringAppVersionSetByUser=!1}initialize(){if(this.when().catch(e=>{l.getLogger(this).error("#load()","Failed to load web scene",e)}),this.resourceInfo){let t;try{t=this._validateJSON(this.resourceInfo)}catch(e){return void this.addResolvingPromise(Promise.reject(e))}this.read(t),this.addResolvingPromise(this._validateSpatialReference()),this.addResolvingPromise(this._validateHeightModelInfo())}this.addHandles(m(()=>this.allLayers,"change",()=>this._scheduleLayersIdGC()))}destroy(){this._unscheduleLayersIdGC(),this.presentation&&this.presentation.destroy(),this.portalItem=p(this.portalItem)}writeClippingArea(e,t){t.clippingArea||(t.clippingArea={}),t.clippingArea.geometry=e.toJSON()}readClippingEnabled(e,t){return!!t.clippingArea&&!!t.clippingArea.clip}writeClippingEnabled(e,t){this.clippingArea&&(t.clippingArea||(t.clippingArea={}),t.clippingArea.clip=e)}writeLayers(e,t,r,i){t[r]=this._layersToJSON(e,"operational-layers",i)}get loaded(){return super.loaded}readSourceVersion(e,t){const[r,i]=t.version.split(".");return new g(parseInt(r,10),parseInt(i,10))}writeSourceVersion(e,t,r){t[r]=`${pe.major}.${pe.minor}`}writeTables(e,t,r,i){const o=this._layersToJSON(e,"tables",i);o.length&&(t[r]=o)}get thumbnailUrl(){return this.portalItem?.thumbnailUrl??null}set thumbnailUrl(e){e?this._override("thumbnailUrl",e):(this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}set authoringApp(e){this._isAuthoringAppSetByUser=!0,this._set("authoringApp",e)}writeAuthoringApp(e,t){e&&this._isAuthoringAppSetByUser?t.authoringApp=e:t.authoringApp="ArcGIS API for JavaScript"}set authoringAppVersion(e){this._isAuthoringAppVersionSetByUser=!0,this._set("authoringAppVersion",e)}writeAuthoringAppVersion(e,r){e&&this._isAuthoringAppVersionSetByUser?r.authoringAppVersion=e:r.authoringAppVersion=t}get ground(){return this._get("ground")}set ground(e){const t=x(e);null!=t&&this._set("ground",t)}writeGround(e,t,r,i){t[r]=e?e.write({},i):{transparency:0,layers:[]}}readInitialViewProperties(e,t,r){const{viewingMode:i,spatialReference:o}=t,s=new Y,a={...t.initialState};return void 0!==o&&(a.spatialReference=o),void 0!==i&&(a.viewingMode=i),s.read(a,r),s}get spatialReference(){return this.initialViewProperties?.spatialReference??R.WebMercator}get viewingMode(){return this.initialViewProperties?.viewingMode??"global"}load(e){const t=this.ground;return this.addResolvingPromise(this._loadFromSource().then(()=>{t&&t!==this.ground&&t.destroy(),this._validateFeatureLayerSymbolVisibility()})),Promise.resolve(this)}loadAll(){return n(this,e=>{const t=this.presentation&&this.presentation.slides;e(this.ground,this.basemap,this.layers,t&&t.map(e=>e.basemap),this.tables)})}read(e,t){t??=this._loadContext,t.origin="web-scene";const r=this._isAuthoringAppVersionSetByUser,i=this._isAuthoringAppSetByUser;if(A(this,e,t=>super.read(e,t),t),i||(this._isAuthoringAppSetByUser=!1),r||(this._isAuthoringAppVersionSetByUser=!1),e.baseMap&&Array.isArray(e.baseMap.elevationLayers)&&ie(this.sourceVersion)){const t=e.baseMap.elevationLayers.map(e=>({id:e.id})),r=this.presentation.slides,i=t.filter(e=>!r.some(t=>t.visibleLayers.some(t=>t.id===e.id)));r.forEach(e=>e.visibleLayers.addMany(i))}}_writeBasemapElevationLayers(e){const t=e.ground?.layers;!e.baseMap&&t?.length&&(e.baseMap={title:"Basemap",baseMapLayers:[]}),e.baseMap&&(e.baseMap.elevationLayers=s(t))}_layersToJSON(e,t,r){const i={...r,layerContainerType:t};return e.map(e=>this._verifyWritableLayer(e,r)?e.write({},i):null).filter(e=>!!e).toArray()}_verifyWritableLayer(e,t){return!!e.persistenceEnabled&&("write"in e||(D(t,e),!1))}write(e,t){if("loaded"!==this.loadStatus){const e=new o("webscene:not-loaded","Web scene must be loaded before it can be serialized");throw l.getLogger(this).error("#toJSON()","Web scene must be loaded before it can be serialized",this.loadError||this.loadStatus),e}this._runLayersIdGC();const r=!t?.messages;t={messages:[],...t,origin:"web-scene"};const i=super.write(e,t);if(r){const e=t.messages?.filter(e=>"web-document-write:property-required"===e.name)??[];if(e.length){const t=new o("web-document:property-required","One or more properties that are required in the webscene JSON are missing, see details for the specific errors",{errors:e});throw l.getLogger(this).error("#toJSON()","One or more properties that are required in the webscene JSON are missing",e),t}}return this._writeBasemapElevationLayers(i),i}async save(e){return this._debouncedSaveOperations(0,e)}async _saveImpl(e){if(!this.portalItem)throw new o("webscene:portal-item-not-set","Portal item to save to has not been set on the WebScene");if(this.portalItem?.type!==ce)throw new o("webscene:portal-item-wrong-type",`Portal item needs to have type "${ce}"`);const t=this._updateFromPromise;await this._ensureLoadBeforeSave();const r=this._enableVerifyItemRelativeUrls(E(this.portalItem,"web-scene",!0)),i=this.write({},r);return await Promise.all(r.resources.pendingOperations),await this._verifySave(i,r,0,e),this._updateTypeKeywords(this.portalItem),await B(this.portalItem,i,this._resourceReferences,r),S(r),t&&await t,await this._saveThumbnail(),this.portalItem}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}async _saveAsImpl(e,t){let r=M.from(e);if(!r)throw new o("webscene:portal-item-required","saveAs requires a portal item to save to");r.id&&(r=r.clone(),r.id=null);const i=r.portal||O.getDefault();await this._ensureLoadBeforeSave(),r.type=ce,r.portal=i;const s=this._enableVerifyItemRelativeUrls(E(r,"web-scene",!0)),a=this.write({},s);await Promise.all(s.resources.pendingOperations),await this._verifySaveAs(a,s,t);const n=this.thumbnailUrl,l=!this._isOverridden("thumbnailUrl");this._updateTypeKeywords(r),await i.signIn();const p=this.portalItem,c={item:p,authenticated:!(!p?.id||!p.portal.user)},{copyAllowed:h,itemReloaded:u}=await z(c,i);if(c.authenticated||=u,!h)throw new o(`${s.name}:save-as-copy-not-allowed`,"Owner of this map does not allow others to save a copy");const m={...t,copyAllResources:!0};return await K(r,c,a,m)&&(this._resourceReferences.portalItem=r),await $(this._resourceReferences,s),this.portalItem=r,d.prototype.read.call(this,{version:a.version,authoringApp:a.authoringApp,authoringAppVersion:a.authoringAppVersion},{name:"web-scene",ignoreDefaults:!0,url:r.itemUrl?w(r.itemUrl):void 0}),S(s),n&&(this.thumbnailUrl=l?f(n,"w","8192"):n),s.portalItem=r,await this._saveThumbnail(),r}async _saveThumbnail(){this._isOverridden("thumbnailUrl")&&(await(this.portalItem?.updateThumbnail({thumbnail:this.thumbnailUrl})),this._clearOverride("thumbnailUrl"),this.clear("thumbnailUrl","user"))}async _verifySave(e,t,r,i){if(!I(this.spatialReference))throw new o("webscene:unsupported-spatial-reference","Webscenes using spatial reference systems from Mars or Moon can not be saved currently.");const{ignoreUnsupported:s,requiredPropertyChecksDisabled:a,strictSchemaValidationEnabled:n}=i||{};q(t,{errorName:"webscene:save"},{ignoreUnsupported:s,supplementalUnsupportedErrors:["scenemodification:unsupported"],requiredPropertyChecksDisabled:a});const p=re();if(n&&p){const t=(await p()).validate(e);if(!t.length)return;const i=`webscene did not validate:\n${t.join("\n")}`;l.getLogger(this).error(`${1===r?"saveAs":"save"}(): ${i}`);const s=t.map(e=>new o("webscene:schema-validation",e));throw W(s)}}_verifySaveAs(e,t,r){return this._verifySave(e,t,1,r)}verifySaveAs(e){const t=this._enableVerifyItemRelativeUrls({origin:"web-scene",messages:[]}),r=this.write({},t);return this._verifySaveAs(r,t,e)}canNotSaveAs(){return!1}async updateFrom(e,t={}){const r=this._updateFrom(e,t);this._updateFromPromise=r,await r;this._updateFromPromise===r&&(this._updateFromPromise=null)}async _updateFrom(e,t={}){if(await e.whenReady(),!t.environmentExcluded&&e.environment&&(this.initialViewProperties.environment=X.prototype.clone.apply(e.environment)),!t.viewpointExcluded&&e.viewpoint&&(this.initialViewProperties.viewpoint=e.viewpoint.clone()),this.initialViewProperties.spatialReference=e.spatialReference.clone(),this.initialViewProperties.viewingMode=e.viewingMode,this.initialViewProperties.timeExtent=e.timeExtent?.clone()??null,this.initialViewProperties.analyses.updateFrom(e),null!=e.clippingArea?e.clippingArea!==this.clippingArea&&(this.clippingArea=e.clippingArea.clone(),this.clippingEnabled=!0):this.clippingEnabled=!1,e.heightModelInfo&&(this.heightModelInfo=e.heightModelInfo.clone()),e.map===this)for(const r of e.allLayerViews){const e="visible";e in r&&e in r.layer&&r._isOverridden(e)&&(r.layer[e]=r[e])}if(!t.widgetsExcluded)for(const r of e.persistableViewModels)r.updateWebDocument(this);(!1===t.thumbnailExcluded||null==t.thumbnailExcluded&&!t.viewpointExcluded)&&await this.updateThumbnail(e,{size:t.thumbnailSize})}async updateThumbnail(e,t){const r=H(e,t?.size),i=await e.takeScreenshot({format:"jpg",width:r.width,height:r.height,disableDecorations:!0});this.thumbnailUrl=i.dataUrl}async _loadFromSource(){this.resourceInfo?await this._loadFromJSON(this.resourceInfo):this.portalItem?.id?await this._loadFromItem(this.portalItem):await this._loadObjectsWithLayers(),await this._afterLoad()}async _afterLoad(){for(;this._afterLoadHooks.length;){const e=this._afterLoadHooks.slice();this._afterLoadHooks.length=0,await Promise.allSettled(e.map(e=>e(this._loadContext)))}}_readAndLoadFromJSON(e){const t=this._loadContext,r=this._validateJSON(e);return this.read(r,t),this._loadFromJSON(r)}_extractOperationalLayers(e){const t=[];if(!oe(this.sourceVersion)&&e.baseMap&&Array.isArray(e.baseMap.elevationLayers))for(const o of e.baseMap.elevationLayers)t.push(o);const r=[],i=e=>(e.layers&&(e.layers=e.layers.filter(i)),"ArcGISTiledElevationServiceLayer"!==e.layerType||(oe(this.sourceVersion)||r.push(e),!1));return{operationalLayers:e.operationalLayers?e.operationalLayers.filter(i):[],operationalElevationLayers:r,basemapElevationLayers:t}}async _loadFromJSON(e){const t=new i;await this._validateSpatialReference(),await this._validateHeightModelInfo();const{populateOperationalLayers:r}=await import("./layers/support/layersCreator.js"),{operationalLayers:o,operationalElevationLayers:s,basemapElevationLayers:a}=this._extractOperationalLayers(e),n=[],l={context:{...this._loadContext,layerContainerType:"operational-layers"}};if(this.portalItem&&(l.context.portal=this.portalItem.portal||O.getDefault()),a.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(this.ground.layers,a,e))}if(s.length>0){const e={...l,context:{...l.context,layerContainerType:"ground"}};e.defaultLayerType="ArcGISTiledElevationServiceLayer",n.push(r(t,s,e))}o&&o.length>0&&n.push(r(this.layers,o,l)),e.tables?.length&&n.push(r(this.tables,e.tables,{...l,context:{...l.context,layerContainerType:"tables"},defaultLayerType:"ArcGISFeatureLayer"})),await Promise.allSettled(n),await this._loadObjectsWithLayers(),this.ground.layers.addMany(t.filter(e=>"base-elevation"===e.type||"elevation"===e.type))}async _ensureLoadBeforeSave(){await this.load(),await this._loadObjectsWithLayers();const e=[],t=[...this.allLayers.items];for(const{basemap:r}of this.presentation.slides.items)r&&(t.push(...r.baseLayers.items),t.push(...r.groundLayers.items),t.push(...r.referenceLayers.items));for(const r of t)if("beforeSave"in r&&"function"==typeof r.beforeSave){const t=r.beforeSave();t&&e.push(t)}await Promise.allSettled(e)}async _loadObjectsWithLayers(){const e=[];this.ground&&e.push(this.ground.load()),this.basemap&&e.push(this.basemap.load()),this.presentation.slides.forEach(t=>{t.basemap&&e.push(t.basemap.load())}),await Promise.allSettled(e)}async _loadFromItem(e){if(await e.load().catch(e=>{throw new o("webscene:load-portal-item","Failed to load portal item",{error:e})}),"Web Scene"!==e.type)throw new o("webscene:invalid-portal-item","Invalid portal item type '${type}', expected 'Web Scene'",{type:e.type});const t=await e.fetchData();this.resourceInfo=t;const r=this._loadContext;r.url=w(e.itemUrl),r.portal=e.portal||O.getDefault(),r.portalItem=e,r.readResourcePaths=[],await this._readAndLoadFromJSON(t),this._resourceReferences={portalItem:e,paths:r.readResourcePaths??[]}}_validateSpatialReference(){const e=this.initialViewProperties,t=this._sceneSpatialReference;let r;if("local"!==e.viewingMode){if(!J(t,1))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in global mode, only Web Mercator, WGS84 GCS or CGCS2000 are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||P(e,t)}else{if(!J(t,2))return Promise.reject(new o("webscene:unsupported-spatial-reference","Unsupported spatial reference (${spatialReference.wkid}) in local mode, only projected coordinate systems are supported",{spatialReference:t,viewingMode:e.viewingMode}));r=e=>!e||e.equals(t)}const i=e=>e?.camera?.position.spatialReference??e?.targetGeometry?.spatialReference,s=e.viewpoint,a=i(s);if(a&&!r(a))return Promise.reject(new o("webscene:incompatible-camera-spatial-reference","Camera spatial reference (${cameraSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{cameraSpatialReference:a,sceneSpatialReference:t,viewingMode:e.viewingMode}));const n=this.presentation.slides.find(e=>!r(i(e.viewpoint)));if(n){const r=i(n.viewpoint);return Promise.reject(new o("webscene:incompatible-slide-spatial-reference","Slide spatial reference (${slideSpatialReference.wkid}) is incompatible with the scene spatial reference (${sceneSpatialReference.wkid})",{slideSpatialReference:r,sceneSpatialReference:t,viewingMode:e.viewingMode}))}return Promise.resolve()}_validateHeightModelInfo(){const e=this._sceneSpatialReference,t=U(this.heightModelInfo,e);return t?Promise.reject(t):Promise.resolve()}_validateFeatureLayerSymbolVisibility(){this.sourceVersion?.greaterEqual(1,35)||this.layers.forEach(e=>{"feature"===e.type&&e.addHandles(y(()=>e.loaded,()=>{"on-the-ground"===e.elevationInfo?.mode&&"simple"===e.renderer?.type&&"polygon-3d"===e.renderer.symbol?.type&&e.renderer.symbol.symbolLayers.some(t=>"fill"===t.type&&null!=t.material&&((!t.material.color||t.material.color.a*e.opacity<te)&&(e.loadWarnings.push(new b("feature-layer:invisible-draped-symbols","FeatureLayer has fully transparent symbols which will no longer render or highlight",{layer:e})),!0)))},{once:!0,sync:!0}))})}_validateJSON(e){const t=g.parse(e.version||"","webscene");return pe.validate(t),e.version=`${t.major}.${t.minor}`,1===t.major&&t.minor<=2&&(e.spatialReference=R.WebMercator.toJSON()),e}_updateTypeKeywords(e){C(e,T.LOCAL_SCENE,"local"===this.initialViewProperties.viewingMode),C(e,T.DEVELOPER_BASEMAP,N(this.basemap)||this.presentation.slides.some(({basemap:e})=>!!e&&N(e))),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}get _sceneSpatialReference(){return this.initialViewProperties.spatialReference||R.WebMercator}get _verifyItemRelativeRootPath(){return this.portalItem?.itemUrl?w(this.portalItem.itemUrl).path:null}_enableVerifyItemRelativeUrls(e){const t=this._verifyItemRelativeRootPath;return t&&(e.verifyItemRelativeUrls={rootPath:t,writtenUrls:[]}),e}_unscheduleLayersIdGC(){this._layersIdGCTimeoutId&&(clearTimeout(this._layersIdGCTimeoutId),this._layersIdGCTimeoutId=0)}_scheduleLayersIdGC(){this._unscheduleLayersIdGC(),this._layersIdGCTimeoutId=setTimeout(()=>{this._layersIdGCTimeoutId=0,this._runLayersIdGC()},3e3)}_runLayersIdGC(){this._unscheduleLayersIdGC();const e=this.applicationProperties?.viewing?.search,t=e=>this.allLayers.some(t=>t.id===e&&t.persistenceEnabled);e?.layers&&(e.layers=e.layers.filter(e=>t(e.id)));const r=this.presentation&&this.presentation.slides;r&&r.forEach(e=>{e.visibleLayers&&(e.visibleLayers=e.visibleLayers.filter(e=>t(e.id)))})}static fromJSON(e){if(!e)throw new o("webscene:empty-resource","Expected a JSON resource but got nothing");return new this({resourceInfo:e})}static{this.version=`${pe.major}.${pe.minor}`}};e([v({type:Q,json:{write:!0}})],de.prototype,"applicationProperties",void 0),e([v({type:j,json:{read:{source:"clippingArea.geometry",reader:V},write:{target:"clippingArea.geometry"}}})],de.prototype,"clippingArea",void 0),e([ae("clippingArea")],de.prototype,"writeClippingArea",null),e([v({type:Boolean,json:{write:{target:"clippingArea.clip"}}})],de.prototype,"clippingEnabled",void 0),e([ne("clippingEnabled",["clippingArea"])],de.prototype,"readClippingEnabled",null),e([ae("clippingEnabled")],de.prototype,"writeClippingEnabled",null),e([v({type:F,json:{read:{source:"mapFloorInfo"},write:{target:"mapFloorInfo"}}})],de.prototype,"floorInfo",void 0),e([v({type:L,json:{write:!0}})],de.prototype,"heightModelInfo",void 0),e([v({json:{write:{target:"operationalLayers",ignoreOrigin:!0}}})],de.prototype,"layers",void 0),e([ae("layers")],de.prototype,"writeLayers",null),e([v({readOnly:!0,type:g,json:{type:se(pe).map(e=>e.toString()),write:{ignoreOrigin:!0,target:"version",isRequired:!0,overridePolicy:()=>({enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],de.prototype,"sourceVersion",void 0),e([ne("sourceVersion",["version"])],de.prototype,"readSourceVersion",null),e([ae("sourceVersion")],de.prototype,"writeSourceVersion",null),e([v({json:{read:!1,write:{enabled:!0,ignoreOrigin:!0}}})],de.prototype,"tables",void 0),e([ae("tables")],de.prototype,"writeTables",null),e([v()],de.prototype,"thumbnailUrl",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],de.prototype,"authoringApp",null),e([ae("authoringApp")],de.prototype,"writeAuthoringApp",null),e([v({type:String,json:{write:{writerEnsuresNonNull:!0,ignoreOrigin:!0}}})],de.prototype,"authoringAppVersion",null),e([ae("authoringAppVersion")],de.prototype,"writeAuthoringAppVersion",null),e([v({json:{write:{isRequired:!0,enabled:!0,overridePolicy:()=>({isRequired:!0,enabled:!0,allowNull:!0,ignoreOrigin:!0})}}})],de.prototype,"ground",null),e([ae("ground")],de.prototype,"writeGround",null),e([v({type:i.ofType(ee),json:{write:!0}})],de.prototype,"transportationNetworks",void 0),e([v({type:Z,nonNullable:!0,json:{write:{ignoreOrigin:!0,writer:(e,t,r,i)=>{if(e.slides&&e.slides.length>0){const r={...i,isPresentation:!0};t.presentation=e.write({},r)}}}}})],de.prototype,"presentation",void 0),e([v({type:Y,nonNullable:!0,json:{write:{target:"initialState",isRequired:!0,ignoreOrigin:!0},default:()=>new Y({viewingMode:"global",spatialReference:R.WebMercator})}})],de.prototype,"initialViewProperties",void 0),e([ne("initialViewProperties",["initialState","spatialReference","viewingMode"])],de.prototype,"readInitialViewProperties",null),e([v({type:R,json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],de.prototype,"spatialReference",null),e([v({type:["local","global"],json:{read:!1,write:{isRequired:!0,ignoreOrigin:!0}}})],de.prototype,"viewingMode",null),e([v({type:M})],de.prototype,"portalItem",void 0),e([v()],de.prototype,"resourceInfo",void 0),e([v({type:k,json:{write:!0}})],de.prototype,"widgets",void 0),de=e([_("esri.WebScene")],de);const he=de;export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r.d(t,{A:()=>a}),r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath){{const e="5.1.0-next.33";a.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}a.defaultAssetsPath=a.assetsPath}},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),a=r(53966),o=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>i});var n=r(92602),a=r(51447),o=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then(()=>{i._tickCounter++,i._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>s,Ho:()=>u,Ji:()=>o,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>f,Xj:()=>d,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);const o=1.5;function s(e,t){return t?e.filter((e,r,n)=>n.findIndex(t.bind(null,e))===r):Array.from(new Set(e))}function i(e,t,r,n,a,o,s){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);const i=r-t;if(null==e||null==n||i!==o-a)return!1;if(s){for(let r=0;r<i;r++)if(!s(e[t+r],n[a+r]))return!1}else for(let r=0;r<i;r++)if(e[t+r]!==n[a+r])return!1;return!0}function c(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function f(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),a=e.filter(e=>!t.includes(e))),{added:n,removed:a}}function d(e){return e&&"number"==typeof e.length}function u(e,t){const r=e.length;if(0===r)return[];const n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){const o=r??e.length,s=p(e,(0,n.z)(t),o,a);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a=a||h;const s=Math.max(0,a.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<s;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;const r=w(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,eF:()=>f,eO:()=>i,io:()=>l,u3:()=>d,uW:()=>s});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Module: ${d(t)}`,r)}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:a,see:s,warnOnce:i}=r;let c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),s)if(Array.isArray(s)){c+="\n\t🔗 See for more details:";for(const e of s)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${s} for more details.`;o(e,c,i)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>i,on:()=>s,wb:()=>a});var n=r(36563);function a(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(const t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function i(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{hA:()=>a,rE:()=>s,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return a(()=>e?.abort())}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",2e4),o.add("parquetlayer-hittest-max-feature-count",1),o.add("parquetlayer-persistence-enabled",!1),o.add("parquetlayer-cache-enabled",!0),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",50),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",6),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:basemap-groundlayers",!0),o.add("enable-feature:oit-ground",!0),o.add("enable-feature:im-shading",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>i,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(f(e))return e.map(s);if(l(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function i(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(f(e)){let r=!0;const n=e.map(e=>{const n=i(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(l(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],a=i(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function f(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function l(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function a(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function i(e){return e?.abort(),null}function c(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function l(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>f,DC:()=>i,Gz:()=>c,Lw:()=>n,Pb:()=>l,WD:()=>o,pR:()=>a,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>l,i8:()=>i,sM:()=>s,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return f(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function i(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(i(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(i(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function f(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],s=t[a];return o===s?e:void 0===o?(e[a]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(o=o?Array.isArray(o)?e[a]=o.slice():e[a]=[o]:e[a]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=s.slice())):s&&"object"==typeof s?e[a]=f(o,s,r):e.hasOwnProperty(a)&&!t.hasOwnProperty(a)||(e[a]=s),e)},e||{}):e}function l(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},74887(e,t,r){r.d(t,{Pl:()=>O,Ol:()=>k,nA:()=>_,NK:()=>f,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>u,$X:()=>A,u7:()=>p,NY:()=>m,hn:()=>M,Mq:()=>d,QP:()=>b,Te:()=>l,jH:()=>h,NO:()=>j,z7:()=>P,qr:()=>g});var n=r(36563);const a=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)(()=>o.clearTimeout(r))}});var o,s=r(49186),i=r(37955),c=(r(53966),r(97768));function f(e="Aborted"){return new s.A("AbortError",e)}function l(e,t="Aborted"){if(u(e))throw f(t)}function d(e){return e instanceof AbortSignal?e:e?.signal??void 0}function u(e){const t=d(e);return null!=t&&t.aborted}function b(e){if(y(e))throw e}function h(e){if(!y(e))throw e}function p(e,t){const r=d(e);if(null!=r){if(!r.aborted)return(0,i.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=d(e);if(null!=r)return l(r),(0,i.Oo)(r,"abort",()=>t(f()))}function g(e,t){return null==d(t)?e:new Promise((r,n)=>{let a=p(t,()=>n(f()));const o=()=>{a=(0,c.xt)(a)};e.then(o,o),e.then(r,n)})}function y(e){return"AbortError"===e?.name}async function w(e){try{return await e}catch(e){if(!y(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await v(r),a={};return t.map((e,t)=>a[e]=n[t]),a}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function _(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function k(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function O(e,t=void 0,r){const n=new AbortController;return p(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);p(n,()=>{o&&(clearTimeout(o),a(f()))})})}function A(e){return e&&"function"==typeof e.then}function P(e){return A(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,a,o,s=null;const i=(...c)=>{if(r){n=c,o&&o.reject(f()),o=x();const e=o.promise;if(s){const e=s;s=null,e.abort()}return e}if(a=o||x(),o=null,t>0){const n=new AbortController;r=P(e(...c,n.signal));const a=r;O(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=P(e(...c));const l=()=>{const e=n;n=a=r=s=null,null!=e&&i(...e)},d=r,u=a;return d.then(l,l),d.then(u.resolve,u.reject),u.promise};return i}function x(){let e,t;const r=new Promise((r,n)=>{e=r,t=n}),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>a.setTimeout(()=>n.reject(t),e),n.promise=r,n}function M(e,t){t.then(e.resolve,e.reject)}async function j(e){await Promise.resolve(),l(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>s,V2:()=>i,Wm:()=>f,_e:()=>d});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function s(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function i(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function f(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function d(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function i(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function f(e){return"Int32Array"===e?.constructor?.name}function l(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>i,JI:()=>m,LW:()=>d,PI:()=>w,UR:()=>s,XJ:()=>l,_G:()=>f,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>a,h2:()=>v,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u,y9:()=>p});const p=1024;function m(e){return b(e)||u(e)||f(e)||i(e)||a(e)}function g(e){return b(e)||u(e)}function y(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:l(e)?4294967295:c(e)?65535:o(e)||s(e)?255:f(e)?2147483647:i(e)?32767:a(e)?127:256}const w=-32768,v=-2147483648},84952(e,t,r){r.d(t,{$1:()=>Y,$z:()=>G,An:()=>S,BQ:()=>ae,DB:()=>K,FL:()=>J,FX:()=>L,Hg:()=>te,Il:()=>ue,Ln:()=>me,N9:()=>ne,S8:()=>H,T1:()=>he,UC:()=>be,V1:()=>B,Xq:()=>A,Zo:()=>_e,_0:()=>Oe,a6:()=>ve,b8:()=>T,e7:()=>de,fj:()=>D,gd:()=>P,hf:()=>pe,lJ:()=>X,lM:()=>ie,m3:()=>se,nM:()=>le,oP:()=>V,oy:()=>E,r$:()=>ee,rs:()=>we,s0:()=>v,s2:()=>z,sC:()=>U,s_:()=>j,tk:()=>re,ut:()=>q,w8:()=>Q,x0:()=>M,xw:()=>ke,yM:()=>C,zf:()=>x,zi:()=>ye,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),s=r(53966),i=r(12195),c=r(39131),f=r(26306);const l=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();const A=()=>k,P=()=>O;function S(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=x(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function x(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,a;t<0?(n=decodeURIComponent(e),a=""):(n=decodeURIComponent(e.slice(0,t)),a=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(a):r[n]=a}return r}function M(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{const n=e[r];if(null==n)return"";const a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,i.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,i.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function j(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=se(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ce()&&(r=ie(r)),S(r)}function C(e,t=!1){const r=N(e);let n,a;if(r){const e=W(r.proxyUrl);n=e.path,a=e.query?x(e.query):null}else if(t){const t=j(e);n=t.path,a=t.query}if(n){const t=S(e);e=n+"?"+t.path;const r=M({...a,...t.query});r&&(e=`${e}?${r}`)}return e}const $={path:"",query:""};function W(e){const t=e.indexOf("?");return-1!==t?($.path=e.slice(0,t),$.query=e.slice(t+1)):($.path=e,$.query=null),$}function I(e){return(e=fe(e=ue(e=W(e).path),!0)).toLowerCase()}function E(e){const t={proxyUrl:e.proxyUrl,urlPrefix:I(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let a=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){const t=l.proxyRules,r=I(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function T(e,t){if(!e||!t)return!1;e=R(e),t=R(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&L(e,t,!0)}function q(e,t){return e=R(e),t=R(t),fe(e)===fe(t)}function R(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function U(e,t=l.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function L(e,t,r=!1){if(!e||!t)return!1;const n=ge(e),a=ge(t);return!(!r&&n.scheme!==a.scheme)&&null!=n.host&&null!=a.host&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function J(e){if("string"==typeof e){if(!V(e))return!0;e=ge(e)}if(L(e,k))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(L(e,n[t]))return!0}return!1}function F(e){return _[e]||(oe(e)||ae(e)?_[e]=[new v(z(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function z(e,t=O,r){return ae(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===G(e).slice(2)?`http:${e}`:`https:${e}`:oe(e)?e:D(e.startsWith("/")?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function B(e,t=O,r){if(null==e||!V(e))return e;const n=H(e),a=n.toLowerCase(),o=H(t).toLowerCase().replace(/\/+$/,""),s=r?H(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!o.startsWith(s))return e;const i=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=i(a,"/",a.indexOf("//")+2),f=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(f=c+1,c!==a.length);)c=i(a,"/",c+1);if(-1===f)return e;if(s&&f<s.length)return e;e=n.slice(f);const l=o.slice(f-1).replaceAll(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=l.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&ae(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(ce()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||ce()&&!N(e))&&(e=ie(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=W(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=z(e=e.trim()))))}function D(...e){const t=e.filter(a.Ru);if(!t?.length)return;const r=[];if(V(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function G(e,t=!1){if(null==e||Q(e)||K(e))return null;let r=e.indexOf("://");if(-1===r&&ae(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=fe(e,!0)),e}function V(e){return ae(e)||oe(e)}function Q(e){return null!=e&&e.startsWith("blob:")}function K(e){return null!=e&&e.startsWith("data:")}function X(e){const t=ee(e);return t?.isBase64?(0,f.M)(t.data):null}function Y(e){return(0,f.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Z=/^data:(.*?)(;base64)?,(.*)$/;function ee(e){const t=e.match(Z);if(!t)return null;const[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function te(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function re(e){return(await fetch(e)).blob()}function ne(e){const t=X(e);if(!t)return null;const r=ee(e);return new Blob([t],{type:r.mediaType})}function ae(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function oe(e){return null!=e&&u.test(e)}function se(e){return null!=e&&h.test(e)||"https"===k.scheme&&ae(e)}function ie(e){return ae(e)?`https:${e}`:e.replace(b,"https:")}function ce(){return"https"===k.scheme}function fe(e,t=!1){return ae(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function le(e){let t=0;if(V(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=S(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const a=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function ue(e){return e.endsWith("/")?e:`${e}/`}function be(e){return e.replace(/\/+$/,"")}function he(e,t,r){if(!(t&&r&&e&&V(e)))return e;const n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function pe(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function me(e){return new URL(e).host}function ge(e){return"string"==typeof e?new v(z(e)):(e.scheme||(e.scheme=k.scheme),e)}function ye(e,t){const r=S(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function we(e,t,r){const n=S(e),a=n.query||{};return a[t]=String(r),`${n.path}?${M(a)}`}function ve(e,t){if(!t)return e;const r=S(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const a=M(n);return a?`${r.path}?${a}`:r.path}function _e(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function ke(e){if(null==e)return null;const t=e.match(Ae);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Oe(e){return"string"==typeof e?ee(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(ee(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o;const s=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(s)&&(a=s.signal,o=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(70333),a=r(49186),o=r(37955),s=r(36563),i=r(97768),c=r(74887),f=r(52268);const l={CSVSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(2188)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(7380),r.e(3607)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(2031),r.e(6860),r.e(2455)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(8065),r.e(8303),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7733),r.e(5859),r.e(9497),r.e(2330),r.e(3443),r.e(4104)]).then(r.bind(r,94104)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6408),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(2330),r.e(88)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9616)]).then(r.bind(r,49616)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),MeasurementWorker:()=>Promise.all([r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(7837)]).then(r.bind(r,69396)),GeoJSONSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(847)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),MemorySourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7229)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(9679)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7733),r.e(9497),r.e(7867)]).then(r.bind(r,48459)),PointCloudWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(7005),r.e(3082)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(8610),r.e(7373),r.e(9235),r.e(1493)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9466),r.e(6269),r.e(7380),r.e(9535)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(4757)]).then(r.bind(r,18003)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(4794)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(5859),r.e(5013),r.e(3443),r.e(3875)]).then(r.bind(r,36849)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(5750)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(4560),r.e(7445),r.e(3832),r.e(3009)]).then(r.bind(r,33009)),ImageMeasurementWorker:()=>Promise.all([r.e(6408),r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(3508),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(8065),r.e(8303),r.e(4903),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(893),r.e(4800),r.e(6231),r.e(812),r.e(3832),r.e(8610),r.e(9186),r.e(4341),r.e(1695),r.e(8434),r.e(1775)]).then(r.bind(r,68747))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.u}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=l[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());const f=(0,c.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,i.xt)(e.abortHandle),this._post({type:h,jobId:s}),a((0,c.NK)()))}),l={resolve:r,reject:a,abortHandle:f,debugInfo:e};this._outJobs.set(s,l),this._post({type:p,jobId:s,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,f.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:y,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:b}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,i.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:a}=e,o=a?new AbortController:null,s=this._inJobs;let i,f=this._client,l=f[t];try{if(!l&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],l=f[e[t+1]]}if("function"!=typeof l)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),i=l.apply(f,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,c.$X)(i)?(s.set(r,{controller:o,promise:i}),i.then(e=>{s.has(r)&&(s.delete(r),this._post({type:m,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,c.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},i)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{const a=(0,d.VI)(e);a?.type===b&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const s=o.get(t);o.delete(t),this._processWork(),(0,i.xt)(s.abortHandle),r?s.reject(a.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Go:()=>s,Jc:()=>c,T:()=>o,VI:()=>d,mF:()=>f,oV:()=>b,u1:()=>l});var n=r(44208),a=r(74887);const o="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let i=0;function c(){return i++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>f,id:()=>s,ol:()=>i,rE:()=>o});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const o="5.1";let s,i=o;function c(e){s=e}function f(e){const t=s?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}i="5.1.0-next.33",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>o,qG:()=>i});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,s]=t;if(!r)return null;let i=null,c=null,f=null;const{devext:l,qaext:d,www:u}=a;if(o)if(i=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qa":({customBaseUrl:c,portalHostname:f}=d);break;default:return null}else({customBaseUrl:c,portalHostname:f}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qaext":({customBaseUrl:c,portalHostname:f}=d);break;case"www":({customBaseUrl:c,portalHostname:f}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:f,urlKey:i}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function i(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})},18357(e,t,r){r.d(t,{$:()=>n,u:()=>a});const n="20260305",a="1757d0c3f82472a39fcda1a8390c3d1e57c170c7"}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{5:"d52172439db02a349542",36:"952ff668d202e80b43b0",88:"48968fb9e103ee6c3579",91:"9c6e96b1c2b0418a4f1c",146:"64870f555fefa85a5c59",148:"91e9337bef87ada2e05c",182:"a52a8254577840a23aba",217:"a1a12552d34ea9eea130",262:"34cdcee6d0ea595d7aed",284:"8eed5b6cac937099102c",309:"568d32ceee1409809e5a",349:"7908aed639521cf572e8",353:"65520a443e3811255bea",368:"e25bbd7cc553b1d2e208",369:"8a0a13f398ab488dbbe9",382:"d28169816c768d55aa09",390:"b553264db0f10bb8c5f7",427:"06df187a116709f69952",547:"63934843c9f4ef779a07",561:"6792e981a3c73063a3e6",563:"c7f27a84268a9b0d8cdb",566:"3c2eb386c0165150e039",597:"828998d33a48be161782",609:"d44217de4c73475f9c66",648:"1ff40e6057916e8482b3",692:"34207774bc371e95ba3c",708:"1669f1bf959c4e3083da",788:"d31f62ecbb54bffc54f2",795:"5afee66e182f79a0fc46",812:"a3a28c4887f802e8d96d",820:"aafa33f661462f5afd2b",841:"63722607fbf8d411188d",847:"fa62d43ccf5cb991dddd",883:"973e3743cb7fdaa27f80",891:"ac9722a7897c994f11ab",893:"c2882a9e67124b7c18be",907:"122ff8d0d428f31fc5d1",923:"f9abae8d07002fe04a08",926:"f1f78bb3d34f973c19de",980:"74e1826ad9e2c4fd3b42",1003:"6c853fd89f0e9f102c6e",1005:"e00000468fb8ec2b3d43",1017:"f89b7b0ccfbd1e5f9a0f",1023:"5b278b9980752ef495a2",1054:"4c6fc6d19fe519ce7bfc",1072:"8c2e5b116bac21e7d577",1086:"5b22245bf02f839d79e3",1088:"e8ae71e482b8d5f54a72",1132:"8c210529a28addb94ea0",1190:"e3a73d9acebccd3ba49b",1204:"210ef3f1cc6ef8a831bf",1214:"6b56c8ba978ec6edd6b8",1273:"cc697c4d9cdc116373dc",1277:"7a474ce61cf484df87b4",1279:"9813f25192ea27084754",1285:"a0d459bdb91ee892d4b6",1352:"cb903ccbce87172a0757",1384:"1fa2bf0d6740092ec619",1427:"9cc1b44c5a325a840307",1493:"0d156e14fc34d0600fd5",1512:"64fd3561bc94570ee954",1550:"9e55f97291062985560b",1666:"66e35e38aea978f91a0c",1695:"6ba87ebb1c8c5f1d4798",1698:"114aecdbd2bd92b24de2",1728:"6a0c371ec3acd7529fe6",1763:"601e44839fd46e449aa8",1775:"0efe90bd43ab29dab8ae",1787:"e6220c1fa887e21ffbbd",1797:"cb2fbe585c0827eecf70",1812:"8d3c508995253cbe083f",1837:"3a8320a40916c755c031",1878:"4c54cb80c4dc9bbbd395",1882:"a495e60996a36ce19a32",1894:"de6b3f80070abdd61d0f",1918:"73e384fd93cf22503d84",1956:"e67bdd8bf38ebe89a344",1965:"70f0d66e5e6d5d2163f3",2031:"586bc903e2c285649bf2",2114:"380bb57bccc266d6442a",2158:"278409028bc5af45b507",2165:"b7a3a7f7fb747f9689d7",2174:"6aba8c3bce5f68568e3a",2186:"c45a5bcf26659daf02a1",2188:"cf045900f179210f22d2",2260:"ff6c4f8420140b9f9577",2261:"938125c024e1524a57e6",2266:"777390e820b3824dc265",2288:"4bfc6f8c2d13ca4d2082",2303:"0337138d3702a1a52ce0",2314:"144acac9bb1aa78f1170",2330:"6e8cfe69617876ee0dac",2343:"bd278f8081be8304be8d",2369:"ce063df750018024c9ed",2372:"7cb0681cc6a5e956cb15",2390:"68abe4e70ea48e978642",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2455:"5e5b358e603b13b4d7d7",2555:"14e05d37e10ebba8cf10",2558:"2d956dacb26d71d1c174",2733:"80f0810527743833b4b7",2741:"bfdfa737f8e7b0bee417",2764:"cc62e5095e328bed3e01",2772:"23cb0611abe1031c513c",2806:"ba477072b1d1d3b5f78b",2869:"b98366d8a5bc6cc2b219",2942:"e853cce8528c1ed4e123",2958:"e021b2f0e15aee5bf3ad",2980:"3087910d19959fdc546b",2990:"58f47dea6d8665611eff",2997:"3dd5d481ae6c5d9dfa08",3009:"9de8149ae0a0726a4ab2",3082:"f379f94adbe79dc305a2",3103:"4d7f7b1e7663cf6088d1",3116:"3d18b8c1c759c7240721",3135:"ee582bbe7365b678ec54",3166:"861817be5e050e9522ab",3202:"3b86e8eb553122d3b68d",3276:"f0e6a26a3625068b08ab",3299:"dd6efa0afe879bd11a2e",3304:"b2a67fe89f6505498bc3",3341:"55165b6b49b87c1aff8f",3354:"a061a17b62686f945e81",3359:"5a6a6e7151085a3cd3dd",3390:"73c87eb9bd8f0f848481",3443:"6ca2064ea96bdb594f52",3447:"91718795fc4ca6516ac7",3456:"5ffe664eda334ad73175",3463:"9f1f5fb648302c43ad12",3494:"11058e660139c427c3e7",3500:"7975abb2162a82c88edb",3508:"6f079f1fd6d00d2d174c",3514:"dcc3285e4ab2c38709bd",3543:"deaca3cd202851ecf9c2",3561:"1d0153c7d65bd9ea7d39",3607:"241ef4a1bea20b49d812",3620:"527547fa10d52cb3a7b1",3636:"d30253b4990a76bfd72b",3637:"854fe80272b59fafc2e9",3661:"e09722903e63f6cc2540",3666:"53817ef8c00d8cce4b8e",3693:"0a66a2b4aaab0774c34f",3708:"19fcc74d34cbbaa56a41",3813:"087403b53f15eb4d375c",3832:"f5dbda08d7fd4bed1c62",3875:"5698098c3691b3b49283",3902:"76effcc35b3962cd5535",3910:"cc3939983cf6f78f7243",3937:"86161025b53b916328ff",4038:"56f64df68bb11c0c74d2",4097:"af75e91b88e747aa76ac",4104:"fe21b2d31fbf83224e6b",4167:"ce3e192fbb53a9c6eb3b",4168:"7dba4b04c148f03fdf21",4314:"8d6da6573d07385f4ed5",4341:"0d196cf72cd8bef8d91d",4383:"9c6d34bb666f630d511f",4387:"b859d98fa1c39f8e4099",4447:"ff8de370abf661768380",4496:"d0d836502321e7a80e61",4560:"a3b29eca5807978fb2a3",4575:"75664587bb80f4e187e1",4579:"6d5bb00157e20ad90fc0",4580:"cc69e61d6a7c220e3dd8",4642:"5cb4cd1cc6c21f69b925",4674:"eef102e13fd8878eeb96",4690:"f563dd6cace047108b3c",4724:"22aeab5c363645c04806",4741:"b2f497339493926d4c9e",4757:"8d4ddaace906dd09de2c",4794:"c2c339b2df1c4466f4d4",4795:"136859ef29a3269c4128",4800:"41a95ad470ec42ecd5a2",4903:"d7229019876c0e4ff545",4935:"f4e5163efa2a0567ee19",4996:"01dd849a2d335e9f3e16",5013:"6c72dbd5275bffde1583",5020:"5f53d7d6bc9b67b2f357",5098:"5b12865ac53d984d8149",5141:"04094d576bfa11d90f73",5165:"7ebd836b98d14c7d3ecf",5181:"2d6165796af522858e56",5217:"cf100c80b75ba74b479c",5243:"c3e4f8664988e50bda55",5335:"d2fa8bd3f4cd3cf6b436",5367:"c20aaca8085ce897bd12",5404:"aa367ca7f8326fd67881",5482:"305b2a8dc6438c5fd4aa",5567:"b2cf19a28aa5c32a99e3",5605:"56c7d7c7217557375fb6",5613:"9a3e5053e95db36f26dc",5664:"ab679e5d76d70a1672af",5666:"5f6942ac94acd7842926",5673:"eaeb95be8d4032513247",5710:"3dcb4ee8b862689a141b",5740:"3e26f9af6b8c75bad97a",5750:"d22cc7d485c032181bbc",5756:"f5144e570952ca62a1b0",5804:"0c13591347d51d684561",5841:"45d57e561fc993bc75ed",5856:"2541724a29f6058718f8",5859:"288082ae7b19837a3d38",5902:"1edd39c7c4acdc591d10",5977:"623bfacf4b9c9a5387cc",5993:"c6112dcd6b36e256d7b5",6033:"06223d5d8281e5af14c5",6052:"5d87316d6f973d95745c",6061:"493a0981e90a5799fb5b",6122:"1ede8666d804c553803e",6129:"0d9d33f29124d464a4cb",6154:"ac84e5b5d010c235fe6f",6160:"bb3ab2453ccde2f2611c",6187:"2ecb21c402cdd8c82533",6231:"34f2e9d7466abc0919e7",6269:"5a6d6082c5bcb1a80eda",6275:"d4b97ca16d79809ed6f2",6276:"07bdcb622ea59fdbb3a6",6312:"a4a4ce33de6432ba4dc3",6320:"666db81085bc97831b18",6342:"3e61e7805dc6ff284831",6343:"8d1d0c3f0532aa98487d",6364:"4490f8eeeb2ee04daa9d",6390:"4ceba469398ef55de8ea",6408:"a96c7432ca97cbeef4b8",6418:"0e7d3f3479fcb366cc6f",6491:"5df9d2a255c9d63ae7df",6554:"f4301ea9a6cb3bcef906",6558:"f7506c9d57b2ae0c5fd3",6606:"c17c3453d014dc73fe0b",6650:"582d45a41e29005f6c63",6671:"ffe9fa5111c149ddef49",6708:"7a4cc1133e4410271b00",6859:"6ac84e6d33104e74398d",6860:"03e20ac54d6f141b5001",6861:"c04c457f5295febb3c39",6956:"e0344b45af88081fa186",6960:"1a1e57267306c07e5bdb",7005:"c1be9c4e59925a897a91",7087:"b8005b1996f42dee8237",7217:"87c9a1fc9f2a392b78f5",7229:"f7e66295401b85e2c91d",7301:"465cc0e00f03cdb640b2",7316:"d587b7842091affdaac3",7367:"c327fe276238af60fda4",7373:"6997b4d5bcc9c4755375",7380:"209d8ee81cc3ebb18b27",7433:"6cdda5aa35fa12ea9345",7444:"de5719ef663224860af5",7445:"c9a42d86185a0ad35dd1",7451:"414a802b6365688d31cb",7464:"285f3b07de852bfc1604",7528:"b3950d5f1f3352521504",7546:"f50bba74ae72c07e131a",7557:"e16f5f089259988e8993",7561:"d3c760109a70a71448c5",7581:"917474f9dd2039b82e9d",7609:"889835e61ea97f090082",7617:"70263c2182dc43046742",7632:"612873df0c8659ac2aa5",7694:"005fe95c3329cfe74219",7705:"6f3f7f785241edacdb8b",7716:"0554f310066937098099",7733:"7601408e242dca1d25bd",7772:"e96529e144c3268a04f7",7809:"1e018de43becf66cceaa",7820:"446bc8461403ed1ac7b2",7835:"804c31973f7d116523cb",7836:"f4053e4e2d6e678db48a",7837:"67de5225b2c66c9c7bc9",7867:"dfee98e7d1b206f33ba9",7883:"e0d6292aaa3f8a796de3",7885:"8bd24534ed185afcb124",7982:"c8ae8d1b456ace0b383b",7987:"c09bc36347e8eb9fff00",7992:"f76833254f842fb0cd9a",8008:"3b9de873f87f0feeb20b",8010:"1ee3d44e6d7add0b24cb",8018:"8f6833671c071b522923",8065:"190bc75254bc0542a6be",8125:"5b3bb636e3bec625e515",8190:"36f91b5c4345a179b8b1",8303:"55070344f08ef0ed2a30",8345:"a35d1be700ebd3109397",8366:"696f645349249f26090c",8377:"4d16b6ac52e25bd7e6aa",8399:"7cec3252e3ee56424b9e",8414:"21decfc1e477fb769204",8434:"9cd548ea00b641d8e65d",8457:"43f60f41d353d3fc7c4b",8594:"8e10e4c25869af9da5ba",8599:"ca6012135929b028ea1b",8610:"da60a6df2f7858a2910e",8635:"776a7179d32fe62a37e3",8679:"88426877d625ea333143",8692:"ca64867bc322a354be8e",8714:"0d6afba80d2f8dcb5cf7",8782:"ae72c530d52a6d4461be",8801:"b81780e5e7cd9a1a010a",8812:"88c3b60b403e2454b56e",8885:"a7a9716582b256d76e5b",8902:"b364ec104dd59faa41b6",8948:"5fa5a2fb69f84e9092ba",9013:"953f671bdeb2ca9b9f37",9028:"bb7e0334f438daa665da",9062:"5eb9fdb076488de9cd83",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9156:"620965d2e1a9ccf81d43",9159:"99101789035f1787c630",9169:"a3174b23aabcef2fa98c",9186:"96132a37bc08c7fa8f2e",9187:"8351012ceb466f01b8fd",9192:"2ce845c990bb4d701362",9235:"666f201d222c50ab8428",9239:"74d9dd484b9bc4dc7e3d",9321:"4b24f72b56edc28bb15e",9397:"02aaeaa988e9e7d65a7f",9442:"283ce37403c5e7a76e95",9466:"bfe9c8ab35d9bf7e1035",9497:"f104d83b7b31a16908ee",9506:"faad127dc07e54e7f6d1",9535:"c79e8003812b789724af",9544:"00947268b6de12329146",9588:"8109476a7b1039d424ab",9597:"b1ddc837a6805a09d0da",9598:"cdec811b66d98e76be9e",9616:"746b3e98bad32c366a27",9641:"a2d045217a42ecc36308",9657:"5f3b25b30acd7a07f5c0",9679:"3c597d8ef898627b8f93",9695:"cc8e6d1eb90221103023",9696:"1f54ed4a5238ba1a2551",9784:"7a2dd3d85d31dce29d94",9790:"54c1d31e1efab765ee7a",9835:"3f6ebd82551c2000912e",9838:"8838ff9668b472af16a1",9926:"d01a98c13501c89205b6",9933:"2f0e850ebea0ffd2708f",9938:"cd73d37ea0e66db46e45",9953:"dcef87f7d06c45cd928b",9958:"8ab39731775b0867a512"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[a,o,s]=t;for(var i in o)r.o(o,i)&&(r.m[i]=o[i]);for(s&&s(r);a.length;)e[a.pop()]=1;n(t)}})(),r(66358);var n=r(61322);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r.d(t,{A:()=>a}),r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath){{const e="5.1.0-next.35";a.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}a.defaultAssetsPath=a.assetsPath}},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),a=r(53966),o=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>i});var n=r(92602),a=r(51447),o=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then(()=>{i._tickCounter++,i._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>s,Ho:()=>u,Ji:()=>o,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>f,Xj:()=>d,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);const o=1.5;function s(e,t){return t?e.filter((e,r,n)=>n.findIndex(t.bind(null,e))===r):Array.from(new Set(e))}function i(e,t,r,n,a,o,s){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);const i=r-t;if(null==e||null==n||i!==o-a)return!1;if(s){for(let r=0;r<i;r++)if(!s(e[t+r],n[a+r]))return!1}else for(let r=0;r<i;r++)if(e[t+r]!==n[a+r])return!1;return!0}function c(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function f(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),a=e.filter(e=>!t.includes(e))),{added:n,removed:a}}function d(e){return e&&"number"==typeof e.length}function u(e,t){const r=e.length;if(0===r)return[];const n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){const o=r??e.length,s=p(e,(0,n.z)(t),o,a);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a=a||h;const s=Math.max(0,a.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<s;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;const r=w(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,eF:()=>f,eO:()=>i,io:()=>l,u3:()=>d,uW:()=>s});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Module: ${d(t)}`,r)}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;l(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&l(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function l(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:a,see:s,warnOnce:i}=r;let c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),s)if(Array.isArray(s)){c+="\n\t🔗 See for more details:";for(const e of s)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${s} for more details.`;o(e,c,i)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>i,on:()=>s,wb:()=>a});var n=r(36563);function a(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(const t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function i(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{hA:()=>a,rE:()=>s,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return a(()=>e?.abort())}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",2e4),o.add("parquetlayer-hittest-max-feature-count",1),o.add("parquetlayer-persistence-enabled",!1),o.add("parquetlayer-cache-enabled",!0),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",50),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",6),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:basemap-groundlayers",!0),o.add("enable-feature:oit-ground",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>i,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(f(e))return e.map(s);if(l(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function i(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(f(e)){let r=!0;const n=e.map(e=>{const n=i(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(l(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],a=i(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function f(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function l(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function a(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function i(e){return e?.abort(),null}function c(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function l(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>f,DC:()=>i,Gz:()=>c,Lw:()=>n,Pb:()=>l,WD:()=>o,pR:()=>a,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>l,i8:()=>i,sM:()=>s,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return f(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function i(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(i(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(i(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function f(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],s=t[a];return o===s?e:void 0===o?(e[a]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(o=o?Array.isArray(o)?e[a]=o.slice():e[a]=[o]:e[a]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=s.slice())):s&&"object"==typeof s?e[a]=f(o,s,r):e.hasOwnProperty(a)&&!t.hasOwnProperty(a)||(e[a]=s),e)},e||{}):e}function l(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},74887(e,t,r){r.d(t,{Pl:()=>O,Ol:()=>k,nA:()=>_,NK:()=>f,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>u,$X:()=>A,u7:()=>p,NY:()=>m,hn:()=>M,Mq:()=>d,QP:()=>b,Te:()=>l,jH:()=>h,NO:()=>j,z7:()=>P,qr:()=>g});var n=r(36563);const a=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)(()=>o.clearTimeout(r))}});var o,s=r(49186),i=r(37955),c=(r(53966),r(97768));function f(e="Aborted"){return new s.A("AbortError",e)}function l(e,t="Aborted"){if(u(e))throw f(t)}function d(e){return e instanceof AbortSignal?e:e?.signal??void 0}function u(e){const t=d(e);return null!=t&&t.aborted}function b(e){if(y(e))throw e}function h(e){if(!y(e))throw e}function p(e,t){const r=d(e);if(null!=r){if(!r.aborted)return(0,i.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=d(e);if(null!=r)return l(r),(0,i.Oo)(r,"abort",()=>t(f()))}function g(e,t){return null==d(t)?e:new Promise((r,n)=>{let a=p(t,()=>n(f()));const o=()=>{a=(0,c.xt)(a)};e.then(o,o),e.then(r,n)})}function y(e){return"AbortError"===e?.name}async function w(e){try{return await e}catch(e){if(!y(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await v(r),a={};return t.map((e,t)=>a[e]=n[t]),a}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function _(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function k(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function O(e,t=void 0,r){const n=new AbortController;return p(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);p(n,()=>{o&&(clearTimeout(o),a(f()))})})}function A(e){return e&&"function"==typeof e.then}function P(e){return A(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,a,o,s=null;const i=(...c)=>{if(r){n=c,o&&o.reject(f()),o=x();const e=o.promise;if(s){const e=s;s=null,e.abort()}return e}if(a=o||x(),o=null,t>0){const n=new AbortController;r=P(e(...c,n.signal));const a=r;O(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=P(e(...c));const l=()=>{const e=n;n=a=r=s=null,null!=e&&i(...e)},d=r,u=a;return d.then(l,l),d.then(u.resolve,u.reject),u.promise};return i}function x(){let e,t;const r=new Promise((r,n)=>{e=r,t=n}),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>a.setTimeout(()=>n.reject(t),e),n.promise=r,n}function M(e,t){t.then(e.resolve,e.reject)}async function j(e){await Promise.resolve(),l(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>s,V2:()=>i,Wm:()=>f,_e:()=>d});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function s(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function i(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function f(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function d(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function i(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function f(e){return"Int32Array"===e?.constructor?.name}function l(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>i,JI:()=>m,LW:()=>d,PI:()=>w,UR:()=>s,XJ:()=>l,_G:()=>f,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>a,h2:()=>v,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u,y9:()=>p});const p=1024;function m(e){return b(e)||u(e)||f(e)||i(e)||a(e)}function g(e){return b(e)||u(e)}function y(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:l(e)?4294967295:c(e)?65535:o(e)||s(e)?255:f(e)?2147483647:i(e)?32767:a(e)?127:256}const w=-32768,v=-2147483648},84952(e,t,r){r.d(t,{$1:()=>Y,$z:()=>G,An:()=>S,BQ:()=>ae,DB:()=>K,FL:()=>J,FX:()=>L,Hg:()=>te,Il:()=>ue,Ln:()=>me,N9:()=>ne,S8:()=>H,T1:()=>he,UC:()=>be,V1:()=>B,Xq:()=>A,Zo:()=>_e,_0:()=>Oe,a6:()=>ve,b8:()=>T,e7:()=>de,fj:()=>D,gd:()=>P,hf:()=>pe,lJ:()=>X,lM:()=>ie,m3:()=>se,nM:()=>le,oP:()=>V,oy:()=>E,r$:()=>ee,rs:()=>we,s0:()=>v,s2:()=>z,sC:()=>U,s_:()=>j,tk:()=>re,ut:()=>q,w8:()=>Q,x0:()=>M,xw:()=>ke,yM:()=>C,zf:()=>x,zi:()=>ye,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),s=r(53966),i=r(12195),c=r(39131),f=r(26306);const l=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();const A=()=>k,P=()=>O;function S(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=x(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function x(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,a;t<0?(n=decodeURIComponent(e),a=""):(n=decodeURIComponent(e.slice(0,t)),a=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(a):r[n]=a}return r}function M(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{const n=e[r];if(null==n)return"";const a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,i.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,i.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function j(e=!1){let t,r=l.proxyUrl;if("string"==typeof e){t=se(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ce()&&(r=ie(r)),S(r)}function C(e,t=!1){const r=N(e);let n,a;if(r){const e=W(r.proxyUrl);n=e.path,a=e.query?x(e.query):null}else if(t){const t=j(e);n=t.path,a=t.query}if(n){const t=S(e);e=n+"?"+t.path;const r=M({...a,...t.query});r&&(e=`${e}?${r}`)}return e}const $={path:"",query:""};function W(e){const t=e.indexOf("?");return-1!==t?($.path=e.slice(0,t),$.query=e.slice(t+1)):($.path=e,$.query=null),$}function I(e){return(e=fe(e=ue(e=W(e).path),!0)).toLowerCase()}function E(e){const t={proxyUrl:e.proxyUrl,urlPrefix:I(e.urlPrefix)},r=l.proxyRules,n=t.urlPrefix;let a=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){const t=l.proxyRules,r=I(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function T(e,t){if(!e||!t)return!1;e=R(e),t=R(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&L(e,t,!0)}function q(e,t){return e=R(e),t=R(t),fe(e)===fe(t)}function R(e){const t=(e=H(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function U(e,t=l.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function L(e,t,r=!1){if(!e||!t)return!1;const n=ge(e),a=ge(t);return!(!r&&n.scheme!==a.scheme)&&null!=n.host&&null!=a.host&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function J(e){if("string"==typeof e){if(!V(e))return!0;e=ge(e)}if(L(e,k))return!0;const t=l.trustedServers||[];for(let r=0;r<t.length;r++){const n=F(t[r]);for(let t=0;t<n.length;t++)if(L(e,n[t]))return!0}return!1}function F(e){return _[e]||(oe(e)||ae(e)?_[e]=[new v(z(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function z(e,t=O,r){return ae(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===G(e).slice(2)?`http:${e}`:`https:${e}`:oe(e)?e:D(e.startsWith("/")?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function B(e,t=O,r){if(null==e||!V(e))return e;const n=H(e),a=n.toLowerCase(),o=H(t).toLowerCase().replace(/\/+$/,""),s=r?H(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!o.startsWith(s))return e;const i=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=i(a,"/",a.indexOf("//")+2),f=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(f=c+1,c!==a.length);)c=i(a,"/",c+1);if(-1===f)return e;if(s&&f<s.length)return e;e=n.slice(f);const l=o.slice(f-1).replaceAll(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function H(e){return function(e){const t=l.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&ae(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(ce()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||ce()&&!N(e))&&(e=ie(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=W(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=z(e=e.trim()))))}function D(...e){const t=e.filter(a.Ru);if(!t?.length)return;const r=[];if(V(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function G(e,t=!1){if(null==e||Q(e)||K(e))return null;let r=e.indexOf("://");if(-1===r&&ae(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=fe(e,!0)),e}function V(e){return ae(e)||oe(e)}function Q(e){return null!=e&&e.startsWith("blob:")}function K(e){return null!=e&&e.startsWith("data:")}function X(e){const t=ee(e);return t?.isBase64?(0,f.M)(t.data):null}function Y(e){return(0,f.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Z=/^data:(.*?)(;base64)?,(.*)$/;function ee(e){const t=e.match(Z);if(!t)return null;const[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function te(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function re(e){return(await fetch(e)).blob()}function ne(e){const t=X(e);if(!t)return null;const r=ee(e);return new Blob([t],{type:r.mediaType})}function ae(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function oe(e){return null!=e&&u.test(e)}function se(e){return null!=e&&h.test(e)||"https"===k.scheme&&ae(e)}function ie(e){return ae(e)?`https:${e}`:e.replace(b,"https:")}function ce(){return"https"===k.scheme}function fe(e,t=!1){return ae(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function le(e){let t=0;if(V(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=S(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const a=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function ue(e){return e.endsWith("/")?e:`${e}/`}function be(e){return e.replace(/\/+$/,"")}function he(e,t,r){if(!(t&&r&&e&&V(e)))return e;const n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function pe(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function me(e){return new URL(e).host}function ge(e){return"string"==typeof e?new v(z(e)):(e.scheme||(e.scheme=k.scheme),e)}function ye(e,t){const r=S(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function we(e,t,r){const n=S(e),a=n.query||{};return a[t]=String(r),`${n.path}?${M(a)}`}function ve(e,t){if(!t)return e;const r=S(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const a=M(n);return a?`${r.path}?${a}`:r.path}function _e(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function ke(e){if(null==e)return null;const t=e.match(Ae);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Oe(e){return"string"==typeof e?ee(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(ee(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o;const s=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(s)&&(a=s.signal,o=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(70333),a=r(49186),o=r(37955),s=r(36563),i=r(97768),c=r(74887),f=r(52268);const l={CSVSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(2188)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(7380),r.e(3607)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(2031),r.e(6860),r.e(2455)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(8065),r.e(8303),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7733),r.e(5859),r.e(9497),r.e(2330),r.e(3443),r.e(4104)]).then(r.bind(r,94104)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6408),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(893),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(2330),r.e(88)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(9616)]).then(r.bind(r,49616)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),MeasurementWorker:()=>Promise.all([r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(7837)]).then(r.bind(r,69396)),GeoJSONSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(847)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),MemorySourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7229)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(9679)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(7733),r.e(9497),r.e(7867)]).then(r.bind(r,48459)),PointCloudWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(7005),r.e(3082)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(8610),r.e(7373),r.e(9235),r.e(1493)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9466),r.e(6269),r.e(7380),r.e(9535)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(4757)]).then(r.bind(r,18003)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(708),r.e(9696),r.e(4560),r.e(4800),r.e(2031),r.e(7445),r.e(6390),r.e(3832),r.e(4794)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(5859),r.e(5013),r.e(3443),r.e(3875)]).then(r.bind(r,36849)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(5750)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(6408),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(6269),r.e(4560),r.e(7445),r.e(3832),r.e(3009)]).then(r.bind(r,33009)),ImageMeasurementWorker:()=>Promise.all([r.e(6408),r.e(3661),r.e(1878),r.e(8885),r.e(5756),r.e(3299),r.e(3508),r.e(6554),r.e(2869),r.e(3910),r.e(9953),r.e(8065),r.e(8303),r.e(4903),r.e(1956),r.e(9466),r.e(5482),r.e(2741),r.e(4996),r.e(8902),r.e(1882),r.e(6269),r.e(893),r.e(4800),r.e(6231),r.e(812),r.e(3832),r.e(8610),r.e(9186),r.e(4341),r.e(1695),r.e(8434),r.e(1775)]).then(r.bind(r,68747))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.u}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=l[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());const f=(0,c.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,i.xt)(e.abortHandle),this._post({type:h,jobId:s}),a((0,c.NK)()))}),l={resolve:r,reject:a,abortHandle:f,debugInfo:e};this._outJobs.set(s,l),this._post({type:p,jobId:s,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,f.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:y,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:b}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,i.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:a}=e,o=a?new AbortController:null,s=this._inJobs;let i,f=this._client,l=f[t];try{if(!l&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],l=f[e[t+1]]}if("function"!=typeof l)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),i=l.apply(f,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,c.$X)(i)?(s.set(r,{controller:o,promise:i}),i.then(e=>{s.has(r)&&(s.delete(r),this._post({type:m,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,c.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},i)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{const a=(0,d.VI)(e);a?.type===b&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const s=o.get(t);o.delete(t),this._processWork(),(0,i.xt)(s.abortHandle),r?s.reject(a.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Go:()=>s,Jc:()=>c,T:()=>o,VI:()=>d,mF:()=>f,oV:()=>b,u1:()=>l});var n=r(44208),a=r(74887);const o="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let i=0;function c(){return i++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>f,id:()=>s,ol:()=>i,rE:()=>o});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const o="5.1";let s,i=o;function c(e){s=e}function f(e){const t=s?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}i="5.1.0-next.35",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>o,qG:()=>i});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,s]=t;if(!r)return null;let i=null,c=null,f=null;const{devext:l,qaext:d,www:u}=a;if(o)if(i=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qa":({customBaseUrl:c,portalHostname:f}=d);break;default:return null}else({customBaseUrl:c,portalHostname:f}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:f}=l);break;case"qaext":({customBaseUrl:c,portalHostname:f}=d);break;case"www":({customBaseUrl:c,portalHostname:f}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:f,urlKey:i}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function i(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})},18357(e,t,r){r.d(t,{$:()=>n,u:()=>a});const n="20260307",a="1300945f25cc9bda50eabf12820715fc02a5953e"}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{5:"d52172439db02a349542",36:"952ff668d202e80b43b0",88:"2f20a21db44bd8448e9e",91:"9c6e96b1c2b0418a4f1c",146:"64870f555fefa85a5c59",148:"0e78678281bcb888964d",182:"a52a8254577840a23aba",217:"a1a12552d34ea9eea130",262:"34cdcee6d0ea595d7aed",284:"8eed5b6cac937099102c",309:"568d32ceee1409809e5a",349:"7908aed639521cf572e8",353:"65520a443e3811255bea",368:"e25bbd7cc553b1d2e208",369:"8a0a13f398ab488dbbe9",382:"d28169816c768d55aa09",390:"b553264db0f10bb8c5f7",427:"06df187a116709f69952",547:"63934843c9f4ef779a07",561:"6792e981a3c73063a3e6",563:"c7f27a84268a9b0d8cdb",566:"3c2eb386c0165150e039",597:"828998d33a48be161782",609:"d44217de4c73475f9c66",648:"1ff40e6057916e8482b3",692:"34207774bc371e95ba3c",708:"1669f1bf959c4e3083da",788:"d31f62ecbb54bffc54f2",795:"5afee66e182f79a0fc46",812:"a3a28c4887f802e8d96d",820:"aafa33f661462f5afd2b",841:"63722607fbf8d411188d",847:"eb811adbc5243d293ef5",883:"973e3743cb7fdaa27f80",891:"ac9722a7897c994f11ab",893:"c2882a9e67124b7c18be",907:"122ff8d0d428f31fc5d1",923:"f9abae8d07002fe04a08",926:"f1f78bb3d34f973c19de",980:"74e1826ad9e2c4fd3b42",1003:"6c853fd89f0e9f102c6e",1005:"e00000468fb8ec2b3d43",1017:"f89b7b0ccfbd1e5f9a0f",1023:"5b278b9980752ef495a2",1054:"4c6fc6d19fe519ce7bfc",1072:"8c2e5b116bac21e7d577",1086:"5691c1624190abeaebea",1088:"e8ae71e482b8d5f54a72",1132:"8c210529a28addb94ea0",1190:"e3a73d9acebccd3ba49b",1204:"210ef3f1cc6ef8a831bf",1214:"6b56c8ba978ec6edd6b8",1273:"cc697c4d9cdc116373dc",1277:"7a474ce61cf484df87b4",1279:"9813f25192ea27084754",1285:"a0d459bdb91ee892d4b6",1352:"cb903ccbce87172a0757",1384:"1fa2bf0d6740092ec619",1427:"9cc1b44c5a325a840307",1493:"0d156e14fc34d0600fd5",1512:"64fd3561bc94570ee954",1550:"9e55f97291062985560b",1666:"66e35e38aea978f91a0c",1695:"6f1c590abd0e3adeb8fc",1698:"114aecdbd2bd92b24de2",1728:"6a0c371ec3acd7529fe6",1763:"601e44839fd46e449aa8",1775:"0efe90bd43ab29dab8ae",1787:"e6220c1fa887e21ffbbd",1797:"cb2fbe585c0827eecf70",1812:"8d3c508995253cbe083f",1837:"3a8320a40916c755c031",1878:"4c54cb80c4dc9bbbd395",1882:"a495e60996a36ce19a32",1894:"de6b3f80070abdd61d0f",1918:"73e384fd93cf22503d84",1956:"e67bdd8bf38ebe89a344",1965:"70f0d66e5e6d5d2163f3",2031:"586bc903e2c285649bf2",2114:"380bb57bccc266d6442a",2158:"278409028bc5af45b507",2165:"b7a3a7f7fb747f9689d7",2174:"6aba8c3bce5f68568e3a",2186:"c45a5bcf26659daf02a1",2188:"2128a66f522d15493ce2",2260:"ff6c4f8420140b9f9577",2261:"942e4d69b140bc2f97c9",2266:"777390e820b3824dc265",2288:"4bfc6f8c2d13ca4d2082",2303:"0337138d3702a1a52ce0",2314:"144acac9bb1aa78f1170",2330:"6e8cfe69617876ee0dac",2343:"bd278f8081be8304be8d",2369:"ce063df750018024c9ed",2372:"7cb0681cc6a5e956cb15",2390:"68abe4e70ea48e978642",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2455:"5e5b358e603b13b4d7d7",2555:"14e05d37e10ebba8cf10",2558:"2d956dacb26d71d1c174",2733:"80f0810527743833b4b7",2741:"64e1273e4e79c73ed579",2764:"cc62e5095e328bed3e01",2772:"23cb0611abe1031c513c",2806:"85f309c1888c1c8411b1",2869:"b98366d8a5bc6cc2b219",2942:"e853cce8528c1ed4e123",2958:"e021b2f0e15aee5bf3ad",2980:"3087910d19959fdc546b",2990:"58f47dea6d8665611eff",2997:"3dd5d481ae6c5d9dfa08",3009:"9de8149ae0a0726a4ab2",3082:"f379f94adbe79dc305a2",3103:"4d7f7b1e7663cf6088d1",3116:"3d18b8c1c759c7240721",3135:"ee582bbe7365b678ec54",3166:"861817be5e050e9522ab",3202:"3b86e8eb553122d3b68d",3276:"f0e6a26a3625068b08ab",3299:"dd6efa0afe879bd11a2e",3304:"b2a67fe89f6505498bc3",3341:"2d49a611ad3441d7e759",3354:"a061a17b62686f945e81",3359:"5a6a6e7151085a3cd3dd",3390:"73c87eb9bd8f0f848481",3443:"6ca2064ea96bdb594f52",3447:"91718795fc4ca6516ac7",3456:"5ffe664eda334ad73175",3463:"9f1f5fb648302c43ad12",3494:"11058e660139c427c3e7",3500:"7975abb2162a82c88edb",3508:"6f079f1fd6d00d2d174c",3514:"dcc3285e4ab2c38709bd",3543:"deaca3cd202851ecf9c2",3561:"1d0153c7d65bd9ea7d39",3607:"241ef4a1bea20b49d812",3620:"527547fa10d52cb3a7b1",3636:"d30253b4990a76bfd72b",3637:"854fe80272b59fafc2e9",3661:"e09722903e63f6cc2540",3666:"53817ef8c00d8cce4b8e",3693:"0a66a2b4aaab0774c34f",3708:"19fcc74d34cbbaa56a41",3709:"266933f1139ed0e8919f",3813:"087403b53f15eb4d375c",3832:"f5dbda08d7fd4bed1c62",3875:"5698098c3691b3b49283",3902:"76effcc35b3962cd5535",3910:"cc3939983cf6f78f7243",3937:"86161025b53b916328ff",4038:"56f64df68bb11c0c74d2",4097:"af75e91b88e747aa76ac",4104:"fe21b2d31fbf83224e6b",4167:"ce3e192fbb53a9c6eb3b",4168:"7dba4b04c148f03fdf21",4314:"8d6da6573d07385f4ed5",4341:"0d196cf72cd8bef8d91d",4383:"9c6d34bb666f630d511f",4387:"b859d98fa1c39f8e4099",4447:"ff8de370abf661768380",4496:"d0d836502321e7a80e61",4560:"a3b29eca5807978fb2a3",4575:"75664587bb80f4e187e1",4579:"6d5bb00157e20ad90fc0",4642:"7948d6f14ae44d346d88",4674:"eef102e13fd8878eeb96",4690:"f563dd6cace047108b3c",4724:"22aeab5c363645c04806",4741:"b2f497339493926d4c9e",4757:"0f2d6f267d235db48767",4794:"7c16493ea34c49a6291e",4795:"136859ef29a3269c4128",4800:"41a95ad470ec42ecd5a2",4903:"d7229019876c0e4ff545",4935:"f4e5163efa2a0567ee19",4996:"01dd849a2d335e9f3e16",5013:"6c72dbd5275bffde1583",5020:"5f53d7d6bc9b67b2f357",5098:"5b12865ac53d984d8149",5141:"04094d576bfa11d90f73",5165:"7ebd836b98d14c7d3ecf",5181:"2d6165796af522858e56",5217:"cf100c80b75ba74b479c",5243:"c3e4f8664988e50bda55",5335:"d2fa8bd3f4cd3cf6b436",5367:"c20aaca8085ce897bd12",5404:"aa367ca7f8326fd67881",5482:"305b2a8dc6438c5fd4aa",5567:"b2cf19a28aa5c32a99e3",5605:"56c7d7c7217557375fb6",5613:"9a3e5053e95db36f26dc",5666:"5f6942ac94acd7842926",5673:"eaeb95be8d4032513247",5710:"3dcb4ee8b862689a141b",5740:"3e26f9af6b8c75bad97a",5750:"e9dd60d0220036545ebb",5756:"f5144e570952ca62a1b0",5778:"a53979c45ee429e21b99",5804:"0c13591347d51d684561",5841:"45d57e561fc993bc75ed",5856:"ad4f0a4e2dde44cd43d4",5859:"288082ae7b19837a3d38",5902:"1edd39c7c4acdc591d10",5977:"623bfacf4b9c9a5387cc",5993:"c6112dcd6b36e256d7b5",6033:"06223d5d8281e5af14c5",6052:"5d87316d6f973d95745c",6061:"493a0981e90a5799fb5b",6122:"1ede8666d804c553803e",6129:"0d9d33f29124d464a4cb",6154:"ac84e5b5d010c235fe6f",6160:"bb3ab2453ccde2f2611c",6187:"2ecb21c402cdd8c82533",6231:"34f2e9d7466abc0919e7",6269:"5a6d6082c5bcb1a80eda",6275:"d4b97ca16d79809ed6f2",6276:"07bdcb622ea59fdbb3a6",6312:"a4a4ce33de6432ba4dc3",6320:"666db81085bc97831b18",6342:"3e61e7805dc6ff284831",6343:"8d1d0c3f0532aa98487d",6364:"4490f8eeeb2ee04daa9d",6390:"4ceba469398ef55de8ea",6408:"a96c7432ca97cbeef4b8",6418:"0e7d3f3479fcb366cc6f",6491:"5df9d2a255c9d63ae7df",6554:"f4301ea9a6cb3bcef906",6558:"f7506c9d57b2ae0c5fd3",6606:"c17c3453d014dc73fe0b",6650:"582d45a41e29005f6c63",6671:"ffe9fa5111c149ddef49",6708:"7a4cc1133e4410271b00",6859:"6ac84e6d33104e74398d",6860:"03e20ac54d6f141b5001",6861:"c04c457f5295febb3c39",6956:"e0344b45af88081fa186",6960:"1a1e57267306c07e5bdb",7005:"c1be9c4e59925a897a91",7087:"b8005b1996f42dee8237",7217:"87c9a1fc9f2a392b78f5",7229:"19955d064c17ba2fd9ad",7301:"465cc0e00f03cdb640b2",7316:"d587b7842091affdaac3",7367:"c327fe276238af60fda4",7373:"6997b4d5bcc9c4755375",7380:"c3e711dc608eedda2d14",7433:"6cdda5aa35fa12ea9345",7444:"de5719ef663224860af5",7445:"c9a42d86185a0ad35dd1",7451:"414a802b6365688d31cb",7464:"285f3b07de852bfc1604",7528:"b3950d5f1f3352521504",7546:"f50bba74ae72c07e131a",7557:"e16f5f089259988e8993",7561:"d3c760109a70a71448c5",7581:"917474f9dd2039b82e9d",7609:"889835e61ea97f090082",7617:"70263c2182dc43046742",7632:"612873df0c8659ac2aa5",7694:"005fe95c3329cfe74219",7705:"6f3f7f785241edacdb8b",7716:"0554f310066937098099",7733:"7601408e242dca1d25bd",7772:"e96529e144c3268a04f7",7809:"1e018de43becf66cceaa",7820:"446bc8461403ed1ac7b2",7835:"804c31973f7d116523cb",7836:"f4053e4e2d6e678db48a",7837:"67de5225b2c66c9c7bc9",7867:"dfee98e7d1b206f33ba9",7883:"e0d6292aaa3f8a796de3",7885:"8bd24534ed185afcb124",7982:"c8ae8d1b456ace0b383b",7987:"c09bc36347e8eb9fff00",7992:"f76833254f842fb0cd9a",8008:"3b9de873f87f0feeb20b",8010:"1ee3d44e6d7add0b24cb",8018:"8f6833671c071b522923",8065:"190bc75254bc0542a6be",8125:"5b3bb636e3bec625e515",8190:"36f91b5c4345a179b8b1",8303:"55070344f08ef0ed2a30",8345:"a35d1be700ebd3109397",8366:"696f645349249f26090c",8377:"4d16b6ac52e25bd7e6aa",8399:"7cec3252e3ee56424b9e",8414:"21decfc1e477fb769204",8434:"9cd548ea00b641d8e65d",8457:"43f60f41d353d3fc7c4b",8594:"8e10e4c25869af9da5ba",8599:"ca6012135929b028ea1b",8610:"da60a6df2f7858a2910e",8635:"776a7179d32fe62a37e3",8679:"88426877d625ea333143",8692:"ca64867bc322a354be8e",8714:"0d6afba80d2f8dcb5cf7",8782:"ae72c530d52a6d4461be",8801:"b81780e5e7cd9a1a010a",8812:"88c3b60b403e2454b56e",8885:"a7a9716582b256d76e5b",8902:"b364ec104dd59faa41b6",8948:"5fa5a2fb69f84e9092ba",9013:"953f671bdeb2ca9b9f37",9028:"bb7e0334f438daa665da",9062:"5eb9fdb076488de9cd83",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9156:"620965d2e1a9ccf81d43",9159:"99101789035f1787c630",9169:"a3174b23aabcef2fa98c",9186:"96132a37bc08c7fa8f2e",9187:"8351012ceb466f01b8fd",9192:"2ce845c990bb4d701362",9235:"666f201d222c50ab8428",9239:"74d9dd484b9bc4dc7e3d",9321:"4b24f72b56edc28bb15e",9397:"02aaeaa988e9e7d65a7f",9442:"283ce37403c5e7a76e95",9466:"bfe9c8ab35d9bf7e1035",9497:"bd902ae413887082b453",9506:"faad127dc07e54e7f6d1",9535:"c79e8003812b789724af",9544:"00947268b6de12329146",9588:"0fd191f9c10b3b7c83f4",9597:"b1ddc837a6805a09d0da",9598:"cdec811b66d98e76be9e",9616:"746b3e98bad32c366a27",9641:"a2d045217a42ecc36308",9657:"5f3b25b30acd7a07f5c0",9679:"3c597d8ef898627b8f93",9695:"cc8e6d1eb90221103023",9696:"1f54ed4a5238ba1a2551",9784:"7a2dd3d85d31dce29d94",9790:"54c1d31e1efab765ee7a",9835:"3f6ebd82551c2000912e",9838:"8838ff9668b472af16a1",9926:"d01a98c13501c89205b6",9933:"2f0e850ebea0ffd2708f",9938:"cd73d37ea0e66db46e45",9953:"dcef87f7d06c45cd928b",9958:"8ab39731775b0867a512"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[a,o,s]=t;for(var i in o)r.o(o,i)&&(r.m[i]=o[i]);for(s&&s(r);a.length;)e[a.pop()]=1;n(t)}})(),r(66358);var n=r(61322);RemoteClient=n})();
|