@arcgis/core 4.22.0-next.20211004 → 4.22.0-next.20211005

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{aa65cfe45c665c4d494f.js → 23e7e3e8d3c981c86ed6.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{24e26f4388578c8921ba.js → 4a437ae7ef1e7cf664f6.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{aa67ace72e182371b46e.js → 5bd49d7c27169f8a30e8.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{78fd49f290c18eecc177.js → a087fee9e554836e1423.js} +1 -1
  6. package/chunks/NativeLine.glsl.js +9 -9
  7. package/chunks/NoiseTextureAtlas.glsl.js +1 -1
  8. package/chunks/RibbonLine.glsl.js +91 -53
  9. package/geometry/support/heightModelInfoUtils.js +1 -1
  10. package/layers/AnalysesLayer.js +5 -0
  11. package/layers/analyses/AreaMeasurement3D.js +5 -0
  12. package/layers/analyses/DirectLineMeasurement3D.js +5 -0
  13. package/layers/analyses/LineOfSight.js +5 -0
  14. package/layers/analyses/Slice.js +5 -0
  15. package/layers/effects/jsonUtils.js +1 -1
  16. package/layers/mixins/BlendLayer.js +1 -1
  17. package/package.json +1 -1
  18. package/rest/support/RelationshipQuery.js +1 -1
  19. package/support/AnalysesCollection.js +5 -0
  20. package/support/revision.js +1 -1
  21. package/symbols/LineSymbol3DLayer.js +1 -1
  22. package/symbols/PathSymbol3DLayer.js +1 -1
  23. package/symbols/support/Symbol3DOutline.js +1 -1
  24. package/symbols/support/symbolLayerUtils3D.js +1 -1
  25. package/views/2d/layerViewModuleImportUtils.js +1 -1
  26. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  27. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  28. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  29. package/views/3d/interactive/editingTools/settings.js +1 -1
  30. package/views/3d/layerViewModuleImportUtils.js +1 -1
  31. package/views/3d/layers/AnalysesLayerView3D.js +5 -0
  32. package/views/3d/layers/analyses/AreaMeasurement3D/AreaMeasurementView3D.js +5 -0
  33. package/views/3d/layers/analyses/DirectLineMeasurement3D/DirectLineMeasurementView3D.js +5 -0
  34. package/views/3d/layers/analyses/LineOfSight/LineOfSightView.js +5 -0
  35. package/views/3d/layers/analyses/Slice/SliceView.js +5 -0
  36. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  37. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  38. package/views/3d/layers/graphics/lineUtils.js +1 -1
  39. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  40. package/views/3d/terrain/OverlayManager.js +1 -1
  41. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +22 -13
  42. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  43. package/views/3d/webgl-engine/materials/StippleTextureRepository.js +1 -1
  44. package/views/3d/webgl-engine/materials/lineStippleUtils.js +1 -1
  45. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +1 -1
  46. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  47. package/views/SceneView.js +1 -1
  48. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(16358),o=(r(80442),r(78286)),s=r(17202);const i={apiKey:void 0,applicationUrl:n.Z.location&&n.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(n.Z.esriConfig&&((0,o.RH)(i,n.Z.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.22.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>l,a9:()=>a,fS:()=>s,cq:()=>f,w6:()=>c,Od:()=>b,e$:()=>d,FY:()=>p});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const i=!!Array.prototype.fill;function a(e,t){if(i)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function c(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class l{constructor(){this.last=0}}const u=new l;function f(e,t,r,n){n=n||u;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,n){const o=null==r?e.length:r,s=f(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const h=new Set;function p(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;h.clear();for(let e=0;e<n;++e)h.add(t[e]);o=o||u;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;for(let t=0;t<i;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;return h.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},16358:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,s=r(16358);let i;var a,c;function l(e){return"function"==typeof i[e]?i[e]=i[e](s.Z):i[e]}i=null!=(n=s.Z.dojoConfig)&&n.has||null!=(o=s.Z.esriConfig)&&o.has?{...null==(a=s.Z.dojoConfig)?void 0:a.has,...null==(c=s.Z.esriConfig)?void 0:c.has}:{},l.add=(e,t,r,n)=>((n||void 0===i[e])&&(i[e]=t),r&&l(e)),l.cache=i,l.add("esri-deprecation-warnings",!0),(()=>{l.add("host-webworker",void 0!==s.Z.WorkerGlobalScope&&self instanceof s.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(l.add("host-browser",e),l.add("host-node","object"==typeof s.Z.process&&s.Z.process.versions&&s.Z.process.versions.node&&s.Z.process.versions.v8),l.add("dom",e),l("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(l.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),l.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),l.add("khtml",r.includes("Konqueror")?n:void 0),l.add("edge",parseFloat(t.split("Edge/")[1])||void 0),l.add("opr",parseFloat(t.split("OPR/")[1])||void 0),l.add("webkit",!l("wp")&&!l("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),l.add("chrome",!l("edge")&&!l("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),l.add("android",!l("wp")&&parseFloat(t.split("Android ")[1])||void 0),l.add("safari",!r.includes("Safari")||l("wp")||l("chrome")||l("android")||l("edge")||l("opr")?void 0:parseFloat(r.split("Version/")[1])),l.add("mac",r.includes("Macintosh")),!l("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));l.add(e,n),l.add("ios",n)}l.add("trident",parseFloat(r.split("Trident/")[1])||void 0),l("webkit")||(!t.includes("Gecko")||l("wp")||l("khtml")||l("trident")||l("edge")||l.add("mozilla",n),l("mozilla")&&l.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(s.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&l.add("esri-mobile",t),r&&l.add("esri-iPhone",r),l.add("esri-geolocation",!!navigator.geolocation)}l.add("esri-canvas-svg-support",!l("trident")),l.add("esri-wasm","WebAssembly"in s.Z),l.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in s.Z,t=!1===s.Z.crossOriginIsolated;return e&&!t})),l.add("esri-atomics","Atomics"in s.Z),l.add("esri-workers","Worker"in s.Z),l.add("esri-text-decoder","TextDecoder"in s.Z),l.add("esri-text-encoder","TextEncoder"in s.Z),l.add("web-feat:cache","caches"in s.Z),l.add("esri-workers-arraybuffer-transfer",!l("safari")||Number(l("safari"))>=12),l.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),l.add("featurelayer-simplify-payload-size-factors",[1,1,4]),l.add("featurelayer-snapshot-enabled",!0),l.add("featurelayer-snapshot-point-min-threshold",8e4),l.add("featurelayer-snapshot-point-max-threshold",4e5),l.add("featurelayer-snapshot-point-coverage",.1),l.add("featurelayer-advanced-symbols",!1),l.add("featurelayer-pbf",!0),l.add("featurelayer-pbf-statistics",!1),l.add("feature-layers-workers",!0),l.add("mapview-transitions-duration",200),l.add("mapserver-pbf-enabled",!1),l("host-webworker")||l("host-browser")&&(l.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),l.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{l.add("esri-image-decode",!0,!0,!0)})).catch((()=>{l.add("esri-image-decode",!1,!0,!0)}))}return!1})),l.add("esri-url-encodes-apostrophe",(()=>{const e=s.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),l.add("vectortilelayer-max-buffers",l("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>s,fS:()=>i,yd:()=>o}),r(67676),r(80442);var n=r(1533);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,n.W0)(e)||(0,n.lq)(e)||(0,n.KZ)(e)||(0,n.z3)(e)||(0,n.Uc)(e)||(0,n.Hx)(e)||(0,n.ZY)(e)||(0,n.xZ)(e)||(0,n.fS)(e))return(0,n.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,s(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(s(e))})),t}let t;const r=e;if("function"==typeof r.clone)t=r.clone();else if("function"==typeof r.map&&"function"==typeof r.forEach)t=r.map(s);else if("function"==typeof r.notifyChange&&"function"==typeof r.watch)t=r.clone();else{t={};for(const r of Object.getOwnPropertyNames(e))t[r]=s(e[r])}return t}function i(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)m(r,null,t)}function m(e,t,r){return n(e)?r(e):t}function y(e,t){return n(e)?t(e):null}function v(e){return e.filter((e=>n(e)))}function w(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function _(e){return e}r.d(t,{Po:()=>y,yw:()=>i,j0:()=>_,SC:()=>u,O3:()=>f,lV:()=>v,JR:()=>g,U2:()=>w,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>x,$6:()=>c,Ue:()=>l,yi:()=>f,zE:()=>u,dD:()=>O,hh:()=>$,vr:()=>I,Ds:()=>j,as:()=>P,WW:()=>k,R8:()=>_,D_:()=>w,Hc:()=>p,tI:()=>M,y8:()=>C,fu:()=>m,$F:()=>y,d1:()=>S,DB:()=>E,r9:()=>b,k_:()=>d,H9:()=>g,gx:()=>A,Hl:()=>v});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw u(t)}function h(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,a.pC)(t)&&t.aborted}function b(e){if(w(e))throw e}function g(e){if(!w(e))throw e}function m(e,t){const r=h(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function y(e,t){const r=h(e);if(!(0,a.Wi)(r))return d(r),(0,i.IH)(r,"abort",(()=>t(u())))}function v(e,t){const r=h(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=m(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function w(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!w(e))throw e}))}function O(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function P(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return P(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function k(e){return P(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function S(e){return Promise.reject(e)}function E(e){return Promise.resolve(e)}function x(e,t,r){const n=f();return m(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);m(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function C(e){return e&&"function"==typeof e.then}function A(e){return M(e)?e:Promise.resolve(e)}function M(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function j(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=O();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||O(),s=null,t>0){const n=f();r=A(e(...l,n.signal));const o=r;x(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=A(e(...l));const d=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},h=r,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return c}function $(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function I(e){let t=f();const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>x,tD:()=>j,ZN:()=>le,fl:()=>ue,AX:()=>_,Gd:()=>v,Ie:()=>ie,sJ:()=>Q,AH:()=>K,vt:()=>oe,oh:()=>N,P$:()=>F,Ml:()=>fe,ed:()=>$,b7:()=>E,D6:()=>Z,tm:()=>I,YP:()=>B,jc:()=>D,HK:()=>H,$U:()=>X,oC:()=>G,kl:()=>R,v_:()=>q,hF:()=>U,_l:()=>V,PF:()=>L,Fv:()=>J,B7:()=>S,u0:()=>P,Yd:()=>ne,Hu:()=>ce,Qj:()=>se,hO:()=>ee,mN:()=>O});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new y(n.Z.applicationUrl),w={},_=(()=>{const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function O(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>k(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):k(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=X(e);const n=$(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&te()&&(r=ee(r)),O(r)}function x(e){const t=$(e);let r,n;if(t){const e=A(t.proxyUrl);r=e.path,n=e.query?P(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const C={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?(C.path=e.slice(0,t),C.query=e.slice(t+1)):(C.path=e,C.query=null),C}function M(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function $(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=J(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function N(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function Z(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function R(e){if("string"==typeof e){if(!B(e))return!0;e=ae(e)}if(Z(e,v))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=W(t[r]);for(let t=0;t<n.length;t++)if(Z(e,n[t]))return!0}return!1}function W(e){return w[e]||(Y(e)||G(e)?w[e]=[new y(U(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function U(e,t=_,r){return G(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,i.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!B(e))return e;const n=J(e),o=n.toLowerCase(),s=J(t).toLowerCase().replace(/\/+$/,""),i=r?J(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function J(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&G(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!b.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!$(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=U(e=e.trim()))))}function q(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(B(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function F(e,t=!1){if(D(e)||H(e))return null;let r=e.indexOf("://");if(-1===r&&G(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function B(e){return G(e)||Y(e)}function D(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function K(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const z=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(z);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function V(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function G(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return u.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&G(e)}function ee(e){return G(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return G(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(B(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&B(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new y(U(e)):(e.scheme||(e.scheme=v.scheme),e)}function ce(e,t){const r=O(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function le(e,t,r){const n=O(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function ue(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function fe(e){if((0,i.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7267)]).then(r.bind(r,37267)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(1183)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(6481),r.e(3675),r.e(5413)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(991)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7592),r.e(7618)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(6312),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(9294),r.e(6883)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7303),r.e(3594)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(3568),r.e(6810),r.e(3388)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?(0,a.yi)():null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20211004",o="eeb4136a22fc4abbbf7657335b8dbf2ce65d645f"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"65fd1b53405f13d000b9",223:"ba96e9cf6afaa5d3d69f",247:"a0450fbf01de854f5c97",565:"5fd6f37ebdf9884c3526",576:"38e792e037e88a74995a",639:"a2ca5af1df5a4e97fd89",819:"6280c69d87b2a3a18780",991:"b6a68c6556a0cd817e41",1017:"a56b611ab27ab829994f",1027:"aa67ace72e182371b46e",1074:"071a418f1f190d2ece24",1183:"cb712048da3f7341cf6e",1197:"dceef3cad1e5d973967f",1302:"24e26f4388578c8921ba",1387:"b71d775db3ee46094a89",1421:"33890ccd444ec29f7655",1433:"1def8845714ea745fd24",1496:"814844112ee7d44c2f0d",1534:"09141e5539e652edfc6c",1611:"b7b79d608909cba46a06",1762:"d58dc74b046b12a3af57",1768:"a29e37fd6f3fc5557754",2012:"fa5b268d0adcc1839840",2134:"aadc165adf1bf2fc900f",2217:"b6509e8227e6283f8fef",2319:"89673e4f422957a7feaa",2360:"c849cbf1c751c94721e2",2392:"943af6d4fb61d556e97e",2399:"5db4788c73cb984a430c",2442:"bbc8b42c1e57a9f7a9b1",2515:"29c9ebc28d79846f96c8",2594:"fa9dd6f94d53f553f0bc",2618:"8322e2e4fa8ed408ff99",2894:"0d6dbcf82012cba81adf",3027:"e320c44b0e59e5f13058",3073:"1b2786c57f73f301b632",3142:"183d94ced596ca4e2fef",3172:"6f7a6841e7269d2764ad",3230:"f76de5b2a46656fe5432",3289:"d15f38b2347b81f19851",3388:"2cea27a0d07aa9a88ad4",3389:"9536b706e8b3a27427a5",3485:"6d0197b040395560ac90",3529:"f5f6983e8db08af342f4",3568:"94c5301c08710b14125a",3594:"1607aaa711ba0d7ea03e",3668:"365f772485e9e6b18fff",3675:"bc94b98f8ff3fcd2ffa1",3812:"78fd49f290c18eecc177",3826:"5938cc3cf9547a701a7b",3852:"60fe432d0b465ed72f01",3942:"b5184e61b2cdd8e48f65",4166:"6dfeb491bf611349d010",4257:"1607c79c2d5550cf2068",4324:"e609283f31e2c610376f",4358:"3338c8c40a22e0a78080",4564:"62526570dfbcbea7160c",4599:"f11dbfcc56bf04d1f3c8",4695:"dca79a567d98d98f3d8f",4720:"4b545edce4d95a29df60",4738:"152ef0adc594ae234039",4879:"aae72111022a5fdde974",4886:"7fcbe336b9008eb16bea",4889:"029391285ad66403c9e6",5191:"aa65cfe45c665c4d494f",5235:"8304f0b17747e98863ca",5265:"1a3cbeb0a53d03a51dad",5359:"88334d305eab7d7ce114",5413:"1266d48ca9de2e4758f1",5606:"64d9a062c1f1ac08a3ac",5660:"4990e49a5ca46cc33ba7",5732:"469ba1b24cdeea0758ec",5776:"037294dc4964fbda2db0",5837:"78024baa539288c8f7c2",6237:"2e2440d7841ea1d2b07d",6312:"51765c0f1d67f3f74fbf",6412:"93525fe56d7af21f5fe3",6481:"e3aed0a5b64180bdb6c3",6508:"7fcade698598a3bbb005",6570:"6fe972b14f4516c4388b",6592:"834323ab75384e3973f5",6619:"21d6d08cec85947fa6f5",6629:"0070bb66ae36bce099f0",6690:"436e430fe53dde77b25f",6710:"df9010ea6e1cc4cb518e",6718:"6b378d77279e57b6d277",6774:"67944142f419e0f5dd1a",6810:"bd29ea967877fc6d7c53",6830:"5790e745c696d802a1d1",6850:"46fbc2f580260802862f",6883:"da8e3b0251c4a858ae0e",6919:"26d171ebfa03e0cebb14",7007:"8e8df1f17b4fd21cda7d",7039:"cf21a3904acac5f57c3f",7049:"ef6ad7838d61066260e3",7055:"6da8fab411661bc121f4",7267:"82e28348b4188ca94a26",7277:"46bf8921db25845c63c0",7288:"5c90df048e7c0bbff719",7303:"aea8e55accc9e9abdec9",7562:"b4e1d80d7f1a8796e7f2",7572:"aa6d9a51adc278bbe8e8",7592:"33ba228d01e68cd7dfb4",7593:"b1723da85d2cd7efd419",7618:"255fab82ab2590624aac",7637:"fa2e4491db9113a0c8e6",7787:"ae9c28a0f8c980554383",7824:"fdc8efe1ca68bd1b5f27",7845:"7ff27dc56ea11831f4a4",7873:"93eb468381bfcf0e47d7",8008:"c3be8924d6b340efc473",8031:"d1dfa8e35289e83f8f82",8062:"c0ad0f1c7884abcdf9c2",8227:"1f394b20410fddb30a96",8231:"5bb12279b85bbed73fb4",8397:"b65c373f76fce41e1a59",8404:"d3155a8f86ba980745d8",8479:"dde56cbccdf0e3babb37",8511:"9a5a21b45d5de648eda4",8625:"caa5d1b9680a822f2070",8711:"4923f31d3ae4296a6fe6",8758:"8d33644192c01e5416b4",8778:"6ee11a06736d0fe7defb",8828:"2a9a5b51603a07061f9c",8936:"d91a4c4f5c66287e6cc9",9070:"db202ae7dc8b584f312f",9254:"b4b464b59ce799f9fc1c",9291:"6e172b435a55bc72baef",9294:"3fc4576ac750bed0e1c5",9296:"58166c34e4b610d28162",9489:"8a47ffe0ef89c63c550d",9490:"45c2f2a8789268e84fa6",9509:"5ccb44205bca6ca7c920",9554:"5cfd7d625ea47d93e3ed",9625:"71caf9825b9c3934f85e",9884:"3a04496f43de689cc63b",9928:"030494184c0af8bab70e",9930:"84bf97c35fe606c6768c",9932:"240c3369bec873442c41"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,5191:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(16358),o=(r(80442),r(78286)),s=r(17202);const i={apiKey:void 0,applicationUrl:n.Z.location&&n.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(n.Z.esriConfig&&((0,o.RH)(i,n.Z.esriConfig,!0),delete i.has),!i.assetsPath){const e="4.22.0";i.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.r}/assets`}i.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(i,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),i.request.corsEnabledServers=[],i.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){if(super(e,t,r),!(this instanceof i))return new i(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(68773),o=(r(80442),r(70586)),s=r(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.Z.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;(0,o.pC)(r);){const t=r[e];if((0,o.pC)(t))return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.Z.log.level?n.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,r){if(""===r)return"$";const o=(0,n.hS)(r,t),s=null==o?"":o;if(void 0===s)throw new Error(`could not find key "${r}" in template`);return s.toString()}))}(t,r)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*n._m:e}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{SO:()=>l,a9:()=>a,fS:()=>s,cq:()=>f,w6:()=>c,Od:()=>b,e$:()=>d,FY:()=>p});var n=r(70586),o=r(77734);function s(e,t,r){if((0,n.Wi)(e)&&(0,n.Wi)(t))return!0;if((0,n.Wi)(e)||(0,n.Wi)(t)||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const i=!!Array.prototype.fill;function a(e,t){if(i)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function c(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class l{constructor(){this.last=0}}const u=new l;function f(e,t,r,n){n=n||u;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,n){const o=null==r?e.length:r,s=f(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const h=new Set;function p(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;h.clear();for(let e=0;e<n;++e)h.add(t[e]);o=o||u;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;for(let t=0;t<i;++t)if(h.has(e[t])&&(s&&s.push(e[t]),h.delete(e[t]),e[t]=e[r-1],--r,--t,0===h.size||0===r))return h.clear(),r;return h.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}new o.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>o,IH:()=>s})},16358:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,s=r(16358);let i;var a,c;function l(e){return"function"==typeof i[e]?i[e]=i[e](s.Z):i[e]}i=null!=(n=s.Z.dojoConfig)&&n.has||null!=(o=s.Z.esriConfig)&&o.has?{...null==(a=s.Z.dojoConfig)?void 0:a.has,...null==(c=s.Z.esriConfig)?void 0:c.has}:{},l.add=(e,t,r,n)=>((n||void 0===i[e])&&(i[e]=t),r&&l(e)),l.cache=i,l.add("esri-deprecation-warnings",!0),(()=>{l.add("host-webworker",void 0!==s.Z.WorkerGlobalScope&&self instanceof s.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(l.add("host-browser",e),l.add("host-node","object"==typeof s.Z.process&&s.Z.process.versions&&s.Z.process.versions.node&&s.Z.process.versions.v8),l.add("dom",e),l("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(l.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),l.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),l.add("khtml",r.includes("Konqueror")?n:void 0),l.add("edge",parseFloat(t.split("Edge/")[1])||void 0),l.add("opr",parseFloat(t.split("OPR/")[1])||void 0),l.add("webkit",!l("wp")&&!l("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),l.add("chrome",!l("edge")&&!l("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),l.add("android",!l("wp")&&parseFloat(t.split("Android ")[1])||void 0),l.add("safari",!r.includes("Safari")||l("wp")||l("chrome")||l("android")||l("edge")||l("opr")?void 0:parseFloat(r.split("Version/")[1])),l.add("mac",r.includes("Macintosh")),!l("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),r=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replace(/_/g,""));l.add(e,n),l.add("ios",n)}l.add("trident",parseFloat(r.split("Trident/")[1])||void 0),l("webkit")||(!t.includes("Gecko")||l("wp")||l("khtml")||l("trident")||l("edge")||l.add("mozilla",n),l("mozilla")&&l.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(s.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&l.add("esri-mobile",t),r&&l.add("esri-iPhone",r),l.add("esri-geolocation",!!navigator.geolocation)}l.add("esri-canvas-svg-support",!l("trident")),l.add("esri-wasm","WebAssembly"in s.Z),l.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in s.Z,t=!1===s.Z.crossOriginIsolated;return e&&!t})),l.add("esri-atomics","Atomics"in s.Z),l.add("esri-workers","Worker"in s.Z),l.add("esri-text-decoder","TextDecoder"in s.Z),l.add("esri-text-encoder","TextEncoder"in s.Z),l.add("web-feat:cache","caches"in s.Z),l.add("esri-workers-arraybuffer-transfer",!l("safari")||Number(l("safari"))>=12),l.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),l.add("featurelayer-simplify-payload-size-factors",[1,1,4]),l.add("featurelayer-snapshot-enabled",!0),l.add("featurelayer-snapshot-point-min-threshold",8e4),l.add("featurelayer-snapshot-point-max-threshold",4e5),l.add("featurelayer-snapshot-point-coverage",.1),l.add("featurelayer-advanced-symbols",!1),l.add("featurelayer-pbf",!0),l.add("featurelayer-pbf-statistics",!1),l.add("feature-layers-workers",!0),l.add("mapview-transitions-duration",200),l.add("mapserver-pbf-enabled",!1),l("host-webworker")||l("host-browser")&&(l.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),l.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{l.add("esri-image-decode",!0,!0,!0)})).catch((()=>{l.add("esri-image-decode",!1,!0,!0)}))}return!1})),l.add("esri-url-encodes-apostrophe",(()=>{const e=s.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),l.add("vectortilelayer-max-buffers",l("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,r)=>{"use strict";r.d(t,{d9:()=>s,fS:()=>i,yd:()=>o}),r(67676),r(80442);var n=r(1533);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,n.W0)(e)||(0,n.lq)(e)||(0,n.KZ)(e)||(0,n.z3)(e)||(0,n.Uc)(e)||(0,n.Hx)(e)||(0,n.ZY)(e)||(0,n.xZ)(e)||(0,n.fS)(e))return(0,n.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,r)=>{t.set(r,s(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(s(e))})),t}let t;const r=e;if("function"==typeof r.clone)t=r.clone();else if("function"==typeof r.map&&"function"==typeof r.forEach)t=r.map(s);else if("function"==typeof r.notifyChange&&"function"==typeof r.watch)t=r.clone();else{t={};for(const r of Object.getOwnPropertyNames(e))t[r]=s(e[r])}return t}function i(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,r)=>{"use strict";function n(e){return null!=e}function o(e){return null==e}function s(e){return void 0===e}function i(e,t){return n(e)?t(e):null}function a(e){return e}function c(e,t){if(o(e))throw new Error(t);return e}function l(e,t){return n(e)?e:"function"==typeof t?t():t}function u(e){return n(e)&&e.destroy(),null}function f(e){return n(e)&&e.dispose(),null}function d(e){return n(e)&&e.remove(),null}function h(e){return n(e)&&e.release(),null}function p(e){return null}function b(e,t){const r=new Array;for(const n of e)r.push(m(n,null,t));return r}function g(e,t){for(const r of e)m(r,null,t)}function m(e,t,r){return n(e)?r(e):t}function y(e,t){return n(e)?t(e):null}function v(e){return e.filter((e=>n(e)))}function w(e,...t){let r=e;for(let e=0;e<t.length&&r;++e)r=r[t[e]];return r}function _(e){return e}r.d(t,{Po:()=>y,yw:()=>i,j0:()=>_,SC:()=>u,O3:()=>f,lV:()=>v,JR:()=>g,U2:()=>w,Wi:()=>o,pC:()=>n,o8:()=>s,Fd:()=>b,R2:()=>m,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>a,Pt:()=>l,s3:()=>c})},78286:(e,t,r)=>{"use strict";r.d(t,{RH:()=>o,hS:()=>s,RB:()=>i});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce((function(e,o){let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{-1===s.indexOf(e)&&s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>x,$6:()=>c,Ue:()=>l,yi:()=>f,zE:()=>u,dD:()=>O,hh:()=>$,vr:()=>I,Ds:()=>j,as:()=>P,WW:()=>k,R8:()=>_,D_:()=>w,Hc:()=>p,tI:()=>M,y8:()=>C,fu:()=>m,$F:()=>y,d1:()=>S,DB:()=>E,r9:()=>b,k_:()=>d,H9:()=>g,gx:()=>A,Hl:()=>v});const n=(o=r(16358).Z,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e){return Promise.all(e)}function l(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function u(e="Aborted"){return new s.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw u(t)}function h(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,a.pC)(t)&&t.aborted}function b(e){if(w(e))throw e}function g(e){if(!w(e))throw e}function m(e,t){const r=h(e);if(!(0,a.Wi)(r)){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function y(e,t){const r=h(e);if(!(0,a.Wi)(r))return d(r),(0,i.IH)(r,"abort",(()=>t(u())))}function v(e,t){const r=h(t);return(0,a.Wi)(r)?e:new Promise(((r,n)=>{let o=m(t,(()=>n(u())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function w(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!w(e))throw e}))}function O(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function P(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return P(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return l((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};r.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function k(e){return P(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function S(e){return Promise.reject(e)}function E(e){return Promise.resolve(e)}function x(e,t,r){const n=f();return m(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);m(n,(()=>{s&&(clearTimeout(s),o(u()))}))}))}function C(e){return e&&"function"==typeof e.then}function A(e){return M(e)?e:Promise.resolve(e)}function M(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function j(e,t=-1){let r,n,o,s,i=null;const c=(...l)=>{if(r){n=l,s&&s.reject(u()),s=O();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||O(),s=null,t>0){const n=f();r=A(e(...l,n.signal));const o=r;x(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=A(e(...l));const d=()=>{const e=n;n=o=r=i=null,null!=e&&c(...e)},h=r,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return c}function $(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}function I(e){let t=f();const r=e(t.signal);let n={promise:r,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{n&&(n.finished=!0,n=null),t=null};return r.then(o,o),n}},19153:(e,t,r)=>{"use strict";r.d(t,{Qs:()=>a,hP:()=>c,gx:()=>i,Cb:()=>l});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return null==e?"":e}function i(e,t){return e.replace(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e,t){if(e.forEach)e.forEach(t);else for(let r=0;r<e.length;r++)t(e[r],r,e)}function o(e,t,r){if(e.slice)return e.slice(t,r);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===r?r=e.length:(r<0&&(r+=e.length),r=Math.min(e.length,Math.max(0,r)));const n=Math.max(0,r-t),o=new(0,e.constructor)(n);for(let r=0;r<n;r++)o[r]=e[t+r];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}r.d(t,{Ed:()=>n,eP:()=>s,xZ:()=>h,fS:()=>p,z3:()=>l,Hx:()=>f,W0:()=>i,Uc:()=>u,ZY:()=>d,lq:()=>a,KZ:()=>c,tP:()=>o})},17452:(e,t,r)=>{"use strict";r.d(t,{R9:()=>y,qg:()=>x,tD:()=>j,ZN:()=>le,fl:()=>ue,AX:()=>_,Gd:()=>v,Ie:()=>ie,sJ:()=>Q,AH:()=>K,vt:()=>oe,oh:()=>N,P$:()=>F,Ml:()=>fe,ed:()=>$,b7:()=>E,D6:()=>Z,tm:()=>I,YP:()=>B,jc:()=>D,HK:()=>H,$U:()=>X,oC:()=>G,kl:()=>R,v_:()=>q,hF:()=>U,_l:()=>V,PF:()=>L,Fv:()=>J,B7:()=>S,u0:()=>P,Yd:()=>ne,Hu:()=>ce,Qj:()=>se,hO:()=>ee,mN:()=>O});var n=r(68773),o=r(20102),s=(r(16358),r(92604)),i=r(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=n.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new y(n.Z.applicationUrl),w={},_=(()=>{const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function O(e){const t={path:null,query:null},r=new y(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function k(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function S(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>k(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):k(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function E(e=!1){let t,r=c.proxyUrl;if("string"==typeof e){t=X(e);const n=$(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&te()&&(r=ee(r)),O(r)}function x(e){const t=$(e);let r,n;if(t){const e=A(t.proxyUrl);r=e.path,n=e.query?P(e.query):null}if(r){const t=O(e);e=r+"?"+t.path;const o=S({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const C={path:"",query:""};function A(e){const t=e.indexOf("?");return-1!==t?(C.path=e.slice(0,t),C.query=e.slice(t+1)):(C.path=e,C.query=null),C}function M(e){return(e=re(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=A(e).path),!0)).toLowerCase()}function j(e){const t={proxyUrl:e.proxyUrl,urlPrefix:M(e.urlPrefix)},r=c.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function $(e){const t=c.proxyRules,r=M(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=T(e),t=T(t),re(e)===re(t)}function T(e){const t=(e=J(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function N(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=c.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function Z(e,t,r=!1){const n=ae(e),o=ae(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function R(e){if("string"==typeof e){if(!B(e))return!0;e=ae(e)}if(Z(e,v))return!0;const t=c.trustedServers||[];for(let r=0;r<t.length;r++){const n=W(t[r]);for(let t=0;t<n.length;t++)if(Z(e,n[t]))return!0}return!1}function W(e){return w[e]||(Y(e)||G(e)?w[e]=[new y(U(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function U(e,t=_,r){return G(e)?r&&r.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===F(e).slice(2)?`http:${e}`:`https:${e}`:Y(e)?e:(0,i.j0)(q("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function L(e,t=_,r){if(!B(e))return e;const n=J(e),o=n.toLowerCase(),s=J(t).toLowerCase().replace(/\/+$/,""),i=r?J(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function J(e){return function(e){const t=c.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&G(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),p.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&n===v.authority&&!b.test(e)||(te()&&n===v.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||te()&&!$(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=A(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=U(e=e.trim()))))}function q(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const r=[];if(B(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function F(e,t=!1){if(D(e)||H(e))return null;let r=e.indexOf("://");if(-1===r&&G(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=re(e,!0)),e}function B(e){return G(e)||Y(e)}function D(e){return null!=e&&"blob:"===e.slice(0,5)}function H(e){return"data:"===e.slice(0,5)}function K(e){const t=Q(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const z=/^data:(.*?)(;base64)?,(.*)$/;function Q(e){const t=e.match(z);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function V(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function G(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Y(e){return u.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&G(e)}function ee(e){return G(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function re(e,t=!1){return G(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ne(e){let t=0;if(B(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function oe(e,t){if(!e)return"";const r=O(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function se(e){return e.replace(/\/+$/,"")}function ie(e,t,r){if(!(t&&r&&e&&B(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function ae(e){return"string"==typeof e?new y(U(e)):(e.scheme||(e.scheme=v.scheme),e)}function ce(e,t){const r=O(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function le(e,t,r){const n=O(e),o=n.query||{};return o[t]=String(r),`${n.path}?${S(o)}`}function ue(e,t){const r=O(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=S(n);return o?`${r.path}?${o}`:r.path}function fe(e){if((0,i.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},25045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330),c=r(94362),l=r(17202);const u={statsWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7267)]).then(r.bind(r,37267)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(1183)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(6481),r.e(3675),r.e(5413)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(991)]).then(r.bind(r,41650)),GeoJSONSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7592),r.e(7618)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(6412),r.e(2894),r.e(1534),r.e(3485),r.e(8397),r.e(7592),r.e(4324),r.e(6312),r.e(3142)]).then(r.bind(r,53142)),PointCloudWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(9294),r.e(6883)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(7303),r.e(3594)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(5265).then(r.bind(r,55265)),WFSSourceWorker:()=>Promise.all([r.e(8778),r.e(6570),r.e(9928),r.e(2894),r.e(1534),r.e(8397),r.e(7592),r.e(4324),r.e(8479),r.e(6919),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(3568),r.e(6810),r.e(3388)]).then(r.bind(r,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r&&r.signal,s=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,c.jt)();return new Promise(((r,o)=>{const c=(0,a.$F)(n,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:i}),o((0,a.zE)()))})),l={resolve:r,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:c.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?(0,a.yi)():null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(r,{controller:s,promise:l}),l.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e).type===c.Cs.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:n,data:s}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(s)}_post(e,t,r){return(0,c.oi)(this._port,e,t,r)}}y.kernelInfo={revision:l.$,version:n.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{Cs:()=>n,jt:()=>a,oi:()=>l,QM:()=>u,AB:()=>c});var n,o,s=r(80442);(o=n||(n={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let i=0;function a(){return i++}function c(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function l(e,t,r,o){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=f(o),t.data=r):(s=f(r.transferList),t.data=r.result),s?e.postMessage(t,s):e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function f(e){if(!e||!e.length)return null;if((0,s.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>l,id:()=>a,qh:()=>c,i8:()=>s,Nv:()=>i});var n=r(80442),o=r(17452);const s="4.22",i={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),i=e.options,a=i.responseType;i.signal=null==t?void 0:t.signal,i.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(n=(0,o.oh)(e.url))&&n.after?a:"array-buffer";const c=await s(e.url,i),l={data:c.data,ssl:c.ssl};switch(c.requestOptions.responseType){case"native-request-init":return delete l.data.signal,l;case"blob":l.data=await l.data.arrayBuffer();break;case"json":l.data=(new TextEncoder).encode(JSON.stringify(l.data)).buffer;break;case"text":l.data=(new TextEncoder).encode(l.data).buffer}return{result:l,transferList:[l.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},17202:(e,t,r)=>{"use strict";r.d(t,{r:()=>n,$:()=>o});const n="20211005",o="8114ba958ab2351b84a13cf5542d5e2b236be097"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,r),s.loaded=!0,s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"65fd1b53405f13d000b9",223:"ba96e9cf6afaa5d3d69f",247:"a0450fbf01de854f5c97",565:"5fd6f37ebdf9884c3526",576:"38e792e037e88a74995a",639:"a2ca5af1df5a4e97fd89",819:"6280c69d87b2a3a18780",991:"b6a68c6556a0cd817e41",1017:"a56b611ab27ab829994f",1027:"5bd49d7c27169f8a30e8",1074:"071a418f1f190d2ece24",1183:"cb712048da3f7341cf6e",1197:"dceef3cad1e5d973967f",1302:"4a437ae7ef1e7cf664f6",1387:"b71d775db3ee46094a89",1421:"33890ccd444ec29f7655",1433:"1def8845714ea745fd24",1496:"814844112ee7d44c2f0d",1534:"09141e5539e652edfc6c",1611:"b7b79d608909cba46a06",1762:"d58dc74b046b12a3af57",1768:"a29e37fd6f3fc5557754",2012:"fa5b268d0adcc1839840",2134:"aadc165adf1bf2fc900f",2217:"b6509e8227e6283f8fef",2319:"89673e4f422957a7feaa",2360:"c849cbf1c751c94721e2",2392:"943af6d4fb61d556e97e",2399:"5db4788c73cb984a430c",2442:"bbc8b42c1e57a9f7a9b1",2515:"29c9ebc28d79846f96c8",2594:"fa9dd6f94d53f553f0bc",2618:"8322e2e4fa8ed408ff99",2894:"0d6dbcf82012cba81adf",3027:"e320c44b0e59e5f13058",3073:"1b2786c57f73f301b632",3142:"183d94ced596ca4e2fef",3172:"6f7a6841e7269d2764ad",3230:"f76de5b2a46656fe5432",3289:"d15f38b2347b81f19851",3388:"2cea27a0d07aa9a88ad4",3389:"9536b706e8b3a27427a5",3485:"6d0197b040395560ac90",3529:"f5f6983e8db08af342f4",3568:"94c5301c08710b14125a",3594:"1607aaa711ba0d7ea03e",3668:"365f772485e9e6b18fff",3675:"bc94b98f8ff3fcd2ffa1",3812:"a087fee9e554836e1423",3826:"5938cc3cf9547a701a7b",3852:"60fe432d0b465ed72f01",3942:"b5184e61b2cdd8e48f65",4166:"6dfeb491bf611349d010",4257:"1607c79c2d5550cf2068",4324:"e609283f31e2c610376f",4358:"3338c8c40a22e0a78080",4564:"62526570dfbcbea7160c",4599:"f11dbfcc56bf04d1f3c8",4695:"dca79a567d98d98f3d8f",4720:"4b545edce4d95a29df60",4738:"152ef0adc594ae234039",4879:"aae72111022a5fdde974",4886:"7fcbe336b9008eb16bea",4889:"029391285ad66403c9e6",5191:"23e7e3e8d3c981c86ed6",5235:"8304f0b17747e98863ca",5265:"1a3cbeb0a53d03a51dad",5359:"88334d305eab7d7ce114",5413:"1266d48ca9de2e4758f1",5606:"64d9a062c1f1ac08a3ac",5660:"4990e49a5ca46cc33ba7",5732:"469ba1b24cdeea0758ec",5776:"037294dc4964fbda2db0",5837:"78024baa539288c8f7c2",6237:"2e2440d7841ea1d2b07d",6312:"51765c0f1d67f3f74fbf",6412:"93525fe56d7af21f5fe3",6481:"e3aed0a5b64180bdb6c3",6508:"7fcade698598a3bbb005",6570:"6fe972b14f4516c4388b",6592:"834323ab75384e3973f5",6619:"21d6d08cec85947fa6f5",6629:"0070bb66ae36bce099f0",6690:"436e430fe53dde77b25f",6710:"df9010ea6e1cc4cb518e",6718:"6b378d77279e57b6d277",6774:"67944142f419e0f5dd1a",6810:"bd29ea967877fc6d7c53",6830:"5790e745c696d802a1d1",6850:"46fbc2f580260802862f",6883:"da8e3b0251c4a858ae0e",6919:"26d171ebfa03e0cebb14",7007:"8e8df1f17b4fd21cda7d",7039:"cf21a3904acac5f57c3f",7049:"ef6ad7838d61066260e3",7055:"6da8fab411661bc121f4",7267:"82e28348b4188ca94a26",7277:"46bf8921db25845c63c0",7288:"5c90df048e7c0bbff719",7303:"aea8e55accc9e9abdec9",7562:"b4e1d80d7f1a8796e7f2",7572:"aa6d9a51adc278bbe8e8",7592:"33ba228d01e68cd7dfb4",7593:"b1723da85d2cd7efd419",7618:"255fab82ab2590624aac",7637:"fa2e4491db9113a0c8e6",7787:"ae9c28a0f8c980554383",7824:"fdc8efe1ca68bd1b5f27",7845:"7ff27dc56ea11831f4a4",7873:"93eb468381bfcf0e47d7",8008:"c3be8924d6b340efc473",8031:"d1dfa8e35289e83f8f82",8062:"c0ad0f1c7884abcdf9c2",8227:"1f394b20410fddb30a96",8231:"5bb12279b85bbed73fb4",8397:"b65c373f76fce41e1a59",8404:"d3155a8f86ba980745d8",8479:"dde56cbccdf0e3babb37",8511:"9a5a21b45d5de648eda4",8625:"caa5d1b9680a822f2070",8711:"4923f31d3ae4296a6fe6",8758:"8d33644192c01e5416b4",8778:"6ee11a06736d0fe7defb",8828:"2a9a5b51603a07061f9c",8936:"d91a4c4f5c66287e6cc9",9070:"db202ae7dc8b584f312f",9254:"b4b464b59ce799f9fc1c",9291:"6e172b435a55bc72baef",9294:"3fc4576ac750bed0e1c5",9296:"58166c34e4b610d28162",9489:"8a47ffe0ef89c63c550d",9490:"45c2f2a8789268e84fa6",9509:"5ccb44205bca6ca7c920",9554:"5cfd7d625ea47d93e3ed",9625:"71caf9825b9c3934f85e",9884:"3a04496f43de689cc63b",9928:"030494184c0af8bab70e",9930:"84bf97c35fe606c6768c",9932:"240c3369bec873442c41"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1,5191:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(25045);RemoteClient=n})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5191],{68773:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(16358),o=(n(80442),n(78286)),i=n(17202);const s={apiKey:void 0,applicationUrl:r.Z.location&&r.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(r.Z.esriConfig&&((0,o.RH)(s,r.Z.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.22.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${i.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),s.request.corsEnabledServers=[],s.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(22974),o=n(92604),i=n(58896);class s extends i.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof s))return new s(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}s.prototype.type="error"},92604:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(68773),o=(n(80442),n(70586)),i=n(19153);const s={info:0,warn:1,error:2,none:3};class c{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,c._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=c.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=c._loggers;return c._loggers=e,t},set throttlingDisabled(e){c._throttlingDisabled=e}}}static getLogger(e){let t=c._loggers[e];return t||(t=new c({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=c._tickCounter)return;this._loggedMessages[e].set(r,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,i.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then((()=>{c._tickCounter++,c._tickCounterScheduled=!1})))}}c._loggers={},c._tickCounter=0,c._tickCounterScheduled=!1,c._throttlingDisabled=!1},58896:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,n){if(""===n)return"$";const o=(0,r.hS)(n,t),i=null==o?"":o;if(void 0===i)throw new Error(`could not find key "${n}" in template`);return i.toString()}))}(t,n)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*r._m:e}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{n.d(t,{SO:()=>u,a9:()=>c,fS:()=>i,cq:()=>f,w6:()=>a,Od:()=>g,e$:()=>d,FY:()=>p});var r=n(70586),o=n(77734);function i(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const s=!!Array.prototype.fill;function c(e,t){if(s)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function a(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class u{constructor(){this.last=0}}const l=new u;function f(e,t,n,r){r=r||l;const o=Math.max(0,r.last-10);for(let i=o;i<n;++i)if(e[i]===t)return r.last=i,i;const i=Math.min(o,n);for(let n=0;n<i;++n)if(e[n]===t)return r.last=n,n;return-1}function d(e,t,n,r){const o=null==n?e.length:n,i=f(e,t,o,r);if(-1!==i)return e[i]=e[o-1],null==n&&e.pop(),t}const h=new Set;function p(e,t,n=e.length,r=t.length,o,i){if(0===r||0===n)return n;h.clear();for(let e=0;e<r;++e)h.add(t[e]);o=o||l;const s=Math.max(0,o.last-10);for(let t=s;t<n;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;for(let t=0;t<s;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;return h.clear(),n}function g(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},16358:(e,t,n)=>{n.d(t,{Z:()=>r});const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,n)=>{n.d(t,{Z:()=>u});var r,o,i=n(16358);let s;var c,a;function u(e){return"function"==typeof s[e]?s[e]=s[e](i.Z):s[e]}s=null!=(r=i.Z.dojoConfig)&&r.has||null!=(o=i.Z.esriConfig)&&o.has?{...null==(c=i.Z.dojoConfig)?void 0:c.has,...null==(a=i.Z.esriConfig)?void 0:a.has}:{},u.add=(e,t,n,r)=>((r||void 0===s[e])&&(s[e]=t),n&&u(e)),u.cache=s,u.add("esri-deprecation-warnings",!0),(()=>{u.add("host-webworker",void 0!==i.Z.WorkerGlobalScope&&self instanceof i.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(u.add("host-browser",e),u.add("host-node","object"==typeof i.Z.process&&i.Z.process.versions&&i.Z.process.versions.node&&i.Z.process.versions.v8),u.add("dom",e),u("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(u.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),u.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),u.add("khtml",n.includes("Konqueror")?r:void 0),u.add("edge",parseFloat(t.split("Edge/")[1])||void 0),u.add("opr",parseFloat(t.split("OPR/")[1])||void 0),u.add("webkit",!u("wp")&&!u("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),u.add("chrome",!u("edge")&&!u("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),u.add("android",!u("wp")&&parseFloat(t.split("Android ")[1])||void 0),u.add("safari",!n.includes("Safari")||u("wp")||u("chrome")||u("android")||u("edge")||u("opr")?void 0:parseFloat(n.split("Version/")[1])),u.add("mac",n.includes("Macintosh")),!u("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));u.add(e,r),u.add("ios",r)}u.add("trident",parseFloat(n.split("Trident/")[1])||void 0),u("webkit")||(!t.includes("Gecko")||u("wp")||u("khtml")||u("trident")||u("edge")||u.add("mozilla",r),u("mozilla")&&u.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(i.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&u.add("esri-mobile",t),n&&u.add("esri-iPhone",n),u.add("esri-geolocation",!!navigator.geolocation)}u.add("esri-canvas-svg-support",!u("trident")),u.add("esri-wasm","WebAssembly"in i.Z),u.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in i.Z,t=!1===i.Z.crossOriginIsolated;return e&&!t})),u.add("esri-atomics","Atomics"in i.Z),u.add("esri-workers","Worker"in i.Z),u.add("esri-text-decoder","TextDecoder"in i.Z),u.add("esri-text-encoder","TextEncoder"in i.Z),u.add("web-feat:cache","caches"in i.Z),u.add("esri-workers-arraybuffer-transfer",!u("safari")||Number(u("safari"))>=12),u.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),u.add("featurelayer-simplify-payload-size-factors",[1,1,4]),u.add("featurelayer-snapshot-enabled",!0),u.add("featurelayer-snapshot-point-min-threshold",8e4),u.add("featurelayer-snapshot-point-max-threshold",4e5),u.add("featurelayer-snapshot-point-coverage",.1),u.add("featurelayer-advanced-symbols",!1),u.add("featurelayer-pbf",!0),u.add("featurelayer-pbf-statistics",!1),u.add("feature-layers-workers",!0),u.add("mapview-transitions-duration",200),u.add("mapserver-pbf-enabled",!1),u("host-webworker")||u("host-browser")&&(u.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),u.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{u.add("esri-image-decode",!0,!0,!0)})).catch((()=>{u.add("esri-image-decode",!1,!0,!0)}))}return!1})),u.add("esri-url-encodes-apostrophe",(()=>{const e=i.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),u.add("vectortilelayer-max-buffers",u("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,n)=>{n.d(t,{d9:()=>i,fS:()=>s,yd:()=>o}),n(67676),n(80442);var r=n(1533);function o(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&o(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,r.W0)(e)||(0,r.lq)(e)||(0,r.KZ)(e)||(0,r.z3)(e)||(0,r.Uc)(e)||(0,r.Hx)(e)||(0,r.ZY)(e)||(0,r.xZ)(e)||(0,r.fS)(e))return(0,r.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,n)=>{t.set(n,i(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(i(e))})),t}let t;const n=e;if("function"==typeof n.clone)t=n.clone();else if("function"==typeof n.map&&"function"==typeof n.forEach)t=n.map(i);else if("function"==typeof n.notifyChange&&"function"==typeof n.watch)t=n.clone();else{t={};for(const n of Object.getOwnPropertyNames(e))t[n]=i(e[n])}return t}function s(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,n)=>{function r(e){return null!=e}function o(e){return null==e}function i(e){return void 0===e}function s(e,t){return r(e)?t(e):null}function c(e){return e}function a(e,t){if(o(e))throw new Error(t);return e}function u(e,t){return r(e)?e:"function"==typeof t?t():t}function l(e){return r(e)&&e.destroy(),null}function f(e){return r(e)&&e.dispose(),null}function d(e){return r(e)&&e.remove(),null}function h(e){return r(e)&&e.release(),null}function p(e){return null}function g(e,t){const n=new Array;for(const r of e)n.push(y(r,null,t));return n}function m(e,t){for(const n of e)y(n,null,t)}function y(e,t,n){return r(e)?n(e):t}function w(e,t){return r(e)?t(e):null}function v(e){return e.filter((e=>r(e)))}function b(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function x(e){return e}n.d(t,{Po:()=>w,yw:()=>s,j0:()=>x,SC:()=>l,O3:()=>f,lV:()=>v,JR:()=>m,U2:()=>b,Wi:()=>o,pC:()=>r,o8:()=>i,Fd:()=>g,R2:()=>y,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>c,Pt:()=>u,s3:()=>a})},78286:(e,t,n)=>{n.d(t,{RH:()=>o,hS:()=>i,RB:()=>s});var r=n(22974);function o(e,t,n=!1){return a(e,t,n)}function i(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,n){const r=e.split("."),o=r.pop(),i=c(r,!0,n);i&&o&&(i[o]=t)}function c(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function a(e,t,n){return t?Object.keys(t).reduce((function(e,o){let i=e[o],s=t[o];return i===s?e:void 0===i?(e[o]=(0,r.d9)(s),e):(Array.isArray(s)||Array.isArray(e)?(i=i?Array.isArray(i)?e[o]=i.concat():e[o]=[i]:e[o]=[],s&&(Array.isArray(s)||(s=[s]),n?s.forEach((e=>{-1===i.indexOf(e)&&i.push(e)})):e[o]=s.concat())):s&&"object"==typeof s?e[o]=a(i,s,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=s),e)}),e||{}):e}},95330:(e,t,n)=>{n.d(t,{e4:()=>C,$6:()=>a,Ue:()=>u,yi:()=>f,zE:()=>l,dD:()=>_,hh:()=>j,vr:()=>I,Ds:()=>U,as:()=>O,WW:()=>A,R8:()=>x,D_:()=>b,Hc:()=>p,tI:()=>Z,y8:()=>S,fu:()=>y,$F:()=>w,d1:()=>P,DB:()=>$,r9:()=>g,k_:()=>d,H9:()=>m,gx:()=>k,Hl:()=>v});const r=(o=n(16358).Z,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),c=(n(92604),n(70586));function a(e){return Promise.all(e)}function u(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function l(e="Aborted"){return new i.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw l(t)}function h(e){return(0,c.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,c.pC)(t)&&t.aborted}function g(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function y(e,t){const n=h(e);if(!(0,c.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function w(e,t){const n=h(e);if(!(0,c.Wi)(n))return d(n),(0,s.IH)(n,"abort",(()=>t(l())))}function v(e,t){const n=h(t);return(0,c.Wi)(n)?e:new Promise(((n,r)=>{let o=y(t,(()=>r(l())));const i=()=>o=(0,c.hw)(o);e.then(i,i),e.then(n,r)}))}function b(e){return e&&"AbortError"===e.name}function x(e){return e.catch((e=>{if(!b(e))throw e}))}function _(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return u((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function A(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function P(e){return Promise.reject(e)}function $(e){return Promise.resolve(e)}function C(e,t,n){const r=f();return y(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);y(r,(()=>{i&&(clearTimeout(i),o(l()))}))}))}function S(e){return e&&"function"==typeof e.then}function k(e){return Z(e)?e:Promise.resolve(e)}function Z(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function U(e,t=-1){let n,r,o,i,s=null;const a=(...u)=>{if(n){r=u,i&&i.reject(l()),i=_();const e=(0,c.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||_(),i=null,t>0){const r=f();n=k(e(...u,r.signal));const o=n;C(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=k(e(...u));const d=()=>{const e=r;r=o=n=s=null,null!=e&&a(...e)},h=n,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,c.j0)(p.promise)};return a}function j(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function I(e){let t=f();const n=e(t.signal);let r={promise:n,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{r&&(r.finished=!0,r=null),t=null};return n.then(o,o),r}},19153:(e,t,n)=>{n.d(t,{Qs:()=>c,hP:()=>a,gx:()=>s,Cb:()=>u});var r=n(78286);const o=/\{([^\}]+)\}/g;function i(e){return null==e?"":e}function s(e,t){return e.replace(o,"object"==typeof t?(e,n)=>i((0,r.hS)(n,t)):(e,n)=>i(t(n)))}function c(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function a(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function u(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function i(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function s(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function c(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function a(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function u(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function l(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,eP:()=>i,xZ:()=>h,fS:()=>p,z3:()=>u,Hx:()=>f,W0:()=>s,Uc:()=>l,ZY:()=>d,lq:()=>c,KZ:()=>a,tP:()=>o})},17452:(e,t,n)=>{n.d(t,{R9:()=>w,qg:()=>C,tD:()=>U,ZN:()=>ue,fl:()=>le,AX:()=>x,Gd:()=>v,Ie:()=>se,sJ:()=>Y,AH:()=>z,vt:()=>oe,oh:()=>T,P$:()=>D,Ml:()=>fe,ed:()=>j,b7:()=>$,D6:()=>R,tm:()=>I,YP:()=>H,jc:()=>B,HK:()=>J,$U:()=>X,oC:()=>V,kl:()=>M,v_:()=>N,hF:()=>q,_l:()=>G,PF:()=>F,Fv:()=>L,B7:()=>P,u0:()=>O,Yd:()=>re,Hu:()=>ae,Qj:()=>ie,hO:()=>ee,mN:()=>_});var r=n(68773),o=n(20102),i=(n(16358),n(92604)),s=n(70586);const c=i.Z.getLogger("esri.core.urlUtils"),a=r.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",l=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),y=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(y)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new w(r.Z.applicationUrl),b={},x=(()=>{const e=(0,s.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function _(e){const t={path:null,query:null},n=new w(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=O(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function O(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function A(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function P(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>A(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):A(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function $(e=!1){let t,n=a.proxyUrl;if("string"==typeof e){t=X(e);const r=j(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw c.warn(u),new o.Z("urlutils:proxy-not-set",u);return t&&te()&&(n=ee(n)),_(n)}function C(e){const t=j(e);let n,r;if(t){const e=k(t.proxyUrl);n=e.path,r=e.query?O(e.query):null}if(n){const t=_(e);e=n+"?"+t.path;const o=P({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const S={path:"",query:""};function k(e){const t=e.indexOf("?");return-1!==t?(S.path=e.slice(0,t),S.query=e.slice(t+1)):(S.path=e,S.query=null),S}function Z(e){return(e=ne(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=k(e).path),!0)).toLowerCase()}function U(e){const t={proxyUrl:e.proxyUrl,urlPrefix:Z(e.urlPrefix)},n=a.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function j(e){const t=a.proxyRules,n=Z(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=E(e),t=E(t),ne(e)===ne(t)}function E(e){const t=(e=L(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function T(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=a.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function R(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!H(e))return!0;e=ce(e)}if(R(e,v))return!0;const t=a.trustedServers||[];for(let n=0;n<t.length;n++){const r=W(t[n]);for(let t=0;t<r.length;t++)if(R(e,r[t]))return!0}return!1}function W(e){return b[e]||(Q(e)||V(e)?b[e]=[new w(q(e))]:b[e]=[new w(`http://${e}`),new w(`https://${e}`)]),b[e]}function q(e,t=x,n){return V(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:Q(e)?e:(0,s.j0)(N("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=x,n){if(!H(e))return e;const r=L(e),o=r.toLowerCase(),i=L(t).toLowerCase().replace(/\/+$/,""),s=n?L(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const c=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let a=c(o,"/",o.indexOf("//")+2),u=-1;for(;o.slice(0,a+1)===i.slice(0,a)+"/"&&(u=a+1,a!==o.length);)a=c(o,"/",a+1);if(-1===u)return e;if(s&&u<s.length)return e;e=r.slice(u);const l=i.slice(u-1).replace(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function L(e){return function(e){const t=a.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&V(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!g.test(e)||(te()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||te()&&!j(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=k(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function N(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function D(e,t=!1){if(B(e)||J(e))return null;let n=e.indexOf("://");if(-1===n&&V(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ne(e,!0)),e}function H(e){return V(e)||Q(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function J(e){return"data:"===e.slice(0,5)}function z(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const K=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(K);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function G(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Q(e){return l.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&V(e)}function ee(e){return V(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function ne(e,t=!1){return V(e)?e.slice(2):(e=e.replace(l,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function re(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function oe(e,t){if(!e)return"";const n=_(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ie(e){return e.replace(/\/+$/,"")}function se(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new w(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function ae(e,t){const n=_(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function ue(e,t,n){const r=_(e),o=r.query||{};return o[t]=String(n),`${r.path}?${P(o)}`}function le(e,t){const n=_(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=P(r);return o?`${n.path}?${o}`:n.path}function fe(e){if((0,s.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},17202:(e,t,n)=>{n.d(t,{r:()=>r,$:()=>o});const r="20211004",o="eeb4136a22fc4abbbf7657335b8dbf2ce65d645f"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5191],{68773:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(16358),o=(n(80442),n(78286)),i=n(17202);const s={apiKey:void 0,applicationUrl:r.Z.location&&r.Z.location.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryService:null,geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(r.Z.esriConfig&&((0,o.RH)(s,r.Z.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.22.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${i.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}}),s.request.corsEnabledServers=[],s.request.corsEnabledServers.push=function(){return console.warn("[esri.config]","request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"),0}},20102:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(22974),o=n(92604),i=n(58896);class s extends i.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof s))return new s(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}s.prototype.type="error"},92604:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(68773),o=(n(80442),n(70586)),i=n(19153);const s={info:0,warn:1,error:2,none:3};class c{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,c._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=c.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=c._loggers;return c._loggers=e,t},set throttlingDisabled(e){c._throttlingDisabled=e}}}static getLogger(e){let t=c._loggers[e];return t||(t=new c({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=c._tickCounter)return;this._loggedMessages[e].set(r,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,i.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then((()=>{c._tickCounter++,c._tickCounterScheduled=!1})))}}c._loggers={},c._tickCounter=0,c._tickCounterScheduled=!1,c._throttlingDisabled=!1},58896:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this.message=void 0,this instanceof o&&(this.message=t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,(function(e,n){if(""===n)return"$";const o=(0,r.hS)(n,t),i=null==o?"":o;if(void 0===i)throw new Error(`could not find key "${n}" in template`);return i.toString()}))}(t,n)||"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=null==e?Math.random()*r._m:e}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{n.d(t,{SO:()=>u,a9:()=>c,fS:()=>i,cq:()=>f,w6:()=>a,Od:()=>g,e$:()=>d,FY:()=>p});var r=n(70586),o=n(77734);function i(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const s=!!Array.prototype.fill;function c(e,t){if(s)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function a(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class u{constructor(){this.last=0}}const l=new u;function f(e,t,n,r){r=r||l;const o=Math.max(0,r.last-10);for(let i=o;i<n;++i)if(e[i]===t)return r.last=i,i;const i=Math.min(o,n);for(let n=0;n<i;++n)if(e[n]===t)return r.last=n,n;return-1}function d(e,t,n,r){const o=null==n?e.length:n,i=f(e,t,o,r);if(-1!==i)return e[i]=e[o-1],null==n&&e.pop(),t}const h=new Set;function p(e,t,n=e.length,r=t.length,o,i){if(0===r||0===n)return n;h.clear();for(let e=0;e<r;++e)h.add(t[e]);o=o||l;const s=Math.max(0,o.last-10);for(let t=s;t<n;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;for(let t=0;t<s;++t)if(h.has(e[t])&&(i&&i.push(e[t]),h.delete(e[t]),e[t]=e[n-1],--n,--t,0===h.size||0===n))return h.clear(),n;return h.clear(),n}function g(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const i=o(e,t,(t=>{i.remove(),n.call(e,t)}));return{remove(){i.remove()}}}n.d(t,{vT:()=>r,on:()=>o,IH:()=>i})},16358:(e,t,n)=>{n.d(t,{Z:()=>r});const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},80442:(e,t,n)=>{n.d(t,{Z:()=>u});var r,o,i=n(16358);let s;var c,a;function u(e){return"function"==typeof s[e]?s[e]=s[e](i.Z):s[e]}s=null!=(r=i.Z.dojoConfig)&&r.has||null!=(o=i.Z.esriConfig)&&o.has?{...null==(c=i.Z.dojoConfig)?void 0:c.has,...null==(a=i.Z.esriConfig)?void 0:a.has}:{},u.add=(e,t,n,r)=>((r||void 0===s[e])&&(s[e]=t),n&&u(e)),u.cache=s,u.add("esri-deprecation-warnings",!0),(()=>{u.add("host-webworker",void 0!==i.Z.WorkerGlobalScope&&self instanceof i.Z.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(u.add("host-browser",e),u.add("host-node","object"==typeof i.Z.process&&i.Z.process.versions&&i.Z.process.versions.node&&i.Z.process.versions.v8),u.add("dom",e),u("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(u.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),u.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),u.add("khtml",n.includes("Konqueror")?r:void 0),u.add("edge",parseFloat(t.split("Edge/")[1])||void 0),u.add("opr",parseFloat(t.split("OPR/")[1])||void 0),u.add("webkit",!u("wp")&&!u("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),u.add("chrome",!u("edge")&&!u("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),u.add("android",!u("wp")&&parseFloat(t.split("Android ")[1])||void 0),u.add("safari",!n.includes("Safari")||u("wp")||u("chrome")||u("android")||u("edge")||u("opr")?void 0:parseFloat(n.split("Version/")[1])),u.add("mac",n.includes("Macintosh")),!u("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));u.add(e,r),u.add("ios",r)}u.add("trident",parseFloat(n.split("Trident/")[1])||void 0),u("webkit")||(!t.includes("Gecko")||u("wp")||u("khtml")||u("trident")||u("edge")||u.add("mozilla",r),u("mozilla")&&u.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(i.Z.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&u.add("esri-mobile",t),n&&u.add("esri-iPhone",n),u.add("esri-geolocation",!!navigator.geolocation)}u.add("esri-canvas-svg-support",!u("trident")),u.add("esri-wasm","WebAssembly"in i.Z),u.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in i.Z,t=!1===i.Z.crossOriginIsolated;return e&&!t})),u.add("esri-atomics","Atomics"in i.Z),u.add("esri-workers","Worker"in i.Z),u.add("esri-text-decoder","TextDecoder"in i.Z),u.add("esri-text-encoder","TextEncoder"in i.Z),u.add("web-feat:cache","caches"in i.Z),u.add("esri-workers-arraybuffer-transfer",!u("safari")||Number(u("safari"))>=12),u.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),u.add("featurelayer-simplify-payload-size-factors",[1,1,4]),u.add("featurelayer-snapshot-enabled",!0),u.add("featurelayer-snapshot-point-min-threshold",8e4),u.add("featurelayer-snapshot-point-max-threshold",4e5),u.add("featurelayer-snapshot-point-coverage",.1),u.add("featurelayer-advanced-symbols",!1),u.add("featurelayer-pbf",!0),u.add("featurelayer-pbf-statistics",!1),u.add("feature-layers-workers",!0),u.add("mapview-transitions-duration",200),u.add("mapserver-pbf-enabled",!1),u("host-webworker")||u("host-browser")&&(u.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),u.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{u.add("esri-image-decode",!0,!0,!0)})).catch((()=>{u.add("esri-image-decode",!1,!0,!0)}))}return!1})),u.add("esri-url-encodes-apostrophe",(()=>{const e=i.Z.document.createElement("a");return e.href="?'",e.href.includes("?%27")})),u.add("vectortilelayer-max-buffers",u("ff")?160:Number.POSITIVE_INFINITY))})()},22974:(e,t,n)=>{n.d(t,{d9:()=>i,fS:()=>s,yd:()=>o}),n(67676),n(80442);var r=n(1533);function o(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&o(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;if((0,r.W0)(e)||(0,r.lq)(e)||(0,r.KZ)(e)||(0,r.z3)(e)||(0,r.Uc)(e)||(0,r.Hx)(e)||(0,r.ZY)(e)||(0,r.xZ)(e)||(0,r.fS)(e))return(0,r.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;return e.forEach(((e,n)=>{t.set(n,i(e))})),t}if(e instanceof Set){const t=new Set;return e.forEach((e=>{t.add(i(e))})),t}let t;const n=e;if("function"==typeof n.clone)t=n.clone();else if("function"==typeof n.map&&"function"==typeof n.forEach)t=n.map(i);else if("function"==typeof n.notifyChange&&"function"==typeof n.watch)t=n.clone();else{t={};for(const n of Object.getOwnPropertyNames(e))t[n]=i(e[n])}return t}function s(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}},70586:(e,t,n)=>{function r(e){return null!=e}function o(e){return null==e}function i(e){return void 0===e}function s(e,t){return r(e)?t(e):null}function c(e){return e}function a(e,t){if(o(e))throw new Error(t);return e}function u(e,t){return r(e)?e:"function"==typeof t?t():t}function l(e){return r(e)&&e.destroy(),null}function f(e){return r(e)&&e.dispose(),null}function d(e){return r(e)&&e.remove(),null}function h(e){return r(e)&&e.release(),null}function p(e){return null}function g(e,t){const n=new Array;for(const r of e)n.push(y(r,null,t));return n}function m(e,t){for(const n of e)y(n,null,t)}function y(e,t,n){return r(e)?n(e):t}function w(e,t){return r(e)?t(e):null}function v(e){return e.filter((e=>r(e)))}function b(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function x(e){return e}n.d(t,{Po:()=>w,yw:()=>s,j0:()=>x,SC:()=>l,O3:()=>f,lV:()=>v,JR:()=>m,U2:()=>b,Wi:()=>o,pC:()=>r,o8:()=>i,Fd:()=>g,R2:()=>y,Bd:()=>p,RY:()=>h,hw:()=>d,Wg:()=>c,Pt:()=>u,s3:()=>a})},78286:(e,t,n)=>{n.d(t,{RH:()=>o,hS:()=>i,RB:()=>s});var r=n(22974);function o(e,t,n=!1){return a(e,t,n)}function i(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function s(e,t,n){const r=e.split("."),o=r.pop(),i=c(r,!0,n);i&&o&&(i[o]=t)}function c(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function a(e,t,n){return t?Object.keys(t).reduce((function(e,o){let i=e[o],s=t[o];return i===s?e:void 0===i?(e[o]=(0,r.d9)(s),e):(Array.isArray(s)||Array.isArray(e)?(i=i?Array.isArray(i)?e[o]=i.concat():e[o]=[i]:e[o]=[],s&&(Array.isArray(s)||(s=[s]),n?s.forEach((e=>{-1===i.indexOf(e)&&i.push(e)})):e[o]=s.concat())):s&&"object"==typeof s?e[o]=a(i,s,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=s),e)}),e||{}):e}},95330:(e,t,n)=>{n.d(t,{e4:()=>C,$6:()=>a,Ue:()=>u,yi:()=>f,zE:()=>l,dD:()=>_,hh:()=>j,vr:()=>I,Ds:()=>U,as:()=>O,WW:()=>A,R8:()=>x,D_:()=>b,Hc:()=>p,tI:()=>Z,y8:()=>S,fu:()=>y,$F:()=>w,d1:()=>P,DB:()=>$,r9:()=>g,k_:()=>d,H9:()=>m,gx:()=>k,Hl:()=>v});const r=(o=n(16358).Z,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o,i=n(20102),s=n(91460),c=(n(92604),n(70586));function a(e){return Promise.all(e)}function u(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function l(e="Aborted"){return new i.Z("AbortError",e)}function f(){return new AbortController}function d(e,t="Aborted"){if(p(e))throw l(t)}function h(e){return(0,c.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=h(e);return(0,c.pC)(t)&&t.aborted}function g(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function y(e,t){const n=h(e);if(!(0,c.Wi)(n)){if(!n.aborted)return(0,s.IH)(n,"abort",(()=>t()));t()}}function w(e,t){const n=h(e);if(!(0,c.Wi)(n))return d(n),(0,s.IH)(n,"abort",(()=>t(l())))}function v(e,t){const n=h(t);return(0,c.Wi)(n)?e:new Promise(((n,r)=>{let o=y(t,(()=>r(l())));const i=()=>o=(0,c.hw)(o);e.then(i,i),e.then(n,r)}))}function b(e){return e&&"AbortError"===e.name}function x(e){return e.catch((e=>{if(!b(e))throw e}))}function _(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function O(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return O(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return u((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function A(e){return O(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function P(e){return Promise.reject(e)}function $(e){return Promise.resolve(e)}function C(e,t,n){const r=f();return y(n,(()=>r.abort())),new Promise(((n,o)=>{let i=setTimeout((()=>{i=0,n(t)}),e);y(r,(()=>{i&&(clearTimeout(i),o(l()))}))}))}function S(e){return e&&"function"==typeof e.then}function k(e){return Z(e)?e:Promise.resolve(e)}function Z(e){return e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}function U(e,t=-1){let n,r,o,i,s=null;const a=(...u)=>{if(n){r=u,i&&i.reject(l()),i=_();const e=(0,c.j0)(i.promise);if(s){const e=s;s=null,e.abort()}return e}if(o=i||_(),i=null,t>0){const r=f();n=k(e(...u,r.signal));const o=n;C(t).then((()=>{n===o&&(i?r.abort():s=r)}))}else n=1,n=k(e(...u));const d=()=>{const e=r;r=o=n=s=null,null!=e&&a(...e)},h=n,p=o;return h.then(d,d),h.then(p.resolve,p.reject),(0,c.j0)(p.promise)};return a}function j(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}function I(e){let t=f();const n=e(t.signal);let r={promise:n,finished:!1,abort:()=>{t&&(t.abort(),t=null)}};const o=()=>{r&&(r.finished=!0,r=null),t=null};return n.then(o,o),r}},19153:(e,t,n)=>{n.d(t,{Qs:()=>c,hP:()=>a,gx:()=>s,Cb:()=>u});var r=n(78286);const o=/\{([^\}]+)\}/g;function i(e){return null==e?"":e}function s(e,t){return e.replace(o,"object"==typeof t?(e,n)=>i((0,r.hS)(n,t)):(e,n)=>i(t(n)))}function c(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&-1!==t.indexOf(e)?e:`\\${e}`))}function a(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function u(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function i(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function s(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function c(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function a(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function u(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function l(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,eP:()=>i,xZ:()=>h,fS:()=>p,z3:()=>u,Hx:()=>f,W0:()=>s,Uc:()=>l,ZY:()=>d,lq:()=>c,KZ:()=>a,tP:()=>o})},17452:(e,t,n)=>{n.d(t,{R9:()=>w,qg:()=>C,tD:()=>U,ZN:()=>ue,fl:()=>le,AX:()=>x,Gd:()=>v,Ie:()=>se,sJ:()=>Y,AH:()=>z,vt:()=>oe,oh:()=>T,P$:()=>D,Ml:()=>fe,ed:()=>j,b7:()=>$,D6:()=>R,tm:()=>I,YP:()=>H,jc:()=>B,HK:()=>J,$U:()=>X,oC:()=>V,kl:()=>M,v_:()=>N,hF:()=>q,_l:()=>G,PF:()=>F,Fv:()=>L,B7:()=>P,u0:()=>O,Yd:()=>re,Hu:()=>ae,Qj:()=>ie,hO:()=>ee,mN:()=>_});var r=n(68773),o=n(20102),i=(n(16358),n(92604)),s=n(70586);const c=i.Z.getLogger("esri.core.urlUtils"),a=r.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",l=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),y=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,s.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,s.j0)(this.authority.match(y)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v=new w(r.Z.applicationUrl),b={},x=(()=>{const e=(0,s.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`})();function _(e){const t={path:null,query:null},n=new w(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=O(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function O(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let i=n[r];"string"==typeof i&&(i=n[r]=[i]),Array.isArray(i)?i.push(o):n[r]=o}return n}function A(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function P(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",i=t&&t[n];return i?o+encodeURIComponent(i(r)):Array.isArray(r)?r.map((e=>A(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):A(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function $(e=!1){let t,n=a.proxyUrl;if("string"==typeof e){t=X(e);const r=j(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw c.warn(u),new o.Z("urlutils:proxy-not-set",u);return t&&te()&&(n=ee(n)),_(n)}function C(e){const t=j(e);let n,r;if(t){const e=k(t.proxyUrl);n=e.path,r=e.query?O(e.query):null}if(n){const t=_(e);e=n+"?"+t.path;const o=P({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const S={path:"",query:""};function k(e){const t=e.indexOf("?");return-1!==t?(S.path=e.slice(0,t),S.query=e.slice(t+1)):(S.path=e,S.query=null),S}function Z(e){return(e=ne(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=k(e).path),!0)).toLowerCase()}function U(e){const t={proxyUrl:e.proxyUrl,urlPrefix:Z(e.urlPrefix)},n=a.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function j(e){const t=a.proxyRules,n=Z(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=E(e),t=E(t),ne(e)===ne(t)}function E(e){const t=(e=L(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function T(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=a.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function R(e,t,n=!1){const r=ce(e),o=ce(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function M(e){if("string"==typeof e){if(!H(e))return!0;e=ce(e)}if(R(e,v))return!0;const t=a.trustedServers||[];for(let n=0;n<t.length;n++){const r=W(t[n]);for(let t=0;t<r.length;t++)if(R(e,r[t]))return!0}return!1}function W(e){return b[e]||(Q(e)||V(e)?b[e]=[new w(q(e))]:b[e]=[new w(`http://${e}`),new w(`https://${e}`)]),b[e]}function q(e,t=x,n){return V(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===D(e).slice(2)?`http:${e}`:`https:${e}`:Q(e)?e:(0,s.j0)(N("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=x,n){if(!H(e))return e;const r=L(e),o=r.toLowerCase(),i=L(t).toLowerCase().replace(/\/+$/,""),s=n?L(n).toLowerCase().replace(/\/+$/,""):null;if(s&&0!==i.indexOf(s))return e;const c=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let a=c(o,"/",o.indexOf("//")+2),u=-1;for(;o.slice(0,a+1)===i.slice(0,a)+"/"&&(u=a+1,a!==o.length);)a=c(o,"/",a+1);if(-1===u)return e;if(s&&u<s.length)return e;e=r.slice(u);const l=i.slice(u-1).replace(/[^/]+/g,"").length;if(l>0)for(let t=0;t<l;t++)e=`../${e}`;else e=`./${e}`;return e}function L(e){return function(e){const t=a.httpsDomains;if(!function(e){return f.test(e)||"http"===v.scheme&&V(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!g.test(e)||(te()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||te()&&!j(e))&&(e=ee(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=k(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function N(...e){const t=e.filter(s.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function D(e,t=!1){if(B(e)||J(e))return null;let n=e.indexOf("://");if(-1===n&&V(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ne(e,!0)),e}function H(e){return V(e)||Q(e)}function B(e){return null!=e&&"blob:"===e.slice(0,5)}function J(e){return"data:"===e.slice(0,5)}function z(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const K=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(K);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function G(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function V(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function Q(e){return l.test(e)}function X(e){return d.test(e)||"https"===v.scheme&&V(e)}function ee(e){return V(e)?`https:${e}`:e.replace(f,"https:")}function te(){return"https"===v.scheme}function ne(e,t=!1){return V(e)?e.slice(2):(e=e.replace(l,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function re(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function oe(e,t){if(!e)return"";const n=_(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function ie(e){return e.replace(/\/+$/,"")}function se(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),i=e.indexOf(":",r+2),s=Math.min(o<0?e.length:o,i<0?e.length:i);return e.slice(r+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(s)}`}function ce(e){return"string"==typeof e?new w(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function ae(e,t){const n=_(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function ue(e,t,n){const r=_(e),o=r.query||{};return o[t]=String(n),`${r.path}?${P(o)}`}function le(e,t){const n=_(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=P(r);return o?`${n.path}?${o}`:n.path}function fe(e){if((0,s.Wi)(e))return null;const t=e.match(de);return t?t[1]:null}const de=/.*?\.([^\/]*)$/},17202:(e,t,n)=>{n.d(t,{r:()=>r,$:()=>o});const r="20211005",o="8114ba958ab2351b84a13cf5542d5e2b236be097"}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1302],{10937:(e,t,r)=>{function n(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}r.d(t,{c:()=>n});const i=n();Object.freeze({__proto__:null,create:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},fromValues:function(e,t,r,n,i,a,o,s,u,c,l,p,f,h,d,y){const m=new Float32Array(16);return m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=o,m[7]=s,m[8]=u,m[9]=c,m[10]=l,m[11]=p,m[12]=f,m[13]=h,m[14]=d,m[15]=y,m},createView:function(e,t){return new Float32Array(e,t,16)},IDENTITY:i})},78096:(e,t,r)=>{r.d(t,{h:()=>V});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(92604),r(52525)),o=r(20102),s=r(78286),u=r(35270),c=r(62357),l=r(10937),p=r(52138);class f{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=v(e.strength,t.strength,r),this.radius=v(e.radius,t.radius,r),this.threshold=v(e.threshold,t.threshold,r)}clone(){return new f(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:w(this.radius),strength:this.strength,threshold:this.threshold}}}class h{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(v(e.radius,t.radius,r))}clone(){return new h(this.radius)}toJSON(){return{type:"blur",radius:w(this.radius)}}}class d{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=v(e.amount,t.amount,r),this._updateMatrix()}clone(){return new d(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||(0,l.c)();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,p.s)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,p.a)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,p.s)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,p.a)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,p.s)(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return(0,p.a)(n,n)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,n=(0,p.s)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,p.a)(n,n)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,p.s)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,p.a)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,p.s)(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return(0,p.a)(n,n)})(e)}}}class y{constructor(e,t,r,n){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=n,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=v(e.offsetX,t.offsetX,r),this.offsetY=v(e.offsetY,t.offsetY,r),this.blurRadius=v(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(v(e.color[0],t.color[0],r)),this.color[1]=Math.round(v(e.color[1],t.color[1],r)),this.color[2]=Math.round(v(e.color[2],t.color[2],r)),this.color[3]=v(e.color[3],t.color[3],r)}clone(){return new y(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:w(this.offsetX),yoffset:w(this.offsetY),blurRadius:w(this.blurRadius),color:e}}}class m{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=v(e.angle,t.angle,r),this._updateMatrix()}clone(){return new m(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||(0,l.c)();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),n=Math.cos(t*Math.PI/180),i=(0,p.s)(e,.213+.787*n-.213*r,.715-.715*n-.715*r,.072-.072*n+.928*r,0,.213-.213*n+.143*r,.715+.285*n+.14*r,.072-.072*n-.283*r,0,.213-.213*n-.787*r,.715-.715*n+.715*r,.072+.928*n+.072*r,0,0,0,0,1);return(0,p.a)(i,i)})(e,this.angle)}}class g{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=v(e.amount,t.amount,r)}clone(){return new g(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function v(e,t,r){return e+(t-e)*r}function w(e){return Math.round(1e3*(0,c.Wz)(e))/1e3}r(5732);var b,x,S={exports:{}};function A(e){let t;try{t=e?S.exports.parse(e):[]}catch(t){return{input:e,parsedFunctions:[],effects:[],error:new o.Z("effect:invalid-syntax","Invalid effect syntax",{input:e,error:t})}}const r={input:e,parsedFunctions:t,effects:[],error:null};try{for(const e of t)r.effects.push(I(e))}catch(e){r.effects.length=0,r.error=e}return r}function I(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=j(e.parameters[0])),new d(e.name,t)}(e);case"opacity":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=j(e.parameters[0])),new g(t)}(e);case"hue-rotate":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||(0!==e.value||null!==e.unit)&&null==C[e.unit])throw new o.Z("effect:type-error",`Expected <angle>, Actual: ${M(e)}`,{term:e})}(e),e.value*C[e.unit]||0}(e.parameters[0])),new m(t)}(e);case"blur":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=O(e.parameters[0]),_(t,e.parameters[0])),new h(t)}(e);case"drop-shadow":return function(e){const t=[];let r;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new o.Z("effect:type-error","Accepts only one color",{});r=E(n)}else{const e=O(n);if(Object.isFrozen(t))throw new o.Z("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&_(e,n)}if(t.length<2||t.length>3)throw new o.Z("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new y(t[0],t[1],t[2]||0,r||G("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return L(e.parameters,3),e.parameters[0]&&(t=j(e.parameters[0])),e.parameters[1]&&(r=O(e.parameters[1]),_(r,e.parameters[1])),e.parameters[2]&&(n=j(e.parameters[2])),new f(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new o.Z("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}function L(e,t){if(e.length>t)throw new o.Z("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function M(e){return"color"===e.type?"<color>":T[e.unit]?"<length>":C[e.unit]?"<angle>":"%"===e.unit?"<percentage>":"<double>"}function _(e,t){if(e<0)throw new o.Z("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}x=function(){function e(t,r,n,i){var a=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(a,e.prototype),a.expected=r,a.found=n,a.location=i,a.name="SyntaxError",a}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,o=this.location.source+":"+a.line+":"+a.column;if(i){var s=this.location.end,u=t("",a.line.toString().length),c=i[a.line-1],l=a.line===s.line?s.column:c.length+1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+c+"\n"+u+" | "+t("",a.column-1)+t("",l-a.column,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},a=(r=void 0!==r?r:{}).grammarSource,o={start:se},s=se,u="none",c="grad",l="turn",p=/^[ \t\n\r]/,f=/^[a-z\-]/,h=/^[0-9a-fA-F]/,d=/^[+\-]/,y=/^[0-9]/,m=ne("none"),g=te("none",!1),v=te(")",!1),w=te(",",!1),b=ne("whitespace"),x=re([" ","\t","\n","\r"],!1,!1),S=ne("function"),A=te("(",!1),I=ne("identifier"),L=re([["a","z"],"-"],!1,!1),M=ne("percentage"),_=te("%",!1),C=ne("length"),T=te("px",!1),j=te("cm",!1),O=te("mm",!1),E=te("in",!1),G=te("pt",!1),R=te("pc",!1),F=ne("angle"),$=te("deg",!1),N=te("rad",!1),Z=te("grad",!1),k=te("turn",!1),B=ne("number"),q=ne("color"),V=te("#",!1),D=re([["0","9"],["a","f"],["A","F"]],!1,!1),z=re(["+","-"],!1,!1),W=re([["0","9"]],!1,!1),P=te(".",!1),J=te("e",!1),Y=0,X=0,H=[{line:1,column:1}],K=0,U=[],Q=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=o[r.startRule]}function ee(){return t.substring(X,Y)}function te(e,t){return{type:"literal",text:e,ignoreCase:t}}function re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ne(e){return{type:"other",description:e}}function ie(e){var r,n=H[e];if(n)return n;for(r=e-1;!H[r];)r--;for(n={line:(n=H[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return H[e]=n,n}function ae(e,t){var r=ie(e),n=ie(t);return{source:a,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function oe(e){Y<K||(Y>K&&(K=Y,U=[]),U.push(e))}function se(){var e;return(e=ue())===i&&(e=function(){var e,t;if(e=[],(t=ce())!==i)for(;t!==i;)e.push(t),t=ce();else e=i;return e}()),e}function ue(){var e,r;return Q++,e=Y,pe(),t.substr(Y,4)===u?(r=u,Y+=4):(r=i,0===Q&&oe(g)),r!==i?(pe(),X=e,e=[]):(Y=e,e=i),Q--,e===i&&0===Q&&oe(m),e}function ce(){var e,r,n,a;return e=Y,pe(),(r=function(){var e,r,n;return Q++,e=Y,(r=fe())!==i?(40===t.charCodeAt(Y)?(n="(",Y++):(n=i,0===Q&&oe(A)),n!==i?(X=e,e=r):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&(r=i,0===Q&&oe(S)),e}())!==i?(pe(),(n=function(){var e,r,n,a,o,s,u,c;if(e=Y,(r=le())!==i){for(n=[],a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(w)),s===i&&(s=null),u=pe(),(c=le())!==i?a=o=[o,s,u,c]:(Y=a,a=i);a!==i;)n.push(a),a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(w)),s===i&&(s=null),u=pe(),(c=le())!==i?a=o=[o,s,u,c]:(Y=a,a=i);X=e,e=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]}(r,n)}else Y=e,e=i;return e}())===i&&(n=null),pe(),41===t.charCodeAt(Y)?(a=")",Y++):(a=i,0===Q&&oe(v)),a!==i?(pe(),X=e,e=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,n)):(Y=e,e=i)):(Y=e,e=i),e}function le(){var e,t;return e=Y,(t=he())===i&&(t=de())===i&&(t=ye())===i&&(t=function(){var e,t;return Q++,e=Y,pe(),(t=ge())!==i?(X=e,e=function(e){return{value:e,unit:null}}(t)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(B),e}()),t!==i&&(X=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),(e=t)===i&&(e=Y,(t=me())!==i&&(X=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function pe(){var e,r;for(Q++,e=[],p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));r!==i;)e.push(r),p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));return Q--,r=i,0===Q&&oe(b),e}function fe(){var e,r,n;if(Q++,e=Y,r=[],f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L)),n!==i)for(;n!==i;)r.push(n),f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L));else r=i;return r!==i&&(X=e,r=ee()),Q--,(e=r)===i&&(r=i,0===Q&&oe(I)),e}function he(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?(37===t.charCodeAt(Y)?(n="%",Y++):(n=i,0===Q&&oe(_)),n!==i?(X=e,e=function(e){return{value:e,unit:"%"}}(r)):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(M),e}function de(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?("px"===t.substr(Y,2)?(n="px",Y+=2):(n=i,0===Q&&oe(T)),n!==i?(X=e,e=function(e){return{value:e,unit:"px"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("cm"===t.substr(Y,2)?(n="cm",Y+=2):(n=i,0===Q&&oe(j)),n!==i?(X=e,e=function(e){return{value:e,unit:"cm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("mm"===t.substr(Y,2)?(n="mm",Y+=2):(n=i,0===Q&&oe(O)),n!==i?(X=e,e=function(e){return{value:e,unit:"mm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("in"===t.substr(Y,2)?(n="in",Y+=2):(n=i,0===Q&&oe(E)),n!==i?(X=e,e=function(e){return{value:e,unit:"in"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pt"===t.substr(Y,2)?(n="pt",Y+=2):(n=i,0===Q&&oe(G)),n!==i?(X=e,e=function(e){return{value:e,unit:"pt"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pc"===t.substr(Y,2)?(n="pc",Y+=2):(n=i,0===Q&&oe(R)),n!==i?(X=e,e=function(e){return{value:e,unit:"pc"}}(r)):(Y=e,e=i)):(Y=e,e=i)))))),Q--,e===i&&0===Q&&oe(C),e}function ye(){var e,r,n;return Q++,e=Y,(r=ge())!==i?("deg"===t.substr(Y,3)?(n="deg",Y+=3):(n=i,0===Q&&oe($)),n!==i?(X=e,e=function(e){return{value:e,unit:"deg"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?("rad"===t.substr(Y,3)?(n="rad",Y+=3):(n=i,0===Q&&oe(N)),n!==i?(X=e,e=function(e){return{value:e,unit:"rad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===c?(n=c,Y+=4):(n=i,0===Q&&oe(Z)),n!==i?(X=e,e=function(e){return{value:e,unit:"grad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===l?(n=l,Y+=4):(n=i,0===Q&&oe(k)),n!==i?(X=e,e=function(e){return{value:e,unit:"turn"}}(r)):(Y=e,e=i)):(Y=e,e=i)))),Q--,e===i&&(r=i,0===Q&&oe(F)),e}function me(){var e,r,n,a;if(Q++,e=Y,35===t.charCodeAt(Y)?(r="#",Y++):(r=i,0===Q&&oe(V)),r!==i){if(n=[],h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D)),a!==i)for(;a!==i;)n.push(a),h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D));else n=i;n!==i?(X=e,e={type:"hex",value:ee()}):(Y=e,e=i)}else Y=e,e=i;return e===i&&(e=Y,(r=ce())!==i&&(X=e,r=function(e){return{type:"function",value:e}}(r)),(e=r)===i&&(e=Y,(r=fe())!==i&&(X=e,r={type:"named",value:ee()}),e=r)),Q--,e===i&&(r=i,0===Q&&oe(q)),e}function ge(){var e,r,n,a,o,s,u;for(e=Y,d.test(t.charAt(Y))?(t.charAt(Y),Y++):0===Q&&oe(z),r=Y,n=[],y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(W));a!==i;)n.push(a),y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(W));if(46===t.charCodeAt(Y)?(a=".",Y++):(a=i,0===Q&&oe(P)),a!==i){if(o=[],y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(W)),s!==i)for(;s!==i;)o.push(s),y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(W));else o=i;o!==i?r=n=[n,a,o]:(Y=r,r=i)}else Y=r,r=i;if(r===i)if(r=[],y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(W)),n!==i)for(;n!==i;)r.push(n),y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(W));else r=i;if(r!==i){if(n=Y,101===t.charCodeAt(Y)?(a="e",Y++):(a=i,0===Q&&oe(J)),a!==i){if(d.test(t.charAt(Y))?(o=t.charAt(Y),Y++):(o=i,0===Q&&oe(z)),o===i&&(o=null),s=[],y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(W)),u!==i)for(;u!==i;)s.push(u),y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(W));else s=i;s!==i?n=a=[a,o,s]:(Y=n,n=i)}else Y=n,n=i;n===i&&(n=null),X=e,e=parseFloat(ee())}else Y=e,e=i;return e}if((n=s())!==i&&Y===t.length)return n;throw n!==i&&Y<t.length&&oe({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(U,K<t.length?t.charAt(K):null,K<t.length?ae(K,K+1):ae(K,K))}}},(b=S).exports&&(b.exports=x());const C={deg:1,grad:.9,rad:180/Math.PI,turn:360},T={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function j(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new o.Z("effect:type-error",`Expected <double> or <percentage>, Actual: ${M(e)}`,{term:e})}(e);const t=e.value;return _(t,e),"%"===e.unit?.01*t:t}function O(e){return function(e){if("quantity"!==e.type||(0!==e.value||null!==e.unit)&&null==T[e.unit])throw new o.Z("effect:type-error",`Expected <length>, Actual: ${M(e)}`,{term:e})}(e),e.value*T[e.unit]||0}function E(e){switch(e.colorType){case"hex":return(0,u.rW)(e.value);case"named":return G(e.value);case"function":return function(e){if(L(e.parameters,4),R.test(e.name))return[j(e.parameters[0]),j(e.parameters[1]),j(e.parameters[2]),e.parameters[3]?j(e.parameters[3]):1];if(F.test(e.name))return(0,u.B7)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new o.Z("effect:type-error",`Expected <double>, Actual: ${M(e)}`,{term:e})}(e),_(e.value,e),e.value}(e.parameters[0]),j(e.parameters[1]),j(e.parameters[2]),e.parameters[3]?j(e.parameters[3]):1);throw new o.Z("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function G(e){const t=(0,u.VL)(e);if(!t)throw new o.Z("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return t}const R=/^rgba?/i,F=/^hsla?/i;function $(e,t,r){try{return function(e){if(!e)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:k(r.value)});return t}return k(e)}(e)}catch(e){r.messages&&r.messages.push(e)}return null}function N(e,t,r,n){try{const n=function(e){if(!e)return null;if("string"==typeof e)return Z(e);const t=[];for(const{scale:r,value:n}of e)t.push({scale:r,value:Z(n)});return t}(e);n&&(0,s.RB)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function Z(e){if(!e)return null;const t=A(e);if(t.error)throw t.error;return t.effects.map((e=>e.toJSON()))}function k(e){if(!e||!e.length)return null;const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[B(r,"amount")];break;case"blur":e=[B(r,"radius","pt")];break;case"hue-rotate":e=[B(r,"angle","deg")];break;case"drop-shadow":e=[B(r,"xoffset","pt"),B(r,"yoffset","pt"),B(r,"blurRadius","pt"),q(r,"color")];break;case"bloom":e=[B(r,"strength"),B(r,"radius","pt"),B(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`,i=A(n);if(i.error)throw i.error;t.push(n)}return t.join(" ")}function B(e,t,r){if(null==e[t])throw new o.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function q(e,t){if(null==e[t])throw new o.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}const V=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.Cb)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{default:"normal",read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.Cb)({json:{read:!1,write:!1,origins:{"web-map":{read:{reader:$},write:{writer:N}}}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.BlendLayer")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>f});var n=r(43697),i=r(20102),a=r(5600),o=(r(67676),r(80442),r(75215),r(92604),r(52525)),s=r(30556),u=r(50549),c=r(76169);const l={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var p=r(21506);const f=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,c.df)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r,n){!e||n&&"tables"===n.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,u.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=l[e];let n=r&&r[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(n=!1),!n)return t.messages&&t.messages.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),n=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;return!this.url&&n?null:r}beforeSave(){}};return(0,n._)([(0,a.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,n._)([(0,a.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,n._)([(0,s.c)("listMode")],t.prototype,"writeListMode",null),(0,n._)([(0,a.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,n._)([(0,s.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,n._)([(0,a.Cb)(p.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:{ignoreOrigin:!0,allowNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,allowNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,n._)([(0,s.c)("title")],t.prototype,"writeTitle",null),(0,n._)([(0,a.Cb)({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],t.prototype,"visible",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(92604),r(52525));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get scaleRangeId(){return`${this.minScale},${this.maxScale}`}};return(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],t.prototype,"scaleRangeId",null),t=(0,n._)([(0,a.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>b,PV:()=>m,id:()=>S,iR:()=>h,rn:()=>y,u1:()=>I,rO:()=>A,Oh:()=>v,bT:()=>w,C_:()=>f,Lx:()=>g,vg:()=>x,YI:()=>p,HQ:()=>d});var n=r(92835),i=r(6570),a=r(82971),o=r(25929),s=r(70586),u=(r(95330),r(35463)),c=r(20682),l=r(65242);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},f={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},h={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},d={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},y={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},m={value:null,type:c.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={type:Number,json:{origins:{"web-document":{default:1,write:!0,read:!0},"portal-item":{write:!0}}}},w={...v,json:{...v.json,origins:{"web-document":{...v.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,l.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,l.b)(t.drawingInfo.transparency)}}},b={type:n.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:a}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let c=this.layer.timeExtent;r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(c));let l=a?o&&c?o.intersection(c):o||c:c;if(!l||l.isEmpty||l.isAllTime)return l;i&&(l=l.offset(-i.value,i.unit)),r&&(l=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(l));const p=this._get("timeExtent");return l.equals(p)?p:l}},x={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=a.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},A={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>x});var n,i=r(43697),a=r(35454),o=r(10736),s=r(70586),u=r(5600),c=(r(67676),r(80442),r(75215),r(92604),r(71715)),l=r(52525),p=r(30556),f=r(35671);let h=n=class extends o.wq{async collectRequiredFields(e,t){return(0,f.io)(e,t,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}};(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"expression",void 0),(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),h=n=(0,i._)([(0,l.j)("esri.layers.support.FeatureExpressionInfo")],h);const d=h;var y=r(99282);const m=function(){const e=Object.keys(y.a);return e.sort(),e}();var g;const v=(0,a.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),w=new a.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=g=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,n){t[r]=e.write(null,n),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,s.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new g({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,u.Cb)({type:d,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,c.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,p.c)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,u.Cb)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],b.prototype,"mode",null),(0,i._)([(0,u.Cb)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,i._)([(0,u.Cb)({type:m,json:{type:String,read:w.read,write:w.write}})],b.prototype,"unit",null),b=g=(0,i._)([(0,l.j)("esri.layers.support.ElevationInfo")],b);const x=b}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1302],{10937:(e,t,r)=>{function n(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}r.d(t,{c:()=>n});const i=n();Object.freeze({__proto__:null,create:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},fromValues:function(e,t,r,n,i,a,o,s,u,c,l,p,f,h,d,y){const m=new Float32Array(16);return m[0]=e,m[1]=t,m[2]=r,m[3]=n,m[4]=i,m[5]=a,m[6]=o,m[7]=s,m[8]=u,m[9]=c,m[10]=l,m[11]=p,m[12]=f,m[13]=h,m[14]=d,m[15]=y,m},createView:function(e,t){return new Float32Array(e,t,16)},IDENTITY:i})},78096:(e,t,r)=>{r.d(t,{h:()=>V});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(92604),r(52525)),o=r(20102),s=r(78286),u=r(35270),c=r(62357),l=r(10937),p=r(52138);class f{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=v(e.strength,t.strength,r),this.radius=v(e.radius,t.radius,r),this.threshold=v(e.threshold,t.threshold,r)}clone(){return new f(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:w(this.radius),strength:this.strength,threshold:this.threshold}}}class h{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(v(e.radius,t.radius,r))}clone(){return new h(this.radius)}toJSON(){return{type:"blur",radius:w(this.radius)}}}class d{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=v(e.amount,t.amount,r),this._updateMatrix()}clone(){return new d(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||(0,l.c)();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,p.s)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,p.a)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,p.s)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,p.a)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,p.s)(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return(0,p.a)(n,n)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,n=(0,p.s)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,p.a)(n,n)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,p.s)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,p.a)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,n=(0,p.s)(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return(0,p.a)(n,n)})(e)}}}class y{constructor(e,t,r,n){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=n,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=v(e.offsetX,t.offsetX,r),this.offsetY=v(e.offsetY,t.offsetY,r),this.blurRadius=v(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(v(e.color[0],t.color[0],r)),this.color[1]=Math.round(v(e.color[1],t.color[1],r)),this.color[2]=Math.round(v(e.color[2],t.color[2],r)),this.color[3]=v(e.color[3],t.color[3],r)}clone(){return new y(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:w(this.offsetX),yoffset:w(this.offsetY),blurRadius:w(this.blurRadius),color:e}}}class m{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=v(e.angle,t.angle,r),this._updateMatrix()}clone(){return new m(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||(0,l.c)();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),n=Math.cos(t*Math.PI/180),i=(0,p.s)(e,.213+.787*n-.213*r,.715-.715*n-.715*r,.072-.072*n+.928*r,0,.213-.213*n+.143*r,.715+.285*n+.14*r,.072-.072*n-.283*r,0,.213-.213*n-.787*r,.715-.715*n+.715*r,.072+.928*n+.072*r,0,0,0,0,1);return(0,p.a)(i,i)})(e,this.angle)}}class g{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=v(e.amount,t.amount,r)}clone(){return new g(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function v(e,t,r){return e+(t-e)*r}function w(e){return Math.round(1e3*(0,c.Wz)(e))/1e3}r(5732);var b,x,S={exports:{}};function A(e){let t;try{t=e?S.exports.parse(e):[]}catch(t){return{input:e,parsedFunctions:[],effects:[],error:new o.Z("effect:invalid-syntax","Invalid effect syntax",{input:e,error:t})}}const r={input:e,parsedFunctions:t,effects:[],error:null};try{for(const e of t)r.effects.push(I(e))}catch(e){r.effects.length=0,r.error=e}return r}function I(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=j(e.parameters[0])),new d(e.name,t)}(e);case"opacity":return function(e){let t=1;return L(e.parameters,1),1===e.parameters.length&&(t=j(e.parameters[0])),new g(t)}(e);case"hue-rotate":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||(0!==e.value||null!==e.unit)&&null==C[e.unit])throw new o.Z("effect:type-error",`Expected <angle>, Actual: ${M(e)}`,{term:e})}(e),e.value*C[e.unit]||0}(e.parameters[0])),new m(t)}(e);case"blur":return function(e){let t=0;return L(e.parameters,1),1===e.parameters.length&&(t=O(e.parameters[0]),_(t,e.parameters[0])),new h(t)}(e);case"drop-shadow":return function(e){const t=[];let r;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new o.Z("effect:type-error","Accepts only one color",{});r=E(n)}else{const e=O(n);if(Object.isFrozen(t))throw new o.Z("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&_(e,n)}if(t.length<2||t.length>3)throw new o.Z("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new y(t[0],t[1],t[2]||0,r||G("black"))}(e);case"bloom":return function(e){let t=1,r=0,n=0;return L(e.parameters,3),e.parameters[0]&&(t=j(e.parameters[0])),e.parameters[1]&&(r=O(e.parameters[1]),_(r,e.parameters[1])),e.parameters[2]&&(n=j(e.parameters[2])),new f(t,r,n)}(e)}}catch(t){throw t.details.filter=e,t}throw new o.Z("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}function L(e,t){if(e.length>t)throw new o.Z("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function M(e){return"color"===e.type?"<color>":T[e.unit]?"<length>":C[e.unit]?"<angle>":"%"===e.unit?"<percentage>":"<double>"}function _(e,t){if(e<0)throw new o.Z("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}x=function(){function e(t,r,n,i){var a=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(a,e.prototype),a.expected=r,a.found=n,a.location=i,a.name="SyntaxError",a}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,i=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){i=e[n].text.split(/\r\n|\n|\r/g);break}var a=this.location.start,o=this.location.source+":"+a.line+":"+a.column;if(i){var s=this.location.end,u=t("",a.line.toString().length),c=i[a.line-1],l=a.line===s.line?s.column:c.length+1;r+="\n --\x3e "+o+"\n"+u+" |\n"+a.line+" | "+c+"\n"+u+" | "+t("",a.column-1)+t("",l-a.column,"^")}else r+="\n at "+o}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,i={},a=(r=void 0!==r?r:{}).grammarSource,o={start:se},s=se,u="none",c="grad",l="turn",p=/^[ \t\n\r]/,f=/^[a-z\-]/,h=/^[0-9a-fA-F]/,d=/^[+\-]/,y=/^[0-9]/,m=ne("none"),g=te("none",!1),v=te(")",!1),w=te(",",!1),b=ne("whitespace"),x=re([" ","\t","\n","\r"],!1,!1),S=ne("function"),A=te("(",!1),I=ne("identifier"),L=re([["a","z"],"-"],!1,!1),M=ne("percentage"),_=te("%",!1),C=ne("length"),T=te("px",!1),j=te("cm",!1),O=te("mm",!1),E=te("in",!1),G=te("pt",!1),R=te("pc",!1),F=ne("angle"),N=te("deg",!1),$=te("rad",!1),Z=te("grad",!1),k=te("turn",!1),B=ne("number"),q=ne("color"),V=te("#",!1),D=re([["0","9"],["a","f"],["A","F"]],!1,!1),z=re(["+","-"],!1,!1),W=re([["0","9"]],!1,!1),P=te(".",!1),J=te("e",!1),Y=0,X=0,H=[{line:1,column:1}],K=0,U=[],Q=0;if("startRule"in r){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=o[r.startRule]}function ee(){return t.substring(X,Y)}function te(e,t){return{type:"literal",text:e,ignoreCase:t}}function re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ne(e){return{type:"other",description:e}}function ie(e){var r,n=H[e];if(n)return n;for(r=e-1;!H[r];)r--;for(n={line:(n=H[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return H[e]=n,n}function ae(e,t){var r=ie(e),n=ie(t);return{source:a,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function oe(e){Y<K||(Y>K&&(K=Y,U=[]),U.push(e))}function se(){var e;return(e=ue())===i&&(e=function(){var e,t;if(e=[],(t=ce())!==i)for(;t!==i;)e.push(t),t=ce();else e=i;return e}()),e}function ue(){var e,r;return Q++,e=Y,pe(),t.substr(Y,4)===u?(r=u,Y+=4):(r=i,0===Q&&oe(g)),r!==i?(pe(),X=e,e=[]):(Y=e,e=i),Q--,e===i&&0===Q&&oe(m),e}function ce(){var e,r,n,a;return e=Y,pe(),(r=function(){var e,r,n;return Q++,e=Y,(r=fe())!==i?(40===t.charCodeAt(Y)?(n="(",Y++):(n=i,0===Q&&oe(A)),n!==i?(X=e,e=r):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&(r=i,0===Q&&oe(S)),e}())!==i?(pe(),(n=function(){var e,r,n,a,o,s,u,c;if(e=Y,(r=le())!==i){for(n=[],a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(w)),s===i&&(s=null),u=pe(),(c=le())!==i?a=o=[o,s,u,c]:(Y=a,a=i);a!==i;)n.push(a),a=Y,o=pe(),44===t.charCodeAt(Y)?(s=",",Y++):(s=i,0===Q&&oe(w)),s===i&&(s=null),u=pe(),(c=le())!==i?a=o=[o,s,u,c]:(Y=a,a=i);X=e,e=function(e,t){return t.length>0?function(e,t,r){return[e].concat(function(e,t){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]}(r,n)}else Y=e,e=i;return e}())===i&&(n=null),pe(),41===t.charCodeAt(Y)?(a=")",Y++):(a=i,0===Q&&oe(v)),a!==i?(pe(),X=e,e=function(e,t){return{type:"function",name:e,parameters:t||[]}}(r,n)):(Y=e,e=i)):(Y=e,e=i),e}function le(){var e,t;return e=Y,(t=he())===i&&(t=de())===i&&(t=ye())===i&&(t=function(){var e,t;return Q++,e=Y,pe(),(t=ge())!==i?(X=e,e=function(e){return{value:e,unit:null}}(t)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(B),e}()),t!==i&&(X=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),(e=t)===i&&(e=Y,(t=me())!==i&&(X=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function pe(){var e,r;for(Q++,e=[],p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));r!==i;)e.push(r),p.test(t.charAt(Y))?(r=t.charAt(Y),Y++):(r=i,0===Q&&oe(x));return Q--,r=i,0===Q&&oe(b),e}function fe(){var e,r,n;if(Q++,e=Y,r=[],f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L)),n!==i)for(;n!==i;)r.push(n),f.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(L));else r=i;return r!==i&&(X=e,r=ee()),Q--,(e=r)===i&&(r=i,0===Q&&oe(I)),e}function he(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?(37===t.charCodeAt(Y)?(n="%",Y++):(n=i,0===Q&&oe(_)),n!==i?(X=e,e=function(e){return{value:e,unit:"%"}}(r)):(Y=e,e=i)):(Y=e,e=i),Q--,e===i&&0===Q&&oe(M),e}function de(){var e,r,n;return Q++,e=Y,pe(),(r=ge())!==i?("px"===t.substr(Y,2)?(n="px",Y+=2):(n=i,0===Q&&oe(T)),n!==i?(X=e,e=function(e){return{value:e,unit:"px"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("cm"===t.substr(Y,2)?(n="cm",Y+=2):(n=i,0===Q&&oe(j)),n!==i?(X=e,e=function(e){return{value:e,unit:"cm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("mm"===t.substr(Y,2)?(n="mm",Y+=2):(n=i,0===Q&&oe(O)),n!==i?(X=e,e=function(e){return{value:e,unit:"mm"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("in"===t.substr(Y,2)?(n="in",Y+=2):(n=i,0===Q&&oe(E)),n!==i?(X=e,e=function(e){return{value:e,unit:"in"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pt"===t.substr(Y,2)?(n="pt",Y+=2):(n=i,0===Q&&oe(G)),n!==i?(X=e,e=function(e){return{value:e,unit:"pt"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,pe(),(r=ge())!==i?("pc"===t.substr(Y,2)?(n="pc",Y+=2):(n=i,0===Q&&oe(R)),n!==i?(X=e,e=function(e){return{value:e,unit:"pc"}}(r)):(Y=e,e=i)):(Y=e,e=i)))))),Q--,e===i&&0===Q&&oe(C),e}function ye(){var e,r,n;return Q++,e=Y,(r=ge())!==i?("deg"===t.substr(Y,3)?(n="deg",Y+=3):(n=i,0===Q&&oe(N)),n!==i?(X=e,e=function(e){return{value:e,unit:"deg"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?("rad"===t.substr(Y,3)?(n="rad",Y+=3):(n=i,0===Q&&oe($)),n!==i?(X=e,e=function(e){return{value:e,unit:"rad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===c?(n=c,Y+=4):(n=i,0===Q&&oe(Z)),n!==i?(X=e,e=function(e){return{value:e,unit:"grad"}}(r)):(Y=e,e=i)):(Y=e,e=i),e===i&&(e=Y,(r=ge())!==i?(t.substr(Y,4)===l?(n=l,Y+=4):(n=i,0===Q&&oe(k)),n!==i?(X=e,e=function(e){return{value:e,unit:"turn"}}(r)):(Y=e,e=i)):(Y=e,e=i)))),Q--,e===i&&(r=i,0===Q&&oe(F)),e}function me(){var e,r,n,a;if(Q++,e=Y,35===t.charCodeAt(Y)?(r="#",Y++):(r=i,0===Q&&oe(V)),r!==i){if(n=[],h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D)),a!==i)for(;a!==i;)n.push(a),h.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(D));else n=i;n!==i?(X=e,e={type:"hex",value:ee()}):(Y=e,e=i)}else Y=e,e=i;return e===i&&(e=Y,(r=ce())!==i&&(X=e,r=function(e){return{type:"function",value:e}}(r)),(e=r)===i&&(e=Y,(r=fe())!==i&&(X=e,r={type:"named",value:ee()}),e=r)),Q--,e===i&&(r=i,0===Q&&oe(q)),e}function ge(){var e,r,n,a,o,s,u;for(e=Y,d.test(t.charAt(Y))?(t.charAt(Y),Y++):0===Q&&oe(z),r=Y,n=[],y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(W));a!==i;)n.push(a),y.test(t.charAt(Y))?(a=t.charAt(Y),Y++):(a=i,0===Q&&oe(W));if(46===t.charCodeAt(Y)?(a=".",Y++):(a=i,0===Q&&oe(P)),a!==i){if(o=[],y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(W)),s!==i)for(;s!==i;)o.push(s),y.test(t.charAt(Y))?(s=t.charAt(Y),Y++):(s=i,0===Q&&oe(W));else o=i;o!==i?r=n=[n,a,o]:(Y=r,r=i)}else Y=r,r=i;if(r===i)if(r=[],y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(W)),n!==i)for(;n!==i;)r.push(n),y.test(t.charAt(Y))?(n=t.charAt(Y),Y++):(n=i,0===Q&&oe(W));else r=i;if(r!==i){if(n=Y,101===t.charCodeAt(Y)?(a="e",Y++):(a=i,0===Q&&oe(J)),a!==i){if(d.test(t.charAt(Y))?(o=t.charAt(Y),Y++):(o=i,0===Q&&oe(z)),o===i&&(o=null),s=[],y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(W)),u!==i)for(;u!==i;)s.push(u),y.test(t.charAt(Y))?(u=t.charAt(Y),Y++):(u=i,0===Q&&oe(W));else s=i;s!==i?n=a=[a,o,s]:(Y=n,n=i)}else Y=n,n=i;n===i&&(n=null),X=e,e=parseFloat(ee())}else Y=e,e=i;return e}if((n=s())!==i&&Y===t.length)return n;throw n!==i&&Y<t.length&&oe({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}(U,K<t.length?t.charAt(K):null,K<t.length?ae(K,K+1):ae(K,K))}}},(b=S).exports&&(b.exports=x());const C={deg:1,grad:.9,rad:180/Math.PI,turn:360},T={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function j(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new o.Z("effect:type-error",`Expected <double> or <percentage>, Actual: ${M(e)}`,{term:e})}(e);const t=e.value;return _(t,e),"%"===e.unit?.01*t:t}function O(e){return function(e){if("quantity"!==e.type||(0!==e.value||null!==e.unit)&&null==T[e.unit])throw new o.Z("effect:type-error",`Expected <length>, Actual: ${M(e)}`,{term:e})}(e),e.value*T[e.unit]||0}function E(e){switch(e.colorType){case"hex":return(0,u.rW)(e.value);case"named":return G(e.value);case"function":return function(e){if(L(e.parameters,4),R.test(e.name))return[j(e.parameters[0]),j(e.parameters[1]),j(e.parameters[2]),e.parameters[3]?j(e.parameters[3]):1];if(F.test(e.name))return(0,u.B7)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new o.Z("effect:type-error",`Expected <double>, Actual: ${M(e)}`,{term:e})}(e),_(e.value,e),e.value}(e.parameters[0]),j(e.parameters[1]),j(e.parameters[2]),e.parameters[3]?j(e.parameters[3]):1);throw new o.Z("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function G(e){const t=(0,u.VL)(e);if(!t)throw new o.Z("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return t}const R=/^rgba?/i,F=/^hsla?/i;function N(e,t,r){try{return function(e){if(!e)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:k(r.value)});return t}return k(e)}(e)}catch(e){r.messages&&r.messages.push(e)}return null}function $(e,t,r,n){try{const n=function(e){if(!e)return null;if("string"==typeof e)return Z(e);const t=[];for(const{scale:r,value:n}of e)t.push({scale:r,value:Z(n)});return t}(e);(0,s.RB)(r,n,t)}catch(e){n.messages&&n.messages.push(e)}}function Z(e){if(!e)return null;const t=A(e);if(t.error)throw t.error;return t.effects.map((e=>e.toJSON()))}function k(e){if(!e||!e.length)return null;const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[B(r,"amount")];break;case"blur":e=[B(r,"radius","pt")];break;case"hue-rotate":e=[B(r,"angle","deg")];break;case"drop-shadow":e=[B(r,"xoffset","pt"),B(r,"yoffset","pt"),B(r,"blurRadius","pt"),q(r,"color")];break;case"bloom":e=[B(r,"strength"),B(r,"radius","pt"),B(r,"threshold")]}const n=`${r.type}(${e.filter(Boolean).join(" ")})`,i=A(n);if(i.error)throw i.error;t.push(n)}return t.join(" ")}function B(e,t,r){if(null==e[t])throw new o.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function q(e,t){if(null==e[t])throw new o.Z("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}const V=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,n._)([(0,i.Cb)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{default:"normal",read:!0,write:!0}}}})],t.prototype,"blendMode",void 0),(0,n._)([(0,i.Cb)({json:{read:!1,write:!1,origins:{"web-map":{read:{reader:N},write:{allowNull:!0,writer:$}}}}})],t.prototype,"effect",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.BlendLayer")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>f});var n=r(43697),i=r(20102),a=r(5600),o=(r(67676),r(80442),r(75215),r(92604),r(52525)),s=r(30556),u=r(50549),c=r(76169);const l={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var p=r(21506);const f=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,n){(n&&"ground"===n.layerContainerType||e&&(0,c.df)(this,r,{},n))&&(t[r]=e)}writeOperationalLayerType(e,t,r,n){!e||n&&"tables"===n.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,u.$Z)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=l[e];let n=r&&r[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(n=!1),!n)return t.messages&&t.messages.push(new i.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),n=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof i.Z&&"web-document-write:property-required"===e.name)).length;return!this.url&&n?null:r}beforeSave(){}};return(0,n._)([(0,a.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,n._)([(0,a.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,n._)([(0,s.c)("listMode")],t.prototype,"writeListMode",null),(0,n._)([(0,a.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,n._)([(0,s.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,n._)([(0,a.Cb)(p.Oh)],t.prototype,"opacity",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:{ignoreOrigin:!0,allowNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,allowNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,n._)([(0,s.c)("title")],t.prototype,"writeTitle",null),(0,n._)([(0,a.Cb)({type:Boolean,json:{name:"visibility",origins:{"web-document":{name:"visibility",default:!0},"portal-item":{name:"visibility",read:{source:["visible","visibility"]}}}}})],t.prototype,"visible",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>o});var n=r(43697),i=r(5600),a=(r(67676),r(80442),r(75215),r(92604),r(52525));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get scaleRangeId(){return`${this.minScale},${this.maxScale}`}};return(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,n._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,n._)([(0,i.Cb)({readOnly:!0})],t.prototype,"scaleRangeId",null),t=(0,n._)([(0,a.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>b,PV:()=>m,id:()=>S,iR:()=>h,rn:()=>y,u1:()=>I,rO:()=>A,Oh:()=>v,bT:()=>w,C_:()=>f,Lx:()=>g,vg:()=>x,YI:()=>p,HQ:()=>d});var n=r(92835),i=r(6570),a=r(82971),o=r(25929),s=r(70586),u=(r(95330),r(35463)),c=r(20682),l=r(65242);const p={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},f={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},h={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},d={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},y={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},m={value:null,type:c.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function g(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={type:Number,json:{origins:{"web-document":{default:1,write:!0,read:!0},"portal-item":{write:!0}}}},w={...v,json:{...v.json,origins:{"web-document":{...v.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,l.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,l.b)(t.drawingInfo.transparency)}}},b={type:n.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:i,useViewTime:a}=this.layer,o=null==(t=this.view)?void 0:t.timeExtent;let c=this.layer.timeExtent;r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(c));let l=a?o&&c?o.intersection(c):o||c:c;if(!l||l.isEmpty||l.isAllTime)return l;i&&(l=l.offset(-i.value,i.unit)),r&&(l=function(e){if(!e)return e;const{start:t,end:r}=e;return new n.Z({start:(0,s.pC)(t)?(0,u.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,s.pC)(r)?(0,u.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(l));const p=this._get("timeExtent");return l.equals(p)?p:l}},x={type:i.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=i.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=a.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},A={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>x});var n,i=r(43697),a=r(35454),o=r(10736),s=r(70586),u=r(5600),c=(r(67676),r(80442),r(75215),r(92604),r(71715)),l=r(52525),p=r(30556),f=r(35671);let h=n=class extends o.wq{async collectRequiredFields(e,t){return(0,f.io)(e,t,this.expression)}clone(){return new n({expression:this.expression,title:this.title})}};(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"expression",void 0),(0,i._)([(0,u.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),h=n=(0,i._)([(0,l.j)("esri.layers.support.FeatureExpressionInfo")],h);const d=h;var y=r(99282);const m=function(){const e=Object.keys(y.a);return e.sort(),e}();var g;const v=(0,a.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),w=new a.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=g=class extends o.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,n){t[r]=e.write(null,n),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,s.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new g({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,i._)([(0,u.Cb)({type:d,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,i._)([(0,c.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,i._)([(0,p.c)("featureExpressionInfo",{featureExpressionInfo:{type:d},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,i._)([(0,u.Cb)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],b.prototype,"mode",null),(0,i._)([(0,u.Cb)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,i._)([(0,u.Cb)({type:m,json:{type:String,read:w.read,write:w.write}})],b.prototype,"unit",null),b=g=(0,i._)([(0,l.j)("esri.layers.support.ElevationInfo")],b);const x=b}}]);