@arcgis/core 4.22.0-next.20211001 → 4.22.0-next.20211005
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{00d3dd0213cef42cda6a.js → 23e7e3e8d3c981c86ed6.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ec4b887782f6bdd73ce.js → 4990e49a5ca46cc33ba7.js} +1 -1
- package/assets/esri/core/workers/chunks/{61085c3f03c11cd72d74.js → 4a437ae7ef1e7cf664f6.js} +1 -1
- package/assets/esri/core/workers/chunks/51765c0f1d67f3f74fbf.js +1 -0
- package/assets/esri/core/workers/chunks/{aa67ace72e182371b46e.js → 5bd49d7c27169f8a30e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{fbe86c6a9afdf7b2d6a0.js → 5c90df048e7c0bbff719.js} +1 -1
- package/assets/esri/core/workers/chunks/7fcbe336b9008eb16bea.js +1 -0
- package/assets/esri/core/workers/chunks/7ff27dc56ea11831f4a4.js +1 -0
- package/assets/esri/core/workers/chunks/93525fe56d7af21f5fe3.js +1 -0
- package/assets/esri/core/workers/chunks/{78fd49f290c18eecc177.js → a087fee9e554836e1423.js} +1 -1
- package/assets/esri/core/workers/chunks/a2ca5af1df5a4e97fd89.js +1 -0
- package/assets/esri/core/workers/chunks/{ed953bcda88b122b2a18.js → aa6d9a51adc278bbe8e8.js} +1 -1
- package/assets/esri/core/workers/chunks/cb712048da3f7341cf6e.js +1 -0
- package/assets/esri/core/workers/chunks/{1bdcf2c9434de3e1d16e.js → d1dfa8e35289e83f8f82.js} +1 -1
- package/assets/esri/core/workers/chunks/{42272be1d9b5b7cf8468.js → dceef3cad1e5d973967f.js} +1 -1
- package/assets/esri/core/workers/chunks/dde56cbccdf0e3babb37.js +1 -0
- package/assets/esri/core/workers/chunks/f76de5b2a46656fe5432.js +1 -0
- package/assets/esri/themes/base/widgets/_FeatureContent.scss +3 -0
- package/assets/esri/themes/base/widgets/_Widget.scss +1 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/chunks/NativeLine.glsl.js +9 -9
- package/chunks/NoiseTextureAtlas.glsl.js +1 -1
- package/chunks/RibbonLine.glsl.js +91 -53
- package/geometry/support/heightModelInfoUtils.js +1 -1
- package/interfaces.d.ts +17 -18
- package/layers/AnalysesLayer.js +5 -0
- package/layers/analyses/AreaMeasurement3D.js +5 -0
- package/layers/analyses/DirectLineMeasurement3D.js +5 -0
- package/layers/analyses/LineOfSight.js +5 -0
- package/layers/analyses/Slice.js +5 -0
- package/layers/effects/jsonUtils.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/csv/csv.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
- package/layers/graphics/sources/support/sourceUtils.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/support/FieldsIndex.js +1 -1
- package/package.json +2 -2
- package/portal/schemas/buildingSceneLayerItem.js +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/schemas/sceneLayerItem.js +1 -1
- package/rest/support/RelationshipQuery.js +1 -1
- package/support/AnalysesCollection.js +5 -0
- package/support/revision.js +1 -1
- package/symbols/LineSymbol3DLayer.js +1 -1
- package/symbols/PathSymbol3DLayer.js +1 -1
- package/symbols/support/Symbol3DOutline.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/renderUtils.js +1 -1
- package/symbols/support/symbolLayerUtils3D.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
- package/views/3d/interactive/editingTools/settings.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/AnalysesLayerView3D.js +5 -0
- package/views/3d/layers/analyses/AreaMeasurement3D/AreaMeasurementView3D.js +5 -0
- package/views/3d/layers/analyses/DirectLineMeasurement3D/DirectLineMeasurementView3D.js +5 -0
- package/views/3d/layers/analyses/LineOfSight/LineOfSightView.js +5 -0
- package/views/3d/layers/analyses/Slice/SliceView.js +5 -0
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/lineUtils.js +1 -1
- package/views/3d/layers/graphics/symbolComplexity.js +1 -1
- package/views/3d/terrain/OverlayManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +22 -13
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/StippleTextureRepository.js +1 -1
- package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/SceneView.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0649290ccd9eb699f482.js +0 -1
- package/assets/esri/core/workers/chunks/2539b5f37c8881f701d3.js +0 -1
- package/assets/esri/core/workers/chunks/2892094c704217a11c4d.js +0 -1
- package/assets/esri/core/workers/chunks/37ce4340c7943d6955a2.js +0 -1
- package/assets/esri/core/workers/chunks/519ae98b26d4baf18243.js +0 -1
- package/assets/esri/core/workers/chunks/b19e93ebf0320cd4e581.js +0 -1
- package/assets/esri/core/workers/chunks/bdad840713d910771dd2.js +0 -1
- package/assets/esri/core/workers/chunks/e21981c1da868f2abd66.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(16358),o=(r(80442),r(78286)),s=r(17202);const i={apiKey:void 0,applicationUrl:n.Z.location&&n.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(n.Z.esriConfig&&((0,o.RH)(i,n.Z.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.22.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}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.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{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,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.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(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}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}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>l,a9:()=>a,fS:()=>s,cq:()=>f,w6:()=>c,Od:()=>b,e$:()=>d,FY:()=>p});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const i=!!Array.prototype.fill;function a(e,t){if(i)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function c(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class l{constructor(){this.last=0}}const u=new l;function f(e,t,r,n){n=n||u;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,n){const o=null==r?e.length:r,s=f(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const h=new Set;function p(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;h.clear();for(let e=0;e<n;++e)h.add(t[e]);o=o||u;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;for(let t=0;t<i;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;return h.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},16358:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,s=r(16358);let i;var a,c;function l(e){return"function"==typeof i[e]?i[e]=i[e](s.Z):i[e]}i=null!=(n=s.Z.dojoConfig)&&n.has||null!=(o=s.Z.esriConfig)&&o.has?{...null==(a=s.Z.dojoConfig)?void 0:a.has,...null==(c=s.Z.esriConfig)?void 0:c.has}:{},l.add=(e,t,r,n)=>((n||void 0===i[e])&&(i[e]=t),r&&l(e)),l.cache=i,l.add("esri-deprecation-warnings",!0),(()=>{l.add("host-webworker",void 0!==s.Z.WorkerGlobalScope&&self instanceof s.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(l.add("host-browser",e),l.add("host-node","object"==typeof s.Z.process&&s.Z.process.versions&&s.Z.process.versions.node&&s.Z.process.versions.v8),l.add("dom",e),l("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(l.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),l.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),l.add("khtml",r.includes("Konqueror")?n:void 0),l.add("edge",parseFloat(t.split("Edge/")[1])||void 0),l.add("opr",parseFloat(t.split("OPR/")[1])||void 0),l.add("webkit",!l("wp")&&!l("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),l.add("chrome",!l("edge")&&!l("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),l.add("android",!l("wp")&&parseFloat(t.split("Android ")[1])||void 0),l.add("safari",!r.includes("Safari")||l("wp")||l("chrome")||l("android")||l("edge")||l("opr")?void 0:parseFloat(r.split("Version/")[1])),l.add("mac",r.includes("Macintosh")),!l("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));l.add(e,n),l.add("ios",n)}l.add("trident",parseFloat(r.split("Trident/")[1])||void 0),l("webkit")||(!t.includes("Gecko")||l("wp")||l("khtml")||l("trident")||l("edge")||l.add("mozilla",n),l("mozilla")&&l.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(s.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&l.add("esri-mobile",t),r&&l.add("esri-iPhone",r),l.add("esri-geolocation",!!navigator.geolocation)}l.add("esri-canvas-svg-support",!l("trident")),l.add("esri-wasm","WebAssembly"in s.Z),l.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in s.Z,t=!1===s.Z.crossOriginIsolated;return e&&!t})),l.add("esri-atomics","Atomics"in s.Z),l.add("esri-workers","Worker"in s.Z),l.add("esri-text-decoder","TextDecoder"in s.Z),l.add("esri-text-encoder","TextEncoder"in s.Z),l.add("web-feat:cache","caches"in s.Z),l.add("esri-workers-arraybuffer-transfer",!l("safari")||Number(l("safari"))>=12),l.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),l.add("featurelayer-simplify-payload-size-factors",[1,1,4]),l.add("featurelayer-snapshot-enabled",!0),l.add("featurelayer-snapshot-point-min-threshold",8e4),l.add("featurelayer-snapshot-point-max-threshold",4e5),l.add("featurelayer-snapshot-point-coverage",.1),l.add("featurelayer-advanced-symbols",!1),l.add("featurelayer-pbf",!0),l.add("featurelayer-pbf-statistics",!1),l.add("feature-layers-workers",!0),l.add("mapview-transitions-duration",200),l.add("mapserver-pbf-enabled",!1),l("host-webworker")||l("host-browser")&&(l.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),l.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{l.add("esri-image-decode",!0,!0,!0)})).catch((()=>{l.add("esri-image-decode",!1,!0,!0)}))}return!1})),l.add("esri-url-encodes-apostrophe",(()=>{const e=s.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),l.add("vectortilelayer-max-buffers",l("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>s,fS:()=>i,yd:()=>o}),r(67676),r(80442);var n=r(1533);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;if((0,n.W0)(e)||(0,n.lq)(e)||(0,n.KZ)(e)||(0,n.z3)(e)||(0,n.Uc)(e)||(0,n.Hx)(e)||(0,n.ZY)(e)||(0,n.xZ)(e)||(0,n.fS)(e))return(0,n.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,s(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(s(e))})),t}let t;const r=e;if("function"==typeof r.clone)t=r.clone();else if("function"==typeof r.map&&"function"==typeof r.forEach)t=r.map(s);else if("function"==typeof r.notifyChange&&"function"==typeof r.watch)t=r.clone();else{t={};for(const r of Object.getOwnPropertyNames(e))t[r]=s(e[r])}return t}function i(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}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)m(r,null,t)}function m(e,t,r){return n(e)?r(e):t}function y(e,t){return n(e)?t(e):null}function v(e){return e.filter((e=>n(e)))}function w(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function _(e){return e}r.d(t,{Po:()=>y,yw:()=>i,j0:()=>_,SC:()=>u,O3:()=>f,lV:()=>v,JR:()=>g,U2:()=>w,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(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 c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>x,$6:()=>c,Ue:()=>l,yi:()=>f,zE:()=>u,dD:()=>O,hh:()=>$,vr:()=>I,Ds:()=>j,as:()=>P,WW:()=>k,R8:()=>_,D_:()=>w,Hc:()=>p,tI:()=>M,y8:()=>C,fu:()=>m,$F:()=>y,d1:()=>S,DB:()=>E,r9:()=>b,k_:()=>d,H9:()=>g,gx:()=>A,Hl:()=>v});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw u(t)}function h(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,a.pC)(t)&&t.aborted}function b(e){if(w(e))throw e}function g(e){if(!w(e))throw e}function m(e,t){const r=h(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function y(e,t){const r=h(e);if(!(0,a.Wi)(r))return d(r),(0,i.IH)(r,"abort",(()=>t(u())))}function v(e,t){const r=h(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=m(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function w(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!w(e))throw e}))}function O(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function P(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return P(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function k(e){return P(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function S(e){return Promise.reject(e)}function E(e){return Promise.resolve(e)}function x(e,t,r){const n=f();return m(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);m(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function C(e){return e&&"function"==typeof e.then}function A(e){return M(e)?e:Promise.resolve(e)}function M(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function j(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=O();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||O(),s=null,t>0){const n=f();r=A(e(...l,n.signal));const o=r;x(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=A(e(...l));const d=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},h=r,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return c}function $(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function I(e){let t=f();const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>x,tD:()=>j,ZN:()=>le,fl:()=>ue,AX:()=>_,Gd:()=>v,Ie:()=>ie,sJ:()=>Q,AH:()=>K,vt:()=>oe,oh:()=>N,P$:()=>F,Ml:()=>fe,ed:()=>$,b7:()=>E,D6:()=>Z,tm:()=>I,YP:()=>B,jc:()=>D,HK:()=>H,$U:()=>X,oC:()=>G,kl:()=>R,v_:()=>q,hF:()=>U,_l:()=>V,PF:()=>L,Fv:()=>J,B7:()=>S,u0:()=>P,Yd:()=>ne,Hu:()=>ce,Qj:()=>se,hO:()=>ee,mN:()=>O});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),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 v=new y(n.Z.applicationUrl),w={},_=(()=>{const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function O(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(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 o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>k(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):k(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=X(e);const n=$(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&te()&&(r=ee(r)),O(r)}function x(e){const t=$(e);let r,n;if(t){const e=A(t.proxyUrl);r=e.path,n=e.query?P(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const C={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?(C.path=e.slice(0,t),C.query=e.slice(t+1)):(C.path=e,C.query=null),C}function M(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function $(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=J(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function N(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function Z(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function R(e){if("string"==typeof e){if(!B(e))return!0;e=ae(e)}if(Z(e,v))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=W(t[r]);for(let t=0;t<n.length;t++)if(Z(e,n[t]))return!0}return!1}function W(e){return w[e]||(Y(e)||G(e)?w[e]=[new y(U(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function U(e,t=_,r){return G(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,i.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!B(e))return e;const n=J(e),o=n.toLowerCase(),s=J(t).toLowerCase().replace(/\/+$/,""),i=r?J(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function J(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&G(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),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!b.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!$(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=U(e=e.trim()))))}function q(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(B(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&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 F(e,t=!1){if(D(e)||H(e))return null;let r=e.indexOf("://");if(-1===r&&G(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=re(e,!0)),e}function B(e){return G(e)||Y(e)}function D(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function K(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const z=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(z);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function V(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function G(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return u.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&G(e)}function ee(e){return G(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return G(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(B(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&B(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new y(U(e)):(e.scheme||(e.scheme=v.scheme),e)}function ce(e,t){const r=O(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 le(e,t,r){const n=O(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function ue(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function fe(e){if((0,i.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7267)]).then(r.bind(r,37267)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(1183)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(6481),r.e(3675),r.e(5413)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(991)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7592),r.e(7618)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(6312),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(9294),r.e(6883)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7303),r.e(3594)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(3568),r.e(6810),r.e(3388)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?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 y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_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&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?(0,a.yi)():null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(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,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20211001",o="b5062177fbdf5f5fa1d6c050cbf327b2cfaee8d6"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.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/"+{24:"65fd1b53405f13d000b9",223:"ba96e9cf6afaa5d3d69f",247:"a0450fbf01de854f5c97",565:"5fd6f37ebdf9884c3526",576:"38e792e037e88a74995a",639:"b19e93ebf0320cd4e581",819:"6280c69d87b2a3a18780",991:"b6a68c6556a0cd817e41",1017:"a56b611ab27ab829994f",1027:"aa67ace72e182371b46e",1074:"071a418f1f190d2ece24",1183:"0649290ccd9eb699f482",1197:"42272be1d9b5b7cf8468",1302:"61085c3f03c11cd72d74",1387:"b71d775db3ee46094a89",1421:"33890ccd444ec29f7655",1433:"1def8845714ea745fd24",1496:"814844112ee7d44c2f0d",1534:"09141e5539e652edfc6c",1611:"b7b79d608909cba46a06",1762:"d58dc74b046b12a3af57",1768:"a29e37fd6f3fc5557754",2012:"fa5b268d0adcc1839840",2134:"aadc165adf1bf2fc900f",2217:"b6509e8227e6283f8fef",2319:"89673e4f422957a7feaa",2360:"c849cbf1c751c94721e2",2392:"943af6d4fb61d556e97e",2399:"5db4788c73cb984a430c",2442:"bbc8b42c1e57a9f7a9b1",2515:"29c9ebc28d79846f96c8",2594:"fa9dd6f94d53f553f0bc",2618:"8322e2e4fa8ed408ff99",2894:"0d6dbcf82012cba81adf",3027:"e320c44b0e59e5f13058",3073:"1b2786c57f73f301b632",3142:"183d94ced596ca4e2fef",3172:"6f7a6841e7269d2764ad",3230:"e21981c1da868f2abd66",3289:"d15f38b2347b81f19851",3388:"2cea27a0d07aa9a88ad4",3389:"9536b706e8b3a27427a5",3485:"6d0197b040395560ac90",3529:"f5f6983e8db08af342f4",3568:"94c5301c08710b14125a",3594:"1607aaa711ba0d7ea03e",3668:"365f772485e9e6b18fff",3675:"bc94b98f8ff3fcd2ffa1",3812:"78fd49f290c18eecc177",3826:"5938cc3cf9547a701a7b",3852:"60fe432d0b465ed72f01",3942:"b5184e61b2cdd8e48f65",4166:"6dfeb491bf611349d010",4257:"1607c79c2d5550cf2068",4324:"e609283f31e2c610376f",4358:"3338c8c40a22e0a78080",4564:"62526570dfbcbea7160c",4599:"f11dbfcc56bf04d1f3c8",4695:"dca79a567d98d98f3d8f",4720:"4b545edce4d95a29df60",4738:"152ef0adc594ae234039",4879:"aae72111022a5fdde974",4886:"519ae98b26d4baf18243",4889:"029391285ad66403c9e6",5191:"00d3dd0213cef42cda6a",5235:"8304f0b17747e98863ca",5265:"1a3cbeb0a53d03a51dad",5359:"88334d305eab7d7ce114",5413:"1266d48ca9de2e4758f1",5606:"64d9a062c1f1ac08a3ac",5660:"3ec4b887782f6bdd73ce",5732:"469ba1b24cdeea0758ec",5776:"037294dc4964fbda2db0",5837:"78024baa539288c8f7c2",6237:"2e2440d7841ea1d2b07d",6312:"2892094c704217a11c4d",6412:"bdad840713d910771dd2",6481:"e3aed0a5b64180bdb6c3",6508:"7fcade698598a3bbb005",6570:"6fe972b14f4516c4388b",6592:"834323ab75384e3973f5",6619:"21d6d08cec85947fa6f5",6629:"0070bb66ae36bce099f0",6690:"436e430fe53dde77b25f",6710:"df9010ea6e1cc4cb518e",6718:"6b378d77279e57b6d277",6774:"67944142f419e0f5dd1a",6810:"bd29ea967877fc6d7c53",6830:"5790e745c696d802a1d1",6850:"46fbc2f580260802862f",6883:"da8e3b0251c4a858ae0e",6919:"26d171ebfa03e0cebb14",7007:"8e8df1f17b4fd21cda7d",7039:"cf21a3904acac5f57c3f",7049:"ef6ad7838d61066260e3",7055:"6da8fab411661bc121f4",7267:"82e28348b4188ca94a26",7277:"46bf8921db25845c63c0",7288:"fbe86c6a9afdf7b2d6a0",7303:"aea8e55accc9e9abdec9",7562:"b4e1d80d7f1a8796e7f2",7572:"ed953bcda88b122b2a18",7592:"33ba228d01e68cd7dfb4",7593:"b1723da85d2cd7efd419",7618:"255fab82ab2590624aac",7637:"fa2e4491db9113a0c8e6",7787:"ae9c28a0f8c980554383",7824:"fdc8efe1ca68bd1b5f27",7845:"37ce4340c7943d6955a2",7873:"93eb468381bfcf0e47d7",8008:"c3be8924d6b340efc473",8031:"1bdcf2c9434de3e1d16e",8062:"c0ad0f1c7884abcdf9c2",8227:"1f394b20410fddb30a96",8231:"5bb12279b85bbed73fb4",8397:"b65c373f76fce41e1a59",8404:"d3155a8f86ba980745d8",8479:"2539b5f37c8881f701d3",8511:"9a5a21b45d5de648eda4",8625:"caa5d1b9680a822f2070",8711:"4923f31d3ae4296a6fe6",8758:"8d33644192c01e5416b4",8778:"6ee11a06736d0fe7defb",8828:"2a9a5b51603a07061f9c",8936:"d91a4c4f5c66287e6cc9",9070:"db202ae7dc8b584f312f",9254:"b4b464b59ce799f9fc1c",9291:"6e172b435a55bc72baef",9294:"3fc4576ac750bed0e1c5",9296:"58166c34e4b610d28162",9489:"8a47ffe0ef89c63c550d",9490:"45c2f2a8789268e84fa6",9509:"5ccb44205bca6ca7c920",9554:"5cfd7d625ea47d93e3ed",9625:"71caf9825b9c3934f85e",9884:"3a04496f43de689cc63b",9928:"030494184c0af8bab70e",9930:"84bf97c35fe606c6768c",9932:"240c3369bec873442c41"}[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.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),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&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,5191: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[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(16358),o=(r(80442),r(78286)),s=r(17202);const i={apiKey:void 0,applicationUrl:n.Z.location&&n.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(n.Z.esriConfig&&((0,o.RH)(i,n.Z.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.22.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}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.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{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,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.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(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}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}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>l,a9:()=>a,fS:()=>s,cq:()=>f,w6:()=>c,Od:()=>b,e$:()=>d,FY:()=>p});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const i=!!Array.prototype.fill;function a(e,t){if(i)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function c(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class l{constructor(){this.last=0}}const u=new l;function f(e,t,r,n){n=n||u;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,n){const o=null==r?e.length:r,s=f(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const h=new Set;function p(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;h.clear();for(let e=0;e<n;++e)h.add(t[e]);o=o||u;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;for(let t=0;t<i;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;return h.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},16358:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,s=r(16358);let i;var a,c;function l(e){return"function"==typeof i[e]?i[e]=i[e](s.Z):i[e]}i=null!=(n=s.Z.dojoConfig)&&n.has||null!=(o=s.Z.esriConfig)&&o.has?{...null==(a=s.Z.dojoConfig)?void 0:a.has,...null==(c=s.Z.esriConfig)?void 0:c.has}:{},l.add=(e,t,r,n)=>((n||void 0===i[e])&&(i[e]=t),r&&l(e)),l.cache=i,l.add("esri-deprecation-warnings",!0),(()=>{l.add("host-webworker",void 0!==s.Z.WorkerGlobalScope&&self instanceof s.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(l.add("host-browser",e),l.add("host-node","object"==typeof s.Z.process&&s.Z.process.versions&&s.Z.process.versions.node&&s.Z.process.versions.v8),l.add("dom",e),l("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(l.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),l.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),l.add("khtml",r.includes("Konqueror")?n:void 0),l.add("edge",parseFloat(t.split("Edge/")[1])||void 0),l.add("opr",parseFloat(t.split("OPR/")[1])||void 0),l.add("webkit",!l("wp")&&!l("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),l.add("chrome",!l("edge")&&!l("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),l.add("android",!l("wp")&&parseFloat(t.split("Android ")[1])||void 0),l.add("safari",!r.includes("Safari")||l("wp")||l("chrome")||l("android")||l("edge")||l("opr")?void 0:parseFloat(r.split("Version/")[1])),l.add("mac",r.includes("Macintosh")),!l("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));l.add(e,n),l.add("ios",n)}l.add("trident",parseFloat(r.split("Trident/")[1])||void 0),l("webkit")||(!t.includes("Gecko")||l("wp")||l("khtml")||l("trident")||l("edge")||l.add("mozilla",n),l("mozilla")&&l.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(s.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&l.add("esri-mobile",t),r&&l.add("esri-iPhone",r),l.add("esri-geolocation",!!navigator.geolocation)}l.add("esri-canvas-svg-support",!l("trident")),l.add("esri-wasm","WebAssembly"in s.Z),l.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in s.Z,t=!1===s.Z.crossOriginIsolated;return e&&!t})),l.add("esri-atomics","Atomics"in s.Z),l.add("esri-workers","Worker"in s.Z),l.add("esri-text-decoder","TextDecoder"in s.Z),l.add("esri-text-encoder","TextEncoder"in s.Z),l.add("web-feat:cache","caches"in s.Z),l.add("esri-workers-arraybuffer-transfer",!l("safari")||Number(l("safari"))>=12),l.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),l.add("featurelayer-simplify-payload-size-factors",[1,1,4]),l.add("featurelayer-snapshot-enabled",!0),l.add("featurelayer-snapshot-point-min-threshold",8e4),l.add("featurelayer-snapshot-point-max-threshold",4e5),l.add("featurelayer-snapshot-point-coverage",.1),l.add("featurelayer-advanced-symbols",!1),l.add("featurelayer-pbf",!0),l.add("featurelayer-pbf-statistics",!1),l.add("feature-layers-workers",!0),l.add("mapview-transitions-duration",200),l.add("mapserver-pbf-enabled",!1),l("host-webworker")||l("host-browser")&&(l.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),l.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{l.add("esri-image-decode",!0,!0,!0)})).catch((()=>{l.add("esri-image-decode",!1,!0,!0)}))}return!1})),l.add("esri-url-encodes-apostrophe",(()=>{const e=s.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),l.add("vectortilelayer-max-buffers",l("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>s,fS:()=>i,yd:()=>o}),r(67676),r(80442);var n=r(1533);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;if((0,n.W0)(e)||(0,n.lq)(e)||(0,n.KZ)(e)||(0,n.z3)(e)||(0,n.Uc)(e)||(0,n.Hx)(e)||(0,n.ZY)(e)||(0,n.xZ)(e)||(0,n.fS)(e))return(0,n.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,s(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(s(e))})),t}let t;const r=e;if("function"==typeof r.clone)t=r.clone();else if("function"==typeof r.map&&"function"==typeof r.forEach)t=r.map(s);else if("function"==typeof r.notifyChange&&"function"==typeof r.watch)t=r.clone();else{t={};for(const r of Object.getOwnPropertyNames(e))t[r]=s(e[r])}return t}function i(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}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)m(r,null,t)}function m(e,t,r){return n(e)?r(e):t}function y(e,t){return n(e)?t(e):null}function v(e){return e.filter((e=>n(e)))}function w(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function _(e){return e}r.d(t,{Po:()=>y,yw:()=>i,j0:()=>_,SC:()=>u,O3:()=>f,lV:()=>v,JR:()=>g,U2:()=>w,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(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 c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>x,$6:()=>c,Ue:()=>l,yi:()=>f,zE:()=>u,dD:()=>O,hh:()=>$,vr:()=>I,Ds:()=>j,as:()=>P,WW:()=>k,R8:()=>_,D_:()=>w,Hc:()=>p,tI:()=>M,y8:()=>C,fu:()=>m,$F:()=>y,d1:()=>S,DB:()=>E,r9:()=>b,k_:()=>d,H9:()=>g,gx:()=>A,Hl:()=>v});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw u(t)}function h(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,a.pC)(t)&&t.aborted}function b(e){if(w(e))throw e}function g(e){if(!w(e))throw e}function m(e,t){const r=h(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function y(e,t){const r=h(e);if(!(0,a.Wi)(r))return d(r),(0,i.IH)(r,"abort",(()=>t(u())))}function v(e,t){const r=h(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=m(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function w(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!w(e))throw e}))}function O(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function P(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return P(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function k(e){return P(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function S(e){return Promise.reject(e)}function E(e){return Promise.resolve(e)}function x(e,t,r){const n=f();return m(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);m(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function C(e){return e&&"function"==typeof e.then}function A(e){return M(e)?e:Promise.resolve(e)}function M(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function j(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=O();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||O(),s=null,t>0){const n=f();r=A(e(...l,n.signal));const o=r;x(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=A(e(...l));const d=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},h=r,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return c}function $(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function I(e){let t=f();const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>x,tD:()=>j,ZN:()=>le,fl:()=>ue,AX:()=>_,Gd:()=>v,Ie:()=>ie,sJ:()=>Q,AH:()=>K,vt:()=>oe,oh:()=>N,P$:()=>F,Ml:()=>fe,ed:()=>$,b7:()=>E,D6:()=>Z,tm:()=>I,YP:()=>B,jc:()=>D,HK:()=>H,$U:()=>X,oC:()=>G,kl:()=>R,v_:()=>q,hF:()=>U,_l:()=>V,PF:()=>L,Fv:()=>J,B7:()=>S,u0:()=>P,Yd:()=>ne,Hu:()=>ce,Qj:()=>se,hO:()=>ee,mN:()=>O});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),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 v=new y(n.Z.applicationUrl),w={},_=(()=>{const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function O(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(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 o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>k(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):k(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=X(e);const n=$(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&te()&&(r=ee(r)),O(r)}function x(e){const t=$(e);let r,n;if(t){const e=A(t.proxyUrl);r=e.path,n=e.query?P(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const C={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?(C.path=e.slice(0,t),C.query=e.slice(t+1)):(C.path=e,C.query=null),C}function M(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function $(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=J(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function N(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function Z(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function R(e){if("string"==typeof e){if(!B(e))return!0;e=ae(e)}if(Z(e,v))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=W(t[r]);for(let t=0;t<n.length;t++)if(Z(e,n[t]))return!0}return!1}function W(e){return w[e]||(Y(e)||G(e)?w[e]=[new y(U(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function U(e,t=_,r){return G(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,i.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!B(e))return e;const n=J(e),o=n.toLowerCase(),s=J(t).toLowerCase().replace(/\/+$/,""),i=r?J(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function J(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&G(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),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!b.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!$(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=U(e=e.trim()))))}function q(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(B(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&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 F(e,t=!1){if(D(e)||H(e))return null;let r=e.indexOf("://");if(-1===r&&G(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=re(e,!0)),e}function B(e){return G(e)||Y(e)}function D(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function K(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const z=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(z);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function V(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function G(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return u.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&G(e)}function ee(e){return G(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return G(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(B(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&B(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new y(U(e)):(e.scheme||(e.scheme=v.scheme),e)}function ce(e,t){const r=O(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 le(e,t,r){const n=O(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function ue(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function fe(e){if((0,i.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7267)]).then(r.bind(r,37267)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(1183)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(6481),r.e(3675),r.e(5413)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(991)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7592),r.e(7618)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(6312),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(9294),r.e(6883)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7303),r.e(3594)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(3568),r.e(6810),r.e(3388)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?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 y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_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&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?(0,a.yi)():null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(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,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20211005",o="8114ba958ab2351b84a13cf5542d5e2b236be097"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.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/"+{24:"65fd1b53405f13d000b9",223:"ba96e9cf6afaa5d3d69f",247:"a0450fbf01de854f5c97",565:"5fd6f37ebdf9884c3526",576:"38e792e037e88a74995a",639:"a2ca5af1df5a4e97fd89",819:"6280c69d87b2a3a18780",991:"b6a68c6556a0cd817e41",1017:"a56b611ab27ab829994f",1027:"5bd49d7c27169f8a30e8",1074:"071a418f1f190d2ece24",1183:"cb712048da3f7341cf6e",1197:"dceef3cad1e5d973967f",1302:"4a437ae7ef1e7cf664f6",1387:"b71d775db3ee46094a89",1421:"33890ccd444ec29f7655",1433:"1def8845714ea745fd24",1496:"814844112ee7d44c2f0d",1534:"09141e5539e652edfc6c",1611:"b7b79d608909cba46a06",1762:"d58dc74b046b12a3af57",1768:"a29e37fd6f3fc5557754",2012:"fa5b268d0adcc1839840",2134:"aadc165adf1bf2fc900f",2217:"b6509e8227e6283f8fef",2319:"89673e4f422957a7feaa",2360:"c849cbf1c751c94721e2",2392:"943af6d4fb61d556e97e",2399:"5db4788c73cb984a430c",2442:"bbc8b42c1e57a9f7a9b1",2515:"29c9ebc28d79846f96c8",2594:"fa9dd6f94d53f553f0bc",2618:"8322e2e4fa8ed408ff99",2894:"0d6dbcf82012cba81adf",3027:"e320c44b0e59e5f13058",3073:"1b2786c57f73f301b632",3142:"183d94ced596ca4e2fef",3172:"6f7a6841e7269d2764ad",3230:"f76de5b2a46656fe5432",3289:"d15f38b2347b81f19851",3388:"2cea27a0d07aa9a88ad4",3389:"9536b706e8b3a27427a5",3485:"6d0197b040395560ac90",3529:"f5f6983e8db08af342f4",3568:"94c5301c08710b14125a",3594:"1607aaa711ba0d7ea03e",3668:"365f772485e9e6b18fff",3675:"bc94b98f8ff3fcd2ffa1",3812:"a087fee9e554836e1423",3826:"5938cc3cf9547a701a7b",3852:"60fe432d0b465ed72f01",3942:"b5184e61b2cdd8e48f65",4166:"6dfeb491bf611349d010",4257:"1607c79c2d5550cf2068",4324:"e609283f31e2c610376f",4358:"3338c8c40a22e0a78080",4564:"62526570dfbcbea7160c",4599:"f11dbfcc56bf04d1f3c8",4695:"dca79a567d98d98f3d8f",4720:"4b545edce4d95a29df60",4738:"152ef0adc594ae234039",4879:"aae72111022a5fdde974",4886:"7fcbe336b9008eb16bea",4889:"029391285ad66403c9e6",5191:"23e7e3e8d3c981c86ed6",5235:"8304f0b17747e98863ca",5265:"1a3cbeb0a53d03a51dad",5359:"88334d305eab7d7ce114",5413:"1266d48ca9de2e4758f1",5606:"64d9a062c1f1ac08a3ac",5660:"4990e49a5ca46cc33ba7",5732:"469ba1b24cdeea0758ec",5776:"037294dc4964fbda2db0",5837:"78024baa539288c8f7c2",6237:"2e2440d7841ea1d2b07d",6312:"51765c0f1d67f3f74fbf",6412:"93525fe56d7af21f5fe3",6481:"e3aed0a5b64180bdb6c3",6508:"7fcade698598a3bbb005",6570:"6fe972b14f4516c4388b",6592:"834323ab75384e3973f5",6619:"21d6d08cec85947fa6f5",6629:"0070bb66ae36bce099f0",6690:"436e430fe53dde77b25f",6710:"df9010ea6e1cc4cb518e",6718:"6b378d77279e57b6d277",6774:"67944142f419e0f5dd1a",6810:"bd29ea967877fc6d7c53",6830:"5790e745c696d802a1d1",6850:"46fbc2f580260802862f",6883:"da8e3b0251c4a858ae0e",6919:"26d171ebfa03e0cebb14",7007:"8e8df1f17b4fd21cda7d",7039:"cf21a3904acac5f57c3f",7049:"ef6ad7838d61066260e3",7055:"6da8fab411661bc121f4",7267:"82e28348b4188ca94a26",7277:"46bf8921db25845c63c0",7288:"5c90df048e7c0bbff719",7303:"aea8e55accc9e9abdec9",7562:"b4e1d80d7f1a8796e7f2",7572:"aa6d9a51adc278bbe8e8",7592:"33ba228d01e68cd7dfb4",7593:"b1723da85d2cd7efd419",7618:"255fab82ab2590624aac",7637:"fa2e4491db9113a0c8e6",7787:"ae9c28a0f8c980554383",7824:"fdc8efe1ca68bd1b5f27",7845:"7ff27dc56ea11831f4a4",7873:"93eb468381bfcf0e47d7",8008:"c3be8924d6b340efc473",8031:"d1dfa8e35289e83f8f82",8062:"c0ad0f1c7884abcdf9c2",8227:"1f394b20410fddb30a96",8231:"5bb12279b85bbed73fb4",8397:"b65c373f76fce41e1a59",8404:"d3155a8f86ba980745d8",8479:"dde56cbccdf0e3babb37",8511:"9a5a21b45d5de648eda4",8625:"caa5d1b9680a822f2070",8711:"4923f31d3ae4296a6fe6",8758:"8d33644192c01e5416b4",8778:"6ee11a06736d0fe7defb",8828:"2a9a5b51603a07061f9c",8936:"d91a4c4f5c66287e6cc9",9070:"db202ae7dc8b584f312f",9254:"b4b464b59ce799f9fc1c",9291:"6e172b435a55bc72baef",9294:"3fc4576ac750bed0e1c5",9296:"58166c34e4b610d28162",9489:"8a47ffe0ef89c63c550d",9490:"45c2f2a8789268e84fa6",9509:"5ccb44205bca6ca7c920",9554:"5cfd7d625ea47d93e3ed",9625:"71caf9825b9c3934f85e",9884:"3a04496f43de689cc63b",9928:"030494184c0af8bab70e",9930:"84bf97c35fe606c6768c",9932:"240c3369bec873442c41"}[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.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),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&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,5191: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[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5191],{68773:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(16358),o=(n(80442),n(78286)),i=n(17202);const s={apiKey:void 0,applicationUrl:r.Z.location&&r.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(r.Z.esriConfig&&((0,o.RH)(s,r.Z.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.22.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${i.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),s.request.corsEnabledServers=[],s.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(22974),o=n(92604),i=n(58896);class s extends i.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof s))return new s(e,t,n)}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,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.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)}}s.prototype.type="error"},92604:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(68773),o=(n(80442),n(70586)),i=n(19153);const s={info:0,warn:1,error:2,none:3};class c{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,c._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=c.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(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=c._loggers;return c._loggers=e,t},set throttlingDisabled(e){c._throttlingDisabled=e}}}static getLogger(e){let t=c._loggers[e];return t||(t=new c({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=c._tickCounter)return;this._loggedMessages[e].set(r,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,i.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then((()=>{c._tickCounter++,c._tickCounterScheduled=!1})))}}c._loggers={},c._tickCounter=0,c._tickCounterScheduled=!1,c._throttlingDisabled=!1},58896:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,n){if(""===n)return"$";const o=(0,r.hS)(n,t),i=null==o?"":o;if(void 0===i)throw new Error(`could not find key "${n}" in template`);return i.toString()}))}(t,n)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*r._m:e}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{n.d(t,{SO:()=>u,a9:()=>c,fS:()=>i,cq:()=>f,w6:()=>a,Od:()=>g,e$:()=>d,FY:()=>p});var r=n(70586),o=n(77734);function i(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const s=!!Array.prototype.fill;function c(e,t){if(s)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function a(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class u{constructor(){this.last=0}}const l=new u;function f(e,t,n,r){r=r||l;const o=Math.max(0,r.last-10);for(let i=o;i<n;++i)if(e[i]===t)return r.last=i,i;const i=Math.min(o,n);for(let n=0;n<i;++n)if(e[n]===t)return r.last=n,n;return-1}function d(e,t,n,r){const o=null==n?e.length:n,i=f(e,t,o,r);if(-1!==i)return e[i]=e[o-1],null==n&&e.pop(),t}const h=new Set;function p(e,t,n=e.length,r=t.length,o,i){if(0===r||0===n)return n;h.clear();for(let e=0;e<r;++e)h.add(t[e]);o=o||l;const s=Math.max(0,o.last-10);for(let t=s;t<n;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;for(let t=0;t<s;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;return h.clear(),n}function g(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},16358:(e,t,n)=>{n.d(t,{Z:()=>r});const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,n)=>{n.d(t,{Z:()=>u});var r,o,i=n(16358);let s;var c,a;function u(e){return"function"==typeof s[e]?s[e]=s[e](i.Z):s[e]}s=null!=(r=i.Z.dojoConfig)&&r.has||null!=(o=i.Z.esriConfig)&&o.has?{...null==(c=i.Z.dojoConfig)?void 0:c.has,...null==(a=i.Z.esriConfig)?void 0:a.has}:{},u.add=(e,t,n,r)=>((r||void 0===s[e])&&(s[e]=t),n&&u(e)),u.cache=s,u.add("esri-deprecation-warnings",!0),(()=>{u.add("host-webworker",void 0!==i.Z.WorkerGlobalScope&&self instanceof i.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(u.add("host-browser",e),u.add("host-node","object"==typeof i.Z.process&&i.Z.process.versions&&i.Z.process.versions.node&&i.Z.process.versions.v8),u.add("dom",e),u("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(u.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),u.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),u.add("khtml",n.includes("Konqueror")?r:void 0),u.add("edge",parseFloat(t.split("Edge/")[1])||void 0),u.add("opr",parseFloat(t.split("OPR/")[1])||void 0),u.add("webkit",!u("wp")&&!u("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),u.add("chrome",!u("edge")&&!u("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),u.add("android",!u("wp")&&parseFloat(t.split("Android ")[1])||void 0),u.add("safari",!n.includes("Safari")||u("wp")||u("chrome")||u("android")||u("edge")||u("opr")?void 0:parseFloat(n.split("Version/")[1])),u.add("mac",n.includes("Macintosh")),!u("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));u.add(e,r),u.add("ios",r)}u.add("trident",parseFloat(n.split("Trident/")[1])||void 0),u("webkit")||(!t.includes("Gecko")||u("wp")||u("khtml")||u("trident")||u("edge")||u.add("mozilla",r),u("mozilla")&&u.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(i.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&u.add("esri-mobile",t),n&&u.add("esri-iPhone",n),u.add("esri-geolocation",!!navigator.geolocation)}u.add("esri-canvas-svg-support",!u("trident")),u.add("esri-wasm","WebAssembly"in i.Z),u.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in i.Z,t=!1===i.Z.crossOriginIsolated;return e&&!t})),u.add("esri-atomics","Atomics"in i.Z),u.add("esri-workers","Worker"in i.Z),u.add("esri-text-decoder","TextDecoder"in i.Z),u.add("esri-text-encoder","TextEncoder"in i.Z),u.add("web-feat:cache","caches"in i.Z),u.add("esri-workers-arraybuffer-transfer",!u("safari")||Number(u("safari"))>=12),u.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),u.add("featurelayer-simplify-payload-size-factors",[1,1,4]),u.add("featurelayer-snapshot-enabled",!0),u.add("featurelayer-snapshot-point-min-threshold",8e4),u.add("featurelayer-snapshot-point-max-threshold",4e5),u.add("featurelayer-snapshot-point-coverage",.1),u.add("featurelayer-advanced-symbols",!1),u.add("featurelayer-pbf",!0),u.add("featurelayer-pbf-statistics",!1),u.add("feature-layers-workers",!0),u.add("mapview-transitions-duration",200),u.add("mapserver-pbf-enabled",!1),u("host-webworker")||u("host-browser")&&(u.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),u.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{u.add("esri-image-decode",!0,!0,!0)})).catch((()=>{u.add("esri-image-decode",!1,!0,!0)}))}return!1})),u.add("esri-url-encodes-apostrophe",(()=>{const e=i.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),u.add("vectortilelayer-max-buffers",u("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,n)=>{n.d(t,{d9:()=>i,fS:()=>s,yd:()=>o}),n(67676),n(80442);var r=n(1533);function o(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&o(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,r.W0)(e)||(0,r.lq)(e)||(0,r.KZ)(e)||(0,r.z3)(e)||(0,r.Uc)(e)||(0,r.Hx)(e)||(0,r.ZY)(e)||(0,r.xZ)(e)||(0,r.fS)(e))return(0,r.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,n)=>{t.set(n,i(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(i(e))})),t}let t;const n=e;if("function"==typeof n.clone)t=n.clone();else if("function"==typeof n.map&&"function"==typeof n.forEach)t=n.map(i);else if("function"==typeof n.notifyChange&&"function"==typeof n.watch)t=n.clone();else{t={};for(const n of Object.getOwnPropertyNames(e))t[n]=i(e[n])}return t}function s(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}},70586:(e,t,n)=>{function r(e){return null!=e}function o(e){return null==e}function i(e){return void 0===e}function s(e,t){return r(e)?t(e):null}function c(e){return e}function a(e,t){if(o(e))throw new Error(t);return e}function u(e,t){return r(e)?e:"function"==typeof t?t():t}function l(e){return r(e)&&e.destroy(),null}function f(e){return r(e)&&e.dispose(),null}function d(e){return r(e)&&e.remove(),null}function h(e){return r(e)&&e.release(),null}function p(e){return null}function g(e,t){const n=new Array;for(const r of e)n.push(y(r,null,t));return n}function m(e,t){for(const n of e)y(n,null,t)}function y(e,t,n){return r(e)?n(e):t}function w(e,t){return r(e)?t(e):null}function v(e){return e.filter((e=>r(e)))}function b(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function x(e){return e}n.d(t,{Po:()=>w,yw:()=>s,j0:()=>x,SC:()=>l,O3:()=>f,lV:()=>v,JR:()=>m,U2:()=>b,Wi:()=>o,pC:()=>r,o8:()=>i,Fd:()=>g,R2:()=>y,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>c,Pt:()=>u,s3:()=>a})},78286:(e,t,n)=>{n.d(t,{RH:()=>o,hS:()=>i,RB:()=>s});var r=n(22974);function o(e,t,n=!1){return a(e,t,n)}function i(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,n){const r=e.split("."),o=r.pop(),i=c(r,!0,n);i&&o&&(i[o]=t)}function c(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function a(e,t,n){return t?Object.keys(t).reduce((function(e,o){let i=e[o],s=t[o];return i===s?e:void 0===i?(e[o]=(0,r.d9)(s),e):(Array.isArray(s)||Array.isArray(e)?(i=i?Array.isArray(i)?e[o]=i.concat():e[o]=[i]:e[o]=[],s&&(Array.isArray(s)||(s=[s]),n?s.forEach((e=>{-1===i.indexOf(e)&&i.push(e)})):e[o]=s.concat())):s&&"object"==typeof s?e[o]=a(i,s,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=s),e)}),e||{}):e}},95330:(e,t,n)=>{n.d(t,{e4:()=>C,$6:()=>a,Ue:()=>u,yi:()=>f,zE:()=>l,dD:()=>_,hh:()=>j,vr:()=>I,Ds:()=>U,as:()=>O,WW:()=>A,R8:()=>x,D_:()=>b,Hc:()=>p,tI:()=>Z,y8:()=>S,fu:()=>y,$F:()=>w,d1:()=>P,DB:()=>$,r9:()=>g,k_:()=>d,H9:()=>m,gx:()=>k,Hl:()=>v});const r=(o=n(16358).Z,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),c=(n(92604),n(70586));function a(e){return Promise.all(e)}function u(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function l(e="Aborted"){return new i.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw l(t)}function h(e){return(0,c.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,c.pC)(t)&&t.aborted}function g(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function y(e,t){const n=h(e);if(!(0,c.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function w(e,t){const n=h(e);if(!(0,c.Wi)(n))return d(n),(0,s.IH)(n,"abort",(()=>t(l())))}function v(e,t){const n=h(t);return(0,c.Wi)(n)?e:new Promise(((n,r)=>{let o=y(t,(()=>r(l())));const i=()=>o=(0,c.hw)(o);e.then(i,i),e.then(n,r)}))}function b(e){return e&&"AbortError"===e.name}function x(e){return e.catch((e=>{if(!b(e))throw e}))}function _(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return u((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function A(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function P(e){return Promise.reject(e)}function $(e){return Promise.resolve(e)}function C(e,t,n){const r=f();return y(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);y(r,(()=>{i&&(clearTimeout(i),o(l()))}))}))}function S(e){return e&&"function"==typeof e.then}function k(e){return Z(e)?e:Promise.resolve(e)}function Z(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function U(e,t=-1){let n,r,o,i,s=null;const a=(...u)=>{if(n){r=u,i&&i.reject(l()),i=_();const e=(0,c.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||_(),i=null,t>0){const r=f();n=k(e(...u,r.signal));const o=n;C(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=k(e(...u));const d=()=>{const e=r;r=o=n=s=null,null!=e&&a(...e)},h=n,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,c.j0)(p.promise)};return a}function j(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function I(e){let t=f();const n=e(t.signal);let r={promise:n,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{r&&(r.finished=!0,r=null),t=null};return n.then(o,o),r}},19153:(e,t,n)=>{n.d(t,{Qs:()=>c,hP:()=>a,gx:()=>s,Cb:()=>u});var r=n(78286);const o=/\{([^\}]+)\}/g;function i(e){return null==e?"":e}function s(e,t){return e.replace(o,"object"==typeof t?(e,n)=>i((0,r.hS)(n,t)):(e,n)=>i(t(n)))}function c(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function a(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function u(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function i(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function s(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function c(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function a(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function u(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function l(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,eP:()=>i,xZ:()=>h,fS:()=>p,z3:()=>u,Hx:()=>f,W0:()=>s,Uc:()=>l,ZY:()=>d,lq:()=>c,KZ:()=>a,tP:()=>o})},17452:(e,t,n)=>{n.d(t,{R9:()=>w,qg:()=>C,tD:()=>U,ZN:()=>ue,fl:()=>le,AX:()=>x,Gd:()=>v,Ie:()=>se,sJ:()=>Y,AH:()=>z,vt:()=>oe,oh:()=>T,P$:()=>D,Ml:()=>fe,ed:()=>j,b7:()=>$,D6:()=>R,tm:()=>I,YP:()=>H,jc:()=>B,HK:()=>J,$U:()=>X,oC:()=>V,kl:()=>M,v_:()=>N,hF:()=>q,_l:()=>G,PF:()=>F,Fv:()=>L,B7:()=>P,u0:()=>O,Yd:()=>re,Hu:()=>ae,Qj:()=>ie,hO:()=>ee,mN:()=>_});var r=n(68773),o=n(20102),i=(n(16358),n(92604)),s=n(70586);const c=i.Z.getLogger("esri.core.urlUtils"),a=r.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",l=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),y=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(y)),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 v=new w(r.Z.applicationUrl),b={},x=(()=>{const e=(0,s.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function _(e){const t={path:null,query:null},n=new w(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=O(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function O(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function A(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function P(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>A(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):A(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function $(e=!1){let t,n=a.proxyUrl;if("string"==typeof e){t=X(e);const r=j(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw c.warn(u),new o.Z("urlutils:proxy-not-set",u);return t&&te()&&(n=ee(n)),_(n)}function C(e){const t=j(e);let n,r;if(t){const e=k(t.proxyUrl);n=e.path,r=e.query?O(e.query):null}if(n){const t=_(e);e=n+"?"+t.path;const o=P({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const S={path:"",query:""};function k(e){const t=e.indexOf("?");return-1!==t?(S.path=e.slice(0,t),S.query=e.slice(t+1)):(S.path=e,S.query=null),S}function Z(e){return(e=ne(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=k(e).path),!0)).toLowerCase()}function U(e){const t={proxyUrl:e.proxyUrl,urlPrefix:Z(e.urlPrefix)},n=a.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function j(e){const t=a.proxyRules,n=Z(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=E(e),t=E(t),ne(e)===ne(t)}function E(e){const t=(e=L(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function T(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=a.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function R(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!H(e))return!0;e=ce(e)}if(R(e,v))return!0;const t=a.trustedServers||[];for(let n=0;n<t.length;n++){const r=W(t[n]);for(let t=0;t<r.length;t++)if(R(e,r[t]))return!0}return!1}function W(e){return b[e]||(Q(e)||V(e)?b[e]=[new w(q(e))]:b[e]=[new w(`http://${e}`),new w(`https://${e}`)]),b[e]}function q(e,t=x,n){return V(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:Q(e)?e:(0,s.j0)(N("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=x,n){if(!H(e))return e;const r=L(e),o=r.toLowerCase(),i=L(t).toLowerCase().replace(/\/+$/,""),s=n?L(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const c=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let a=c(o,"/",o.indexOf("//")+2),u=-1;for(;o.slice(0,a+1)===i.slice(0,a)+"/"&&(u=a+1,a!==o.length);)a=c(o,"/",a+1);if(-1===u)return e;if(s&&u<s.length)return e;e=r.slice(u);const l=i.slice(u-1).replace(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function L(e){return function(e){const t=a.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&V(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!g.test(e)||(te()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||te()&&!j(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=k(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function N(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function D(e,t=!1){if(B(e)||J(e))return null;let n=e.indexOf("://");if(-1===n&&V(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ne(e,!0)),e}function H(e){return V(e)||Q(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function J(e){return"data:"===e.slice(0,5)}function z(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const K=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(K);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function G(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Q(e){return l.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&V(e)}function ee(e){return V(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function ne(e,t=!1){return V(e)?e.slice(2):(e=e.replace(l,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function re(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function oe(e,t){if(!e)return"";const n=_(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ie(e){return e.replace(/\/+$/,"")}function se(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new w(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function ae(e,t){const n=_(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function ue(e,t,n){const r=_(e),o=r.query||{};return o[t]=String(n),`${r.path}?${P(o)}`}function le(e,t){const n=_(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=P(r);return o?`${n.path}?${o}`:n.path}function fe(e){if((0,s.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},17202:(e,t,n)=>{n.d(t,{r:()=>r,$:()=>o});const r="20211001",o="b5062177fbdf5f5fa1d6c050cbf327b2cfaee8d6"}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5191],{68773:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(16358),o=(n(80442),n(78286)),i=n(17202);const s={apiKey:void 0,applicationUrl:r.Z.location&&r.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(r.Z.esriConfig&&((0,o.RH)(s,r.Z.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.22.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${i.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),s.request.corsEnabledServers=[],s.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(22974),o=n(92604),i=n(58896);class s extends i.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof s))return new s(e,t,n)}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,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.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)}}s.prototype.type="error"},92604:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(68773),o=(n(80442),n(70586)),i=n(19153);const s={info:0,warn:1,error:2,none:3};class c{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,c._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=c.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(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=c._loggers;return c._loggers=e,t},set throttlingDisabled(e){c._throttlingDisabled=e}}}static getLogger(e){let t=c._loggers[e];return t||(t=new c({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=c._tickCounter)return;this._loggedMessages[e].set(r,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,i.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then((()=>{c._tickCounter++,c._tickCounterScheduled=!1})))}}c._loggers={},c._tickCounter=0,c._tickCounterScheduled=!1,c._throttlingDisabled=!1},58896:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,n){if(""===n)return"$";const o=(0,r.hS)(n,t),i=null==o?"":o;if(void 0===i)throw new Error(`could not find key "${n}" in template`);return i.toString()}))}(t,n)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*r._m:e}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{n.d(t,{SO:()=>u,a9:()=>c,fS:()=>i,cq:()=>f,w6:()=>a,Od:()=>g,e$:()=>d,FY:()=>p});var r=n(70586),o=n(77734);function i(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const s=!!Array.prototype.fill;function c(e,t){if(s)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function a(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class u{constructor(){this.last=0}}const l=new u;function f(e,t,n,r){r=r||l;const o=Math.max(0,r.last-10);for(let i=o;i<n;++i)if(e[i]===t)return r.last=i,i;const i=Math.min(o,n);for(let n=0;n<i;++n)if(e[n]===t)return r.last=n,n;return-1}function d(e,t,n,r){const o=null==n?e.length:n,i=f(e,t,o,r);if(-1!==i)return e[i]=e[o-1],null==n&&e.pop(),t}const h=new Set;function p(e,t,n=e.length,r=t.length,o,i){if(0===r||0===n)return n;h.clear();for(let e=0;e<r;++e)h.add(t[e]);o=o||l;const s=Math.max(0,o.last-10);for(let t=s;t<n;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;for(let t=0;t<s;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;return h.clear(),n}function g(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},16358:(e,t,n)=>{n.d(t,{Z:()=>r});const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,n)=>{n.d(t,{Z:()=>u});var r,o,i=n(16358);let s;var c,a;function u(e){return"function"==typeof s[e]?s[e]=s[e](i.Z):s[e]}s=null!=(r=i.Z.dojoConfig)&&r.has||null!=(o=i.Z.esriConfig)&&o.has?{...null==(c=i.Z.dojoConfig)?void 0:c.has,...null==(a=i.Z.esriConfig)?void 0:a.has}:{},u.add=(e,t,n,r)=>((r||void 0===s[e])&&(s[e]=t),n&&u(e)),u.cache=s,u.add("esri-deprecation-warnings",!0),(()=>{u.add("host-webworker",void 0!==i.Z.WorkerGlobalScope&&self instanceof i.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(u.add("host-browser",e),u.add("host-node","object"==typeof i.Z.process&&i.Z.process.versions&&i.Z.process.versions.node&&i.Z.process.versions.v8),u.add("dom",e),u("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(u.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),u.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),u.add("khtml",n.includes("Konqueror")?r:void 0),u.add("edge",parseFloat(t.split("Edge/")[1])||void 0),u.add("opr",parseFloat(t.split("OPR/")[1])||void 0),u.add("webkit",!u("wp")&&!u("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),u.add("chrome",!u("edge")&&!u("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),u.add("android",!u("wp")&&parseFloat(t.split("Android ")[1])||void 0),u.add("safari",!n.includes("Safari")||u("wp")||u("chrome")||u("android")||u("edge")||u("opr")?void 0:parseFloat(n.split("Version/")[1])),u.add("mac",n.includes("Macintosh")),!u("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));u.add(e,r),u.add("ios",r)}u.add("trident",parseFloat(n.split("Trident/")[1])||void 0),u("webkit")||(!t.includes("Gecko")||u("wp")||u("khtml")||u("trident")||u("edge")||u.add("mozilla",r),u("mozilla")&&u.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(i.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&u.add("esri-mobile",t),n&&u.add("esri-iPhone",n),u.add("esri-geolocation",!!navigator.geolocation)}u.add("esri-canvas-svg-support",!u("trident")),u.add("esri-wasm","WebAssembly"in i.Z),u.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in i.Z,t=!1===i.Z.crossOriginIsolated;return e&&!t})),u.add("esri-atomics","Atomics"in i.Z),u.add("esri-workers","Worker"in i.Z),u.add("esri-text-decoder","TextDecoder"in i.Z),u.add("esri-text-encoder","TextEncoder"in i.Z),u.add("web-feat:cache","caches"in i.Z),u.add("esri-workers-arraybuffer-transfer",!u("safari")||Number(u("safari"))>=12),u.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),u.add("featurelayer-simplify-payload-size-factors",[1,1,4]),u.add("featurelayer-snapshot-enabled",!0),u.add("featurelayer-snapshot-point-min-threshold",8e4),u.add("featurelayer-snapshot-point-max-threshold",4e5),u.add("featurelayer-snapshot-point-coverage",.1),u.add("featurelayer-advanced-symbols",!1),u.add("featurelayer-pbf",!0),u.add("featurelayer-pbf-statistics",!1),u.add("feature-layers-workers",!0),u.add("mapview-transitions-duration",200),u.add("mapserver-pbf-enabled",!1),u("host-webworker")||u("host-browser")&&(u.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),u.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{u.add("esri-image-decode",!0,!0,!0)})).catch((()=>{u.add("esri-image-decode",!1,!0,!0)}))}return!1})),u.add("esri-url-encodes-apostrophe",(()=>{const e=i.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),u.add("vectortilelayer-max-buffers",u("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,n)=>{n.d(t,{d9:()=>i,fS:()=>s,yd:()=>o}),n(67676),n(80442);var r=n(1533);function o(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&o(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,r.W0)(e)||(0,r.lq)(e)||(0,r.KZ)(e)||(0,r.z3)(e)||(0,r.Uc)(e)||(0,r.Hx)(e)||(0,r.ZY)(e)||(0,r.xZ)(e)||(0,r.fS)(e))return(0,r.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,n)=>{t.set(n,i(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(i(e))})),t}let t;const n=e;if("function"==typeof n.clone)t=n.clone();else if("function"==typeof n.map&&"function"==typeof n.forEach)t=n.map(i);else if("function"==typeof n.notifyChange&&"function"==typeof n.watch)t=n.clone();else{t={};for(const n of Object.getOwnPropertyNames(e))t[n]=i(e[n])}return t}function s(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}},70586:(e,t,n)=>{function r(e){return null!=e}function o(e){return null==e}function i(e){return void 0===e}function s(e,t){return r(e)?t(e):null}function c(e){return e}function a(e,t){if(o(e))throw new Error(t);return e}function u(e,t){return r(e)?e:"function"==typeof t?t():t}function l(e){return r(e)&&e.destroy(),null}function f(e){return r(e)&&e.dispose(),null}function d(e){return r(e)&&e.remove(),null}function h(e){return r(e)&&e.release(),null}function p(e){return null}function g(e,t){const n=new Array;for(const r of e)n.push(y(r,null,t));return n}function m(e,t){for(const n of e)y(n,null,t)}function y(e,t,n){return r(e)?n(e):t}function w(e,t){return r(e)?t(e):null}function v(e){return e.filter((e=>r(e)))}function b(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function x(e){return e}n.d(t,{Po:()=>w,yw:()=>s,j0:()=>x,SC:()=>l,O3:()=>f,lV:()=>v,JR:()=>m,U2:()=>b,Wi:()=>o,pC:()=>r,o8:()=>i,Fd:()=>g,R2:()=>y,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>c,Pt:()=>u,s3:()=>a})},78286:(e,t,n)=>{n.d(t,{RH:()=>o,hS:()=>i,RB:()=>s});var r=n(22974);function o(e,t,n=!1){return a(e,t,n)}function i(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,n){const r=e.split("."),o=r.pop(),i=c(r,!0,n);i&&o&&(i[o]=t)}function c(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function a(e,t,n){return t?Object.keys(t).reduce((function(e,o){let i=e[o],s=t[o];return i===s?e:void 0===i?(e[o]=(0,r.d9)(s),e):(Array.isArray(s)||Array.isArray(e)?(i=i?Array.isArray(i)?e[o]=i.concat():e[o]=[i]:e[o]=[],s&&(Array.isArray(s)||(s=[s]),n?s.forEach((e=>{-1===i.indexOf(e)&&i.push(e)})):e[o]=s.concat())):s&&"object"==typeof s?e[o]=a(i,s,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=s),e)}),e||{}):e}},95330:(e,t,n)=>{n.d(t,{e4:()=>C,$6:()=>a,Ue:()=>u,yi:()=>f,zE:()=>l,dD:()=>_,hh:()=>j,vr:()=>I,Ds:()=>U,as:()=>O,WW:()=>A,R8:()=>x,D_:()=>b,Hc:()=>p,tI:()=>Z,y8:()=>S,fu:()=>y,$F:()=>w,d1:()=>P,DB:()=>$,r9:()=>g,k_:()=>d,H9:()=>m,gx:()=>k,Hl:()=>v});const r=(o=n(16358).Z,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),c=(n(92604),n(70586));function a(e){return Promise.all(e)}function u(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function l(e="Aborted"){return new i.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw l(t)}function h(e){return(0,c.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,c.pC)(t)&&t.aborted}function g(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function y(e,t){const n=h(e);if(!(0,c.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function w(e,t){const n=h(e);if(!(0,c.Wi)(n))return d(n),(0,s.IH)(n,"abort",(()=>t(l())))}function v(e,t){const n=h(t);return(0,c.Wi)(n)?e:new Promise(((n,r)=>{let o=y(t,(()=>r(l())));const i=()=>o=(0,c.hw)(o);e.then(i,i),e.then(n,r)}))}function b(e){return e&&"AbortError"===e.name}function x(e){return e.catch((e=>{if(!b(e))throw e}))}function _(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return u((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function A(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function P(e){return Promise.reject(e)}function $(e){return Promise.resolve(e)}function C(e,t,n){const r=f();return y(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);y(r,(()=>{i&&(clearTimeout(i),o(l()))}))}))}function S(e){return e&&"function"==typeof e.then}function k(e){return Z(e)?e:Promise.resolve(e)}function Z(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function U(e,t=-1){let n,r,o,i,s=null;const a=(...u)=>{if(n){r=u,i&&i.reject(l()),i=_();const e=(0,c.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||_(),i=null,t>0){const r=f();n=k(e(...u,r.signal));const o=n;C(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=k(e(...u));const d=()=>{const e=r;r=o=n=s=null,null!=e&&a(...e)},h=n,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,c.j0)(p.promise)};return a}function j(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function I(e){let t=f();const n=e(t.signal);let r={promise:n,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{r&&(r.finished=!0,r=null),t=null};return n.then(o,o),r}},19153:(e,t,n)=>{n.d(t,{Qs:()=>c,hP:()=>a,gx:()=>s,Cb:()=>u});var r=n(78286);const o=/\{([^\}]+)\}/g;function i(e){return null==e?"":e}function s(e,t){return e.replace(o,"object"==typeof t?(e,n)=>i((0,r.hS)(n,t)):(e,n)=>i(t(n)))}function c(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function a(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function u(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function i(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function s(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function c(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function a(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function u(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function l(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,eP:()=>i,xZ:()=>h,fS:()=>p,z3:()=>u,Hx:()=>f,W0:()=>s,Uc:()=>l,ZY:()=>d,lq:()=>c,KZ:()=>a,tP:()=>o})},17452:(e,t,n)=>{n.d(t,{R9:()=>w,qg:()=>C,tD:()=>U,ZN:()=>ue,fl:()=>le,AX:()=>x,Gd:()=>v,Ie:()=>se,sJ:()=>Y,AH:()=>z,vt:()=>oe,oh:()=>T,P$:()=>D,Ml:()=>fe,ed:()=>j,b7:()=>$,D6:()=>R,tm:()=>I,YP:()=>H,jc:()=>B,HK:()=>J,$U:()=>X,oC:()=>V,kl:()=>M,v_:()=>N,hF:()=>q,_l:()=>G,PF:()=>F,Fv:()=>L,B7:()=>P,u0:()=>O,Yd:()=>re,Hu:()=>ae,Qj:()=>ie,hO:()=>ee,mN:()=>_});var r=n(68773),o=n(20102),i=(n(16358),n(92604)),s=n(70586);const c=i.Z.getLogger("esri.core.urlUtils"),a=r.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",l=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),y=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(y)),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 v=new w(r.Z.applicationUrl),b={},x=(()=>{const e=(0,s.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function _(e){const t={path:null,query:null},n=new w(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=O(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function O(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function A(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function P(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>A(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):A(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function $(e=!1){let t,n=a.proxyUrl;if("string"==typeof e){t=X(e);const r=j(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw c.warn(u),new o.Z("urlutils:proxy-not-set",u);return t&&te()&&(n=ee(n)),_(n)}function C(e){const t=j(e);let n,r;if(t){const e=k(t.proxyUrl);n=e.path,r=e.query?O(e.query):null}if(n){const t=_(e);e=n+"?"+t.path;const o=P({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const S={path:"",query:""};function k(e){const t=e.indexOf("?");return-1!==t?(S.path=e.slice(0,t),S.query=e.slice(t+1)):(S.path=e,S.query=null),S}function Z(e){return(e=ne(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=k(e).path),!0)).toLowerCase()}function U(e){const t={proxyUrl:e.proxyUrl,urlPrefix:Z(e.urlPrefix)},n=a.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function j(e){const t=a.proxyRules,n=Z(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=E(e),t=E(t),ne(e)===ne(t)}function E(e){const t=(e=L(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function T(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=a.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function R(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!H(e))return!0;e=ce(e)}if(R(e,v))return!0;const t=a.trustedServers||[];for(let n=0;n<t.length;n++){const r=W(t[n]);for(let t=0;t<r.length;t++)if(R(e,r[t]))return!0}return!1}function W(e){return b[e]||(Q(e)||V(e)?b[e]=[new w(q(e))]:b[e]=[new w(`http://${e}`),new w(`https://${e}`)]),b[e]}function q(e,t=x,n){return V(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:Q(e)?e:(0,s.j0)(N("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=x,n){if(!H(e))return e;const r=L(e),o=r.toLowerCase(),i=L(t).toLowerCase().replace(/\/+$/,""),s=n?L(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const c=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let a=c(o,"/",o.indexOf("//")+2),u=-1;for(;o.slice(0,a+1)===i.slice(0,a)+"/"&&(u=a+1,a!==o.length);)a=c(o,"/",a+1);if(-1===u)return e;if(s&&u<s.length)return e;e=r.slice(u);const l=i.slice(u-1).replace(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function L(e){return function(e){const t=a.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&V(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!g.test(e)||(te()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||te()&&!j(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=k(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function N(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function D(e,t=!1){if(B(e)||J(e))return null;let n=e.indexOf("://");if(-1===n&&V(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ne(e,!0)),e}function H(e){return V(e)||Q(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function J(e){return"data:"===e.slice(0,5)}function z(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const K=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(K);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function G(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Q(e){return l.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&V(e)}function ee(e){return V(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function ne(e,t=!1){return V(e)?e.slice(2):(e=e.replace(l,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function re(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function oe(e,t){if(!e)return"";const n=_(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ie(e){return e.replace(/\/+$/,"")}function se(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new w(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function ae(e,t){const n=_(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function ue(e,t,n){const r=_(e),o=r.query||{};return o[t]=String(n),`${r.path}?${P(o)}`}function le(e,t){const n=_(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=P(r);return o?`${n.path}?${o}`:n.path}function fe(e){if((0,s.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},17202:(e,t,n)=>{n.d(t,{r:()=>r,$:()=>o});const r="20211005",o="8114ba958ab2351b84a13cf5542d5e2b236be097"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5660],{38581:(e,t,s)=>{s.d(t,{aX:()=>R});var r=s(68773),n=s(20102),o=s(92604),i=s(70586),a=s(17332),u=s(58901),l=s(73913),c=s(8744),d=s(40488),h=(s(66577),s(3172)),p=s(17452),f=s(33955);const y=o.Z.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function m(e){return"polyline"===e[0].type}function b(e,t,s){if(t){const t=function(e,t){if(!(e instanceof u.Z||e instanceof a.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new n.Z(e)}const s=(0,l.x3)(e),r=[];for(const e of s){const s=[];r.push(s),s.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const n=e[r][0],o=e[r][1],i=e[r+1][0],a=e[r+1][1],u=Math.sqrt((i-n)*(i-n)+(a-o)*(a-o)),l=(a-o)/u,c=(i-n)/u,d=u/t;if(d>1){for(let e=1;e<=d-1;e++){const r=e*t,i=c*r+n,a=l*r+o;s.push([i,a])}const e=(u+Math.floor(d-1)*t)/2,r=c*e+n,i=l*e+o;s.push([r,i])}s.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.Z({rings:r,spatialReference:e.spatialReference}):new u.Z({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.Sx)(t,!0)}return s&&(e=(0,l.Sy)(e,s)),e}function I(e,t,s){if(Array.isArray(e)){const r=e[0];if(r>t){const s=(0,l.XZ)(r,t);e[0]=r+s*(-2*t)}else if(r<s){const t=(0,l.XZ)(r,s);e[0]=r+t*(-2*s)}}else{const r=e.x;if(r>t){const s=(0,l.XZ)(r,t);e=e.clone().offset(s*(-2*t),0)}else if(r<s){const t=(0,l.XZ)(r,s);e=e.clone().offset(t*(-2*s),0)}}return e}function F(e,t){let s=-1;for(let r=0;r<t.cutIndexes.length;r++){const n=t.cutIndexes[r],o=t.geometries[r],i=(0,l.x3)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const r=t[e][0];s=r>s?r:s}s=Number(s.toFixed(9));const r=-360*(0,l.XZ)(s,180);for(let s=0;s<t.length;s++){const t=o.getPoint(e,s);o.setPoint(e,s,t.clone().offset(r,0))}return!0}}))}if(n===s){if(g(e))for(const t of(0,l.x3)(o))e[n]=e[n].addRing(t);else if(m(e))for(const t of(0,l.x3)(o))e[n]=e[n].addPath(t)}else s=n,e[n]=o}return e}async function R(e,t,s){if(!Array.isArray(e))return R([e],t);const n=t?t.url:r.Z.geometryServiceUrl;let o,y,g,m,w,q,x,Z,S=0;const O=[],_=[];for(const t of e)if((0,i.Wi)(t))_.push(t);else if(o||(o=t.spatialReference,y=(0,c.C5)(o),g=o.isWebMercator,q=g?102100:4326,m=l.UZ[q].maxX,w=l.UZ[q].minX,x=l.UZ[q].plus180Line,Z=l.UZ[q].minus180Line),y)if("mesh"===t.type)_.push(t);else if("point"===t.type)_.push(I(t.clone(),m,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>I(e,m,w))),_.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,y);_.push(e.rings?new a.Z(e):e)}else if(t.extent){const e=t.extent,s=(0,l.XZ)(e.xmin,w)*(2*m);let r=0===s?t.clone():(0,l.Sy)(t.clone(),s);e.offset(s,0),e.intersects(x)&&e.xmax!==m?(S=e.xmax>S?e.xmax:S,r=b(r,g),O.push(r),_.push("cut")):e.intersects(Z)&&e.xmin!==w?(S=e.xmax*(2*m)>S?e.xmax*(2*m):S,r=b(r,g,360),O.push(r),_.push("cut")):_.push(r)}else _.push(t.clone());else _.push(t);let T=(0,l.XZ)(S,m),v=-90;const N=T,E=new u.Z;for(;T>0;){const e=360*T-180;E.addPath([[e,v],[e,-1*v]]),v*=-1,T--}if(O.length>0&&N>0){const t=F(O,await async function(e,t,s,r){const n="string"==typeof e?(0,p.mN)(e):e,o=t[0].spatialReference,i={...r,query:{...n.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,f.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},a=await(0,h.default)(n.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map((e=>{const t=(0,f.im)(e);return t.spatialReference=o,t}))}}(n,O,E,s)),r=[],o=[];for(let s=0;s<_.length;s++){const n=_[s];if("cut"!==n)o.push(n);else{const n=t.shift(),a=e[s];(0,i.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(r.push(n),o.push("simplify")):o.push(g?(0,d.$)(n):n)}}if(!r.length)return o;const a=await async function(e,t,s){const r="string"==typeof e?(0,p.mN)(e):e,n=t[0].spatialReference,o=(0,f.Ji)(t[0]),i={...s,query:{...r.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify((a=t,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((e=>e.toJSON()))}))}};var a;return function(e,t,s){const r=(0,f.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=s,t}))}((await(0,h.default)(r.path+"/simplify",i)).data,o,n)}(n,r,s),u=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?u.push(t):u.push(g?(0,d.$)(a.shift()):a.shift())}return u}const M=[];for(let e=0;e<_.length;e++){const t=_[e];if("cut"!==t)M.push(t);else{const e=O.shift();M.push(!0===g?(0,d.$)(e):e)}}return Promise.resolve(M)}},73913:(e,t,s)=>{s.d(t,{UZ:()=>i,x3:()=>l,XZ:()=>a,Sy:()=>u});var r=s(58901),n=s(82971),o=s(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const s=l(e);for(const e of s)for(const s of e)s[0]+=t;return e}function l(e){return(0,o.oU)(e)?e.rings:e.paths}},70272:(e,t,s)=>{s.d(t,{nd:()=>i,ZP:()=>n,S6:()=>o});var r=s(70586);class n{constructor(e=null,t={},s,r){this.geometry=e,this.attributes=t,this.centroid=s,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function o(e){return!((0,r.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends n{}},44876:(e,t,s)=>{s.d(t,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,s)=>{s.d(t,{Z:()=>r});class r{constructor(e=[],t=[],s=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=s}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let s=0;s<this.lengths.length;s++){const r=this.lengths[s];for(let s=0;s<r;s++)e(this.coords[2*(s+t)],this.coords[2*(s+t)+1]);t+=r}}clone(e){return e?(e.set(this.coords),new r(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},61159:(e,t,s)=>{s.d(t,{g:()=>r});const r={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},98732:(e,t,s)=>{s.d(t,{XA:()=>j,h_:()=>W,Yn:()=>J,GH:()=>Q,Uy:()=>C,EI:()=>L,cn:()=>X,di:()=>z,Iv:()=>E,fQ:()=>w,eG:()=>A,J6:()=>G,oB:()=>oe,zj:()=>Y,$:()=>ee,lz:()=>ne,RZ:()=>V,Nh:()=>B,Jd:()=>b,IN:()=>I,hY:()=>se,lM:()=>$,$g:()=>te});var r=s(20102),n=s(92604),o=s(70586),i=s(33955),a=s(70272),u=s(44876),l=s(5428);function c(e,t){return e?t?4:3:t?3:2}const d=n.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),h={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},p=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o},f=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o,e[s+2]=t[r+2]},y=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o,e[s+2]=t[r+3]},g=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o,e[s+2]=t[r+2],e[s+3]=t[r+3]};function m(e,t,s,r){if(e){if(s)return t&&r?g:f;if(t&&r)return y}else if(t&&r)return f;return p}function b({scale:e,translate:t},s){return Math.round((s-t[0])/e[0])}function I({scale:e,translate:t},s){return Math.round((t[1]-s)/e[1])}function F({scale:e,translate:t},s){return s*e[0]+t[0]}function R({scale:e,translate:t},s){return t[1]-s*e[1]}function w(e,t,s){return e?t?s?T(e):Z(e):s?O(e):q(e):null}function q(e){const t=e.coords;return{x:t[0],y:t[1]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function Z(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function O(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function _(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function T(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?_:x}function E(e,t,s){if((0,o.Wi)(e))return null;const r=c(t,s),n=[];for(let t=0;t<e.coords.length;t+=r){const s=[];for(let n=0;n<r;n++)s.push(e.coords[t+n]);n.push(s)}return t?s?{points:n,hasZ:t,hasM:s}:{points:n,hasZ:t}:s?{points:n,hasM:s}:{points:n}}function M(e,t,s=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let n=0;for(const e of t.points)for(let t=0;t<s;t++)r[n++]=e[t];return e}function G(e,t,s){if(!e)return null;const r=c(t,s),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let s=0;s<e;s++){const e=[];for(let t=0;t<r;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?s?{paths:i,hasZ:t,hasM:s}:{paths:i,hasZ:t}:s?{paths:i,hasM:s}:{paths:i}}function P(e,t,s=c(t.hasZ,t.hasM)){const{lengths:r,coords:n}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<s;e++)n[o++]=t[e];r.push(e.length)}return e}function A(e,t,s){if(!e)return null;const r=c(t,s),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let s=0;s<e;s++){const e=[];for(let t=0;t<r;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?s?{rings:i,hasZ:t,hasM:s}:{rings:i,hasZ:t}:s?{rings:i,hasM:s}:{rings:i}}function C(e,t,s=t.hasZ,r=t.hasM){return function(e,t,s,r){const n=c(s,r),{lengths:o,coords:i}=e;let a=0;o.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<n;e++)i[a++]=t[e];o.push(e.length)}}(e,t.rings,s,r),e}const k=[],U=[];function j(e,t,s,r,n){k[0]=e;const[o]=J(U,k,t,s,r,n);return k.length=U.length=0,o}function J(e,t,s,n,i,u){if(e.length=0,!s){for(const s of t){const t=s.attributes[u];e.push(new a.ZP(null,s.attributes,null,t))}return e}switch(s){case"esriGeometryPoint":return function(e,t,s,r,n){const o=N(s,r);for(const s of t){const{geometry:t,attributes:r}=s;let i;t&&(i=o(new l.Z,t)),e.push(new a.ZP(i,r,null,r[n]))}return e}(e,t,n,i,u);case"esriGeometryMultipoint":return function(e,t,s,r,n){const o=c(s,r);for(const s of t){const t=s.geometry,r=s.attributes;let i;t&&(i=M(new l.Z,t,o)),e.push(new a.ZP(i,r,null,r[n]))}return e}(e,t,n,i,u);case"esriGeometryPolyline":return function(e,t,s,r,n){const o=c(s,r);for(const s of t){const t=s.geometry,r=s.attributes;let i;t&&(i=P(new l.Z,t,o)),e.push(new a.ZP(i,r,null,r[n]))}return e}(e,t,n,i,u);case"esriGeometryPolygon":return function(e,t,s,r,n){for(const i of t){const t=i.geometry,u=i.centroid,c=i.attributes;let d;t&&(d=C(new l.Z,t,s,r)),(0,o.pC)(u)?e.push(new a.ZP(d,c,x(new l.Z,u),c[n])):e.push(new a.ZP(d,c,null,c[n]))}return e}(e,t,n,i,u);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${s}'`)),e.length=0}return e}function L(e,t,s,r){U[0]=e,D(k,U,t,s,r);const n=k[0];return k.length=U.length=0,n}function Q(e,t,s){if((0,o.Wi)(e))return null;const n=new l.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==s&&(s=e.hasM),(0,i.wp)(e)?N(null!=t?t:null!=e.z,null!=s?s:null!=e.m)(n,e):(0,i.oU)(e)?C(n,e,t,s):(0,i.l9)(e)?P(n,e,c(t,s)):(0,i.aW)(e)?M(n,e,c(t,s)):void d.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function z(e,t,s,n){const i=e&&("coords"in e?e:e.geometry);if((0,o.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=q;return s&&n?e=T:s?e=Z:n&&(e=O),e(i)}case"esriGeometryMultipoint":return E(i,s,n);case"esriGeometryPolyline":return G(i,s,n);case"esriGeometryPolygon":return A(i,s,n);default:return void d.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}}function D(e,t,s,n,i){if(e.length=0,(0,o.Wi)(s))return function(e,t){for(const s of t)e.push({attributes:s.attributes});return e}(e,t);switch(s){case"esriGeometryPoint":return function(e,t,s,r){let n=q;s&&r?n=T:s?n=Z:r&&(n=O);for(const s of t){const{geometry:t,attributes:r}=s,i=(0,o.pC)(t)?n(t):null;e.push({attributes:r,geometry:i})}return e}(e,t,n,i);case"esriGeometryMultipoint":return function(e,t,s,r){for(const n of t){const{geometry:t,attributes:o}=n;let i;t&&(i=E(t,s,r)),e.push({attributes:o,geometry:i})}return e}(e,t,n,i);case"esriGeometryPolyline":return function(e,t,s,r){for(const n of t){const{geometry:t,attributes:i}=n;let a;(0,o.pC)(t)&&(a=G(t,s,r)),e.push({attributes:i,geometry:a})}return e}(e,t,n,i);case"esriGeometryPolygon":return function(e,t,s,r){for(const n of t){const{geometry:t,attributes:i,centroid:a}=n;let u;if((0,o.pC)(t)&&(u=A(t,s,r)),a){const t=q(a);e.push({attributes:i,centroid:t,geometry:u})}else e.push({attributes:i,geometry:u})}return e}(e,t,n,i);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${s}'`))}return e}function X(e){const{objectIdFieldName:t,spatialReference:s,transform:r,fields:n,hasM:o,hasZ:i,features:a,geometryType:u,exceededTransferLimit:l,uniqueIdField:c,queryGeometry:d,queryGeometryType:h}=e,p={features:D([],a,u,i,o),fields:n,geometryType:u,objectIdFieldName:t,spatialReference:s,uniqueIdField:c,queryGeometry:z(d,h,!1,!1)};return r&&(p.transform=r),l&&(p.exceededTransferLimit=l),o&&(p.hasM=o),i&&(p.hasZ=i),p}function W(e,t){const s=new u.Z,{hasM:n,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:c,exceededTransferLimit:h,transform:p,fields:f}=e;return f&&(s.fields=f),s.geometryType=c,s.objectIdFieldName=a||t,s.spatialReference=l,s.objectIdFieldName?(i&&J(s.features,i,c,o,n,s.objectIdFieldName),h&&(s.exceededTransferLimit=h),n&&(s.hasM=n),o&&(s.hasZ=o),p&&(s.transform=p),s):(d.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),s)}function $(e){const{transform:t,features:s,hasM:r,hasZ:n}=e;if(!t)return e;for(const e of s)(0,o.pC)(e.geometry)&&te(e.geometry,e.geometry,r,n,t),e.centroid&&te(e.centroid,e.centroid,r,n,t);return e.transform=null,e}function V(e,t){const{geometryType:s,features:r,hasM:n,hasZ:o}=t;if(!e)return t;for(let t=0;t<r.length;t++){const i=r[t],a=i.weakClone();a.geometry=new l.Z,B(a.geometry,i.geometry,n,o,s,e),i.centroid&&(a.centroid=new l.Z,B(a.centroid,i.centroid,n,o,"esriGeometryPoint",e)),r[t]=a}return t.transform=e,t}function B(e,t,s,r,n,i,a=s,u=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,o.Wi)(t)||!t.coords.length)return null;const l=h[n],{coords:d,lengths:p}=t,f=c(s,r),y=c(s&&a,r&&u),g=m(s,r,a,u);if(!p.length)return g(e.coords,d,0,0,b(i,d[0]),I(i,d[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=f,e;let F,R,w,q,x=0,Z=0,S=Z;for(const t of p){if(t<l)continue;let s=0;Z=S,w=F=b(i,d[x]),q=R=I(i,d[x+1]),g(e.coords,d,Z,x,w,q),s++,x+=f,Z+=y;for(let r=1;r<t;r++,x+=f)w=b(i,d[x]),q=I(i,d[x+1]),w===F&&q===R||(g(e.coords,d,Z,x,w-F,q-R),Z+=y,s++,F=w,R=q);s>=l&&(e.lengths.push(s),S=Z)}return e.coords.length=S,e.coords.length?e:null}function Y(e,t,s,r,n,o,i=s,a=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const u=h[n],{coords:l,lengths:d}=t,p=c(s,r),f=c(s&&i,r&&a),y=m(s,r,i,a);if(!d.length)return y(e.coords,l,0,0,l[0],l[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=p,e;let g=0;const b=o*o;for(const t of d){if(t<u){g+=t*p;continue}const s=e.coords.length/f,r=g,n=g+(t-1)*p;y(e.coords,l,e.coords.length,r,l[r],l[r+1]),K(e.coords,l,p,b,y,r,n),y(e.coords,l,e.coords.length,n,l[n],l[n+1]);const o=e.coords.length/f-s;o>=u?e.lengths.push(o):e.coords.length=s*f,g+=t*p}return e.coords.length?e:null}function H(e,t,s,r){const n=e[t],o=e[t+1],i=e[s],a=e[s+1],u=e[r],l=e[r+1];let c=i,d=a,h=u-c,p=l-d;if(0!==h||0!==p){const e=((n-c)*h+(o-d)*p)/(h*h+p*p);e>1?(c=u,d=l):e>0&&(c+=h*e,d+=p*e)}return h=n-c,p=o-d,h*h+p*p}function K(e,t,s,r,n,o,i){let a,u=r,l=0;for(let e=o+s;e<i;e+=s)a=H(t,e,o,i),a>u&&(l=e,u=a);u>r&&(l-o>s&&K(e,t,s,r,n,o,l),n(e,t,e.length,l,t[l],t[l+1]),i-l>s&&K(e,t,s,r,n,l,i))}function ee(e,t,s,r){if((0,o.Wi)(t)||!t.coords||!t.coords.length)return null;const n=c(s,r);let i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=n){const s=e[t],r=e[t+1];i=Math.min(i,s),u=Math.max(u,s),a=Math.min(a,r),l=Math.max(l,r)}}return e[0]=i,e[1]=a,e[2]=u,e[3]=l,e}function te(e,t,s,r,n){const{coords:o,lengths:i}=t,a=s?r?g:f:r?f:p,u=c(s,r);if(!o.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return a(e.coords,o,0,0,F(n,o[0]),R(n,o[1])),e!==t&&(e.lengths.length=0,e.coords.length=u),e;const[l,d]=n.scale;let h=0;for(let t=0;t<i.length;t++){const s=i[t];e.lengths[t]=s;let r=F(n,o[h]),c=R(n,o[h+1]);a(e.coords,o,h,h,r,c),h+=u;for(let t=1;t<s;t++,h+=u)r+=o[h]*l,c-=o[h+1]*d,a(e.coords,o,h,h,r,c)}return e!==t&&(e.lengths.length=i.length,e.coords.length=o.length),e}function se(e,t,s,r,n,o){const i=c(s,r),a=m(s,r,n,o),u=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1]);return e}function re(e,t,s,r){let n=0,o=e[r*t],i=e[r*(t+1)];for(let a=1;a<s;a++){const s=o+e[r*(t+a)],u=i+e[r*(t+a)+1],l=(s-o)*(u+i);o=s,i=u,n+=l}return.5*n}function ne(e,t){const{coords:s,lengths:r}=e;let n=0,o=0;for(let e=0;e<r.length;e++)o+=re(s,n,r[e],t),n+=e;return Math.abs(o)}function oe(e,t){if((0,o.Wi)(e))return null;const s=e.clone(),r=e.coords,n=e.lengths;let i=0;for(let e=0;e<n.length;e++){const o=n[e];let a=r[t*i],u=r[t*i+1];for(let e=1;e<o;e++){const n=a+r[t*(i+e)],o=u+r[t*(i+e)+1];s.coords[t*(i+e)]=n,s.coords[t*(i+e)+1]=o,a=n,u=o}i+=o}return s}},6502:(e,t,s)=>{s.r(t),s.d(t,{default:()=>O});var r=s(43697),n=(s(66577),s(38171)),o=s(3172),i=s(92835),a=s(20102),u=s(80442),l=s(35454),c=s(83379),d=s(70586),h=s(78286),p=s(95330),f=s(17452),y=s(5600),g=(s(67676),s(75215),s(92604),s(52525)),m=s(6570),b=s(33955),I=s(25278),F=s(30540),R=s(50459),w=s(27091),q=s(82971);const x=new l.Xn({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),Z=new Set(["Feature Layer","Table"]);let S=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,p.Ds)((async()=>{var e,t;await this.load();const s=null==(e=this.sourceJSON.editingInfo)?void 0:e.lastEditDate;if(null==s)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const r=s!==(null==(t=this.sourceJSON.editingInfo)?void 0:t.lastEditDate);return{dataChanged:r,updates:r?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,t)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:e}},parsedUrl:t,dynamicDataSource:s,infoFor3D:r,gdbVersion:n,spatialReference:o,fieldsIndex:i}=this.layer,a=(0,u.Z)("featurelayer-pbf")&&e&&(0,d.Wi)(r)?"pbf":"json";return new w.Z({url:t.path,format:a,fieldsIndex:i,infoFor3D:r,dynamicDataSource:s,gdbVersion:n,sourceSpatialReference:o})}async addAttachment(e,t){await this.load();const s=e.attributes[this.layer.objectIdField],r=this.layer.parsedUrl.path+"/"+s+"/addAttachment",n=this._getLayerRequestOptions(),i=this._getFormDataForAttachment(t,n.query);try{const e=await(0,o.default)(r,{body:i});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async updateAttachment(e,t,s){await this.load();const r=e.attributes[this.layer.objectIdField],n=this.layer.parsedUrl.path+"/"+r+"/updateAttachment",i=this._getLayerRequestOptions({query:{attachmentId:t}}),a=this._getFormDataForAttachment(s,i.query);try{const e=await(0,o.default)(n,{body:a});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async applyEdits(e,t){await this.load();const s=e.addFeatures.map(this._serializeFeature,this),r=e.updateFeatures.map(this._serializeFeature,this),n=this._getFeatureIds(e.deleteFeatures,null==t?void 0:t.globalIdUsed);(0,R.P)(s,r,this.layer.spatialReference);const i=[],a=[],u=[...e.deleteAttachments];for(const t of e.addAttachments)i.push(await this._serializeAttachment(t));for(const t of e.updateAttachments)a.push(await this._serializeAttachment(t));const l=i.length||a.length||u.length?{adds:i,updates:a,deletes:u}:null,c={gdbVersion:(null==t?void 0:t.gdbVersion)||this.layer.gdbVersion,rollbackOnFailure:null==t?void 0:t.rollbackOnFailureEnabled,useGlobalIds:null==t?void 0:t.globalIdUsed,returnEditMoment:null==t?void 0:t.returnEditMoment,usePreviousEditMoment:null==t?void 0:t.usePreviousEditMoment,sessionId:null==t?void 0:t.sessionId};null!=t&&t.returnServiceEditsOption?(c.edits=JSON.stringify([{id:this.layer.layerId,adds:s,updates:r,deletes:n,attachments:l}]),c.returnServiceEditsOption=x.toJSON(null==t?void 0:t.returnServiceEditsOption),c.returnServiceEditsInSourceSR=null==t?void 0:t.returnServiceEditsInSourceSR):(c.adds=s.length?JSON.stringify(s):null,c.updates=r.length?JSON.stringify(r):null,c.deletes=n.length?null!=t&&t.globalIdUsed?JSON.stringify(n):n.join(","):null,c.attachments=l&&JSON.stringify(l));const d=this._getLayerRequestOptions({method:"post",query:c}),h=null!=t&&t.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,p=await(0,o.default)(h+"/applyEdits",d);return this._createEditsResult(p)}async deleteAttachments(e,t){await this.load();const s=e.attributes[this.layer.objectIdField],r=this.layer.parsedUrl.path+"/"+s+"/deleteAttachments";try{return(await(0,o.default)(r,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:s,url:r}=this.layer,{data:n}=await(0,o.default)(`${r}/${s}`,t),{id:a,extent:u,fullExtent:l,timeExtent:c}=n,d=u||l;return{id:a,fullExtent:d&&m.Z.fromJSON(d),timeExtent:c&&i.Z.fromJSON({start:c[0],end:c[1]})}}))}async queryAttachments(e,t={}){const{parsedUrl:s}=this.layer,r=s.path;await this.load();const n=this._getLayerRequestOptions(t);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:t}=e,s=[];for(const e of t){const t=r+"/"+e+"/attachments";s.push((0,o.default)(t,n))}return Promise.all(s).then((e=>t.map(((t,s)=>({parentObjectId:t,attachmentInfos:e[s].data.attachmentInfos}))))).then((e=>(0,F.O)(e,r)))}return this.queryTask.executeAttachmentQuery(e,n)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...null==e?void 0:e.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:s}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=s}this.sourceJSON=this._patchServiceJSON(e);const s=e.type;if(!Z.has(s))throw new a.Z("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)}_patchServiceJSON(e){var t;if("Table"!==e.type&&e.geometryType&&(null==e||null==(t=e.drawingInfo)||!t.renderer)&&!e.defaultSymbol){const t=(0,I.bU)(e.geometryType).renderer;(0,h.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}_serializeFeature(e){const{geometry:t,attributes:s}=e;return(0,d.Wi)(t)?{attributes:s}:"mesh"===t.type||"extent"===t.type?null:{geometry:t.toJSON(),attributes:s}}async _serializeAttachment(e){const{feature:t,attachment:s}=e,{globalId:r,name:n,contentType:o,data:i,uploadId:a}=s,u={globalId:r,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),a)u.uploadId=a;else if(i){const e=await async function(e){return"string"==typeof e?(0,f.sJ)(e)||{data:e}:new Promise(((t,s)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t((0,f.sJ)(r.result)),r.onerror=e=>s(e)}))}(i);u.contentType=e.mediaType,u.data=e.data,i instanceof File&&(u.name=i.name)}return n&&(u.name=n),o&&(u.contentType=o),u}_getFeatureIds(e,t){const s=e[0];return s?this._canUseGlobalIds(t,e)?this._getGlobalIdsFromFeatureIdentifier(e):"objectId"in s?this._getObjectIdsFromFeatureIdentifier(e):this._getIdsFromFeatures(e):[]}_getIdsFromFeatures(e){const t=this.layer.objectIdField;return e.map((e=>e.attributes&&e.attributes[t]))}_canUseGlobalIds(e,t){return e&&"globalId"in t[0]}_getObjectIdsFromFeatureIdentifier(e){return e.map((e=>e.objectId))}_getGlobalIdsFromFeatureIdentifier(e){return e.map((e=>e.globalId))}_createEditsResult(e){var t;const s=e.data,{layerId:r}=this.layer,n=[];let o=null;if(Array.isArray(s))for(const e of s)n.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(o={addResults:e.addResults,updateResults:e.updateResults,deleteResults:e.deleteResults,attachments:e.attachments,editMoment:e.editMoment});else o=s;const i=null==(t=o)?void 0:t.attachments,a={addFeatureResults:o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:o.deleteResults?o.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(o.editMoment&&(a.editMoment=o.editMoment),n.length>0){a.editedFeatureResults=[];for(const e of n){const{adds:t,updates:s,deletes:r,spatialReference:n}=e.editedFeatures,o=n?new q.Z(n):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:(null==t?void 0:t.map((e=>this._createEditedFeature(e,o))))||[],updates:(null==s?void 0:s.map((e=>({original:this._createEditedFeature(e[0],o),current:this._createEditedFeature(e[1],o)}))))||[],deletes:(null==r?void 0:r.map((e=>this._createEditedFeature(e,o))))||[],spatialReference:o}})}}return a}_createEditedFeature(e,t){return new n.Z({attributes:e.attributes,geometry:(0,b.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new a.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const s=t.details.messages&&t.details.messages[0]||t.message,r=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new a.Z("feature-layer-source:attachment-failure",s,{code:r})}}_getFormDataForAttachment(e,t){const s=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(s)for(const e in t){const r=t[e];null!=r&&(s.set?s.set(e,r):s.append(e,r))}return s}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:s,dynamicDataSource:r}=this.layer;return{...e,query:{gdbVersion:s,layer:r?JSON.stringify({source:r}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}};(0,r._)([(0,y.Cb)()],S.prototype,"type",void 0),(0,r._)([(0,y.Cb)({constructOnly:!0})],S.prototype,"layer",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],S.prototype,"queryTask",null),S=(0,r._)([(0,g.j)("esri.layers.graphics.sources.FeatureLayerSource")],S);const O=S},25278:(e,t,s)=>{s.d(t,{MS:()=>c,Dm:()=>u,Hq:()=>l,bU:()=>a});var r=s(80442),n=s(22974),o=s(61159),i=s(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}function u(e,t){if((0,r.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this.${t} = null;`;for(const t in e)s+=`this${t.indexOf(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const r=new Function(s);return()=>new r}catch(s){return()=>({[t]:null,...e})}}function l(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5660],{38581:(e,t,s)=>{s.d(t,{aX:()=>R});var r=s(68773),n=s(20102),o=s(92604),i=s(70586),a=s(17332),u=s(58901),l=s(73913),c=s(8744),d=s(40488),h=(s(66577),s(3172)),p=s(17452),f=s(33955);const y=o.Z.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function m(e){return"polyline"===e[0].type}function b(e,t,s){if(t){const t=function(e,t){if(!(e instanceof u.Z||e instanceof a.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y.error(e),new n.Z(e)}const s=(0,l.x3)(e),r=[];for(const e of s){const s=[];r.push(s),s.push([e[0][0],e[0][1]]);for(let r=0;r<e.length-1;r++){const n=e[r][0],o=e[r][1],i=e[r+1][0],a=e[r+1][1],u=Math.sqrt((i-n)*(i-n)+(a-o)*(a-o)),l=(a-o)/u,c=(i-n)/u,d=u/t;if(d>1){for(let e=1;e<=d-1;e++){const r=e*t,i=c*r+n,a=l*r+o;s.push([i,a])}const e=(u+Math.floor(d-1)*t)/2,r=c*e+n,i=l*e+o;s.push([r,i])}s.push([i,a])}}return function(e){return"polygon"===e.type}(e)?new a.Z({rings:r,spatialReference:e.spatialReference}):new u.Z({paths:r,spatialReference:e.spatialReference})}(e,1e6);e=(0,d.Sx)(t,!0)}return s&&(e=(0,l.Sy)(e,s)),e}function I(e,t,s){if(Array.isArray(e)){const r=e[0];if(r>t){const s=(0,l.XZ)(r,t);e[0]=r+s*(-2*t)}else if(r<s){const t=(0,l.XZ)(r,s);e[0]=r+t*(-2*s)}}else{const r=e.x;if(r>t){const s=(0,l.XZ)(r,t);e=e.clone().offset(s*(-2*t),0)}else if(r<s){const t=(0,l.XZ)(r,s);e=e.clone().offset(t*(-2*s),0)}}return e}function F(e,t){let s=-1;for(let r=0;r<t.cutIndexes.length;r++){const n=t.cutIndexes[r],o=t.geometries[r],i=(0,l.x3)(o);for(let e=0;e<i.length;e++){const t=i[e];t.some((s=>{if(s[0]<180)return!0;{let s=0;for(let e=0;e<t.length;e++){const r=t[e][0];s=r>s?r:s}s=Number(s.toFixed(9));const r=-360*(0,l.XZ)(s,180);for(let s=0;s<t.length;s++){const t=o.getPoint(e,s);o.setPoint(e,s,t.clone().offset(r,0))}return!0}}))}if(n===s){if(g(e))for(const t of(0,l.x3)(o))e[n]=e[n].addRing(t);else if(m(e))for(const t of(0,l.x3)(o))e[n]=e[n].addPath(t)}else s=n,e[n]=o}return e}async function R(e,t,s){if(!Array.isArray(e))return R([e],t);const n=t?t.url:r.Z.geometryServiceUrl;let o,y,g,m,w,q,Z,x,S=0;const _=[],O=[];for(const t of e)if((0,i.Wi)(t))O.push(t);else if(o||(o=t.spatialReference,y=(0,c.C5)(o),g=o.isWebMercator,q=g?102100:4326,m=l.UZ[q].maxX,w=l.UZ[q].minX,Z=l.UZ[q].plus180Line,x=l.UZ[q].minus180Line),y)if("mesh"===t.type)O.push(t);else if("point"===t.type)O.push(I(t.clone(),m,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>I(e,m,w))),O.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,y);O.push(e.rings?new a.Z(e):e)}else if(t.extent){const e=t.extent,s=(0,l.XZ)(e.xmin,w)*(2*m);let r=0===s?t.clone():(0,l.Sy)(t.clone(),s);e.offset(s,0),e.intersects(Z)&&e.xmax!==m?(S=e.xmax>S?e.xmax:S,r=b(r,g),_.push(r),O.push("cut")):e.intersects(x)&&e.xmin!==w?(S=e.xmax*(2*m)>S?e.xmax*(2*m):S,r=b(r,g,360),_.push(r),O.push("cut")):O.push(r)}else O.push(t.clone());else O.push(t);let T=(0,l.XZ)(S,m),v=-90;const N=T,E=new u.Z;for(;T>0;){const e=360*T-180;E.addPath([[e,v],[e,-1*v]]),v*=-1,T--}if(_.length>0&&N>0){const t=F(_,await async function(e,t,s,r){const n="string"==typeof e?(0,p.mN)(e):e,o=t[0].spatialReference,i={...r,query:{...n.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,f.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(s)}},a=await(0,h.default)(n.path+"/cut",i),{cutIndexes:u,geometries:l=[]}=a.data;return{cutIndexes:u,geometries:l.map((e=>{const t=(0,f.im)(e);return t.spatialReference=o,t}))}}(n,_,E,s)),r=[],o=[];for(let s=0;s<O.length;s++){const n=O[s];if("cut"!==n)o.push(n);else{const n=t.shift(),a=e[s];(0,i.pC)(a)&&"polygon"===a.type&&a.rings&&a.rings.length>1&&n.rings.length>=a.rings.length?(r.push(n),o.push("simplify")):o.push(g?(0,d.$)(n):n)}}if(!r.length)return o;const a=await async function(e,t,s){const r="string"==typeof e?(0,p.mN)(e):e,n=t[0].spatialReference,o=(0,f.Ji)(t[0]),i={...s,query:{...r.query,f:"json",sr:n.wkid?n.wkid:JSON.stringify(n),geometries:JSON.stringify((a=t,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((e=>e.toJSON()))}))}};var a;return function(e,t,s){const r=(0,f.q9)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=s,t}))}((await(0,h.default)(r.path+"/simplify",i)).data,o,n)}(n,r,s),u=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?u.push(t):u.push(g?(0,d.$)(a.shift()):a.shift())}return u}const M=[];for(let e=0;e<O.length;e++){const t=O[e];if("cut"!==t)M.push(t);else{const e=_.shift();M.push(!0===g?(0,d.$)(e):e)}}return Promise.resolve(M)}},73913:(e,t,s)=>{s.d(t,{UZ:()=>i,x3:()=>l,XZ:()=>a,Sy:()=>u});var r=s(58901),n=s(82971),o=s(33955);const i={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){const s=l(e);for(const e of s)for(const s of e)s[0]+=t;return e}function l(e){return(0,o.oU)(e)?e.rings:e.paths}},70272:(e,t,s)=>{s.d(t,{nd:()=>i,ZP:()=>n,S6:()=>o});var r=s(70586);class n{constructor(e=null,t={},s,r){this.geometry=e,this.attributes=t,this.centroid=s,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function o(e){return!((0,r.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends n{}},44876:(e,t,s)=>{s.d(t,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,s)=>{s.d(t,{Z:()=>r});class r{constructor(e=[],t=[],s=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=s}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let s=0;s<this.lengths.length;s++){const r=this.lengths[s];for(let s=0;s<r;s++)e(this.coords[2*(s+t)],this.coords[2*(s+t)+1]);t+=r}}clone(e){return e?(e.set(this.coords),new r(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},61159:(e,t,s)=>{s.d(t,{g:()=>r});const r={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},98732:(e,t,s)=>{s.d(t,{XA:()=>j,h_:()=>W,Yn:()=>J,GH:()=>Q,Uy:()=>C,EI:()=>L,cn:()=>X,di:()=>z,Iv:()=>E,fQ:()=>w,eG:()=>A,J6:()=>G,oB:()=>oe,zj:()=>Y,$:()=>ee,lz:()=>ne,RZ:()=>V,Nh:()=>B,Jd:()=>b,IN:()=>I,hY:()=>se,lM:()=>$,$g:()=>te});var r=s(20102),n=s(92604),o=s(70586),i=s(33955),a=s(70272),u=s(44876),l=s(5428);function c(e,t){return e?t?4:3:t?3:2}const d=n.Z.getLogger("esri.tasks.support.optimizedFeatureSet"),h={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},p=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o},f=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o,e[s+2]=t[r+2]},y=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o,e[s+2]=t[r+3]},g=(e,t,s,r,n,o)=>{e[s]=n,e[s+1]=o,e[s+2]=t[r+2],e[s+3]=t[r+3]};function m(e,t,s,r){if(e){if(s)return t&&r?g:f;if(t&&r)return y}else if(t&&r)return f;return p}function b({scale:e,translate:t},s){return Math.round((s-t[0])/e[0])}function I({scale:e,translate:t},s){return Math.round((t[1]-s)/e[1])}function F({scale:e,translate:t},s){return s*e[0]+t[0]}function R({scale:e,translate:t},s){return t[1]-s*e[1]}function w(e,t,s){return e?t?s?T(e):x(e):s?_(e):q(e):null}function q(e){const t=e.coords;return{x:t[0],y:t[1]}}function Z(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function x(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function _(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function O(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function T(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function v(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function N(e,t){return e&&t?v:e?S:t?O:Z}function E(e,t,s){if((0,o.Wi)(e))return null;const r=c(t,s),n=[];for(let t=0;t<e.coords.length;t+=r){const s=[];for(let n=0;n<r;n++)s.push(e.coords[t+n]);n.push(s)}return t?s?{points:n,hasZ:t,hasM:s}:{points:n,hasZ:t}:s?{points:n,hasM:s}:{points:n}}function M(e,t,s=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let n=0;for(const e of t.points)for(let t=0;t<s;t++)r[n++]=e[t];return e}function G(e,t,s){if(!e)return null;const r=c(t,s),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let s=0;s<e;s++){const e=[];for(let t=0;t<r;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?s?{paths:i,hasZ:t,hasM:s}:{paths:i,hasZ:t}:s?{paths:i,hasM:s}:{paths:i}}function P(e,t,s=c(t.hasZ,t.hasM)){const{lengths:r,coords:n}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<s;e++)n[o++]=t[e];r.push(e.length)}return e}function A(e,t,s){if(!e)return null;const r=c(t,s),{coords:n,lengths:o}=e,i=[];let a=0;for(const e of o){const t=[];for(let s=0;s<e;s++){const e=[];for(let t=0;t<r;t++)e.push(n[a++]);t.push(e)}i.push(t)}return t?s?{rings:i,hasZ:t,hasM:s}:{rings:i,hasZ:t}:s?{rings:i,hasM:s}:{rings:i}}function C(e,t,s=t.hasZ,r=t.hasM){return function(e,t,s,r){const n=c(s,r),{lengths:o,coords:i}=e;let a=0;o.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<n;e++)i[a++]=t[e];o.push(e.length)}}(e,t.rings,s,r),e}const k=[],U=[];function j(e,t,s,r,n){k[0]=e;const[o]=J(U,k,t,s,r,n);return k.length=U.length=0,o}function J(e,t,s,n,i,u){if(e.length=0,!s){for(const s of t){const t=s.attributes[u];e.push(new a.ZP(null,s.attributes,null,t))}return e}switch(s){case"esriGeometryPoint":return function(e,t,s,r,n){const o=N(s,r);for(const s of t){const{geometry:t,attributes:r}=s;let i;t&&(i=o(new l.Z,t)),e.push(new a.ZP(i,r,null,r[n]))}return e}(e,t,n,i,u);case"esriGeometryMultipoint":return function(e,t,s,r,n){const o=c(s,r);for(const s of t){const t=s.geometry,r=s.attributes;let i;t&&(i=M(new l.Z,t,o)),e.push(new a.ZP(i,r,null,r[n]))}return e}(e,t,n,i,u);case"esriGeometryPolyline":return function(e,t,s,r,n){const o=c(s,r);for(const s of t){const t=s.geometry,r=s.attributes;let i;t&&(i=P(new l.Z,t,o)),e.push(new a.ZP(i,r,null,r[n]))}return e}(e,t,n,i,u);case"esriGeometryPolygon":return function(e,t,s,r,n){for(const i of t){const t=i.geometry,u=i.centroid,c=i.attributes;let d;t&&(d=C(new l.Z,t,s,r)),(0,o.pC)(u)?e.push(new a.ZP(d,c,Z(new l.Z,u),c[n])):e.push(new a.ZP(d,c,null,c[n]))}return e}(e,t,n,i,u);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${s}'`)),e.length=0}return e}function L(e,t,s,r){U[0]=e,D(k,U,t,s,r);const n=k[0];return k.length=U.length=0,n}function Q(e,t,s){if((0,o.Wi)(e))return null;const n=new l.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==s&&(s=e.hasM),(0,i.wp)(e)?N(null!=t?t:null!=e.z,null!=s?s:null!=e.m)(n,e):(0,i.oU)(e)?C(n,e,t,s):(0,i.l9)(e)?P(n,e,c(t,s)):(0,i.aW)(e)?M(n,e,c(t,s)):void d.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function z(e,t,s,n){const i=e&&("coords"in e?e:e.geometry);if((0,o.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=q;return s&&n?e=T:s?e=x:n&&(e=_),e(i)}case"esriGeometryMultipoint":return E(i,s,n);case"esriGeometryPolyline":return G(i,s,n);case"esriGeometryPolygon":return A(i,s,n);default:return void d.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}}function D(e,t,s,n,i){if(e.length=0,(0,o.Wi)(s))return function(e,t){for(const s of t)e.push({attributes:s.attributes});return e}(e,t);switch(s){case"esriGeometryPoint":return function(e,t,s,r){let n=q;s&&r?n=T:s?n=x:r&&(n=_);for(const s of t){const{geometry:t,attributes:r}=s,i=(0,o.pC)(t)?n(t):null;e.push({attributes:r,geometry:i})}return e}(e,t,n,i);case"esriGeometryMultipoint":return function(e,t,s,r){for(const n of t){const{geometry:t,attributes:o}=n;let i;t&&(i=E(t,s,r)),e.push({attributes:o,geometry:i})}return e}(e,t,n,i);case"esriGeometryPolyline":return function(e,t,s,r){for(const n of t){const{geometry:t,attributes:i}=n;let a;(0,o.pC)(t)&&(a=G(t,s,r)),e.push({attributes:i,geometry:a})}return e}(e,t,n,i);case"esriGeometryPolygon":return function(e,t,s,r){for(const n of t){const{geometry:t,attributes:i,centroid:a}=n;let u;if((0,o.pC)(t)&&(u=A(t,s,r)),a){const t=q(a);e.push({attributes:i,centroid:t,geometry:u})}else e.push({attributes:i,geometry:u})}return e}(e,t,n,i);default:d.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${s}'`))}return e}function X(e){const{objectIdFieldName:t,spatialReference:s,transform:r,fields:n,hasM:o,hasZ:i,features:a,geometryType:u,exceededTransferLimit:l,uniqueIdField:c,queryGeometry:d,queryGeometryType:h}=e,p={features:D([],a,u,i,o),fields:n,geometryType:u,objectIdFieldName:t,spatialReference:s,uniqueIdField:c,queryGeometry:z(d,h,!1,!1)};return r&&(p.transform=r),l&&(p.exceededTransferLimit=l),o&&(p.hasM=o),i&&(p.hasZ=i),p}function W(e,t){const s=new u.Z,{hasM:n,hasZ:o,features:i,objectIdFieldName:a,spatialReference:l,geometryType:c,exceededTransferLimit:h,transform:p,fields:f}=e;return f&&(s.fields=f),s.geometryType=c,s.objectIdFieldName=a||t,s.spatialReference=l,s.objectIdFieldName?(i&&J(s.features,i,c,o,n,s.objectIdFieldName),h&&(s.exceededTransferLimit=h),n&&(s.hasM=n),o&&(s.hasZ=o),p&&(s.transform=p),s):(d.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),s)}function $(e){const{transform:t,features:s,hasM:r,hasZ:n}=e;if(!t)return e;for(const e of s)(0,o.pC)(e.geometry)&&te(e.geometry,e.geometry,r,n,t),e.centroid&&te(e.centroid,e.centroid,r,n,t);return e.transform=null,e}function V(e,t){const{geometryType:s,features:r,hasM:n,hasZ:o}=t;if(!e)return t;for(let t=0;t<r.length;t++){const i=r[t],a=i.weakClone();a.geometry=new l.Z,B(a.geometry,i.geometry,n,o,s,e),i.centroid&&(a.centroid=new l.Z,B(a.centroid,i.centroid,n,o,"esriGeometryPoint",e)),r[t]=a}return t.transform=e,t}function B(e,t,s,r,n,i,a=s,u=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,o.Wi)(t)||!t.coords.length)return null;const l=h[n],{coords:d,lengths:p}=t,f=c(s,r),y=c(s&&a,r&&u),g=m(s,r,a,u);if(!p.length)return g(e.coords,d,0,0,b(i,d[0]),I(i,d[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=f,e;let F,R,w,q,Z=0,x=0,S=x;for(const t of p){if(t<l)continue;let s=0;x=S,w=F=b(i,d[Z]),q=R=I(i,d[Z+1]),g(e.coords,d,x,Z,w,q),s++,Z+=f,x+=y;for(let r=1;r<t;r++,Z+=f)w=b(i,d[Z]),q=I(i,d[Z+1]),w===F&&q===R||(g(e.coords,d,x,Z,w-F,q-R),x+=y,s++,F=w,R=q);s>=l&&(e.lengths.push(s),S=x)}return e.coords.length=S,e.coords.length?e:null}function Y(e,t,s,r,n,o,i=s,a=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const u=h[n],{coords:l,lengths:d}=t,p=c(s,r),f=c(s&&i,r&&a),y=m(s,r,i,a);if(!d.length)return y(e.coords,l,0,0,l[0],l[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=p,e;let g=0;const b=o*o;for(const t of d){if(t<u){g+=t*p;continue}const s=e.coords.length/f,r=g,n=g+(t-1)*p;y(e.coords,l,e.coords.length,r,l[r],l[r+1]),K(e.coords,l,p,b,y,r,n),y(e.coords,l,e.coords.length,n,l[n],l[n+1]);const o=e.coords.length/f-s;o>=u?e.lengths.push(o):e.coords.length=s*f,g+=t*p}return e.coords.length?e:null}function H(e,t,s,r){const n=e[t],o=e[t+1],i=e[s],a=e[s+1],u=e[r],l=e[r+1];let c=i,d=a,h=u-c,p=l-d;if(0!==h||0!==p){const e=((n-c)*h+(o-d)*p)/(h*h+p*p);e>1?(c=u,d=l):e>0&&(c+=h*e,d+=p*e)}return h=n-c,p=o-d,h*h+p*p}function K(e,t,s,r,n,o,i){let a,u=r,l=0;for(let e=o+s;e<i;e+=s)a=H(t,e,o,i),a>u&&(l=e,u=a);u>r&&(l-o>s&&K(e,t,s,r,n,o,l),n(e,t,e.length,l,t[l],t[l+1]),i-l>s&&K(e,t,s,r,n,l,i))}function ee(e,t,s,r){if((0,o.Wi)(t)||!t.coords||!t.coords.length)return null;const n=c(s,r);let i=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=n){const s=e[t],r=e[t+1];i=Math.min(i,s),u=Math.max(u,s),a=Math.min(a,r),l=Math.max(l,r)}}return e[0]=i,e[1]=a,e[2]=u,e[3]=l,e}function te(e,t,s,r,n){const{coords:o,lengths:i}=t,a=s?r?g:f:r?f:p,u=c(s,r);if(!o.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return a(e.coords,o,0,0,F(n,o[0]),R(n,o[1])),e!==t&&(e.lengths.length=0,e.coords.length=u),e;const[l,d]=n.scale;let h=0;for(let t=0;t<i.length;t++){const s=i[t];e.lengths[t]=s;let r=F(n,o[h]),c=R(n,o[h+1]);a(e.coords,o,h,h,r,c),h+=u;for(let t=1;t<s;t++,h+=u)r+=o[h]*l,c-=o[h+1]*d,a(e.coords,o,h,h,r,c)}return e!==t&&(e.lengths.length=i.length,e.coords.length=o.length),e}function se(e,t,s,r,n,o){const i=c(s,r),a=m(s,r,n,o),u=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1]);return e}function re(e,t,s,r){let n=0,o=e[r*t],i=e[r*(t+1)];for(let a=1;a<s;a++){const s=o+e[r*(t+a)],u=i+e[r*(t+a)+1],l=(s-o)*(u+i);o=s,i=u,n+=l}return.5*n}function ne(e,t){const{coords:s,lengths:r}=e;let n=0,o=0;for(let e=0;e<r.length;e++)o+=re(s,n,r[e],t),n+=e;return Math.abs(o)}function oe(e,t){if((0,o.Wi)(e))return null;const s=e.clone(),r=e.coords,n=e.lengths;let i=0;for(let e=0;e<n.length;e++){const o=n[e];let a=r[t*i],u=r[t*i+1];for(let e=1;e<o;e++){const n=a+r[t*(i+e)],o=u+r[t*(i+e)+1];s.coords[t*(i+e)]=n,s.coords[t*(i+e)+1]=o,a=n,u=o}i+=o}return s}},6502:(e,t,s)=>{s.r(t),s.d(t,{default:()=>_});var r=s(43697),n=(s(66577),s(38171)),o=s(3172),i=s(92835),a=s(20102),u=s(80442),l=s(35454),c=s(83379),d=s(70586),h=s(78286),p=s(95330),f=s(17452),y=s(5600),g=(s(67676),s(75215),s(92604),s(52525)),m=s(6570),b=s(33955),I=s(25278),F=s(30540),R=s(50459),w=s(27091),q=s(82971);const Z=new l.Xn({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),x=new Set(["Feature Layer","Table"]);let S=class extends c.Z{constructor(){super(...arguments),this.type="feature-layer",this.refresh=(0,p.Ds)((async()=>{var e,t;await this.load();const s=null==(e=this.sourceJSON.editingInfo)?void 0:e.lastEditDate;if(null==s)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}const r=s!==(null==(t=this.sourceJSON.editingInfo)?void 0:t.lastEditDate);return{dataChanged:r,updates:r?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}))}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this._fetchService(this.layer.sourceJSON,t)),Promise.resolve(this)}get queryTask(){const{capabilities:{query:{supportsFormatPBF:e}},parsedUrl:t,dynamicDataSource:s,infoFor3D:r,gdbVersion:n,spatialReference:o,fieldsIndex:i}=this.layer,a=(0,u.Z)("featurelayer-pbf")&&e&&(0,d.Wi)(r)?"pbf":"json";return new w.Z({url:t.path,format:a,fieldsIndex:i,infoFor3D:r,dynamicDataSource:s,gdbVersion:n,sourceSpatialReference:o})}async addAttachment(e,t){await this.load();const s=e.attributes[this.layer.objectIdField],r=this.layer.parsedUrl.path+"/"+s+"/addAttachment",n=this._getLayerRequestOptions(),i=this._getFormDataForAttachment(t,n.query);try{const e=await(0,o.default)(r,{body:i});return this._createFeatureEditResult(e.data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}async updateAttachment(e,t,s){await this.load();const r=e.attributes[this.layer.objectIdField],n=this.layer.parsedUrl.path+"/"+r+"/updateAttachment",i=this._getLayerRequestOptions({query:{attachmentId:t}}),a=this._getFormDataForAttachment(s,i.query);try{const e=await(0,o.default)(n,{body:a});return this._createFeatureEditResult(e.data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(r,e)}}async applyEdits(e,t){await this.load();const s=e.addFeatures.map(this._serializeFeature,this),r=e.updateFeatures.map(this._serializeFeature,this),n=this._getFeatureIds(e.deleteFeatures,null==t?void 0:t.globalIdUsed);(0,R.P)(s,r,this.layer.spatialReference);const i=[],a=[],u=[...e.deleteAttachments];for(const t of e.addAttachments)i.push(await this._serializeAttachment(t));for(const t of e.updateAttachments)a.push(await this._serializeAttachment(t));const l=i.length||a.length||u.length?{adds:i,updates:a,deletes:u}:null,c={gdbVersion:(null==t?void 0:t.gdbVersion)||this.layer.gdbVersion,rollbackOnFailure:null==t?void 0:t.rollbackOnFailureEnabled,useGlobalIds:null==t?void 0:t.globalIdUsed,returnEditMoment:null==t?void 0:t.returnEditMoment,usePreviousEditMoment:null==t?void 0:t.usePreviousEditMoment,sessionId:null==t?void 0:t.sessionId};null!=t&&t.returnServiceEditsOption?(c.edits=JSON.stringify([{id:this.layer.layerId,adds:s,updates:r,deletes:n,attachments:l}]),c.returnServiceEditsOption=Z.toJSON(null==t?void 0:t.returnServiceEditsOption),c.returnServiceEditsInSourceSR=null==t?void 0:t.returnServiceEditsInSourceSR):(c.adds=s.length?JSON.stringify(s):null,c.updates=r.length?JSON.stringify(r):null,c.deletes=n.length?null!=t&&t.globalIdUsed?JSON.stringify(n):n.join(","):null,c.attachments=l&&JSON.stringify(l));const d=this._getLayerRequestOptions({method:"post",query:c}),h=null!=t&&t.returnServiceEditsOption?this.layer.url:this.layer.parsedUrl.path,p=await(0,o.default)(h+"/applyEdits",d);return this._createEditsResult(p)}async deleteAttachments(e,t){await this.load();const s=e.attributes[this.layer.objectIdField],r=this.layer.parsedUrl.path+"/"+s+"/deleteAttachments";try{return(await(0,o.default)(r,this._getLayerRequestOptions({query:{attachmentIds:t.join(",")},method:"post"}))).data.deleteAttachmentResults.map(this._createFeatureEditResult)}catch(e){throw this._createAttachmentErrorResult(s,e)}}fetchRecomputedExtents(e={}){const t=e.signal;return this.load({signal:t}).then((async()=>{const t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:s,url:r}=this.layer,{data:n}=await(0,o.default)(`${r}/${s}`,t),{id:a,extent:u,fullExtent:l,timeExtent:c}=n,d=u||l;return{id:a,fullExtent:d&&m.Z.fromJSON(d),timeExtent:c&&i.Z.fromJSON({start:c[0],end:c[1]})}}))}async queryAttachments(e,t={}){const{parsedUrl:s}=this.layer,r=s.path;await this.load();const n=this._getLayerRequestOptions(t);if(!this.layer.get("capabilities.operations.supportsQueryAttachments")){const{objectIds:t}=e,s=[];for(const e of t){const t=r+"/"+e+"/attachments";s.push((0,o.default)(t,n))}return Promise.all(s).then((e=>t.map(((t,s)=>({parentObjectId:t,attachmentInfos:e[s].data.attachmentInfos}))))).then((e=>(0,F.O)(e,r)))}return this.queryTask.executeAttachmentQuery(e,n)}async queryFeatures(e,t){return await this.load(),this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}_createRequestQueryOptions(e){const t={...this.layer.customParameters,token:this.layer.apiKey,...null==e?void 0:e.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){const{data:s}=await(0,o.default)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:(0,u.Z)("featurelayer-advanced-symbols")?{returnAdvancedSymbols:!0}:{},signal:t}));e=s}this.sourceJSON=this._patchServiceJSON(e);const s=e.type;if(!x.has(s))throw new a.Z("feature-layer-source:unsupported-type",`Source type "${s}" is not supported`)}_patchServiceJSON(e){var t;if("Table"!==e.type&&e.geometryType&&(null==e||null==(t=e.drawingInfo)||!t.renderer)&&!e.defaultSymbol){const t=(0,I.bU)(e.geometryType).renderer;(0,h.RB)("drawingInfo.renderer",t,e)}return"esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),e}_serializeFeature(e){const{geometry:t,attributes:s}=e;return(0,d.Wi)(t)?{attributes:s}:"mesh"===t.type||"extent"===t.type?null:{geometry:t.toJSON(),attributes:s}}async _serializeAttachment(e){const{feature:t,attachment:s}=e,{globalId:r,name:n,contentType:o,data:i,uploadId:a}=s,u={globalId:r,parentGlobalId:null,contentType:null,name:null,uploadId:null,data:null};if(t&&(u.parentGlobalId="attributes"in t?t.attributes&&t.attributes[this.layer.globalIdField]:t.globalId),a)u.uploadId=a;else if(i){const e=await async function(e){return"string"==typeof e?(0,f.sJ)(e)||{data:e}:new Promise(((t,s)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t((0,f.sJ)(r.result)),r.onerror=e=>s(e)}))}(i);u.contentType=e.mediaType,u.data=e.data,i instanceof File&&(u.name=i.name)}return n&&(u.name=n),o&&(u.contentType=o),u}_getFeatureIds(e,t){const s=e[0];return s?this._canUseGlobalIds(t,e)?this._getGlobalIdsFromFeatureIdentifier(e):"objectId"in s?this._getObjectIdsFromFeatureIdentifier(e):this._getIdsFromFeatures(e):[]}_getIdsFromFeatures(e){const t=this.layer.objectIdField;return e.map((e=>e.attributes&&e.attributes[t]))}_canUseGlobalIds(e,t){return e&&"globalId"in t[0]}_getObjectIdsFromFeatureIdentifier(e){return e.map((e=>e.objectId))}_getGlobalIdsFromFeatureIdentifier(e){return e.map((e=>e.globalId))}_createEditsResult(e){var t;const s=e.data,{layerId:r}=this.layer,n=[];let o=null;if(Array.isArray(s))for(const e of s)n.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(o={addResults:e.addResults,updateResults:e.updateResults,deleteResults:e.deleteResults,attachments:e.attachments,editMoment:e.editMoment});else o=s;const i=null==(t=o)?void 0:t.attachments,a={addFeatureResults:o.addResults?o.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:o.updateResults?o.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:o.deleteResults?o.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:i&&i.addResults?i.addResults.map(this._createFeatureEditResult,this):[],updateAttachmentResults:i&&i.updateResults?i.updateResults.map(this._createFeatureEditResult,this):[],deleteAttachmentResults:i&&i.deleteResults?i.deleteResults.map(this._createFeatureEditResult,this):[]};if(o.editMoment&&(a.editMoment=o.editMoment),n.length>0){a.editedFeatureResults=[];for(const e of n){const{adds:t,updates:s,deletes:r,spatialReference:n}=e.editedFeatures,o=n?new q.Z(n):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:{adds:(null==t?void 0:t.map((e=>this._createEditedFeature(e,o))))||[],updates:(null==s?void 0:s.map((e=>({original:this._createEditedFeature(e[0],o),current:this._createEditedFeature(e[1],o)}))))||[],deletes:(null==r?void 0:r.map((e=>this._createEditedFeature(e,o))))||[],spatialReference:o}})}}return a}_createEditedFeature(e,t){return new n.Z({attributes:e.attributes,geometry:(0,b.im)({...e.geometry,spatialReference:t})})}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new a.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_createAttachmentErrorResult(e,t){const s=t.details.messages&&t.details.messages[0]||t.message,r=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new a.Z("feature-layer-source:attachment-failure",s,{code:r})}}_getFormDataForAttachment(e,t){const s=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(s)for(const e in t){const r=t[e];null!=r&&(s.set?s.set(e,r):s.append(e,r))}return s}_getLayerRequestOptions(e={}){const{parsedUrl:t,gdbVersion:s,dynamicDataSource:r}=this.layer;return{...e,query:{gdbVersion:s,layer:r?JSON.stringify({source:r}):void 0,...t.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}};(0,r._)([(0,y.Cb)()],S.prototype,"type",void 0),(0,r._)([(0,y.Cb)({constructOnly:!0})],S.prototype,"layer",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],S.prototype,"queryTask",null),S=(0,r._)([(0,g.j)("esri.layers.graphics.sources.FeatureLayerSource")],S);const _=S},25278:(e,t,s)=>{s.d(t,{MS:()=>c,Dm:()=>u,Hq:()=>l,bU:()=>a});var r=s(80442),n=s(22974),o=s(61159),i=s(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.I4:"esriGeometryPolyline"===e?i.ET:i.lF}}}function u(e,t){if((0,r.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this.${t} = null;`;for(const t in e)s+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const r=new Function(s);return()=>new r}catch(s){return()=>({[t]:null,...e})}}function l(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}}}]);
|