@arcgis/core 4.25.0-next.20221103 → 4.25.0-next.20221104
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/1d00ffb8c70f69ee5080.js +1 -0
- package/assets/esri/core/workers/chunks/211ad79ff0b187c52449.js +1 -0
- package/assets/esri/core/workers/chunks/284efc85d5716fadea7b.js +1 -0
- package/assets/esri/core/workers/chunks/33ea3449d32ac21adc91.js +1 -0
- package/assets/esri/core/workers/chunks/{b6f14ba8a33943ce3f27.js → 62edaa7821034031e1b5.js} +1 -1
- package/assets/esri/core/workers/chunks/{c630850976921f6740cb.js → 688a25a0a9e8d306db6f.js} +1 -1
- package/assets/esri/core/workers/chunks/{2296ef6d8d67ec2be2c6.js → 83c28dd2b91a88539b9b.js} +1 -1
- package/assets/esri/core/workers/chunks/{055f7719dbafaa26af2e.js → 952a5983cf13247e4f95.js} +1 -1
- package/assets/esri/core/workers/chunks/{f2eceff0b2bb765f30b9.js → 9ab6855b8d5f9a41e23c.js} +1 -1
- package/assets/esri/core/workers/chunks/bdd86772994515142cc7.js +1 -0
- package/assets/esri/core/workers/chunks/c965dece40dcf4931c11.js +1 -0
- package/assets/esri/core/workers/chunks/{7b90d3440324bd077d07.js → d9d220622f5e2a15184a.js} +1 -1
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +2 -11
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/core/fontUtils.js +5 -0
- package/interfaces.d.ts +34 -13
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/graphics/data/AttributesBuilder.js +1 -1
- package/package.json +1 -1
- package/smartMapping/heuristics/binLevel.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/symbols/support/previewWebStyleSymbol.js +1 -1
- package/views/2d/engine/webgl/TextureManager.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
- package/views/2d/layers/features/sources/DataTileSource.js +1 -1
- package/views/2d/layers/features/sources/SnapshotFeatureSource.js +1 -1
- package/webscene/Slide.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/FloorFilter.js +1 -1
- package/assets/esri/core/workers/chunks/0e0179922ca4d04acb2d.js +0 -1
- package/assets/esri/core/workers/chunks/179304675af3bacce000.js +0 -1
- package/assets/esri/core/workers/chunks/30f167258a3a29a902b1.js +0 -1
- package/assets/esri/core/workers/chunks/7255cc6ecdcac58d3f9e.js +0 -1
- package/assets/esri/core/workers/chunks/7c54c20993e3d33dd64d.js +0 -1
- package/assets/esri/core/workers/chunks/f31a288e175533a6af50.js +0 -1
- package/views/2d/engine/webgl/fontUtils.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(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 i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(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,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._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 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,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}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)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>f,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>u,zG:()=>c});var r=n(70586),o=n(77734);function s(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}function i(e,t){let n=e.length!==t.length;n&&(e.length=t.length);for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function f(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function u(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 d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";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 s(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 s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",n.includes("Konqueror")?r:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("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,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.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((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=n(70586),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(f(e))return e.map(a);if(u(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(f(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function f(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.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;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function b(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function f(e,t){return r(e)?e:t}function u(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>u,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>f,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(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 c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.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]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>P,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>u,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>A,gx:()=>S,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(u(e))throw c(t)}function f(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function u(e){const t=f(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=f(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=f(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=f(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((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)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function P(e,t=-1){let n,r,o,s,i=null;const l=(...f)=>{if(n){r=f,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=S(e(...f,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=S(e(...f));const u=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(u,u),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){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}async function A(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";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 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 f(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function u(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,Hx:()=>u,KZ:()=>c,Uc:()=>f,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>A,D6:()=>L,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>fe,L:()=>k,Ml:()=>be,P$:()=>D,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>j,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>U,mN:()=>S,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>P,v_:()=>B,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",f=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,u=/^\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 w={};let v=new y(r.Z.applicationUrl);let _=function(){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}`}();const O=()=>v,k=()=>_;function S(e){if(!e)return null;const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=P(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 P(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 s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function A(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)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function j(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),S(n)}function E(e){const t=N(e);let n,r;if(t){const e=T(t.proxyUrl);n=e.path,r=e.query?P(e.query):null}if(n){const t=S(e);e=n+"?"+t.path;const o=A({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},n=c.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 N(e){const t=c.proxyRules,n=M(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=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.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 L(e,t,n=!1){if(!e||!t)return!1;const r=ue(e),o=ue(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function U(e){if("string"==typeof e){if(!H(e))return!0;e=ue(e)}if(L(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(L(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(B("/"===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=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;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=r.slice(l);const f=s.slice(l-1).replace(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&u.test(e)||"http"===v.scheme&&te(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&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(i.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 null!=e&&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(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(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=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(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}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&f.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(u,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(f,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(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 ce(e,t){if(!e)return"";const n=S(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function fe(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function ue(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=S(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 he(e,t,n){const r=S(e),o=r.query||{};return o[t]=String(n),`${r.path}?${A(o)}`}function pe(e,t){const n=S(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=A(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const f={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7154)]).then(n.bind(n,27793)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(2508)]).then(n.bind(n,65967)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7774),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7774),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(1916)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(4547),n.e(4088),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(6481),n.e(212),n.e(1391)]).then(n.bind(n,73248)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7774),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:u,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,n){this._port=e,this._getNextJob=n,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 n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.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 l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),f={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,f),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),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 u:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_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:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,f=this._client,u=f[t];try{if(!u&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)f=f[e[t]],u=f[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);l=u.call(f,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(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 c(e,t,n,s){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(i=f(n.transferList),t.data=n.result):(i=f(s),t.data=n),i){if((0,o.Z)("ff"))for(const n of i)if("byteLength"in n&&n.byteLength>267386880){const n="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case r.INVOKE:throw n;case r.RESPONSE:return void c(e,{type:r.RESPONSE,jobId:t.jobId,error:a(n)})}}e.postMessage(t,i)}else e.postMessage(t)}function l(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,o.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,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.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,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20221103",o="efe2ae156bf1e62b25e0e3d21f56607aa228bbad"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"3af85d739bdc86ff385d",81:"40874257b1ad3d0e8a5d",98:"b5e6a868256c5aae6d5e",212:"f436c86f86236ea7ea04",223:"360adb2e929956b690fe",247:"9d9e3a38c54c41f7764c",402:"5be314edd66cddf6c67c",565:"e967ffca641947212992",576:"7fdd029a76a7ab1c3d83",639:"7e5b167ee3fb3e47a3bb",661:"bee19483591ff9994495",690:"ae08f7801caa2d1854f0",739:"97d552d8f8fd0c95d31f",819:"d1ead6e8aa7e8e21fbc6",837:"7b90d3440324bd077d07",911:"8b8954f3db825b90fddf",1070:"2296ef6d8d67ec2be2c6",1074:"1dcdde67304e8fe11fc0",1387:"0e340a2a6b8bb5055d6b",1391:"0407b64ba238bbe78f31",1400:"073fdfd01d940c7b1da1",1412:"4726c869d80257488a38",1421:"6196cfdeb91ceba52af3",1423:"b58badb11e610024ce4c",1433:"4d5bdf18feeb9c8cb6ff",1534:"933f9b62a3a20e768927",1545:"c2c288d42129354dc218",1562:"71bc42d18a9e5c356c2a",1612:"5a4ba7155dd858690bcf",1761:"c2a8813b618f98d0016d",1773:"7a343997ff7c88899f3f",1785:"ca92022f53080fda75fe",1916:"7e7c2e91a646edb32605",2062:"9d1faf9358df056be8e7",2133:"2f22105099a3ece58d1d",2134:"63ed004a15ccd6bb4491",2374:"f31a288e175533a6af50",2508:"516cf307872149caf3da",2592:"8435ae4fe5a5332b1076",2664:"3cbaa8de2817c2560288",2710:"07270f2c07d995f005cd",2855:"490b989ceb9239888af4",3027:"f5b4a8b2bad9b0899954",3172:"878bc2b24cc45418e819",3230:"7125c94ba8ef5efd63b0",3388:"83879da1ff7938a76574",3492:"1596b8a7b9c6533684d3",3529:"c630850976921f6740cb",3572:"d46f034259943fd76b22",3645:"a4b430aa765a8c78e3f6",3668:"1734c8a19d221a0b5562",3743:"b6f14ba8a33943ce3f27",3810:"f7b5efa569e0d79b3b32",3847:"95ee476d101968ff4925",3852:"b71a0a8a2f446c671161",3929:"07e13ba31ea201f33b97",4028:"9802ebc22d73f36bec65",4046:"d08de1095c6db2bd30be",4088:"eb73506dd373453282ba",4166:"5d5c43d44b690bc377ab",4202:"f6bfae78970c7e44a795",4242:"5f46751fa500a9dfacf9",4268:"a39a51e8a8369f6489bb",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"d573ec98401fbae26383",4436:"f2eceff0b2bb765f30b9",4475:"d0411fe75475c00bd04c",4499:"0551df1118be002289ad",4547:"b728e77d1fa4b8439b14",4588:"e196937fc3589e050009",4599:"a17d20ffaa47d430d98c",4695:"cfd83bad25be40fe14e9",4807:"cacdb5a9d31d0aaadbe3",4889:"16e9bd57f774944d0bf8",5004:"3bdbcf98c174a54299b3",5179:"342b91fd7b4de1e9efaf",5235:"8fb8d3905f4271aac27d",5329:"0e21e5b4d065567a6a91",5468:"6ec223bcd2c3bd40ffee",5546:"ab5dcf1031f222503610",5587:"dd0cf9d097a64fcc6118",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"5de864843c0d3f4d291d",5886:"f8e22d47fadc07b46b9b",6015:"7c54c20993e3d33dd64d",6233:"4cb64ccb5fba126f9a66",6237:"794676ee030d605d7f47",6261:"1556e74845e521154fe8",6418:"49f4de4b5333dd83b4c4",6459:"fa3117bb2e11daac000e",6481:"2e3a4fc59789013185f4",6584:"4c0d7a074083aa9614bb",6636:"179304675af3bacce000",6710:"d828a0656e7351a74fc4",6748:"77cc27d60c79df45dbc2",6774:"c8402e32307a7b7eaaeb",6794:"c2c1489e005d59c39440",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6913:"30f167258a3a29a902b1",6925:"fea2002d2fb0c7b5089b",7035:"6b41ce34fbcc03999314",7062:"9d911ea24da940f09000",7126:"1475f89d86cfd422fd18",7154:"5648a883ba7c9a719e34",7202:"02485c243eba85358b53",7269:"bc6ce1719908d3aaf2d3",7275:"074516d441bc117397e4",7277:"09e948f3c726602f50ee",7374:"4dd25e7313c83c157744",7476:"da4d5d9555a7a9ae2622",7483:"0e0179922ca4d04acb2d",7541:"1b55af0c2e1b603b9b7b",7542:"ae2bec0b83a8c4bc493b",7559:"5cd1ff051cbec40532ef",7572:"bf28a9adb9d86d6a14ad",7698:"aa3909ffe65b42c61b52",7774:"ad2a9a84bb7b226337b7",7827:"53864fe7110bc2bd7fbb",7845:"6316bea2130bb9cb515d",7873:"4c989506b46bfec9c5ed",8008:"f23d8ec18740eb2e5e8f",8092:"236cc6c02c45051e8ea9",8096:"22a990a8d4d4587866a5",8227:"ee04b1c0c42cb1b18b24",8244:"50afaa6fddc7ecc96bad",8325:"b2e3a64b6cbc0c1e118f",8363:"f3f8c9179accde36f6a8",8383:"64a5b391443129040852",8394:"ccc0d510f89b5f5eb13e",8636:"f54fcb9359c1da702231",8694:"2d70499eacbd1d2a33a7",8758:"803492088780e18de801",8794:"88e2e45d51151f13d449",8828:"2eb2d49c549e53934b8b",8833:"88b363928779b988418d",8882:"2ebba71cbbfa62ddf46a",9070:"038dc3f9ef06ef3c960c",9169:"76b75ac18c8239687321",9238:"055f7719dbafaa26af2e",9243:"47f88f15bae6918d46af",9268:"ed6860ab02d0c848ada5",9291:"179efcf889111d2576c5",9296:"fdf1551b17369fc24905",9300:"f96674f2083018ceadf2",9324:"6dfb2ddfd72009564a34",9356:"9571158575e5a2a8967e",9513:"f7e91552b8f643a4d81a",9777:"7255cc6ecdcac58d3f9e",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9903:"423ea34526a14fc39171",9904:"3376fbcbd92261d45169",9956:"45bc13fc78b94f4891b0"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
|
|
1
|
+
var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={analysisTheme:{accentColor:[255,128,0],textColor:"white"},apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(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 i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(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,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._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 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,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}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)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(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}function i(e,t){let n=e.length!==t.length;n&&(e.length=t.length);for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(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 d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";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 s(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 s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",n.includes("Konqueror")?r:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("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,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.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((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=n(70586),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.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;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function b(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(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 c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.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]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>P,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>A,gx:()=>S,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((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)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function P(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=S(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=S(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){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}async function A(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";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 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}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>A,D6:()=>L,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>D,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>j,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>U,mN:()=>S,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>P,v_:()=>B,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.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 w={};let v=new y(r.Z.applicationUrl);let _=function(){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}`}();const O=()=>v,k=()=>_;function S(e){if(!e)return null;const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=P(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 P(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 s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function A(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)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function j(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),S(n)}function E(e){const t=N(e);let n,r;if(t){const e=T(t.proxyUrl);n=e.path,r=e.query?P(e.query):null}if(n){const t=S(e);e=n+"?"+t.path;const o=A({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function T(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function M(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=T(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},n=c.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 N(e){const t=c.proxyRules,n=M(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=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.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 L(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function U(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(L(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(L(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(B("/"===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=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;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=r.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 Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(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&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=T(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function B(...e){const t=e.filter(i.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 null!=e&&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(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(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=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(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}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(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 ce(e,t){if(!e)return"";const n=S(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=S(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 he(e,t,n){const r=S(e),o=r.query||{};return o[t]=String(n),`${r.path}?${A(o)}`}function pe(e,t){const n=S(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=A(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7154)]).then(n.bind(n,27793)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(2508)]).then(n.bind(n,65967)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7774),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7774),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(1916)]).then(n.bind(n,61916)),Pipeline:()=>Promise.all([n.e(4547),n.e(4088),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(4599),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(6481),n.e(212),n.e(1391)]).then(n.bind(n,73248)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(9777),n.e(8833),n.e(4807),n.e(7774),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,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,n){this._port=e,this._getNextJob=n,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 n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),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,n){const r=n&&n.signal,s=n&&n.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 l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),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,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_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:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){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,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(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 c(e,t,n,s){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(i=u(n.transferList),t.data=n.result):(i=u(s),t.data=n),i){if((0,o.Z)("ff"))for(const n of i)if("byteLength"in n&&n.byteLength>267386880){const n="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case r.INVOKE:throw n;case r.RESPONSE:return void c(e,{type:r.RESPONSE,jobId:t.jobId,error:a(n)})}}e.postMessage(t,i)}else e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.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,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.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,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20221104",o="a84bcdf3cc681832bedb313faf167b2aff897431"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"3af85d739bdc86ff385d",81:"40874257b1ad3d0e8a5d",98:"b5e6a868256c5aae6d5e",212:"f436c86f86236ea7ea04",223:"360adb2e929956b690fe",247:"9d9e3a38c54c41f7764c",402:"5be314edd66cddf6c67c",565:"e967ffca641947212992",576:"7fdd029a76a7ab1c3d83",639:"7e5b167ee3fb3e47a3bb",661:"bee19483591ff9994495",690:"ae08f7801caa2d1854f0",739:"97d552d8f8fd0c95d31f",759:"c965dece40dcf4931c11",819:"d1ead6e8aa7e8e21fbc6",837:"d9d220622f5e2a15184a",911:"8b8954f3db825b90fddf",1070:"83c28dd2b91a88539b9b",1074:"1dcdde67304e8fe11fc0",1387:"0e340a2a6b8bb5055d6b",1391:"0407b64ba238bbe78f31",1400:"073fdfd01d940c7b1da1",1412:"4726c869d80257488a38",1421:"6196cfdeb91ceba52af3",1423:"b58badb11e610024ce4c",1433:"4d5bdf18feeb9c8cb6ff",1534:"933f9b62a3a20e768927",1545:"c2c288d42129354dc218",1562:"71bc42d18a9e5c356c2a",1612:"5a4ba7155dd858690bcf",1761:"c2a8813b618f98d0016d",1773:"7a343997ff7c88899f3f",1785:"ca92022f53080fda75fe",1916:"7e7c2e91a646edb32605",2062:"9d1faf9358df056be8e7",2133:"2f22105099a3ece58d1d",2134:"63ed004a15ccd6bb4491",2374:"1d00ffb8c70f69ee5080",2508:"516cf307872149caf3da",2592:"8435ae4fe5a5332b1076",2664:"3cbaa8de2817c2560288",2710:"07270f2c07d995f005cd",2855:"490b989ceb9239888af4",3027:"f5b4a8b2bad9b0899954",3172:"878bc2b24cc45418e819",3230:"7125c94ba8ef5efd63b0",3388:"83879da1ff7938a76574",3492:"1596b8a7b9c6533684d3",3529:"688a25a0a9e8d306db6f",3572:"d46f034259943fd76b22",3645:"a4b430aa765a8c78e3f6",3668:"1734c8a19d221a0b5562",3743:"62edaa7821034031e1b5",3810:"f7b5efa569e0d79b3b32",3847:"95ee476d101968ff4925",3852:"b71a0a8a2f446c671161",3929:"07e13ba31ea201f33b97",4028:"9802ebc22d73f36bec65",4046:"d08de1095c6db2bd30be",4088:"eb73506dd373453282ba",4166:"5d5c43d44b690bc377ab",4202:"f6bfae78970c7e44a795",4242:"5f46751fa500a9dfacf9",4268:"a39a51e8a8369f6489bb",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"d573ec98401fbae26383",4436:"9ab6855b8d5f9a41e23c",4475:"d0411fe75475c00bd04c",4499:"0551df1118be002289ad",4547:"b728e77d1fa4b8439b14",4588:"e196937fc3589e050009",4599:"a17d20ffaa47d430d98c",4695:"cfd83bad25be40fe14e9",4807:"cacdb5a9d31d0aaadbe3",4889:"16e9bd57f774944d0bf8",5004:"3bdbcf98c174a54299b3",5179:"342b91fd7b4de1e9efaf",5235:"8fb8d3905f4271aac27d",5329:"0e21e5b4d065567a6a91",5468:"6ec223bcd2c3bd40ffee",5546:"ab5dcf1031f222503610",5587:"dd0cf9d097a64fcc6118",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"5de864843c0d3f4d291d",5886:"f8e22d47fadc07b46b9b",6233:"4cb64ccb5fba126f9a66",6237:"794676ee030d605d7f47",6261:"1556e74845e521154fe8",6418:"49f4de4b5333dd83b4c4",6459:"fa3117bb2e11daac000e",6481:"2e3a4fc59789013185f4",6584:"4c0d7a074083aa9614bb",6636:"bdd86772994515142cc7",6710:"d828a0656e7351a74fc4",6748:"77cc27d60c79df45dbc2",6774:"c8402e32307a7b7eaaeb",6785:"33ea3449d32ac21adc91",6794:"c2c1489e005d59c39440",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6925:"fea2002d2fb0c7b5089b",7035:"6b41ce34fbcc03999314",7062:"9d911ea24da940f09000",7126:"1475f89d86cfd422fd18",7154:"5648a883ba7c9a719e34",7202:"02485c243eba85358b53",7269:"bc6ce1719908d3aaf2d3",7275:"074516d441bc117397e4",7277:"09e948f3c726602f50ee",7374:"4dd25e7313c83c157744",7476:"da4d5d9555a7a9ae2622",7483:"284efc85d5716fadea7b",7541:"1b55af0c2e1b603b9b7b",7542:"ae2bec0b83a8c4bc493b",7559:"5cd1ff051cbec40532ef",7572:"bf28a9adb9d86d6a14ad",7698:"aa3909ffe65b42c61b52",7774:"ad2a9a84bb7b226337b7",7827:"53864fe7110bc2bd7fbb",7845:"6316bea2130bb9cb515d",7873:"4c989506b46bfec9c5ed",8008:"f23d8ec18740eb2e5e8f",8092:"236cc6c02c45051e8ea9",8096:"22a990a8d4d4587866a5",8227:"ee04b1c0c42cb1b18b24",8244:"50afaa6fddc7ecc96bad",8325:"b2e3a64b6cbc0c1e118f",8363:"f3f8c9179accde36f6a8",8383:"64a5b391443129040852",8394:"ccc0d510f89b5f5eb13e",8636:"f54fcb9359c1da702231",8694:"2d70499eacbd1d2a33a7",8758:"803492088780e18de801",8794:"88e2e45d51151f13d449",8828:"2eb2d49c549e53934b8b",8833:"88b363928779b988418d",8882:"2ebba71cbbfa62ddf46a",9070:"038dc3f9ef06ef3c960c",9169:"76b75ac18c8239687321",9238:"952a5983cf13247e4f95",9243:"47f88f15bae6918d46af",9268:"ed6860ab02d0c848ada5",9291:"179efcf889111d2576c5",9296:"fdf1551b17369fc24905",9300:"f96674f2083018ceadf2",9324:"6dfb2ddfd72009564a34",9356:"9571158575e5a2a8967e",9513:"f7e91552b8f643a4d81a",9777:"211ad79ff0b187c52449",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9903:"423ea34526a14fc39171",9904:"3376fbcbd92261d45169",9956:"45bc13fc78b94f4891b0"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2374],{84552:(e,t,i)=>{i.d(t,{Z:()=>p});var r,n=i(43697),s=i(96674),o=i(35463),l=i(5600),a=(i(67676),i(75215),i(52011)),d=i(78981);let u=r=class extends s.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}clone(){return new r({value:this.value,unit:this.unit})}};(0,n._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),(0,n._)([(0,l.Cb)({type:d.v.apiValues,json:{type:d.v.jsonValues,read:d.v.read,write:d.v.write},nonNullable:!0})],u.prototype,"unit",void 0),u=r=(0,n._)([(0,a.j)("esri.TimeInterval")],u);const p=u},3920:(e,t,i)=>{i.d(t,{p:()=>d,r:()=>u});var r=i(43697),n=i(15923),s=i(61247),o=i(5600),l=i(52011),a=i(72762);const d=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new s.Z}get updatingHandles(){return this._get("updatingHandles")||new a.t}};return(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,l.j)("esri.core.HandleOwner")],t),t};let u=class extends(d(n.Z)){};u=(0,r._)([(0,l.j)("esri.core.HandleOwner")],u)},42033:(e,t,i)=>{i.d(t,{E:()=>n,_:()=>s});var r=i(70586);async function n(e,t){const{WhereClause:r}=await i.e(1534).then(i.bind(i,41534));return r.create(e,t)}function s(e,t){return(0,r.pC)(e)?(0,r.pC)(t)?`(${e}) AND (${t})`:e:t}},72762:(e,t,i)=>{i.d(t,{t:()=>p});var r=i(43697),n=i(15923),s=i(61247),o=i(70586),l=i(17445),a=i(1654),d=i(5600),u=i(52011);let p=class extends n.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new s.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,i={}){return this._installWatch(e,t,i,l.YP)}addWhen(e,t,i={}){return this._installWatch(e,t,i,l.gx)}addOnCollectionChange(e,t,{initial:i=!1,final:r=!1}={}){const n=++this._handleId;return this._handles.add([(0,l.on)(e,"after-changes",this._createSyncUpdatingCallback(),l.Z_),(0,l.on)(e,"change",t,{onListenerAdd:i?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],n),{remove:()=>this._handles.remove(n)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(y)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const i=()=>this._handles.remove(t);return e.then(i,i),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,i={},r){const n=++this._handleId;i.sync||this._installSyncUpdatingWatch(e,n);const s=r(e,t,i);return this._handles.add(s,n),{remove:()=>this._handles.remove(n)}}_installSyncUpdatingWatch(e,t){const i=this._createSyncUpdatingCallback(),r=(0,l.YP)(e,i,{sync:!0,equals:()=>!1});return this._handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this._handles.remove(y),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,a.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(y))})),y)}}};(0,r._)([(0,d.Cb)({readOnly:!0})],p.prototype,"updating",void 0),p=(0,r._)([(0,u.j)("esri.core.support.WatchUpdatingTracking")],p);const y=-42},30359:(e,t,i)=>{i.r(t),i.d(t,{default:()=>we});var r=i(43697),n=i(46791),s=i(20102),o=i(3920),l=i(61247),a=i(70586),d=i(16453),u=i(95330),p=i(17445),y=i(42033),c=i(17452),h=i(5600),m=(i(67676),i(75215),i(71715)),g=i(52011),f=i(31263),v=i(87085),b=i(54295),w=i(17287),_=i(71612),C=i(17017),S=i(66361),F=i(82980),I=i(38009),T=i(16859),x=i(34760),O=i(72965),j=i(28294),E=i(66677),L=i(21506),Z=i(50957),D=i(53518),P=i(35671),U=i(96674),A=i(30556),N=i(72729);let k=class extends U.wq{constructor(){super(...arguments),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,N.im)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,h.Cb)({type:Number,json:{write:!0}})],k.prototype,"code",void 0),(0,r._)([(0,h.Cb)({type:Object,json:{write:!0}})],k.prototype,"defaultValues",void 0),(0,r._)([(0,h.Cb)({json:{write:!0}})],k.prototype,"domains",void 0),(0,r._)([(0,m.r)("domains")],k.prototype,"readDomains",null),(0,r._)([(0,A.c)("domains")],k.prototype,"writeDomains",null),(0,r._)([(0,h.Cb)({type:String,json:{write:!0}})],k.prototype,"name",void 0),k=(0,r._)([(0,g.j)("esri.layers.support.Subtype")],k);const R=k;var V=i(51773),M=i(16050),G=(i(12501),i(28756),i(92271),i(72529),i(5499)),q=i(84382),z=i(81571),H=(i(91423),i(80442),i(10699)),W=i(22974),$=i(83379),J=i(78286),K=i(63213),B=i(55343),Y=i(70082),Q=i(54306),X=i(30707),ee=i(32163),te=i(28412);const ie=["charts","editingEnabled","formTemplate","labelsVisible","labelingInfo","legendEnabled","minScale","maxScale","opacity","popupEnabled","popupTemplate","renderer","subtypeCode","templates","title","visible"],re={key:"type",base:G.Z,errorContext:"renderer",typeMap:{simple:q.Z,"unique-value":z.Z,"class-breaks":M.Z}},ne=(0,D.v)(),se=(0,K.d)({types:re});let oe=0;function le(e){const t=e.json.write;return"object"==typeof t?t.ignoreOrigin=!0:e.json.write={ignoreOrigin:!0},e}function ae(e){switch(e){case"point":case"multipoint":return te.xA.clone();case"polyline":return te.CJ.clone();case"polygon":case"multipatch":return te.z3.clone();default:return null}}function de(e,t){return null==e?null:t.subtypes?.find((t=>t.code===e))}function ue(e,t){let i=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":i="point";break;case"esriGeometryPolyline":i="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":i="polygon";break;default:t.type,i=null}const r={},n=de(e,t);if((0,a.pC)(n)){const{defaultValues:e}=n;for(const t in e)r[t]=e[t]}return r[t.subtypeField]=e,new Y.Z({name:"New Feature",drawingTool:i,prototype:{attributes:r}})}let pe=class extends((0,o.p)((0,d.R)((0,H.IG)($.Z)))){constructor(e){super(e),this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.id=`${Date.now().toString(16)}-subtype-sublayer-${oe++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.templates=null,this.title=null,this.visible=!0}writeFieldOverrides(e,t,i){const{fields:r,parent:n}=this;let s;if(r){s=[];let e=0;r.forEach((({name:t,alias:i,editable:r,visible:o})=>{if(!o)return;const l=n?.fields?.find((e=>e.name===t));if(!l)return;const a={name:t};let d=!1;i!==l.alias&&(a.alias=i,d=!0),r!==l.editable&&(a.editable=r,d=!0),s.push(a),d&&e++})),0===e&&s.length===r.length&&(s=null)}else s=(0,W.d9)(e);s?.length&&(0,J.RB)(i,s,t)}get fields(){const{parent:e,fieldOverrides:t,subtypeCode:i}=this,r=e?.fields;if(!r?.length)return null;const{subtypes:n,subtypeField:s}=e,o=n.find((e=>e.code===i)),l=o?.defaultValues,a=o?.domains,d=[];for(const e of r){const r=e.clone(),{name:n}=r,o=t?.find((e=>e.name===n));if(r.visible=!t||!!o,o){const{alias:e,editable:t}=o;e&&(r.alias=e),!1===t&&(r.editable=!1)}const u=l?.[n]??null;r.defaultValue=n===s?i:u;const p=a?.[n]??null;r.domain=n===s?null:p?"inherited"===p.type?r.domain:p.clone():null,d.push(r)}return d}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,P.YN)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");const{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?function(e){return new q.Z({symbol:ae(e)})}(e.geometryType):null}readRendererFromService(e,t,i){if("Table"===t.type)return null;const r=t.drawingInfo?.renderer,n=se(r,t,i);let s;const{subtypeCode:o}=this;if(null!=o&&function(e,t){return!(!t||"unique-value"!==e?.type||"string"!=typeof e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(n,t.subtypeField)){const e=n.uniqueValueInfos?.find((({value:e})=>(e="number"==typeof e?String(e):e)===String(o)));e&&(s=new q.Z({symbol:e.symbol}))}else"simple"!==n?.type||n.visualVariables?.length||(s=n);return s}readRenderer(e,t,i){const r=t?.layerDefinition?.drawingInfo?.renderer;if(r&&!r.visualVariables?.length)return se(r,t,i)||void 0}readTemplatesFromService(e,t){return[ue(this.subtypeCode,t)]}readTitleFromService(e,t){const i=de(this.subtypeCode,t);return(0,a.pC)(i)?i.name:null}createPopupTemplate(e){let t=this;const{parent:i,fields:r,title:n}=this;if(i){const{displayField:e,editFieldsInfo:s,objectIdField:o}=i;t={displayField:e,editFieldsInfo:s,fields:r,objectIdField:o,title:n}}return(0,ee.eZ)(t,e)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e){return this._getLayerDomain(e)}hasUserOverrides(){return ie.some((e=>this.originIdOf(e)===f.s3.USER))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,r._)([(0,h.Cb)({json:{write:{ignoreOrigin:!0}}})],pe.prototype,"charts",void 0),(0,r._)([(0,h.Cb)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:{ignoreOrigin:!0}}})],pe.prototype,"editingEnabled",void 0),(0,r._)([(0,h.Cb)({readOnly:!0,json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],pe.prototype,"fieldOverrides",void 0),(0,r._)([(0,A.c)("fieldOverrides")],pe.prototype,"writeFieldOverrides",null),(0,r._)([(0,h.Cb)({...ne.fields,readOnly:!0,json:{read:!1}})],pe.prototype,"fields",null),(0,r._)([(0,h.Cb)(ne.fieldsIndex)],pe.prototype,"fieldsIndex",void 0),(0,r._)([(0,h.Cb)({type:B.Z,json:{name:"formInfo",write:{ignoreOrigin:!0}}})],pe.prototype,"formTemplate",void 0),(0,r._)([(0,h.Cb)({type:String,readOnly:!0,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],pe.prototype,"id",void 0),(0,r._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],pe.prototype,"type",void 0),(0,r._)([(0,h.Cb)(le((0,W.d9)(L.iR)))],pe.prototype,"labelsVisible",void 0),(0,r._)([(0,h.Cb)({type:[Q.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:X.r},write:{ignoreOrigin:!0}}})],pe.prototype,"labelingInfo",void 0),(0,r._)([(0,h.Cb)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],pe.prototype,"layerType",void 0),(0,r._)([(0,h.Cb)(le((0,W.d9)(L.rn)))],pe.prototype,"legendEnabled",void 0),(0,r._)([(0,h.Cb)({type:["show","hide"]})],pe.prototype,"listMode",void 0),(0,r._)([(0,h.Cb)((()=>{const e=(0,W.d9)(L.rO);return e.json.origins.service.read=!1,le(e)})())],pe.prototype,"minScale",void 0),(0,r._)([(0,h.Cb)((()=>{const e=(0,W.d9)(L.u1);return e.json.origins.service.read=!1,le(e)})())],pe.prototype,"maxScale",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],pe.prototype,"effectiveScaleRange",null),(0,r._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{write:{ignoreOrigin:!0}}})],pe.prototype,"opacity",void 0),(0,r._)([(0,h.Cb)()],pe.prototype,"parent",void 0),(0,r._)([(0,h.Cb)(le((0,W.d9)(L.C_)))],pe.prototype,"popupEnabled",void 0),(0,r._)([(0,h.Cb)({type:V.Z,json:{name:"popupInfo",write:{ignoreOrigin:!0}}})],pe.prototype,"popupTemplate",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],pe.prototype,"defaultPopupTemplate",null),(0,r._)([(0,h.Cb)({types:re,json:{write:{target:"layerDefinition.drawingInfo.renderer",ignoreOrigin:!0}}})],pe.prototype,"renderer",null),(0,r._)([(0,m.r)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],pe.prototype,"readRendererFromService",null),(0,r._)([(0,m.r)("renderer",["layerDefinition.drawingInfo.renderer"])],pe.prototype,"readRenderer",null),(0,r._)([(0,h.Cb)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],pe.prototype,"subtypeCode",void 0),(0,r._)([(0,h.Cb)({type:[Y.Z],json:{name:"layerDefinition.templates",write:{ignoreOrigin:!0}}})],pe.prototype,"templates",void 0),(0,r._)([(0,m.r)("service","templates",["geometryType","subtypeField","subtypes","type"])],pe.prototype,"readTemplatesFromService",null),(0,r._)([(0,h.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],pe.prototype,"title",void 0),(0,r._)([(0,m.r)("service","title",["subtypes"])],pe.prototype,"readTitleFromService",null),(0,r._)([(0,h.Cb)({type:Boolean,nonNullable:!0,json:{name:"visibility",write:{ignoreOrigin:!0}}})],pe.prototype,"visible",void 0),pe=(0,r._)([(0,g.j)("esri.layers.support.SubtypeSublayer")],pe);const ye=pe;var ce=i(30547),he=i(60199),me=i(57444);const ge="SubtypeGroupLayer";function fe(e,t){return new s.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}const ve=(0,D.v)();let be=class extends((0,F.B)((0,S.o1)((0,_.h)((0,j.n)((0,O.M)((0,x.Q)((0,w.Y)((0,I.q)((0,T.I)((0,d.R)((0,C.N)((0,b.V)((0,o.p)(v.Z)))))))))))))){constructor(...e){super(...e),this._handles=new l.Z,this._sublayersCollectionChanged=!1,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.subtypes=null,this.sublayers=new(n.Z.ofType(ye)),this.timeInfo=null,this.title="Layer",this.type="subtype-group",this.addHandles((0,p.YP)((()=>this.sublayers),((e,t)=>this._handleSublayersChange(e,t)),p.Z_))}destroy(){this.source?.destroy(),this._handles=(0,a.SC)(this._handles)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,a.pC)(e)?e.signal:null,i=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(u.r9).then((async()=>{if(!this.url)throw new s.Z("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==this.layerId)throw new s.Z("subtype-grouplayer:missing-layerid","layerId is required for a SubtypeGroupLayer created with url");return this._initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(i),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get parsedUrl(){const e=(0,c.mN)(this.url);return null!=e&&null!=this.layerId&&(e.path=(0,c.v_)(e.path,this.layerId.toString())),e}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,E.a7)(this.url,t):t}async addAttachment(e,t){return(0,Z.JD)(this,e,t,ge)}async updateAttachment(e,t,i){return(0,Z.Y5)(this,e,t,i,ge)}async applyEdits(e,t){return(0,Z.Jj)(this,e,t)}on(e,t){return super.on(e,t)}async createGraphicsSource(e){const{default:t}=await(0,u.Hl)(Promise.all([i.e(4599),i.e(8394)]).then(i.bind(i,18394)),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=(0,Z.rP)(this),t=this.sublayers.map((e=>e.subtypeCode));return e.where=(0,y._)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}async deleteAttachments(e,t){return(0,Z.FV)(this,e,t,ge)}async fetchRecomputedExtents(e){return(0,Z.Ci)(this,e,ge)}getFieldDomain(e,t){return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}async queryAttachments(e,t){return(0,Z.SU)(this,e,t,ge)}async queryFeatures(e,t){const i=await this.load(),r=me.Z.from(e)??i.createQuery(),n=(0,a.Pt)(r.outFields,[]);n.includes(this.subtypeField)||(n.push(this.subtypeField),r.outFields=n);const s=await i.source.queryFeatures(r,t);if(s?.features)for(const e of s.features)e.layer=this._findSublayerForFeature(e),e.sourceLayer=this;return s}async queryObjectIds(e,t){return(0,Z.tD)(this,e,t,ge)}async queryFeatureCount(e,t){return(0,Z.VG)(this,e,t,ge)}async queryExtent(e,t){return(0,Z.KE)(this,e,t,ge)}async queryRelatedFeatures(e,t){return(0,Z.kp)(this,e,t,ge)}async queryRelatedFeaturesCount(e,t){return(0,Z.C9)(this,e,t,ge)}write(e,t){const{origin:i,layerContainerType:r,messages:n}=t;if(this.isTable){if("web-scene"===i||"web-map"===i&&"tables"!==r)return n?.push(fe(this,"using a table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&"web-map"===i&&"tables"===r)return n?.push(fe(this,"using a non-table source cannot be written to tables in web maps")),null;return this.sublayers?.length?super.write(e,t):(n?.push(new s.Z("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,he.D)(this,e)}_findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),i=e.attributes[t.name];return this.sublayers.find((e=>e.subtypeCode===i))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}async _initLayerProperties(e){this._set("source",e);const{sourceJSON:t}=e;if(t&&(this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})),this.isTable)throw new s.Z("subtype-grouplayer:unsupported-source","SubtypeGroupLayer cannot be created using a layer with table source");if(!this.subtypes?.length)throw new s.Z("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");this._verifyFields(),(0,P.UF)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,Z.gG)(this)}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some((e=>"geometry"===e.type))||console.log("SubtypeGroupLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_handleSublayersChange(e,t){t&&(t.forEach((e=>{e.parent=null})),this.handles.remove("sublayers-owner")),e&&(e.forEach((e=>{e.parent=this})),this._sublayersCollectionChanged=!1,this.handles.add([e.on("after-add",(({item:e})=>{e.parent=this})),e.on("after-remove",(({item:e})=>{e.parent=null})),e.on("after-changes",(()=>{this._sublayersCollectionChanged=!0}))],"sublayers-owner"))}};(0,r._)([(0,h.Cb)({readOnly:!0})],be.prototype,"createQueryVersion",null),(0,r._)([(0,h.Cb)({type:Boolean,readOnly:!0})],be.prototype,"editingEnabled",null),(0,r._)([(0,h.Cb)({...ve.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],be.prototype,"fields",void 0),(0,r._)([(0,h.Cb)(ve.fieldsIndex)],be.prototype,"fieldsIndex",void 0),(0,r._)([(0,h.Cb)(L.id)],be.prototype,"id",void 0),(0,r._)([(0,h.Cb)({type:["show","hide","hide-children"]})],be.prototype,"listMode",void 0),(0,r._)([(0,h.Cb)({value:"SubtypeGroupLayer",type:["SubtypeGroupLayer"]})],be.prototype,"operationalLayerType",void 0),(0,r._)([(0,h.Cb)(ve.outFields)],be.prototype,"outFields",void 0),(0,r._)([(0,h.Cb)({readOnly:!0})],be.prototype,"parsedUrl",null),(0,r._)([(0,h.Cb)()],be.prototype,"source",null),(0,r._)([(0,h.Cb)({type:[R],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],be.prototype,"subtypes",void 0),(0,r._)([(0,h.Cb)({type:n.Z.ofType(ye),json:{origins:{service:{read:{source:"subtypes",reader:(e,t,i)=>{const r=e.map((({code:e})=>{const r=new ye({subtypeCode:e});return r.read(t,i),r}));return new(n.Z.ofType(ye))(r)}}}},name:"layers",write:{overridePolicy(e,t,i){const r=this.originOf("sublayers"),n=f.s3.PORTAL_ITEM;let s=!0;if((0,f.M9)(r)===n&&(0,f.M9)(i.origin)>n){const t=e.some((e=>e.hasUserOverrides()));s=this._sublayersCollectionChanged||t}return{enabled:s,ignoreOrigin:!0}}}}})],be.prototype,"sublayers",void 0),(0,r._)([(0,h.Cb)({type:ce.Z})],be.prototype,"timeInfo",void 0),(0,r._)([(0,h.Cb)({json:{origins:{"portal-item":{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],be.prototype,"title",void 0),(0,r._)([(0,m.r)("service","title",["name"])],be.prototype,"readTitleFromService",null),(0,r._)([(0,h.Cb)({json:{read:!1}})],be.prototype,"type",void 0),be=(0,r._)([(0,g.j)("esri.layers.SubtypeGroupLayer")],be);const we=be},54295:(e,t,i)=>{i.d(t,{V:()=>o});var r=i(43697),n=i(5600),s=(i(67676),i(75215),i(52011));const o=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,r._)([(0,n.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,r._)([(0,s.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,i)=>{i.d(t,{Y:()=>d});var r=i(43697),n=i(92604),s=i(70586),o=i(5600),l=(i(67676),i(75215),i(52011)),a=i(66677);const d=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if((0,s.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,n.Z.getLogger(this.declaredClass)))}};return(0,r._)([(0,o.Cb)()],t.prototype,"title",null),(0,r._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>y});var r=i(43697),n=i(92835),s=i(84552),o=i(5600),l=(i(67676),i(75215),i(71715)),a=i(52011),d=i(35671),u=i(30547),p=i(78981);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,n=p.v.fromJSON(i.timeOffsetUnits);return r&&n?new s.Z({value:r,unit:n}):null}set timeInfo(e){(0,d.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,o.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,o.Cb)({value:null,type:u.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},70082:(e,t,i)=>{i.d(t,{Z:()=>p});var r=i(43697),n=i(2368),s=i(35454),o=i(96674),l=i(5600),a=(i(67676),i(75215),i(52011));const d=new s.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.J)(o.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,r._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,l.Cb)({json:{read:d.read,write:d.write}})],u.prototype,"drawingTool",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,r._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,r._)([(0,a.j)("esri.layers.support.FeatureTemplate")],u);const p=u},56765:(e,t,i)=>{i.d(t,{Z:()=>u});var r,n=i(43697),s=i(46791),o=i(96674),l=i(5600),a=(i(67676),i(75215),i(52011));let d=r=class extends o.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new s.Z}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],d.prototype,"floorField",void 0),(0,n._)([(0,l.Cb)({json:{read:!1,write:!1}})],d.prototype,"viewAllMode",void 0),(0,n._)([(0,l.Cb)({json:{read:!1,write:!1}})],d.prototype,"viewAllLevelIds",void 0),d=r=(0,n._)([(0,a.j)("esri.layers.support.LayerFloorInfo")],d);const u=d},30547:(e,t,i)=>{i.d(t,{Z:()=>b});var r,n=i(43697),s=i(92835),o=i(84552),l=i(96674),a=i(22974),d=i(70586),u=i(5600),p=(i(75215),i(71715)),y=i(52011),c=i(30556);i(67676);let h=r=class extends l.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new r({respectsDaylightSaving:e,timezone:t})}};(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"respectsDaylightSaving",void 0),(0,n._)([(0,p.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],h.prototype,"readRespectsDaylightSaving",null),(0,n._)([(0,u.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],h.prototype,"timezone",void 0),h=r=(0,n._)([(0,y.j)("esri.layers.support.TimeReference")],h);const m=h;var g,f=i(78981);let v=g=class extends l.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new s.Z({start:i,end:r})}writeFullTimeExtent(e,t){e&&(0,d.pC)(e.start)&&(0,d.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new o.Z({value:t.timeInterval,unit:f.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new o.Z({value:t.defaultTimeInterval,unit:f.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const i=e.toJSON();t.timeInterval=i.value,t.timeIntervalUnits=i.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:i,interval:r,startField:n,timeReference:s,fullTimeExtent:o,trackIdField:l,useTime:d}=this;return new g({cumulative:e,endField:t,hasLiveData:i,interval:r,startField:n,timeReference:(0,a.d9)(s),fullTimeExtent:(0,a.d9)(o),trackIdField:l,useTime:d})}};(0,n._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],v.prototype,"cumulative",void 0),(0,n._)([(0,u.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],v.prototype,"endField",void 0),(0,n._)([(0,u.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"fullTimeExtent",void 0),(0,n._)([(0,p.r)("fullTimeExtent",["timeExtent"])],v.prototype,"readFullTimeExtent",null),(0,n._)([(0,c.c)("fullTimeExtent")],v.prototype,"writeFullTimeExtent",null),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],v.prototype,"hasLiveData",void 0),(0,n._)([(0,u.Cb)({type:o.Z,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"interval",void 0),(0,n._)([(0,p.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],v.prototype,"readInterval",null),(0,n._)([(0,c.c)("interval")],v.prototype,"writeInterval",null),(0,n._)([(0,u.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],v.prototype,"startField",void 0),(0,n._)([(0,u.Cb)({type:m,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"timeReference",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],v.prototype,"trackIdField",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],v.prototype,"useTime",void 0),v=g=(0,n._)([(0,y.j)("esri.layers.support.TimeInfo")],v);const b=v},53518:(e,t,i)=>{i.d(t,{v:()=>l});var r=i(92604),n=i(1231),s=i(99514),o=i(35671);function l(){return{fields:{type:[n.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new s.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||r.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.Q0)(this.fieldsIndex,e)}}}}},78981:(e,t,i)=>{i.d(t,{v:()=>r});const r=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},51706:(e,t,i)=>{var r,n;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function a(e,t){const i=t||l(e),s=e.valueUnit||"unknown";return i===r.Unknown?n.Constant:e.stops?n.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?n.ClampedLinear:"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?n.Proportional:n.Additive:n.Identity:n.RealWorldSize}i.d(t,{PS:()=>l,QW:()=>a,RY:()=>r,hL:()=>n,iY:()=>s,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(n||(n={}))},58333:(e,t,i)=>{i.d(t,{ET:()=>s,I4:()=>n,eG:()=>a,lF:()=>o,lj:()=>u,qP:()=>l,wW:()=>d});const r=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},d={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9777,3172,9880],{99880:(e,t,s)=>{s.d(t,{V:()=>l});var i=s(68773),r=(s(3172),s(20102)),n=s(92604),a=s(17452);const o=n.Z.getLogger("esri.assets");function l(e){if(!i.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(i.Z.assetsPath,e)}},74669:(e,t,s)=>{s.d(t,{Z:()=>r});var i=s(69801);class r{constructor(e,t){this._storage=new i.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},37455:(e,t,s)=>{s.d(t,{N:()=>i});const i={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const i=new r(e.getPointX(t),e.getPointY(t),s),n=e.hasZ(t),a=e.hasM(t);return n&&(i.z=e.getPointZ(t)),a&&(i.m=e.getPointM(t)),i},exportPolygon:function(e,t,s){return new n(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const i=e.hasZ(t),r=e.hasM(t),n=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(i){const s=e.getZExtent(t);n.zmin=s.vmin,n.zmax=s.vmax}if(r){const s=e.getMExtent(t);n.mmin=s.vmin,n.mmax=s.vmax}return n}};class r{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class n{constructor(e,t,s,i){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class a{constructor(e,t,s,i){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class o{constructor(e,t,s,i){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class l{constructor(e,t,s,i,r){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=i,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},24470:(e,t,s)=>{s.d(t,{Gv:()=>x,HH:()=>u,SO:()=>h,Ue:()=>n,al:()=>o,cS:()=>p,fS:()=>y,jE:()=>d,jn:()=>c,kK:()=>f,oJ:()=>l,r3:()=>m}),s(80442),s(22021);var i=s(70586),r=s(6570);function n(e=w){return[e[0],e[1],e[2],e[3]]}function a(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function o(e,t,s,i,r=n()){return r[0]=e,r[1]=t,r[2]=s,r[3]=i,r}function l(e,t=n()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new r.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,s){if((0,i.Wi)(t))a(s,e);else if("length"in t)g(t)?(s[0]=Math.min(e[0],t[0]),s[1]=Math.min(e[1],t[1]),s[2]=Math.max(e[2],t[2]),s[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(s[0]=Math.min(e[0],t[0]),s[1]=Math.min(e[1],t[1]),s[2]=Math.max(e[2],t[0]),s[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":s[0]=Math.min(e[0],t.xmin),s[1]=Math.min(e[1],t.ymin),s[2]=Math.max(e[2],t.xmax),s[3]=Math.max(e[3],t.ymax);break;case"point":s[0]=Math.min(e[0],t.x),s[1]=Math.min(e[1],t.y),s[2]=Math.max(e[2],t.x),s[3]=Math.max(e[3],t.y)}}function h(e){return function(e){return(0,i.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function d(e,t,s){return t>=e[0]&&s>=e[1]&&t<=e[2]&&s<=e[3]}function f(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function m(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function p(e){return e?a(e,x):n(x)}function g(e){return null!=e&&4===e.length}function y(e,t){return g(e)&&g(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const x=[1/0,1/0,-1/0,-1/0],w=[0,0,0,0]},69285:(e,t,s)=>{s.d(t,{k:()=>a});var i=s(70586),r=s(67900),n=s(8744);function a(e,t,s){if((0,i.Wi)(t)||(0,i.Wi)(s)||s.vcsWkid||(0,n.fS)(t,s))return null;const a=(0,r._R)(t)/(0,r._R)(s);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},26993:(e,t,s)=>{s.d(t,{y:()=>w,r:()=>m});var i=s(70586),r=s(35308),n=s(49600),a=s(82397),o=s(8744),l=s(62432),u=s(24452);class c{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=s,this.featureAdapter=t;const i=e.outFields;if(i&&!i.includes("*")){this.outFields=i;let e=0;for(const t of i){const i=(0,l.hr)(t),r=this.fieldsIndex.get(i),n=r?null:(0,l.Jc)(i,s),a=r?r.name:(0,l.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const i=s?s.name:t;let r=null;return this._fieldDataCache.has(i)?r=this._fieldDataCache.get(i).clause:s||(r=(0,l.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(i,{alias:i,clause:r})),s?this.featureAdapter.getAttribute(e,i):r.calculateValue(e,this.featureAdapter)}getDataValue(e,t){const s=t.normalizationType,i=t.normalizationTotal;let r=this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2&&(r=`${(0,u.wk)(r)}${t.fieldDelimiter}${(0,u.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,u.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)),s&&Number.isFinite(r)){const n="field"===s&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,u.fk)(r,s,n,i)}return r}getExpressionValue(e,t,s,i){const r={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},n=i.createExecContext(r,s);return i.executeFunction(t,n)}getExpressionValues(e,t,s,i){const r={fields:this.fieldsIndex.fields};return e.map((e=>{const n={attributes:this.featureAdapter.getAttributes(e),layer:r},a=i.createExecContext(n,s);return i.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const i of t){const{alias:t,clause:r}=this._fieldDataCache.get(i);s[t]=r?r.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if((0,i.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const i of t){const{alias:t}=this._fieldDataCache.get(i);s.push(e[t])}else for(const t in e)s.push(e[t]);const r=`${(t||["*"]).join(",")}=${s.join(",")}`;let n=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++n),n>1?null:e}}var h=s(37427);function d(e,t,s){return{objectId:e,target:t,distance:s,type:"vertex"}}function f(e,t,s,i,r,n=!1){return{objectId:e,target:t,distance:s,type:"edge",start:i,end:r,draped:n}}var m,p,g=s(11490),y=s(35671),x=s(59266);class w{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new c(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:i}=this.query,r=t?.length;if(!r)return 1;const n=new Map,a=new Map,o=new Set;for(const r of i){const{statisticType:i}=r,l="exceedslimit"!==i?r.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const i of t){const t=this._getAttributeValues(e,i,n);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:i,items:r}=u[t],n=i.join(",");s&&!e.validateItems(r,s)||o.add(n)}}return o.size}async createQueryResponse(){let e;return e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry&&((0,o.JY)(this.query.outSR)&&!(0,o.fS)(this.query.geometry.spatialReference,this.query.outSR)?e.queryGeometry=(0,g.S2)({spatialReference:this.query.outSR,...(0,h.iV)(this.query.geometry,this.query.geometry.spatialReference,this.query.outSR)}):e.queryGeometry=(0,g.S2)({spatialReference:this.query.outSR,...this.query.geometry})),e}createSnappingResponse(e,t){const s=this.featureAdapter,r=b(this.hasZ,this.hasM),{point:n}=e,a="number"==typeof e.distance?e.distance:e.distance.x,o="number"==typeof e.distance?e.distance:e.distance.y,l={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=null!=n.z,h=null!=n.m,p=this._getPointCreator(n,c,h,this.spatialReference,t),g=new S(null,0),y=new S(null,0),x={x:0,y:0,z:0};for(const t of this.items){const c=s.getGeometry(t);if((0,i.Wi)(c))continue;const{coords:h,lengths:w}=c;if(g.coords=h,y.coords=h,e.types&m.EDGE){let e=0;for(let i=0;i<w.length;i++){const u=w[i];for(let i=0;i<u;i++,e+=r){const c=g;if(c.coordsIndex=e,i!==u-1){const i=y;i.coordsIndex=e+r;const u=x;v(x,n,c,i);const h=(n.x-u.x)/a,d=(n.y-u.y)/o,m=h*h+d*d;m<=1&&l.candidates.push(f(s.getObjectId(t),p(u),Math.sqrt(m),p(c),p(i)))}}}}if(e.types&m.VERTEX){const e=u?h.length-r:h.length;for(let i=0;i<e;i+=r){const e=g;e.coordsIndex=i;const r=(n.x-e.x)/a,u=(n.y-e.y)/o,c=r*r+u*u;c<=1&&l.candidates.push(d(s.getObjectId(t),p(e),Math.sqrt(c)))}}}return l.candidates.sort(((e,t)=>e.distance-t.distance)),l}_getPointCreator(e,t,s,r,n){const a=(0,i.pC)(n)&&!(0,o.fS)(r,n)?e=>(0,h.iV)(e,r,n):e=>e,{hasZ:l}=this,u=e.m;return t&&s?l?({x:e,y:t,z:s})=>a({x:e,y:t,z:s,m:u}):({x:e,y:t})=>a({x:e,y:t,z:0,m:u}):t?l?({x:e,y:t,z:s})=>a({x:e,y:t,z:s}):({x:e,y:t})=>a({x:e,y:t,z:0}):s?({x:e,y:t})=>a({x:e,y:t,m:u}):({x:e,y:t})=>a({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,minValue:a,maxValue:o,scale:l}=e,c=this.fieldsIndex.isDateField(t),h=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:l}),d=(0,u.S5)({normalizationType:r,normalizationField:i,minValue:a,maxValue:o}),f=this.fieldsIndex.get(t),m={value:.5,fieldType:f?.type},p=(0,y.qN)(f)?(0,u.H0)({values:h,supportsNullCount:d,percentileParams:m}):(0,u.i5)({values:h,minValue:a,maxValue:o,useSampleStdDev:!r,supportsNullCount:d,percentileParams:m});return(0,u.F_)(p,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domains:i,returnAllCodedValues:r,scale:n}=e,a=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:s,scale:n}),o=(0,u.eT)(a);return(0,u.Qm)(o,i,r,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h,scale:d}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:d}),m=(0,u.G2)(f,{field:t,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h});return(0,u.DL)(m,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h,scale:d}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:d});return(0,u.oF)(f,{field:t,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const i of t.reverse()){const t=i.split(" "),r=t[0],n=this.fieldsIndex.get(r),a=t[1]&&"desc"===t[1].toLowerCase(),o=(0,u.Lq)(n?.type,a);e.sort(((e,t)=>{const i=s(e,r,n),a=s(t,r,n);return o(i,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:i,hasZ:r,objectIdField:n,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:h,resultOffset:d,returnZ:f,returnM:m}=e,p=null!=h&&t.length>(d||0)+h,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:p,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:i&&m,hasZ:r&&f,objectIdFieldName:n,spatialReference:(0,g.S2)(u||o),transform:c&&(0,a.vY)(c)||null}}_createFeatures(e,t){const s=new c(e,this.featureAdapter,this.fieldsIndex),{hasM:i,hasZ:r}=this,{orderByFields:n,quantizationParameters:o,returnGeometry:l,returnCentroid:u,maxAllowableOffset:h,resultOffset:d,resultRecordCount:f,returnZ:m=!1,returnM:p=!1}=e,y=r&&m,x=i&&p;let w=[],v=0;const b=[...t];if(this._sortFeatures(b,n,((e,t,i)=>s.getFieldValue(e,t,i))),l||u){const e=(0,a.vY)(o);if(l&&!u)for(const t of b)w[v++]={attributes:s.getAttributes(t),geometry:(0,g.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,x)};else if(!l&&u)for(const t of b)w[v++]={attributes:s.getAttributes(t),centroid:(0,g.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of b)w[v++]={attributes:s.getAttributes(t),centroid:(0,g.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,g.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,x)}}else for(const e of b){const t=s.getAttributes(e);t&&(w[v++]={attributes:t})}const S=d||0;if(null!=f){const e=S+f;w=w.slice(S,Math.min(w.length,e))}return w}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const t of e.outStatistics)if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,r=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>r)t=!0;else{const e=b(this.hasZ,this.hasM),s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const r=s.getGeometry(t);return e+((0,i.pC)(r)&&r.coords.length||0)}),0)/e>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],i=new Map,r=new Map,n=new Map,a=new Map,o=new c(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:u,having:h,orderByFields:d}=e,f=u&&u.length,m=!!f,p=m&&u[0],g=m&&!this.fieldsIndex.get(p);for(const e of l){const{outStatisticFieldName:l,statisticType:c}=e,d=e,y="exceedslimit"!==c?e.onStatisticField:void 0,x="percentile_disc"===c||"percentile_cont"===c,w="EnvelopeAggregate"===c||"CentroidAggregate"===c||"ConvexHullAggregate"===c,v=m&&1===f&&(y===p||g)&&"count"===c;if(m){if(!n.has(y)){const e=[];for(const t of u){const s=this._getAttributeValues(o,t,i);e.push(s)}n.set(y,this._calculateUniqueValues(e,!w&&o.returnDistinctValues))}const e=n.get(y);for(const t in e){const{count:s,data:r,items:n,itemPositions:c}=e[t],f=r.join(",");if(!h||o.validateItems(n,h)){const e=a.get(f)||{attributes:{}};if(w){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(d,n);e.aggregateGeometries[s]=t}else{let t=null;if(v)t=s;else{const e=this._getAttributeValues(o,y,i),s=c.map((t=>e[t]));t=x&&"statisticParameters"in d?this._getPercentileValue(d,s):this._getStatisticValue(d,s,null,o.returnDistinctValues)}e.attributes[l]=t}let t=0;u.forEach(((s,i)=>e.attributes[this.fieldsIndex.get(s)?s:"EXPR_"+ ++t]=r[i])),a.set(f,e)}}}else if(w){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(d,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,i);t.attributes[l]=x&&"statisticParameters"in d?this._getPercentileValue(d,e):this._getStatisticValue(d,e,r,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=m?Array.from(a.values()):[t];return this._sortFeatures(y,d,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const i=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:h,hasM:d}=this,f=t.map((e=>(0,g.Op)(c,h,d,l.getGeometry(e)))),m=i.convexHull(u,f,!0)[0],p={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=m?(0,n._w)(m):(0,n.aO)(i.union(u,f));p.aggregateGeometries={...e,spatialReference:u},p.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=m?(0,r.tO)(m):(0,r.$G)((0,n.aO)(i.union(u,f)));p.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},p.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(p.aggregateGeometries=m,p.outStatisticFieldName=o||"convexHull");return p}_getStatisticValue(e,t,s,i){const{onStatisticField:r,statisticType:n}=e;let a=null;return a=s?.has(r)?s.get(r):(0,y.qN)(this.fieldsIndex.get(r))?(0,u.H0)({values:t,returnDistinct:i}):(0,u.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(r,a),a["var"===n?"variance":n]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:i,statisticType:r}=e,{value:n,orderBy:a}=i,o=this.fieldsIndex.get(s);return(0,u.XL)(t,{value:n,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===r})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const i=this.fieldsIndex.get(t),r=this.items.map((s=>e.getFieldValue(s,t,i)));return s.set(t,r),r}_getAttributeDataValues(e,t){return this.items.map((s=>e.getDataValue(s,{field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,normalizationField:t.normalizationField,normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:i}=await(0,x.LC)(),r=i.createFunction(t),n=s&&i.getViewInfo(s);return e.getExpressionValues(this.items,r,n,i)}_calculateUniqueValues(e,t){const s={},i=this.items,r=i.length;for(let n=0;n<r;n++){const r=i[n],a=[];for(const t of e)a.push(t[n]);const o=a.join(",");t?null==s[o]&&(s[o]={count:1,data:a,items:[r],itemPositions:[n]}):null==s[o]?s[o]={count:1,data:a,items:[r],itemPositions:[n]}:(s[o].count++,s[o].items.push(r),s[o].itemPositions.push(n))}return s}async _getDataValues(e){const t=new c(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:i,normalizationField:r,normalizationType:n,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeDataValues(t,{field:i,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:r,normalizationType:n,normalizationTotal:a})}}function v(e,t,s,i){const r=i.x-s.x,n=i.y-s.y,a=r*r+n*n,o=(t.x-s.x)*r+(t.y-s.y)*n,l=Math.min(1,Math.max(0,o/a));e.x=s.x+r*l,e.y=s.y+n*l}function b(e,t){return e?t?4:3:t?3:2}(p=m||(m={}))[p.NONE=0]="NONE",p[p.EDGE=1]="EDGE",p[p.VERTEX=2]="VERTEX";class S{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}},62432:(e,t,s)=>{s.d(t,{nu:()=>p,hr:()=>m,Jc:()=>d,G3:()=>g,Of:()=>f,z4:()=>h,hO:()=>c});var i=s(20102),r=s(74669),n=s(41534);const a=new class{constructor(e,t){this._cache=new r.Z(e),this._invalidCache=new r.Z(t)}get(e,t){const s=`${t.uid}:${e}`,i=this._cache.get(s);if(i)return i;if(void 0!==this._invalidCache.get(s))return null;try{const i=n.WhereClause.create(e,t);return this._cache.put(s,i),i}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"where clause is not standard",{where:t});return f(e,s.fieldNames,"where clause contains missing fields"),!0}function h(e,t,s){if(!t)return!0;const r=a.get(t,e);if(!r)throw new i.Z(o,"invalid SQL expression",{having:t});if(!r.isAggregate)throw new i.Z(o,"having does not contain a valid aggregate function",{having:t});const n=r.fieldNames;if(f(e,n,"having contains missing fields"),!r.getExpressions().every((t=>{const{aggregateType:i,field:r}=t,n=e.has(r)&&e.get(r).name;return s.some((t=>{const{onStatisticField:s,statisticType:r}=t;return(e.has(s)&&e.get(s).name)===n&&r.toLowerCase().trim()===i}))})))throw new i.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function d(e,t){return e?a.get(e,t):null}function f(e,t,s,r=!0){const n=[];for(const s of t)if("*"!==s&&!e.has(s))if(r){const t=m(s);try{const s=d(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"expression is not standard",{clause:s});f(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?n.push(...t.missingFields):n.push(s)}}else n.push(s);if(n.length)throw new i.Z(o,s,{missingFields:n})}function m(e){return e.split(l)[0]}function p(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>d,iV:()=>p,oj:()=>y});var i=s(70586),r=s(44547),n=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:h(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const s=[];for(const i of e)s.push(h(i,t));return s}function h(e,t){const s=[];for(const i of e){const e=t(i[0],i[1],[0,0]);s.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return s}async function d(e,t){if(!e||!t)return;const s=Array.isArray(e)?e.map((e=>(0,i.pC)(e.geometry)?e.geometry.spatialReference:null)).filter(i.pC):[e];await(0,r.iQ)(s.map((e=>({source:e,dest:t}))))}const f=u.bind(null,o.hG),m=u.bind(null,o.R6);function p(e,t,s,i){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?f(e):m(e);return t.spatialReference=s,t}return(0,r.oj)(n.N,[e],t,s,null,i)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const i={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(i),new Promise((e=>{i.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:i,resolve:l}=e;(0,o.Q8)(s,i)?(0,a.sS)(i)?l(t.map(f)):l(t.map(m)):l((0,r.oj)(n.N,t,s,i,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>v,Op:()=>b,S2:()=>F,Up:()=>S,j6:()=>T,vF:()=>p});var i=s(35454),r=s(70586),n=s(67900),a=s(44547),o=s(49600),l=s(33955),u=s(51806),c=s(8744),h=s(98732),d=s(5428),f=s(37427);const m=new i.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),p=Object.freeze({}),g=new d.Z,y=new d.Z,x=new d.Z,w={esriGeometryPoint:h.fQ,esriGeometryPolyline:h.J6,esriGeometryPolygon:h.eG,esriGeometryMultipoint:h.Iv};function v(e,t,s,i=e.hasZ,n=e.hasM){if((0,r.Wi)(t))return null;const a=e.hasZ&&i,o=e.hasM&&n;if(s){const r=(0,h.Nh)(x,t,e.hasZ,e.hasM,"esriGeometryPoint",s,i,n);return(0,h.fQ)(r,a,o)}return(0,h.fQ)(t,a,o)}function b(e,t,s,i,n,a,o=t,l=s){const u=t&&o,c=s&&l,d=(0,r.pC)(i)?"coords"in i?i:i.geometry:null;if((0,r.Wi)(d))return null;if(n){let i=(0,h.zj)(y,d,t,s,e,n,o,l);return a&&(i=(0,h.Nh)(x,i,u,c,e,a)),w[e]?.(i,u,c)??null}if(a){const i=(0,h.Nh)(x,d,t,s,e,a,o,l);return w[e]?.(i,u,c)??null}return(0,h.hY)(g,d,t,s,o,l),w[e]?.(g,u,c)??null}async function S(e,t,s){const{outFields:i,orderByFields:r,groupByFieldsForStatistics:n,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),T(e,t,s)}async function T(e,t,i){if(!e)return null;let{where:a}=e;if(e.where=a=a&&a.trim(),(!a||/^1 *= *1$/.test(a)||t&&t===a)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{distance:t,units:i}=e,r=e.geometry;if(null==t||"vertexAttributes"in r)return r;const a=r.spatialReference,o=i?m.fromJSON(i):(0,n.qE)(a),l=a&&((0,c.sT)(a)||(0,c.sS)(a))?r:await(0,f._W)(a,c.Zn).then((()=>(0,f.iV)(r,c.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,t,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,o.aO)(h),h.spatialReference=t}if(h){await(0,f._W)(h.spatialReference,i),h=function(e,t){const s=e.spatialReference;return _(e,t)&&(0,l.YX)(e)?{spatialReference:s,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(h,i);const t=(await(0,u.aX)((0,l.im)(h)))[0];if((0,r.Wi)(t))throw p;const s="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=s&&_(h,i)?{densificationStep:8*s}:void 0,a=t.toJSON(),o=await(0,f.iV)(a,a.spatialReference,i,n);if(!o)throw p;o.spatialReference=i,e.geometry=o}return e}function _(e,t){if(!e)return!1;const s=e.spatialReference;return((0,l.YX)(e)||(0,l.oU)(e)||(0,l.l9)(e))&&!(0,c.fS)(s,t)&&!(0,a.Up)(s,t)}function F(e){return e&&I in e?JSON.parse(JSON.stringify(e,M)):e}const I="_geVersion",M=(e,t)=>e!==I?t:void 0},3172:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var i=s(68773),r=s(40330),n=s(20102),a=s(80442),o=s(22974),l=s(70586),u=s(95330),c=s(17452),h=s(71058),d=s(85958);async function f(e,t){const o=(0,c.HK)(e),y=(0,c.jc)(e);y||o||(e=(0,c.Fv)(e));const x={url:e,requestOptions:{...(0,l.Wg)(t)}};let w=(0,c.oh)(e);if(w){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let s,i;try{i=await e.before(t)}catch(e){s=T("request:interceptor",e,t)}if((i instanceof Error||i instanceof n.Z)&&(s=T("request:interceptor",i,t)),s)throw e.error&&e.error(s),s;return i}}(w,x);if(null!=e)return{data:e,getHeader:v,requestOptions:x.requestOptions,url:x.url};w.after||w.error||(w=null)}if(e=x.url,"image"===(t=x.requestOptions).responseType){if((0,a.Z)("host-webworker")||(0,a.Z)("host-node"))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),x)}else if(o)throw T("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),x);if("head"===t.method){if(t.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),x);if(o||y)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),x)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await s.e(9884).then(s.bind(s,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const b=new AbortController;(0,u.fu)(t,(()=>b.abort()));const S={controller:b,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,params:x,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},M=await async function(e){let t,s;await async function(e){const t=e.params.url,s=e.params.requestOptions,n=e.controller.signal,a=s.body;let o=null,l=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?o=a:a instanceof HTMLFormElement&&(o=new FormData(a))),"string"==typeof a&&(l=a),e.fetchOptions={cache:s.cacheBust&&!f._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:s.headers||{},method:"head"===s.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:n},(o||l)&&(e.fetchOptions.body=o||l),"anonymous"===s.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||s.query?.token||o?.get("token")),!e.hasToken&&i.Z.apiKey&&(0,h.r)(t)&&(s.query||(s.query={}),s.query.token=i.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!F(t)&&!(0,u.Hc)(n)){let i;"immediate"===s.authMode?(await _(),i=await r.id.getCredential(t,{signal:n}),e.credential=i):"no-prompt"===s.authMode?(await _(),i=await r.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=i):r.id&&(i=r.id.findCredential(t)),i&&(e.credentialToken=i.token,e.useSSL=!!i.ssl)}}(e);try{do{[t,s]=await I(e)}while(!await C(e,t,s))}catch(s){const i=T("request:server",s,e.params,t);throw i.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(i),i}const n=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!(0,c.kl)(n)){const e=(0,c.P$)(n,!0);e&&p.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(s.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&r.id){const e=r.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=r.id.findCredential(t,a.userId);e&&-1===r.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getHeader:t?e=>t?.headers.get(e):v,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return w?.after?.(M),M}let m;const p=i.Z.request,g="FormData"in globalThis,y=[499,498,403,401],x=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],v=()=>null,b=Symbol();function S(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||f._corsServers.includes(t)||(0,c.kl)(t)}function T(e,t,s,i){let r="Error";const a={url:s.url,requestOptions:s.requestOptions,getHeader:v,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=s.url,t.details.requestOptions=s.requestOptions):t.details=a,t;if(t){const e=i&&(e=>i.headers.get(e)),s=i&&i.status,n=t.message;n&&(r=n),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=b in t?t[b]:t}return(0,u.D_)(t)?(0,u.zE)():new n.Z(e,r,a)}async function _(){r.id||await Promise.all([s.e(6261),s.e(1400),s.e(1761)]).then(s.bind(s,55142))}function F(e){return w.some((t=>t.test(e)))}async function I(e){let t=e.params.url;const s=e.params.requestOptions,i=e.fetchOptions??{},n=(0,c.jc)(t)||(0,c.HK)(t),o=s.responseType||"json",l=n?0:null!=s.timeout?s.timeout:p.timeout;let h=!1;if(!n){e.useSSL&&(t=(0,c.hO)(t)),s.cacheBust&&"default"===i.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let o=(0,c.B7)(n);(0,a.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=t.length+1+o.length;let u;h="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||l>p.maxUrlLength;const f=s.useProxy||!!(0,c.ed)(t);if(f){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>p.maxUrlLength&&(h=!0),e.query&&(n={...e.query,...n})}if("HEAD"===i.method&&(h||f)){if(h){if(l>p.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(i.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=(0,c.fl)(t,n):(i.body=(0,c.B7)(n),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,n),f&&(e.useProxy=!0,t=`${u}?${t}`),n.token&&g&&i.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&i.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(r.id){const s=r.id.findServerInfo(t);s&&s.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",(0,d.jH)(t)&&await(0,d.jz)(h?(0,c.fl)(t,n):t))}let m,y,x=0,w=!1;l>0&&(x=setTimeout((()=>{w=!0,e.controller.abort()}),l));try{if("native-request-init"===s.responseType)y=i,y.url=t;else if("image"!==s.responseType||"default"!==i.cache||"GET"!==i.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(s.headers)||!n&&!e.useProxy&&p.proxyUrl&&!S(t)){if(m=await f._abortableFetch(t,i),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!f._corsServers.includes(t)&&f._corsServers.push(t)}(t),"native"===s.responseType)y=m;else if("HEAD"!==i.method)if(m.ok){switch(o){case"array-buffer":y=await m.arrayBuffer();break;case"blob":case"image":y=await m.blob();break;default:y=await m.text()}if(x&&(clearTimeout(x),x=0),"json"===o||"xml"===o||"document"===o)if(y)switch(o){case"json":y=JSON.parse(y);break;case"xml":y=M(y,"application/xml");break;case"document":y=M(y,"text/html")}else y=null;if(y){if("array-buffer"===o||"blob"===o){const e=m.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&y["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(y).json();e.error&&(y=e)}catch{}}"image"===o&&y instanceof Blob&&(y=await q(URL.createObjectURL(y),e,!0))}}else y=await m.text()}else y=await q(t,e)}catch(i){if("AbortError"===i.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!m&&i instanceof TypeError&&p.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||S(t))throw i;e.redoRequest=!0,(0,c.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{x&&clearTimeout(x)}return[m,y]}function M(e,t){let s;try{s=(new DOMParser).parseFromString(e,t)}catch{}if(!s||s.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return s}async function C(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const i=e.params.requestOptions;if(!t||"native"===i.responseType||"native-request-init"===i.responseType)return!0;let n,a;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[b]=s,n;s&&(s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[b]=s,n.details=s.messages));let o,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,o=n.messageCode,o=o&&o.toUpperCase());const u=i.authMode;if(403===a&&(4===l||n.message&&n.message.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&y.includes(a)&&!F(e.params.url)&&(403!==a||o&&!x.includes(o)&&(null==l||2===l&&e.credentialToken))){await _();try{const t=await r.id.getCredential(e.params.url,{error:T("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function q(e,t,s=!1){const i=t.controller.signal,r=new Image;return t.withCredentials?r.crossOrigin="use-credentials":r.crossOrigin="anonymous",r.alt="",r.fetchPriority=p.priority,r.src=e,(0,d.fY)(r,e,s,i)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,s)=>{s.d(t,{r:()=>n});var i=s(17452);const r=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,i.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!r.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,s)=>{s.d(t,{Hu:()=>c,fY:()=>l,jH:()=>h,jz:()=>d});var i=s(68773),r=s(80442),n=s(70586),a=s(95330),o=s(17452);function l(e,t,s=!1,i){return new Promise(((o,l)=>{if((0,a.Hc)(i))return void l(u());let c=()=>{f(),l(new Error(`Unable to load ${t}`))},h=()=>{const t=e;f(),o(t)},d=()=>{if(!e)return;const t=e;f(),t.src="",l(u())};const f=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,n.pC)(i)&&i.removeEventListener("abort",d),d=null,s&&URL.revokeObjectURL(t)};(0,n.pC)(i)&&i.addEventListener("abort",d),(0,r.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){i.Z.request.crossOriginNoCorsDomains||(i.Z.request.crossOriginNoCorsDomains={});const t=i.Z.request.crossOriginNoCorsDomains;for(let s of e)s=s.toLowerCase(),/^https?:\/\//.test(s)?t[(0,o.P$)(s)??""]=0:(t[(0,o.P$)("http://"+s)??""]=0,t[(0,o.P$)("https://"+s)??""]=0)}function h(e){const t=i.Z.request.crossOriginNoCorsDomains;if(t){let s=(0,o.P$)(e);if(s)return s=s.toLowerCase(),!(0,o.D6)(s,(0,o.TI)())&&t[s]<Date.now()-36e5}return!1}async function d(e){const t=i.Z.request.crossOriginNoCorsDomains,s=(0,o.P$)(e);t&&s&&(t[s.toLowerCase()]=Date.now());const r=(0,o.mN)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|