@arcgis/core 5.2.0-next.90 → 5.2.0-next.91

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 (67) hide show
  1. package/arcgisGlobal.d.ts +1 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/24a6b28db94e07a702a4.js +1 -0
  4. package/assets/esri/core/workers/chunks/9246e2468528650bdc7c.js +1 -0
  5. package/assets/esri/core/workers/chunks/9509bef285929c52c244.js +1 -0
  6. package/assets/esri/core/workers/chunks/ad404195107eadf91e16.js +1 -0
  7. package/config.js +1 -1
  8. package/core/has.js +1 -1
  9. package/kernel.js +1 -1
  10. package/layers/ImageryTileLayer.d.ts +20 -20
  11. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  12. package/layers/MapImageLayer.d.ts +20 -21
  13. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  14. package/layers/mixins/FeatureLayerBase.d.ts +20 -21
  15. package/layers/support/DateTimeFieldFormat.d.ts +1 -1
  16. package/layers/support/FieldConfiguration.d.ts +1 -1
  17. package/package.json +4 -4
  18. package/popup/FeatureContent.d.ts +3 -3
  19. package/popup/FeatureContentCollection.d.ts +3 -3
  20. package/popup/FieldInfo.d.ts +18 -12
  21. package/popup/support/FieldInfoFormat.d.ts +13 -8
  22. package/portal/Portal.js +1 -1
  23. package/support/revision.js +1 -1
  24. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  25. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  26. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  27. package/views/3d/layers/graphics/Labeler.js +1 -1
  28. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  29. package/views/3d/webgl-engine/effects/glow/Glow.js +1 -1
  30. package/views/3d/webgl-engine/effects/raymarching/DistanceFalloff.glsl.js +2 -2
  31. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  32. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  33. package/views/SceneView.d.ts +64 -1
  34. package/views/SceneView.js +1 -1
  35. package/views/View2D.d.ts +17 -4
  36. package/views/support/LayerLayerViewInfo.js +1 -1
  37. package/views/support/LayerViewManager.js +1 -1
  38. package/webmap/InitialViewProperties.d.ts +1 -1
  39. package/webscene/SunLighting.d.ts +3 -1
  40. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  41. package/widgets/BatchAttributeForm/expressions/ExpressionsModel.js +1 -1
  42. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  43. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +4 -4
  44. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  45. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  46. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  47. package/widgets/BatchAttributeForm/inputs/TextElementInput.js +1 -1
  48. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.d.ts +12 -0
  49. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +2 -0
  50. package/widgets/BatchAttributeForm/inputs/support/controllerUtils.d.ts +5 -0
  51. package/widgets/BatchAttributeForm/inputs/support/controllerUtils.js +2 -0
  52. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  53. package/widgets/BatchAttributeForm.js +1 -1
  54. package/widgets/Daylight.d.ts +4 -0
  55. package/widgets/Editor.d.ts +1 -1
  56. package/widgets/Feature/FeatureViewModel.d.ts +3 -3
  57. package/widgets/Feature.d.ts +3 -3
  58. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -3
  59. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +1 -0
  60. package/widgets/FeatureTable.d.ts +1 -1
  61. package/widgets/Features/FeaturesViewModel.d.ts +3 -3
  62. package/widgets/Features.d.ts +2 -2
  63. package/widgets/TimeSlider.d.ts +3 -3
  64. package/assets/esri/core/workers/chunks/05fbd1f373cfa3724f0c.js +0 -1
  65. package/assets/esri/core/workers/chunks/27c0bed59626c7f64125.js +0 -1
  66. package/assets/esri/core/workers/chunks/41cf6163758d28fb1968.js +0 -1
  67. package/assets/esri/core/workers/chunks/e55507e4114b34d1ef4e.js +0 -1
package/arcgisGlobal.d.ts CHANGED
@@ -1302,6 +1302,7 @@ export interface ArcgisImportModules {
1302
1302
  "@arcgis/core/widgets/BatchAttributeForm/inputs/SingleFeatureInput.js": typeof import("./widgets/BatchAttributeForm/inputs/SingleFeatureInput.js").default;
1303
1303
  "@arcgis/core/widgets/BatchAttributeForm/inputs/TextElementInput.js": typeof import("./widgets/BatchAttributeForm/inputs/TextElementInput.js").default;
1304
1304
  "@arcgis/core/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.js": typeof import("./widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.js").default;
1305
+ "@arcgis/core/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js": typeof import("./widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js").default;
1305
1306
  "@arcgis/core/widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js": typeof import("./widgets/BatchAttributeForm/inputs/support/MultipleChoiceController.js").default;
1306
1307
  "@arcgis/core/widgets/Bookmarks/BookmarksViewModel.js": typeof import("./widgets/Bookmarks/BookmarksViewModel.js").default;
1307
1308
  "@arcgis/core/widgets/Bookmarks/BookmarksVisibleElements.js": typeof import("./widgets/Bookmarks/BookmarksVisibleElements.js").default;
@@ -1 +1 @@
1
- var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath){{const e="5.2.0-next.90";a.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}a.defaultAssetsPath=a.assetsPath}r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),a=r(53966),o=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>c});var n=r(92602),a=r(51447),o=(r(44208),r(799));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.set(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(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,c._loggers.get(e)||new c({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=c._tickCounter)return;this._loggedMessages[e].set(n,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",i)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then(()=>{c._tickCounter++,c._tickCounterScheduled=!1}))}}function i(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>s,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>i,Xj:()=>f,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){const r=[];for(const n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function s(e,t,r,n,a,o,s){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);const c=r-t;if(null==e||null==n||c!==o-a)return!1;if(s){for(let r=0;r<c;r++)if(!s(e[t+r],n[a+r]))return!1}else for(let r=0;r<c;r++)if(e[t+r]!==n[a+r])return!1;return!0}function c(e,t,r){return s(e,0,e?.length??0,t,0,t?.length??0,r)}function i(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),a=e.filter(e=>!t.includes(e))),{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){const r=e.length;if(0===r)return[];const n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);const a=e.length;let o=0,s=a;if(a===r){const r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<s;){const r=o+s>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:s=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){const o=r??e.length,s=p(e,(0,n.z)(t),o,a);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a=a||h;const s=Math.max(0,a.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<s;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;const r=w(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>i,eF:()=>l,eO:()=>c,io:()=>f,u3:()=>d,uW:()=>s});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Module: ${d(t)}`,r)}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;f(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;f(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function l(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function f(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:a,see:s,warnOnce:c}=r;let i=t;if(n&&(i+=`\n\t🛠️ Replacement: ${n}`),a&&(i+=`\n\t⚙️ Version: ${a}`),s)if(Array.isArray(s)){i+="\n\t🔗 See for more details:";for(const e of s)i+=`\n\t\t${e}`}else i+=`\n\t🔗 See ${s} for more details.`;o(e,i,c)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>c,on:()=>s,wb:()=>a});var n=r(36563);function a(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(const t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function c(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>c,hA:()=>a,rE:()=>s,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return a(()=>e?.abort())}function c(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:basemap-groundlayers",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>i,TU:()=>c,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(i(e))return e.clone();if(l(e))return e.map(s);if(f(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function c(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(l(e)){let r=!0;const n=e.map(e=>{const n=c(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(i(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],a=c(r);if(null!=r&&null==a)return null;n[t]=a}return n}function i(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function c(e){return e?.abort(),null}function i(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>c,Gz:()=>i,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>c,sM:()=>s,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||i(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),a=n.pop(),o=i(n,!0,r);o&&a&&(o[a]=t)}function c(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(c(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(c(e[r],t[r]))return!0;return!1}return e!==t}function i(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 l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],s=t[a];return o===s?e:void 0===o?(e[a]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(o=o?Array.isArray(o)?e[a]=o.slice():e[a]=[o]:e[a]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=s.slice())):s&&"object"==typeof s?e[a]=l(o,s,r):e.hasOwnProperty(a)&&!t.hasOwnProperty(a)||(e[a]=s),e)},e||{}):e}function f(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>i,NK:()=>s,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>c,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function s(e="Aborted"){return new n.A("AbortError",e)}function c(e,t="Aborted"){if(l(e))throw s(t)}function i(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){const t=i(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){const r=i(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",()=>t());t()}}function b(e,t){const r=i(e);if(null!=r)return c(r),(0,a.Oo)(r,"abort",()=>t(s()))}function h(e,t){return null==i(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(s()));const c=()=>{a=(0,o.xt)(a)};e.then(c,c),e.then(r,n)})}function p(e){return null!=e&&"object"==typeof e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await g(r),a={};return t.map((e,t)=>a[e]=n[t]),a}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){const n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(s()))})})}function _(e,t){const r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,c=null;const i=(...l)=>{if(r){n=l,o&&o.reject(s()),o=Promise.withResolvers();const e=o.promise;if(c){const e=c;c=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){const n=new AbortController;r=O(e(...l,n.signal));const a=r;v(t).then(()=>{r===a&&(o?n.abort():c=n)})}else r=1,r=O(e(...l));const f=()=>{const e=n;n=a=r=c=null,null!=e&&i(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return i}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),c(e)}},799(e,t,r){r.d(t,{Cj:()=>i,HC:()=>s,V2:()=>c,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function s(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function c(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function i(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function i(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||c(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:i(e)?65535:o(e)||s(e)?255:l(e)?2147483647:c(e)?y:a(e)?127:256}r.d(t,{IY:()=>c,JI:()=>p,LW:()=>d,UR:()=>s,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>i,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ie,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),s=r(53966),c=r(12195),i=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();function A(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,a;t<0?(n=decodeURIComponent(e),a=""):(n=decodeURIComponent(e.slice(0,t)),a=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(a):r[n]=a}return r}function 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 a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,c.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,c.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&se()&&(r=oe(r)),A(r)}function M(e,t=!1){const r=N(e);let n,a;if(r){const e=C(r.proxyUrl);n=e.path,a=e.query?P(e.query):null}else if(t){const t=x(e);n=t.path,a=t.query}if(n){const t=A(e);e=n+"?"+t.path;const r=S({...a,...t.query});r&&(e=`${e}?${r}`)}return e}const j={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(j.path=e.slice(0,t),j.query=e.slice(t+1)):(j.path=e,j.query=null),j}function $(e){return(e=ce(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let a=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){const t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);const r=(0,i.py)(e),n=(0,i.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),ce(e)===ce(t)}function T(e){const t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;const n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme)&&null!=n.host&&null!=a.host&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;const n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),s=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!o.startsWith(s))return e;const c=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let i=c(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,i+1)===o.slice(0,i)+"/"&&(l=i+1,i!==a.length);)i=c(a,"/",i+1);if(-1===l)return e;if(s&&l<s.length)return e;e=n.slice(l);const f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(se()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){const t=e.filter(a.Ru);if(!t?.length)return;const r=[];if(D(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(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=ce(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){const t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(X);if(!t)return null;const[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){const t=Q(e);if(!t)return null;const r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function se(){return"https"===k.scheme}function ce(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ie(e){let t=0;if(D(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";const r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const a=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;const n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function be(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||(e.scheme=k.scheme),e)}function me(e,t){const r=A(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 ge(e,t,r){const n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;const r=A(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;const t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o;const s=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(s)&&(a=s.signal,o=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),s=r(36563),c=r(97768),i=r(17676),l=r(52268);const f={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(523)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(4801),r.e(9619)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(6860),r.e(4520)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9953),r.e(7552),r.e(5051),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(4676),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(2587),r.e(2136),r.e(2959),r.e(6313)]).then(r.bind(r,98889)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(7447)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9616)]).then(r.bind(r,49616)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2174),r.e(4294)]).then(r.bind(r,15554)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(312)]).then(r.bind(r,71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(359),r.e(3268)]).then(r.bind(r,14289)),GlyphWorker:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2587),r.e(2136),r.e(2196),r.e(2926),r.e(5530),r.e(3931)]).then(r.bind(r,41902)),IntegratedMesh3DTilesLayerWorker:()=>r.e(7214).then(r.bind(r,77214)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(9510)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9078)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(3819),r.e(2959),r.e(5471)]).then(r.bind(r,6557)),PointCloudWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(7005),r.e(7984),r.e(4250)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(5130),r.e(373),r.e(9235),r.e(6051)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(4801),r.e(491)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(4538)]).then(r.bind(r,94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(8721)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(2587),r.e(2196),r.e(7886),r.e(9328)]).then(r.bind(r,36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(4862)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(3281),r.e(1737)]).then(r.bind(r,26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(9117),r.e(7865),r.e(2292),r.e(9953),r.e(6554),r.e(564),r.e(3299),r.e(2869),r.e(3910),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(2112),r.e(812),r.e(5130),r.e(3690),r.e(3470),r.e(8732),r.e(2174),r.e(7772),r.e(3847)]).then(r.bind(r,29420))};var d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?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 w{static{this.kernelInfo={buildDate:"",fullVersion:n.ol,revision:""}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const a=new w(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),w.clients.set(a,n),r.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,a)=>{if((0,i.G4)(n))return this._processWork(),void a((0,i.NK)());const l=(0,i.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,c.xt)(e.abortHandle),this._post({type:b,jobId:s}),a((0,i.NK)()))}),f={resolve:r,reject:a,abortHandle:l,debugInfo:e};this._outJobs.set(s,f),this._post({type:h,jobId:s,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,c.xt)(e.abortHandle),e.reject((0,i.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:a}=e,o=a?new AbortController:null,s=this._inJobs;let c,l=this._client,f=l[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),c=f.apply(l,n)}catch(e){return void this._post({type:p,jobId:r,error:(0,d.mF)(e)})}(0,i.$X)(c)?(s.set(r,{controller:o,promise:c}),c.then(e=>{s.has(r)&&(s.delete(r),this._post({type:p,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,i.zf)(e)||this._post({type:p,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:p,jobId:r},c)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{const a=(0,d.VI)(e);a?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const s=o.get(t);o.delete(t),this._processWork(),(0,c.xt)(s.abortHandle),r?s.reject(a.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Jc:()=>i,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let c=0;function i(){return c++}function l(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 f(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,s,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>i,id:()=>o,ol:()=>s});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let o,s="5.2";function c(e){o=e}function i(e){const t=o?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}s="5.2.0-next.90",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>o,qG:()=>c});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,s]=t;if(!r)return null;let c=null,i=null,l=null;const{devext:f,qaext:d,www:u}=a;if(o)if(c=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qa":({customBaseUrl:i,portalHostname:l}=d);break;default:return null}else({customBaseUrl:i,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qaext":({customBaseUrl:i,portalHostname:l}=d);break;case"www":({customBaseUrl:i,portalHostname:l}=u);break;default:return null}return{customBaseUrl:i,isPortal:!1,portalHostname:l,urlKey:c}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function c(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++];r.o(e,a)?0===o&&n++:0===o?Object.defineProperty(e,a,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,a,{enumerable:!0,get:o})}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"69688d521d5ba117e31c",91:"6f6ae6cf7f6e30b29013",118:"f53010adb70463b75bb9",124:"5165d367328ac7badf47",182:"ea91c57a0b31f3f65ee5",224:"92c852700ad1006f1e76",309:"a24cecf2f775eaa69cf4",312:"19e93d4d37018e3ee849",349:"514cc15acb77dc85035c",353:"bee411f08e2a9499f8f5",359:"ccaeabc3be07f3c96f50",368:"bf7875fda48b15271a10",369:"8a0a13f398ab488dbbe9",373:"a0565137027c83108953",382:"d7e17df1c3675bf3633e",390:"ac4131121230cfc14f21",417:"1bf967c68d0c795d3fb4",449:"0d95f72e1c07ab867d21",468:"bfb8fc6b940bd5510e29",491:"c07d2fb9940b2c6eda9f",523:"d270b49c037085503016",547:"484b3e2a220c440ccbb4",563:"44857a76be2c0ac65bb9",564:"428f991c14ac12ae1b2c",566:"dd26a37f061ff658c5bd",692:"c23943e51734254d31e8",737:"ec69dd546c312ba97110",756:"b6063d1755def00d4889",765:"87e0ceb1a64ab08e679a",787:"64ce2d060ae7cdd412cf",788:"d31f62ecbb54bffc54f2",812:"abe7670db06b27c0c8c8",820:"aafa33f661462f5afd2b",837:"fddcb8be714ad18ad0c8",892:"dfbe0efe453587ec5eb2",893:"e1682e94cc714197ebb4",895:"59f0a2bd40b033ce77e4",903:"f3e53be08ab9dbdf17ae",919:"ddf284648a73b6993737",923:"e823c9ccb7bc348d8824",926:"f1f78bb3d34f973c19de",980:"6e12e3c99b149cd7f567",1003:"4490dd8bae0dd2769d99",1017:"c0e073a77484b0dfd383",1086:"f4d351b4cd9d1aa10632",1088:"3bbd2d4a19c3b7ad82e4",1089:"8a87e1a89a0d8c6203a7",1099:"2754ba5cc094028a7a3c",1132:"903c7bd079888f65fef1",1150:"d36bbda9b7261534568f",1204:"e02f02040b63d9c2e654",1214:"f6f56f3e011dcef90bbb",1221:"78085f804969c9282700",1257:"6564f17c4700dc8d9c0e",1273:"3721153202bd43c7fe0e",1277:"abdcc224c8a8c72c86c4",1279:"52422500ca3d6cf2e596",1285:"a0d459bdb91ee892d4b6",1327:"69700ed16727ed0c4e3a",1384:"22c477147421e68f7f00",1427:"65f4ca7201e7267bfc81",1474:"5aa23b0f4521ba9a07ad",1491:"986c5024f22bbfc49aba",1550:"c13aa45ccd5efb662f88",1560:"aca5c524bd3c955e9243",1577:"7f55a150e4da02786311",1666:"a7954ad55a241af9064f",1687:"f40e4433e7608d0962a6",1698:"4a40b894ec89b0a4f9bf",1735:"d344c3fd9f6b113bbcd7",1737:"2ec44ebc48beeba11201",1763:"601e44839fd46e449aa8",1797:"e370a3337b3c90240e73",1837:"3a8320a40916c755c031",1894:"de6b3f80070abdd61d0f",1948:"11e7dfc5b76dcc39f14b",1954:"46f8c7ae7fb356c3410d",2013:"57970d43cdcc5cf57a30",2024:"ce9fe1a89b474f9e7ee7",2061:"7c56446184abcd14678b",2112:"1e192ac0533a5c0b5a7a",2136:"d0cf9ff48f051adbd455",2158:"99966339b061eb9945b8",2174:"05393b23ab24126d4236",2186:"e594b6db9caee1f7b9fc",2196:"49d36e54644dc2966128",2292:"45858d1c6487f4a98e40",2343:"98613fded899c59f34a4",2363:"9b81bd62a2c72f592db1",2372:"cd1f1a72483b7c80bd9a",2387:"da8a314800944706511b",2390:"d51c41c1944df0cbab3e",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2469:"91ac9328afff8a51bd96",2558:"39254fdc41aaf61f23b0",2587:"58e4aecabca047f1d229",2718:"e606be4ece4eac1e9bbe",2733:"0336f4f8498a22347720",2741:"91de343844ac578e7c93",2754:"0f15468ffefd3e9a17b8",2772:"4c73c2f4331351e2a50c",2802:"ca204c110438f7315790",2806:"5af16937904c06fb06f6",2819:"b0e25ccb5a1e57a82628",2867:"2c9783e3b44986e86797",2869:"94f62ff81cc6fb83e73f",2889:"88f03352a4dc6184ea1f",2926:"5782c0362a1799ceef41",2958:"b13d2da33ec07e9d41ff",2959:"5d9c92c4e60a4696fdad",2980:"3087910d19959fdc546b",2990:"f74c7cbe4bd12f73ae90",2994:"08263c07d92c48806834",2997:"3dd5d481ae6c5d9dfa08",3013:"b7ed5f130661e9ca00b9",3030:"a4a22149077c7780481c",3075:"a6d4132a16c51323a38a",3103:"35d46c2f658a8e92d913",3116:"c4fef90cf08bbe4f0bb5",3193:"a6ab627e965fe7e5bd52",3268:"d6f7aa280f1bd201d4ef",3276:"c30b6bbabd05e4976fba",3281:"33641947c388ce28b563",3299:"1bf5c0a4bc5a960a3fa2",3309:"9c7fc1c97125ea2a7b7e",3331:"090ea7a131f8f60203ed",3354:"87eaed6fdabd482d142e",3359:"545bec045167c433af8f",3375:"5fbd7d8d8896a224fff3",3376:"62ee6c247f783acabb74",3390:"e707534a700a2de687ca",3394:"a4596f028758649da099",3456:"fdd0e6d9927d3c43b0d3",3467:"a5bb19d2b7d7db22222b",3470:"41cf6163758d28fb1968",3494:"595edbc1e9bba47d5676",3500:"26e33c28028bf33936fc",3543:"b2e2234fdf8e05bc3312",3561:"fa377112ef3b78f6ed18",3650:"989937c120bdd676ec1e",3666:"53817ef8c00d8cce4b8e",3690:"30d816bdeea00f6fa1ca",3693:"9d3cdfa08ef4d2805625",3708:"69700ed16727ed0c4e3a",3717:"f834aa732c3f06525089",3730:"7e41cee4a0ae75e1490d",3755:"50525b617ef78086d3c7",3813:"45c1c90ac6c14657f3ff",3819:"30376f00cda1165a2504",3847:"1554feab934e8e1bcd28",3885:"09e01fd1c199be0c8e03",3902:"d24125a791247019e2ca",3910:"0549e2badf511e27aa54",3928:"f8f7b86bbd62106bc3d4",3931:"7cf903db44f3647c8fd4",4038:"b24fc7eeda580ef020d2",4064:"1d1e8d8b1fcf2d9f3dfc",4144:"8ea28a4b1afe8bb2d313",4168:"2d07d5a9ec67c39ef10c",4250:"d58d6b55b2749a535eb3",4294:"f83c3597e9332bd991eb",4297:"8872b0a3902f34c6244c",4314:"946b5314b13df079eaad",4348:"3a65693964e3976d8035",4372:"24c44541046576fee7e0",4406:"5bf2ce280ea35ea4c96b",4443:"e50adcfb392adfb3f79c",4451:"15f4f7e34e14e3cf52e6",4473:"497c5a9c95e9a89ac217",4500:"add834f867900a7091d2",4508:"c352696478b48a2090d5",4520:"bdfffa5f88b559a4b42d",4538:"777f2fdf1f4b9f243893",4575:"1670e9867efde4d7a6d6",4579:"9b8e33985310f281f084",4642:"4b6f433022a6822706cb",4674:"75bddfe2be64379db8fd",4676:"d119671a32a050517cca",4690:"f563dd6cace047108b3c",4708:"0d2e2d90a4e4a28e2c0c",4720:"86c3d3c7015f1cd55fac",4790:"ca36d85a47179d95f2fc",4791:"f82ae237452b97cfc024",4801:"bf11319138facf44752c",4862:"e39bccc000c768120a32",4934:"c4a0d3149947a1d2c484",4935:"97c7dfd29ad4c2966cb4",4945:"847b02d188ece9b563ad",4978:"e55507e4114b34d1ef4e",4988:"1fe077f57a087c0e9119",4996:"b6af90be328ebda26b8d",5051:"22c94f9a69b2157f8dbd",5077:"0b4a7209b99227a842ad",5130:"fbc7576ed12964059da6",5141:"013c9cc198736a72f7f2",5165:"9467744cb7d094a5067a",5181:"3de07326da4c47cd2aab",5223:"d4b0012ae1d3b8a9ba01",5227:"c176df477bbbbc9c6922",5248:"bb56ab53c5a10c9518a6",5360:"30af0f7c4cfa541c9efd",5362:"6b9dbf43c0659e55c539",5367:"bfdb332c155a39028c9d",5404:"59598023c0aea62a6297",5407:"9e2b3754a76e0dd4a94a",5411:"c88bfa51d2a8a024fc24",5471:"f247f3c5148fa0237a7c",5530:"eae51e827f629ab37207",5620:"54eeb4cac4fa092359ab",5651:"6ab7bb3834841834f839",5740:"20f7b5fe64a217cb3d3d",5756:"5fbd7d8d8896a224fff3",5804:"d2387906b52624b4f7f1",5841:"bd7d87d175ba933ab2ce",5856:"7253a439c98200e3e748",5902:"d2cb3d5ef0a9285afb78",5907:"c6ec0e966106f66360d9",5977:"212222b64039d436b9a6",6027:"e2576c37cf13dc421f69",6033:"ee77999df3785468b2b6",6051:"3a9c6f58a1a065c14017",6052:"53eed0941a39b56cc034",6070:"95ccac3734ac70387b03",6122:"1ede8666d804c553803e",6129:"4c7264e3f4156f92d613",6154:"ac84e5b5d010c235fe6f",6187:"ef269dd559c1c79957e5",6200:"76e7d3cde2da4bdd7820",6247:"104d74bc36c28c519396",6266:"a46ac0be9aabc4cfedc7",6313:"848a9f0e5373bbf289a5",6390:"607acd9f615f87e14075",6405:"ff83d0337ac489ab08de",6475:"a03e7333e3328036f478",6491:"0dbbac7a2378728571a7",6554:"ed7d4e8725aaa0ca4589",6556:"2f2d699b072472fa710e",6558:"cdbcc4cd9145dd93db49",6569:"c5c2fed38e0ccf84f1fa",6619:"c80277a313205853a857",6641:"a89dbef8155d7c4354da",6650:"fa91cece6daab2bec0e4",6671:"2cf2f2842c19be84ab4d",6684:"bc82c4d14ea3f353f487",6742:"ef851a2cff76fd211c07",6810:"1f9d6180a96d557838e9",6854:"cb983f65995e57fff7a1",6860:"48e2d0bfb62e1f4f2ad9",6870:"9474c913e53f69679197",6936:"5d7a5aa608ed6192b016",6956:"99f627938dbf0152fc02",6963:"159b16f47665f94a0305",7005:"625a692f00357629f609",7013:"d44338bf5edafa3ca926",7029:"aa8ab28e0c1ae3b55ac0",7067:"d26be8313526ecea9c68",7085:"3f5234120d3a14186c1c",7087:"a23f4d8e7c372f5fb6d7",7120:"c7f69d010f1cb32f5d37",7214:"07613ecf13c38ad58b79",7217:"4ee99e654dad6f09abee",7301:"752343d92ed48e674351",7320:"423c2692df662b3dddd4",7339:"bd1a7e95a797e1ed4a7b",7367:"f9a4387f850d85c44ca5",7444:"13e92f6a9573a2818fb7",7447:"20f6e681ccd8bf884b77",7464:"bf357afbabaa8dec4d75",7515:"c35553d07ad169910742",7552:"caf67930860ed3fa46ce",7561:"dd99bad9f91b0b62ba7c",7733:"0846855843f85661e974",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"1ab8307ba9981124f669",7803:"4bf7c0c874d30b1c0760",7821:"527b87fddf33bb5d519e",7835:"da6134c7883531f21afe",7843:"92c852700ad1006f1e76",7865:"270ed3070d118edb3f37",7870:"d7d5275d8b3c9430de1f",7883:"cd02a6078443b8f63927",7886:"c91042f8bf886056a29c",7891:"d56780290e0218d3e9de",7917:"606ac9358f508bda94f2",7925:"3aceedec9abfb2fdfa18",7982:"69c9a12c97ead8963817",7984:"2a2c63b93f0262a8cdfd",7992:"26ecc841396e5e719b6a",8010:"39d71e83261bff46f6bf",8018:"278e4d885ab03a51ef72",8094:"f09d810f42d4a520f1b5",8125:"255c8e937e7a123ebb04",8278:"d00c25ef8a378b24378d",8298:"7aa9b61ca9b66f30449f",8325:"691434d4c6a38e63d819",8344:"5ed7bc9e6cb7cdee92e2",8366:"95a3f09751bff63f4fab",8377:"24944b625ed8dcd904f0",8457:"399fcea09dfb1ad6deaa",8470:"e018cbd97e6e0e4ca5c4",8548:"feb16ec6dadfa0cc038f",8559:"aed7b80145b22c246098",8589:"f5f5b54cab722abe88e0",8593:"6b84982dfaf084a61b93",8613:"37adb55d9f83faad1712",8628:"a785e827f0215a73103d",8679:"aa0ef4493a7e9bed159f",8692:"5235b9c21ac4156c2375",8714:"0a413d917f3d19440fc1",8721:"32f11b4aeae1ef00e466",8732:"6a2d890640b2cd6c5ccb",8768:"25a2e02677a74834c8b5",8846:"a4e4fa4dd1a122bbf7cd",8878:"b17a9853250ab626d58d",8879:"6de5c6af62776e1b9776",8885:"db04c1bad40d068306ba",8955:"e90076ac1cf88a83a7f9",8964:"f66e597e524b26e61cd3",9013:"91496f5a9fd8ae197d3f",9074:"cb6fb04fe5c8d90d4196",9078:"a7e6382ecc91c876117f",9117:"da9aacdb0b4a04f42fb8",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9159:"3869dca884d7ca6488f5",9187:"696cb3bf167327d5b0b9",9192:"cc817c9d3f8e8f8c56e4",9235:"2f513e7fd8d212be6dcc",9239:"a78781f79d828fc678a3",9301:"f253875feb11883deb84",9304:"97e41500fc2d24a88938",9321:"d49e42f36bc3dc256b9f",9328:"94ddfe165ac25aef8229",9358:"486f1a3b7269ce6c3911",9397:"f43ae1c2f89e1c4396cc",9419:"a40566a78d801b223d3d",9447:"bfa59005a9b191d18546",9510:"9226205850e35b7fc610",9530:"98d614d6fc9de8ebaf94",9538:"48726010778d6004e347",9544:"27c0bed59626c7f64125",9567:"e88eee4c2fc4229c2a8b",9588:"6fd0d9431b141f2a3252",9616:"da5b3421a984cb94fd58",9619:"e5d114f2b57d2b8e2f1c",9672:"3b552afffaa78bf4fe18",9695:"9b31fc11b168010a4492",9696:"cd4eca49593807fb6c9c",9714:"c0ac0fc94ef3f8498ebd",9716:"f60ed579981913d44675",9741:"2bc3e7f394386fa75447",9789:"09cd91e56c856db6e01a",9794:"ed988360264574cd8f6b",9820:"f3d57c5b9dffd12e45b4",9821:"1c378d489c5402888f76",9829:"b19cff0e43fab2632660",9838:"44b1cdf28269b4fa8a39",9866:"daf7b647bd960d8bad56",9917:"0d7763d39a5a8586a0ae",9918:"f8a6d8cdcabcd1d511b6",9932:"188c6ff5f4664827c254",9933:"075eb62465edb9cbf907",9953:"05fbd1f373cfa3724f0c",9958:"3ca6ecdf9bdd84fef4d5"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,s]=t;for(var c in o)r.o(o,c)&&(r.m[c]=o[c]);for(s&&s(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(61322);RemoteClient=n})();
1
+ var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath){{const e="5.2.0-next.91";a.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}a.defaultAssetsPath=a.assetsPath}r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>s});var n=r(4718),a=r(53966),o=r(799);class s{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){const{name:e,message:t}=this;return`[${e}]: ${t}`}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw a.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new s(e.name,e.message,e.details)}}},53966(e,t,r){r.d(t,{A:()=>c});var n=r(92602),a=r(51447),o=(r(44208),r(799));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.set(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(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,c._loggers.get(e)||new c({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!c._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=c._tickCounter)return;this._loggedMessages[e].set(n,c._tickCounter),c._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",i)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){c._tickCounterScheduled||(c._tickCounterScheduled=!0,Promise.resolve().then(()=>{c._tickCounter++,c._tickCounterScheduled=!1}))}}function i(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>s,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>i,Xj:()=>f,Xy:()=>m,aI:()=>c,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){const r=[];for(const n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function s(e,t,r,n,a,o,s){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);const c=r-t;if(null==e||null==n||c!==o-a)return!1;if(s){for(let r=0;r<c;r++)if(!s(e[t+r],n[a+r]))return!1}else for(let r=0;r<c;r++)if(e[t+r]!==n[a+r])return!1;return!0}function c(e,t,r){return s(e,0,e?.length??0,t,0,t?.length??0,r)}function i(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),a=e.filter(e=>!t.includes(e))),{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){const r=e.length;if(0===r)return[];const n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);const a=e.length;let o=0,s=a;if(a===r){const r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<s;){const r=o+s>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:s=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n=n||h;const a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){const o=r??e.length,s=p(e,(0,n.z)(t),o,a);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a=a||h;const s=Math.max(0,a.last-10);for(let t=s;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<s;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;const r=w(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>i,eF:()=>l,eO:()=>c,io:()=>f,u3:()=>d,uW:()=>s});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function s(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Module: ${d(t)}`,r)}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;f(e,"Function: "+(n?d(n)+"::":"")+t+"()",r)}}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;f(e,"Property: "+(n?d(n)+"::":"")+t,r)}}function l(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&f(e,`Multiple argument constructor: ${t=d(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function f(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:a,see:s,warnOnce:c}=r;let i=t;if(n&&(i+=`\n\t🛠️ Replacement: ${n}`),a&&(i+=`\n\t⚙️ Version: ${a}`),s)if(Array.isArray(s)){i+="\n\t🔗 See for more details:";for(const e of s)i+=`\n\t\t${e}`}else i+=`\n\t🔗 See ${s} for more details.`;o(e,i,c)}}function d(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>c,on:()=>s,wb:()=>a});var n=r(36563);function a(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function s(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(const t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function c(e,t,r){if(!a(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=s(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>c,hA:()=>a,rE:()=>s,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function s(e){return a(()=>e?.abort())}function c(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(n.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in n,t=!1===n.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3:8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>i,TU:()=>c,aI:()=>b,gh:()=>h,o8:()=>s,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function s(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(i(e))return e.clone();if(l(e))return e.map(s);if(f(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=s(e[t]);return r}function c(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(l(e)){let r=!0;const n=e.map(e=>{const n=c(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(i(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],a=c(r);if(null!=r&&null==a)return null;n[t]=a}return n}function i(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,s(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(s(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw new Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function s(e){return e?.remove(),null}function c(e){return e?.abort(),null}function i(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>c,Gz:()=>i,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>s})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>c,sM:()=>s,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||i(e.split("."),!1,t)}function s(e,t,r){const n=e.split("."),a=n.pop(),o=i(n,!0,r);o&&a&&(o[a]=t)}function c(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(c(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(c(e[r],t[r]))return!0;return!1}return e!==t}function i(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 l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],s=t[a];return o===s?e:void 0===o?(e[a]=(0,n.o8)(s),e):(Array.isArray(s)||Array.isArray(e)?(o=o?Array.isArray(o)?e[a]=o.slice():e[a]=[o]:e[a]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=s.slice())):s&&"object"==typeof s?e[a]=l(o,s,r):e.hasOwnProperty(a)&&!t.hasOwnProperty(a)||(e[a]=s),e)},e||{}):e}function f(e,t){for(const r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>i,NK:()=>s,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>c,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function s(e="Aborted"){return new n.A("AbortError",e)}function c(e,t="Aborted"){if(l(e))throw s(t)}function i(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){const t=i(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){const r=i(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",()=>t());t()}}function b(e,t){const r=i(e);if(null!=r)return c(r),(0,a.Oo)(r,"abort",()=>t(s()))}function h(e,t){return null==i(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(s()));const c=()=>{a=(0,o.xt)(a)};e.then(c,c),e.then(r,n)})}function p(e){return null!=e&&"object"==typeof e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await g(r),a={};return t.map((e,t)=>a[e]=n[t]),a}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){const n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(s()))})})}function _(e,t){const r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,c=null;const i=(...l)=>{if(r){n=l,o&&o.reject(s()),o=Promise.withResolvers();const e=o.promise;if(c){const e=c;c=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){const n=new AbortController;r=O(e(...l,n.signal));const a=r;v(t).then(()=>{r===a&&(o?n.abort():c=n)})}else r=1,r=O(e(...l));const f=()=>{const e=n;n=a=r=c=null,null!=e&&i(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return i}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),c(e)}},799(e,t,r){r.d(t,{Cj:()=>i,HC:()=>s,V2:()=>c,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function s(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function c(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function i(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function s(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function i(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||c(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:i(e)?65535:o(e)||s(e)?255:l(e)?2147483647:c(e)?y:a(e)?127:256}r.d(t,{IY:()=>c,JI:()=>p,LW:()=>d,UR:()=>s,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>i,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>Q,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>V,lM:()=>oe,m3:()=>ae,nM:()=>ie,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),s=r(53966),c=r(12195),i=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(y);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(w),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let k=new v(n.A.applicationUrl);let O=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();function A(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,a;t<0?(n=decodeURIComponent(e),a=""):(n=decodeURIComponent(e.slice(0,t)),a=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(a):r[n]=a}return r}function 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 a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,c.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,c.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);const n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw s.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&se()&&(r=oe(r)),A(r)}function M(e,t=!1){const r=N(e);let n,a;if(r){const e=C(r.proxyUrl);n=e.path,a=e.query?P(e.query):null}else if(t){const t=x(e);n=t.path,a=t.query}if(n){const t=A(e);e=n+"?"+t.path;const r=S({...a,...t.query});r&&(e=`${e}?${r}`)}return e}const j={path:"",query:""};function C(e){const t=e.indexOf("?");return-1!==t?(j.path=e.slice(0,t),j.query=e.slice(t+1)):(j.path=e,j.query=null),j}function $(e){return(e=ce(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let a=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){const t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);const r=(0,i.py)(e),n=(0,i.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),ce(e)===ce(t)}function T(e){const t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;const n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme)&&null!=n.host&&null!=a.host&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;const n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),s=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(s&&!o.startsWith(s))return e;const c=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let i=c(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,i+1)===o.slice(0,i)+"/"&&(l=i+1,i!==a.length);)i=c(a,"/",i+1);if(-1===l)return e;if(s&&l<s.length)return e;e=n.slice(l);const f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),m.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!g.test(e)||(se()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){const t=e.filter(a.Ru);if(!t?.length)return;const r=[];if(D(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function H(e,t=!1){if(null==e||G(e)||Q(e))return null;let r=e.indexOf("://");if(-1===r&&re(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=ce(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function Q(e){return null!=e&&e.startsWith("data:")}function V(e){const t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(X);if(!t)return null;const[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){const t=V(e);if(!t)return null;const r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function se(){return"https"===k.scheme}function ce(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ie(e){let t=0;if(D(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";const r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const a=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;const n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function be(e,t){const r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||(e.scheme=k.scheme),e)}function me(e,t){const r=A(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 ge(e,t,r){const n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;const r=A(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;const t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o;const s=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(s)&&(a=s.signal,o=s.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},61322(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(70333),a=r(49186),o=r(37955),s=r(36563),c=r(97768),i=r(17676),l=r(52268);const f={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(523)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(4801),r.e(9619)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(6860),r.e(4520)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9953),r.e(7552),r.e(5051),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(4676),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(2587),r.e(2136),r.e(2959),r.e(6313)]).then(r.bind(r,98889)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(7447)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9616)]).then(r.bind(r,49616)),GaussianSplatSortWorker:()=>r.e(5856).then(r.bind(r,35856)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2174),r.e(4294)]).then(r.bind(r,15554)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(312)]).then(r.bind(r,71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(359),r.e(3268)]).then(r.bind(r,14289)),GlyphWorker:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2587),r.e(2136),r.e(2196),r.e(2926),r.e(5530),r.e(3931)]).then(r.bind(r,41902)),IntegratedMesh3DTilesLayerWorker:()=>r.e(7214).then(r.bind(r,77214)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(r.bind(r,72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(9510)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9078)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(4473),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(3819),r.e(2959),r.e(5471)]).then(r.bind(r,6557)),PointCloudWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(7005),r.e(7984),r.e(4250)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(5130),r.e(373),r.e(9235),r.e(6051)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(4801),r.e(491)]).then(r.bind(r,70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(4538)]).then(r.bind(r,94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2292),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(9696),r.e(2112),r.e(359),r.e(6390),r.e(8721)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(2587),r.e(2196),r.e(7886),r.e(9328)]).then(r.bind(r,36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(4862)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(2112),r.e(3281),r.e(1737)]).then(r.bind(r,26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(9117),r.e(7865),r.e(2292),r.e(9953),r.e(6554),r.e(564),r.e(3299),r.e(2869),r.e(3910),r.e(7552),r.e(9358),r.e(2741),r.e(4996),r.e(9419),r.e(9567),r.e(9829),r.e(893),r.e(2112),r.e(812),r.e(5130),r.e(3690),r.e(3470),r.e(8732),r.e(2174),r.e(7772),r.e(3847)]).then(r.bind(r,29420))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.Q}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const s=(0,d.Jc)();return new Promise((r,a)=>{if((0,i.G4)(n))return this._processWork(),void a((0,i.NK)());const l=(0,i.u7)(n,()=>{const e=this._outJobs.get(s);e&&(this._outJobs.delete(s),this._processWork(),(0,c.xt)(e.abortHandle),this._post({type:h,jobId:s}),a((0,i.NK)()))}),f={resolve:r,reject:a,abortHandle:l,debugInfo:e};this._outJobs.set(s,f),this._post({type:p,jobId:s,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:y,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,s.hA)(()=>{r.port1.postMessage({type:b}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,c.xt)(e.abortHandle),e.reject((0,i.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:a}=e,o=a?new AbortController:null,s=this._inJobs;let c,l=this._client,f=l[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),c=f.apply(l,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,i.$X)(c)?(s.set(r,{controller:o,promise:c}),c.then(e=>{s.has(r)&&(s.delete(r),this._post({type:m,jobId:r},e))},e=>{s.has(r)&&(s.delete(r),(0,i.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},c)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{const a=(0,d.VI)(e);a?.type===b&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const s=o.get(t);o.delete(t),this._processWork(),(0,c.xt)(s.abortHandle),r?s.reject(a.A.fromJSON(JSON.parse(r))):s.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},8341(e,t,r){r.d(t,{Jc:()=>i,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",s={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let c=0;function i(){return c++}function l(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 f(e,t,r,n){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,s,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>c,Y3:()=>i,id:()=>o,ol:()=>s});var n=r(44208),a=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let o,s="5.2";function c(e){o=e}function i(e){const t=o?.findCredential(e);return t?.token?(0,a.rs)(e,"token",t.token):e}s="5.2.0-next.91",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},39131(e,t,r){r.d(t,{$E:()=>s,py:()=>o,qG:()=>c});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,s]=t;if(!r)return null;let c=null,i=null,l=null;const{devext:f,qaext:d,www:u}=a;if(o)if(c=r,s)switch(s.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qa":({customBaseUrl:i,portalHostname:l}=d);break;default:return null}else({customBaseUrl:i,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:i,portalHostname:l}=f);break;case"qaext":({customBaseUrl:i,portalHostname:l}=d);break;case"www":({customBaseUrl:i,portalHostname:l}=u);break;default:return null}return{customBaseUrl:i,isPortal:!1,portalHostname:l,urlKey:c}}function s(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function c(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})},18357(e,t,r){r.d(t,["$",0,"20260828","Q",0,"c242577285edc82f154c5433f2d472117b798847"])}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++];r.o(e,a)?0===o&&n++:0===o?Object.defineProperty(e,a,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,a,{enumerable:!0,get:o})}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"69688d521d5ba117e31c",91:"6f6ae6cf7f6e30b29013",118:"f53010adb70463b75bb9",124:"5165d367328ac7badf47",182:"ea91c57a0b31f3f65ee5",224:"92c852700ad1006f1e76",309:"a24cecf2f775eaa69cf4",312:"19e93d4d37018e3ee849",349:"514cc15acb77dc85035c",353:"bee411f08e2a9499f8f5",359:"ccaeabc3be07f3c96f50",368:"bf7875fda48b15271a10",369:"8a0a13f398ab488dbbe9",373:"a0565137027c83108953",382:"d7e17df1c3675bf3633e",390:"ac4131121230cfc14f21",417:"1bf967c68d0c795d3fb4",449:"0d95f72e1c07ab867d21",468:"bfb8fc6b940bd5510e29",491:"c07d2fb9940b2c6eda9f",523:"d270b49c037085503016",547:"484b3e2a220c440ccbb4",563:"44857a76be2c0ac65bb9",564:"428f991c14ac12ae1b2c",566:"dd26a37f061ff658c5bd",692:"c23943e51734254d31e8",737:"ec69dd546c312ba97110",756:"b6063d1755def00d4889",765:"87e0ceb1a64ab08e679a",787:"64ce2d060ae7cdd412cf",788:"d31f62ecbb54bffc54f2",812:"abe7670db06b27c0c8c8",820:"aafa33f661462f5afd2b",837:"fddcb8be714ad18ad0c8",892:"dfbe0efe453587ec5eb2",893:"e1682e94cc714197ebb4",895:"59f0a2bd40b033ce77e4",903:"f3e53be08ab9dbdf17ae",919:"ddf284648a73b6993737",923:"e823c9ccb7bc348d8824",926:"f1f78bb3d34f973c19de",980:"6e12e3c99b149cd7f567",1003:"4490dd8bae0dd2769d99",1017:"c0e073a77484b0dfd383",1086:"f4d351b4cd9d1aa10632",1088:"3bbd2d4a19c3b7ad82e4",1089:"8a87e1a89a0d8c6203a7",1099:"2754ba5cc094028a7a3c",1132:"903c7bd079888f65fef1",1150:"d36bbda9b7261534568f",1204:"e02f02040b63d9c2e654",1214:"f6f56f3e011dcef90bbb",1221:"78085f804969c9282700",1257:"6564f17c4700dc8d9c0e",1273:"3721153202bd43c7fe0e",1277:"abdcc224c8a8c72c86c4",1279:"52422500ca3d6cf2e596",1285:"a0d459bdb91ee892d4b6",1327:"69700ed16727ed0c4e3a",1384:"22c477147421e68f7f00",1427:"65f4ca7201e7267bfc81",1474:"5aa23b0f4521ba9a07ad",1491:"986c5024f22bbfc49aba",1550:"c13aa45ccd5efb662f88",1560:"aca5c524bd3c955e9243",1577:"7f55a150e4da02786311",1666:"a7954ad55a241af9064f",1687:"f40e4433e7608d0962a6",1698:"4a40b894ec89b0a4f9bf",1735:"d344c3fd9f6b113bbcd7",1737:"2ec44ebc48beeba11201",1763:"601e44839fd46e449aa8",1797:"e370a3337b3c90240e73",1837:"3a8320a40916c755c031",1894:"de6b3f80070abdd61d0f",1948:"11e7dfc5b76dcc39f14b",1954:"46f8c7ae7fb356c3410d",2013:"57970d43cdcc5cf57a30",2024:"ce9fe1a89b474f9e7ee7",2061:"7c56446184abcd14678b",2112:"1e192ac0533a5c0b5a7a",2136:"d0cf9ff48f051adbd455",2158:"99966339b061eb9945b8",2174:"05393b23ab24126d4236",2186:"e594b6db9caee1f7b9fc",2196:"49d36e54644dc2966128",2292:"45858d1c6487f4a98e40",2343:"98613fded899c59f34a4",2363:"9b81bd62a2c72f592db1",2372:"cd1f1a72483b7c80bd9a",2387:"da8a314800944706511b",2390:"d51c41c1944df0cbab3e",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2469:"91ac9328afff8a51bd96",2558:"39254fdc41aaf61f23b0",2587:"58e4aecabca047f1d229",2718:"e606be4ece4eac1e9bbe",2733:"0336f4f8498a22347720",2741:"91de343844ac578e7c93",2754:"0f15468ffefd3e9a17b8",2772:"4c73c2f4331351e2a50c",2802:"ca204c110438f7315790",2806:"5af16937904c06fb06f6",2819:"b0e25ccb5a1e57a82628",2867:"2c9783e3b44986e86797",2869:"94f62ff81cc6fb83e73f",2889:"88f03352a4dc6184ea1f",2926:"5782c0362a1799ceef41",2958:"b13d2da33ec07e9d41ff",2959:"5d9c92c4e60a4696fdad",2980:"3087910d19959fdc546b",2990:"f74c7cbe4bd12f73ae90",2994:"08263c07d92c48806834",2997:"3dd5d481ae6c5d9dfa08",3013:"b7ed5f130661e9ca00b9",3030:"a4a22149077c7780481c",3075:"a6d4132a16c51323a38a",3103:"35d46c2f658a8e92d913",3116:"c4fef90cf08bbe4f0bb5",3193:"a6ab627e965fe7e5bd52",3268:"d6f7aa280f1bd201d4ef",3276:"c30b6bbabd05e4976fba",3281:"33641947c388ce28b563",3299:"1bf5c0a4bc5a960a3fa2",3309:"9c7fc1c97125ea2a7b7e",3331:"090ea7a131f8f60203ed",3354:"87eaed6fdabd482d142e",3359:"545bec045167c433af8f",3375:"5fbd7d8d8896a224fff3",3376:"62ee6c247f783acabb74",3390:"e707534a700a2de687ca",3394:"a4596f028758649da099",3456:"fdd0e6d9927d3c43b0d3",3467:"a5bb19d2b7d7db22222b",3470:"9509bef285929c52c244",3494:"595edbc1e9bba47d5676",3500:"26e33c28028bf33936fc",3543:"b2e2234fdf8e05bc3312",3561:"fa377112ef3b78f6ed18",3650:"989937c120bdd676ec1e",3666:"53817ef8c00d8cce4b8e",3690:"30d816bdeea00f6fa1ca",3693:"9d3cdfa08ef4d2805625",3708:"69700ed16727ed0c4e3a",3717:"f834aa732c3f06525089",3730:"7e41cee4a0ae75e1490d",3755:"50525b617ef78086d3c7",3813:"45c1c90ac6c14657f3ff",3819:"30376f00cda1165a2504",3847:"1554feab934e8e1bcd28",3885:"09e01fd1c199be0c8e03",3902:"d24125a791247019e2ca",3910:"0549e2badf511e27aa54",3928:"f8f7b86bbd62106bc3d4",3931:"7cf903db44f3647c8fd4",4038:"b24fc7eeda580ef020d2",4064:"1d1e8d8b1fcf2d9f3dfc",4144:"8ea28a4b1afe8bb2d313",4168:"2d07d5a9ec67c39ef10c",4250:"d58d6b55b2749a535eb3",4294:"f83c3597e9332bd991eb",4297:"8872b0a3902f34c6244c",4314:"946b5314b13df079eaad",4348:"3a65693964e3976d8035",4372:"24c44541046576fee7e0",4406:"5bf2ce280ea35ea4c96b",4443:"e50adcfb392adfb3f79c",4451:"15f4f7e34e14e3cf52e6",4473:"497c5a9c95e9a89ac217",4500:"add834f867900a7091d2",4508:"c352696478b48a2090d5",4520:"bdfffa5f88b559a4b42d",4538:"777f2fdf1f4b9f243893",4575:"1670e9867efde4d7a6d6",4579:"9b8e33985310f281f084",4642:"4b6f433022a6822706cb",4674:"75bddfe2be64379db8fd",4676:"d119671a32a050517cca",4690:"f563dd6cace047108b3c",4708:"0d2e2d90a4e4a28e2c0c",4720:"86c3d3c7015f1cd55fac",4790:"ca36d85a47179d95f2fc",4791:"f82ae237452b97cfc024",4801:"bf11319138facf44752c",4862:"e39bccc000c768120a32",4934:"c4a0d3149947a1d2c484",4935:"97c7dfd29ad4c2966cb4",4945:"847b02d188ece9b563ad",4978:"ad404195107eadf91e16",4988:"1fe077f57a087c0e9119",4996:"b6af90be328ebda26b8d",5051:"22c94f9a69b2157f8dbd",5077:"0b4a7209b99227a842ad",5130:"fbc7576ed12964059da6",5141:"013c9cc198736a72f7f2",5165:"9467744cb7d094a5067a",5181:"3de07326da4c47cd2aab",5223:"d4b0012ae1d3b8a9ba01",5227:"c176df477bbbbc9c6922",5248:"bb56ab53c5a10c9518a6",5360:"30af0f7c4cfa541c9efd",5362:"6b9dbf43c0659e55c539",5367:"bfdb332c155a39028c9d",5404:"59598023c0aea62a6297",5407:"9e2b3754a76e0dd4a94a",5411:"c88bfa51d2a8a024fc24",5471:"f247f3c5148fa0237a7c",5530:"eae51e827f629ab37207",5620:"54eeb4cac4fa092359ab",5651:"6ab7bb3834841834f839",5740:"20f7b5fe64a217cb3d3d",5756:"5fbd7d8d8896a224fff3",5804:"d2387906b52624b4f7f1",5841:"bd7d87d175ba933ab2ce",5856:"7253a439c98200e3e748",5902:"d2cb3d5ef0a9285afb78",5907:"c6ec0e966106f66360d9",5977:"212222b64039d436b9a6",6027:"e2576c37cf13dc421f69",6033:"ee77999df3785468b2b6",6051:"3a9c6f58a1a065c14017",6052:"53eed0941a39b56cc034",6070:"95ccac3734ac70387b03",6122:"1ede8666d804c553803e",6129:"4c7264e3f4156f92d613",6154:"ac84e5b5d010c235fe6f",6187:"ef269dd559c1c79957e5",6200:"76e7d3cde2da4bdd7820",6247:"104d74bc36c28c519396",6266:"a46ac0be9aabc4cfedc7",6313:"848a9f0e5373bbf289a5",6390:"607acd9f615f87e14075",6405:"ff83d0337ac489ab08de",6475:"a03e7333e3328036f478",6491:"0dbbac7a2378728571a7",6554:"ed7d4e8725aaa0ca4589",6556:"2f2d699b072472fa710e",6558:"cdbcc4cd9145dd93db49",6569:"c5c2fed38e0ccf84f1fa",6619:"c80277a313205853a857",6641:"a89dbef8155d7c4354da",6650:"fa91cece6daab2bec0e4",6671:"2cf2f2842c19be84ab4d",6684:"bc82c4d14ea3f353f487",6742:"ef851a2cff76fd211c07",6810:"1f9d6180a96d557838e9",6854:"cb983f65995e57fff7a1",6860:"48e2d0bfb62e1f4f2ad9",6870:"9474c913e53f69679197",6936:"5d7a5aa608ed6192b016",6956:"99f627938dbf0152fc02",6963:"159b16f47665f94a0305",7005:"625a692f00357629f609",7013:"d44338bf5edafa3ca926",7029:"aa8ab28e0c1ae3b55ac0",7067:"d26be8313526ecea9c68",7085:"3f5234120d3a14186c1c",7087:"a23f4d8e7c372f5fb6d7",7120:"c7f69d010f1cb32f5d37",7214:"07613ecf13c38ad58b79",7217:"4ee99e654dad6f09abee",7301:"752343d92ed48e674351",7320:"423c2692df662b3dddd4",7339:"bd1a7e95a797e1ed4a7b",7367:"f9a4387f850d85c44ca5",7444:"13e92f6a9573a2818fb7",7447:"20f6e681ccd8bf884b77",7464:"bf357afbabaa8dec4d75",7515:"c35553d07ad169910742",7552:"caf67930860ed3fa46ce",7561:"dd99bad9f91b0b62ba7c",7733:"0846855843f85661e974",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"1ab8307ba9981124f669",7803:"4bf7c0c874d30b1c0760",7821:"527b87fddf33bb5d519e",7835:"da6134c7883531f21afe",7843:"92c852700ad1006f1e76",7865:"270ed3070d118edb3f37",7870:"d7d5275d8b3c9430de1f",7883:"cd02a6078443b8f63927",7886:"c91042f8bf886056a29c",7891:"d56780290e0218d3e9de",7917:"606ac9358f508bda94f2",7925:"3aceedec9abfb2fdfa18",7982:"69c9a12c97ead8963817",7984:"2a2c63b93f0262a8cdfd",7992:"26ecc841396e5e719b6a",8010:"39d71e83261bff46f6bf",8018:"278e4d885ab03a51ef72",8094:"f09d810f42d4a520f1b5",8125:"255c8e937e7a123ebb04",8278:"d00c25ef8a378b24378d",8298:"7aa9b61ca9b66f30449f",8325:"691434d4c6a38e63d819",8344:"5ed7bc9e6cb7cdee92e2",8366:"95a3f09751bff63f4fab",8377:"24944b625ed8dcd904f0",8457:"399fcea09dfb1ad6deaa",8470:"e018cbd97e6e0e4ca5c4",8548:"feb16ec6dadfa0cc038f",8559:"aed7b80145b22c246098",8589:"f5f5b54cab722abe88e0",8593:"6b84982dfaf084a61b93",8613:"37adb55d9f83faad1712",8628:"a785e827f0215a73103d",8679:"aa0ef4493a7e9bed159f",8692:"5235b9c21ac4156c2375",8714:"0a413d917f3d19440fc1",8721:"32f11b4aeae1ef00e466",8732:"6a2d890640b2cd6c5ccb",8768:"25a2e02677a74834c8b5",8846:"a4e4fa4dd1a122bbf7cd",8878:"b17a9853250ab626d58d",8879:"6de5c6af62776e1b9776",8885:"db04c1bad40d068306ba",8955:"e90076ac1cf88a83a7f9",8964:"f66e597e524b26e61cd3",9013:"91496f5a9fd8ae197d3f",9074:"cb6fb04fe5c8d90d4196",9078:"a7e6382ecc91c876117f",9117:"da9aacdb0b4a04f42fb8",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9159:"3869dca884d7ca6488f5",9187:"696cb3bf167327d5b0b9",9192:"cc817c9d3f8e8f8c56e4",9235:"2f513e7fd8d212be6dcc",9239:"a78781f79d828fc678a3",9301:"f253875feb11883deb84",9304:"97e41500fc2d24a88938",9321:"d49e42f36bc3dc256b9f",9328:"94ddfe165ac25aef8229",9358:"486f1a3b7269ce6c3911",9397:"f43ae1c2f89e1c4396cc",9419:"a40566a78d801b223d3d",9447:"bfa59005a9b191d18546",9510:"9226205850e35b7fc610",9530:"98d614d6fc9de8ebaf94",9538:"48726010778d6004e347",9544:"24a6b28db94e07a702a4",9567:"e88eee4c2fc4229c2a8b",9588:"6fd0d9431b141f2a3252",9616:"da5b3421a984cb94fd58",9619:"e5d114f2b57d2b8e2f1c",9672:"3b552afffaa78bf4fe18",9695:"9b31fc11b168010a4492",9696:"cd4eca49593807fb6c9c",9714:"c0ac0fc94ef3f8498ebd",9716:"f60ed579981913d44675",9741:"2bc3e7f394386fa75447",9789:"09cd91e56c856db6e01a",9794:"ed988360264574cd8f6b",9820:"f3d57c5b9dffd12e45b4",9821:"1c378d489c5402888f76",9829:"b19cff0e43fab2632660",9838:"44b1cdf28269b4fa8a39",9866:"daf7b647bd960d8bad56",9917:"0d7763d39a5a8586a0ae",9918:"f8a6d8cdcabcd1d511b6",9932:"188c6ff5f4664827c254",9933:"075eb62465edb9cbf907",9953:"9246e2468528650bdc7c",9958:"3ca6ecdf9bdd84fef4d5"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,s]=t;for(var c in o)r.o(o,c)&&(r.m[c]=o[c]);for(s&&s(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(61322);RemoteClient=n})();
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9544],{76553(e,t,i){function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}i.d(t,{H:()=>o})},65806(e,t,i){i.d(t,{g:()=>n});var o=i(51850),s=i(99917),r=i(9762);function n(e,t,i,o){if((0,s.canProjectWithoutEngine)(e.spatialReference,i))return a[0]=e.x,a[1]=e.y,a[2]=e.z??0,(0,r.projectBuffer)(a,e.spatialReference,0,t,i,0);const n=(0,s.tryProject)(e,i,o);return!!n&&(t[0]=n.x,t[1]=n.y,t[2]=n.z??0,!0)}const a=(0,o.vt)()},27993(e,t,i){i.d(t,{F:()=>a});var o=i(99917),s=i(16930),r=i(9762),n=i(65806);function a(e,t,i,s){return!(null==t||null==s||e.length<2)&&((0,o.canProjectWithoutEngine)(t,s)?(0,r.projectBuffer)(e,t,0,i,s,0,1):(l.x=e[0],l.y=e[1],l.z=e[2],l.spatialReference=t,(0,n.g)(l,i,s)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:s.A.WGS84,type:"point"}},61528(e,t,i){i.r(t);var o=i(32198),s=i(11254),r=i(69540),n=i(49186),a=(i(44208),i(53966)),l=i(25728),h=i(17676),c=i(36708),u=i(91429),d=i(87024),p=i(5443),g=i(16930),f=i(4146),y=i(52136),m=i(18768),_=i(69208),S=i(34287),v=i(8303),C=i(25036),M=i(10873),T=i(58325),R=i(88546),w=i(20655),Z=i(24212),x=i(97159),A=i(16215),E=i(72772),b=i(98697),k=i(36005);let P=class extends((0,m.b)((0,S.q)((0,v.A)((0,C.j)((0,l.M)((0,_.d)((0,y.p)((0,r.OU)(f.A))))))))){readModifications(e,t,i){this._modificationsSource={url:(0,x.f)(e,i),context:i}}initialize(){this.addHandles([(0,c.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},c.OH),(0,c.wB)(()=>this.modifications,()=>this._modificationsGeneration++)])}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=R.Zx,this.fullExtent=R.zq,this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null,this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null,this.queryElevationCallback=null,this._modificationsGeneration=0,this._simulateGoogleUrl=!1}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[R.Zx,this.esriCrsSpatialReference]:[R.Zx]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[R.zq,this.esriCrsFullExtent]:[R.zq]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[i,o]of Object.entries(e)){if("uri"===i)try{const e=new URL("https://tmp"+o).searchParams.get("session");if(e)return e}catch(e){}"object"==typeof o&&null!==o&&t.push(o)}}return null}async requestRootAndSession(e){const t=(e,t)=>new n.A("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((i,o)=>{this.url||o(t("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null,new Promise((e,i)=>{if(this.replacesTerrain&&!this._key){const o=this.portalItem?.portal||this.parent?.portalItem?.portal||w.A.getDefault();o.signIn().then(()=>{o.g3dTilesEnabled?(0,s.A)(o.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>i(t("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):i(t("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+o.url))},()=>i(t("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{(0,s.A)(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(e){return void o(t("root-parse-failed","Error parsing root tile, details: "+e))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=(0,R.uB)(this._rootTilesetJSON),(0,R._8)(this._rootTilesetJSON)&&(this.esriCrsFullExtent=(0,R.uB)(this._rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference,this.spatialReference=this.esriCrsSpatialReference),i(),this._rootRequestPromise=null):o(t("root-is-null","Root tile is null."))},e=>{(0,h.QP)(e),o(t("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,a.A.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>o(e))})),this._rootRequestPromise}_haveWGS84ZModifications(e){for(const t of e){if(!t.geometry?.spatialReference)return!0;if(115700===t.geometry?.spatialReference.vcsWkid&&4326===t.geometry?.spatialReference.wkid)return!0}return!1}async _doLoad(e){const t=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(e){(0,h.QP)(e)}if(null!=this._modificationsSource){const t=await T.A.fromUrl(this._modificationsSource.url,this.spatialReference,e,!0);if(this._haveWGS84ZModifications(t)){await(0,E.initialize)();try{const e=(0,b.Ir)(null,t.toArray(),g.A.WGS84),i=(0,E.switchMeshModificationPolygonVCSSync)({modifications:e,inVCS:115700});i.success&&i.modifications&&(0,b.H1)(i.modifications,t)}catch(e){a.A.getLogger(this).error("convert-mesh-modification-z-error","Error when converting:",e)}}this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}async beforeSave(){if(null==this._modificationsSource){const{modifications:e}=this;return void(e&&e.length>0&&await(0,E.initialize)())}await this.load().then(()=>{},()=>{})}get memoizedElevationQueryDependencies(){return[this.loadStatus,null!=this.queryElevationCallback,(0,Z.M7)(this.elevationInfo),this._modificationsGeneration]}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";(0,Z.XF)(a.A.getLogger(this),(0,Z.B)(t,"absolute-height",e)),(0,Z.XF)(a.A.getLogger(this),(0,Z.tW)(t,e))}get replacesTerrain(){return this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return(0,A.S)(this.parent)}get hasGoogleUrl(){return this._simulateGoogleUrl||!!this.url?.match(/.+\.googleapis.com/)}get test(){}};(0,o.Cg)([(0,u.MZ)({type:["IntegratedMesh3DTilesLayer"]})],P.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,u.MZ)({type:T.A,clonable:e=>e?.clone()??null}),(0,d.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],P.prototype,"modifications",void 0),(0,o.Cg)([(0,u.MZ)({clonable:e=>e?{...e}:null})],P.prototype,"_modificationsSource",void 0),(0,o.Cg)([(0,k.w)(["web-scene","portal-item"],"modifications")],P.prototype,"readModifications",null),(0,o.Cg)([(0,u.MZ)({type:g.A})],P.prototype,"spatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:p.A})],P.prototype,"fullExtent",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],P.prototype,"supportedSpatialReferences",null),(0,o.Cg)([(0,u.MZ)({type:[p.A]})],P.prototype,"fullExtents",null),(0,o.Cg)([(0,u.MZ)(M.Yj)],P.prototype,"elevationInfo",null),(0,o.Cg)([(0,u.MZ)({type:["show","hide"]})],P.prototype,"listMode",void 0),(0,o.Cg)([(0,u.MZ)(M.OZ)],P.prototype,"url",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],P.prototype,"type",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],P.prototype,"path",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],P.prototype,"minScale",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],P.prototype,"maxScale",void 0),(0,o.Cg)([(0,u.MZ)()],P.prototype,"queryElevationCallback",void 0),(0,o.Cg)([(0,u.MZ)()],P.prototype,"_modificationsGeneration",void 0),(0,o.Cg)([(0,u.MZ)()],P.prototype,"memoizedElevationQueryDependencies",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],P.prototype,"hasAttributionData",null),(0,o.Cg)([(0,u.MZ)()],P.prototype,"replacesTerrain",null),(0,o.Cg)([(0,u.MZ)()],P.prototype,"isUsedAsGroundLayer",null),(0,o.Cg)([(0,u.MZ)()],P.prototype,"hasGoogleUrl",null),(0,o.Cg)([(0,u.MZ)()],P.prototype,"_simulateGoogleUrl",void 0),P=(0,o.Cg)([(0,u.$K)("esri.layers.IntegratedMesh3DTilesLayer")],P);const G=P;i.d(t,["default",0,G])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{9775(e,t,r){r.d(t,{A:()=>o});var s=r(62788),n=r(95488);class o{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new n.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},10382(e,t,r){r.d(t,{A:()=>c});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class c{constructor(){this._clients=new Array,this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(const t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){const r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();const s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(const e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(const e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){const e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){const e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;const t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>F,N1:()=>z});var s=r(49186),n=r(36563),o=r(44208),i=r(91869),a=r(17676),l=r(10382),c=r(72457),u=r(61322),d=r(53966),h=r(97768),f=r(11254),g=r(84952);const p={async request(e,t){const r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,g.sC)(e.url)?.after?s:"array-buffer";const n=await(0,f.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var m=r(8341),y=r(2741),b=r(92602),w=r(79783),_=r(70333);r(87811);const k={};var v=r(26390);class A{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class C{constructor(){this._dispatcher=new A,this._workerPostMessage({type:m.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){const t=(0,m.VI)(e);if(t&&t.type===m.Go.OPEN){const{modulePath:e,jobId:r}=t;let s=await u.default.loadWorker(e);s||(s=await(import(e)));const n=u.default.connect(s);this._workerPostMessage({type:m.Go.OPENED,jobId:r,data:n})}}}var P=r(18357);const E=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:x}=m.Go;let N,L;const O="Failed to create Worker. Fallback to execute module in main thread";async function S(e){return new Promise(t=>{function r(n){const o=(0,m.VI)(n);o&&o.type===x&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),E().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new C).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let M=0;const{ABORT:I,INVOKE:j,OPEN:J,OPENED:R,RESPONSE:U}=m.Go;class q{static async create(e){const t=await async function(){if(!(0,o.A)("esri-workers"))return S(new C);if(!N&&!L)try{const e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,fullVersion:r}=configuration.kernelInfo,{revision:t,fullVersion:n,version:s}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==t&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\nModules version: ${r}\nAssets version: ${n??s}\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerRevision(t),t.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(t),t.loadWorker(o.modulePath).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=b.A.default){const t={...b.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(b.A));e.assetsPath=(0,g.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,g.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,w.JK)(),e.has={"esri-csp-restrictions":(0,o.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,o.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,o.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,o.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,o.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,o.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,o.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,o.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,o.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,o.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,o.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,o.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,o.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,o.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,o.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,o.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,o.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,o.A)("esri-atomics"),"esri-shared-array-buffer":(0,o.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,g.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,g.s2)(e.workers.workerPath):e.workers.workerPath=(0,g.s2)((0,y.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,o.A)("esri-esbuild-build");const t=b.A.workers.loaderConfig,r=function(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...k.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=k.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,w.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),s={buildDate:P.$,fullVersion:_.ol,revision:P.Q};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:s})}());N=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){L=e||{}}let e;if(N)try{e=new Worker(N,{name:"esri-worker-"+M++})}catch(t){E().warn(O,L),e=new C}else E().warn(O,L),e=new C;return S(e)}();return new q(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,s=(0,m.Jc)();return new Promise((t,n)=>{const o={resolve:t,reject:n,abortHandle:(0,a.NY)(r,()=>{this._outJobs.delete(s),this._post({type:I,jobId:s})})};this._outJobs.set(s,o),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){const t=(0,m.VI)(e);if(t)switch(t.type){case R:this._onOpenedMessage(t);break;case U:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:n}=e,o=n?new AbortController:null,i=this._inJobs,l=p[t];let c;try{if("function"!=typeof l)throw new TypeError(`${t} is not a function`);c=l.call(null,s,{signal:o?o.signal:null})}catch(e){return void this._post({type:U,jobId:r,error:(0,m.mF)(e)})}(0,a.$X)(c)?(i.set(r,{controller:o,promise:c}),c.then(e=>{i.has(r)&&(i.delete(r),this._post({type:U,jobId:r},e))},e=>{i.has(r)&&(i.delete(r),e||(e={message:"Error encountered at method"+t}),(0,a.zf)(e)||this._post({type:U,jobId:r,error:(0,m.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:U,jobId:r},c)}_onOpenedMessage(e){const{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,h.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,m.u1)(this.worker,e,t,r)}}const $=[],H=new Map;let W=function(){const e=(0,o.A)("min-workers-pool-size")??2,t=(0,o.A)("max-workers-pool-size")??8,r=(0,o.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),D=0;async function z(e,t={},r){const s=new l.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,c.k)(n,s),s}async function F(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,o.A)("host-webworker")&&!(0,o.A)("esri-workers")&&(r="local");const l=(0,i.tE)(H,e,()=>new Q(e));return"local"===r?async function({modulePath:e},t){let r=await u.default.loadWorker(e);r||(r=await(import(e))),(0,a.Te)(t.signal);const s=t.client||r,n=u.default.connect(r,t.schedule);return await z([n],{...t,client:s})}(l,t):async function(e,t){await async function(){if(K)return K;T=new AbortController;const e=[];for(let t=0;t<W;t++){const r=q.create(t).then(e=>($[t]=e,e));e.push(r)}return K=Promise.all(e),K}(),(0,a.Te)(t.signal);const r=[];return z(function*(e,t,r,s){const n=new Set;for(let o=0;o<t;o++){const t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield $[t].open(e.modulePath,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,W):W,t.signal,r),t,()=>(0,n.vE)(r).remove())}(l,t)}let T,K=null;class Q{constructor(e){this.modulePath=e,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){const t=Array.from(this._proxyUseCount.keys());let r;const s=D;D=(D+1)%W;for(let n=0;n<t.length;n++){const o=t[(s+n)%t.length];if(e(o)&&(t.length===W&&(r??=o),0===this._getProxyUseCount(o)))return o}if(null!=r)return r;for(let t=0;t<W;t++){const r=(t+s)%W;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),c=r(93637),u=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),g(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):g(e)}}function g(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var p=r(11254),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function b(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);const t=await(0,p.A)(e,{responseType:"text"});return JSON.parse(t.data)}class w{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const a=o[1]?`${o[1]}/`:"",l=o[2],c=(0,i.xO)(s),u=n.startsWith("esri/"),d=`${a}${l}.json`,h=c?`${a}${l}_${c}.json`:d,f=u?`${a}messages.en.json`:d,g=u?`${a}messages.${c??"en"}.json`:h,p=[...new Set(u?[g,h,f,d]:[g,f])];for(const[t,s]of p.entries())try{return await b(e(s))}catch(e){if(t===p.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){const{format:s={}}=r;return(0,u.HC)(e,e=>function(e,t,r){let s,n;const o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";const i=(0,c.wc)(s,t);if(null==i)return"";const a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):g(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new w(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){const t=i[e];return!0===t?e:t}return null}const l=[],c=new Map;function u(e){for(const t of c.keys())g(e.pattern,t)&&c.delete(t)}function d(e){return l.includes(e)||(u(e),l.unshift(e)),(0,n.hA)(()=>{const t=l.indexOf(e);t>-1&&(l.splice(t,1),u(e))})}async function h(e){const t=(0,o.JK)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of l)if(g(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await p.add(r),r}function f(e){const t=(0,o.lR)(e);return t?a(e)??a(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{c.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Promise.withResolvers())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>c,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){const{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function c(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!o.has(t)){const r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[926,3470],{92474(t,e,r){r.d(e,{Zm:()=>y});var s=r(32198),o=r(49186),i=r(97768),l=r(61893),a=r(17676),n=r(67076),u=r(10107),p=r(64108);const d="loaded",h=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise(t=>{const e=this.load.bind(this);this.load=r=>{const s=new Promise((t,e)=>{const s=(0,a.NY)(r,e);this.destroyed&&e(new o.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally(()=>{s&&s.remove()})});if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal}).catch(()=>{})}return t(),s}})),this.when(()=>{this._set("loadStatus",d),this._loadController=null},t=>{this.destroyed||(this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null)})}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}async load(t){return this}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new o.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loaded",null),(0,s.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"loadError",void 0),(0,s.Cg)([(0,u.MZ)({clonable:!1})],r.prototype,"loadStatus",void 0),(0,s.Cg)([(0,u.MZ)({type:[n.A],readOnly:!0})],r.prototype,"loadWarnings",null),r=(0,s.Cg)([(0,p.$)("esri.core.Loadable")],r),r},c=h(l.Z);function y(t){return!(!t||!t.load)}r.d(e,["WV",0,h,"x_",0,c])},61893(t,e,r){var s=r(32198),o=r(69622),i=r(36563),l=r(17676),a=r(64108);class n{constructor(){this._resolver=Promise.withResolvers(),this._status=0,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=1,this._cleanUp()},()=>{this._status=2,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return 1===this._status}isRejected(){return 2===this._status}isFulfilled(){return 0!==this._status}abort(){this._resolver.reject((0,l.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=Promise.withResolvers(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then(()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()},t=>{this.isFulfilled()||this._allPromise!==r||(0,l.zf)(t)||this._resolver.reject(t)}),t.resolve()}}const u=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),this._promiseProps=new n,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then(()=>this).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}addResolvingTask(t){t&&!this._promiseProps.isFulfilled()&&(this.addHandles((0,i.rE)(t)),this._promiseProps.addResolvingPromise(t.promise))}};return r=(0,s.Cg)([(0,a.$)("esri.core.Promise")],r),r},p=u(o.A);r.d(e,["Z",0,p,"g",0,u])},20655(t,e,r){r.d(e,{A:()=>A});var s=r(32198),o=r(92602),i=r(70333),l=r(11254),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(17676),h=r(91429),c=r(56507),y=r(5443),m=r(73444);let g;var C=r(96360),f=r(16405),v=r(69622);let M=class extends v.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s.Cg)([(0,h.MZ)()],M.prototype,"nextQueryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"queryParams",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"results",void 0),(0,s.Cg)([(0,h.MZ)()],M.prototype,"total",void 0),M=(0,s.Cg)([(0,h.$K)("esri.portal.PortalQueryResult")],M);var Z,S=r(41318),P=r(926),w=r(36005);let _;const O={PortalGroup:()=>Promise.resolve({default:C.A}),PortalItem:()=>r.e(812).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:S.A})};let A=class extends((0,n.T)(u.x_)){static{Z=this}static{this.AUTH_MODE_ANONYMOUS="anonymous"}static{this.AUTH_MODE_AUTO="auto"}static{this.AUTH_MODE_IMMEDIATE="immediate"}static{this.AUTH_MODE_NO_PROMPT="no-prompt"}constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.g3DTilesGalleryGroupQuery=null,this.g3dTilesEnabled=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=o.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){b.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)o.A.request.trustedServers.includes(e)||o.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?`orgid:${this.id}`:null}get hasAPIKey(){return(0,P.Jn)(this.restUrl)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get loaded(){return super.loaded}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=S.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(3281),r.e(3116)]).then(r.bind(r,83116)).then(({default:e})=>{(0,d.Te)(t),_=e}).then(()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t)).then(t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==Z.AUTH_MODE_AUTO&&this.authMode!==Z.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch(()=>{})}}(new WeakRef(this))),b.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)});return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(812),r.e(8732),r.e(6266)]).then(r.bind(r,38732))).default;return t?t.map(t=>new e({id:t.id,url:t.url})):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){if(this.g3dTilesEnabled&&this.g3DTilesGalleryGroupQuery){const t=await this._fetchBasemaps3D(this.g3DTilesGalleryGroupQuery,e);r.unshift(...t)}const s=await this._fetchBasemaps3D(t,e);r.unshift(...s)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new f.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find(t=>"Web Scene"===t.type);return r?new _({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then(t=>t.categorySchema):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}async fetchClassificationSchema(t){return this.hasClassificationSchema?this.request(this.restUrl+"/portals/self/classification/classificationSchema",t).then(t=>t.classificationSchema):null}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new f.A({num:100,sortField:"title"});if(e?.length){const s=[];for(const t of e)s.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,t).then(t=>t.results)}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,m.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return g&&!g.destroyed||(g=new Z),g}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const s=this.restUrl+"/portals/self",o={authMode:t,query:{culture:(0,m.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===o.authMode&&(o.authMode="no-prompt"),e&&(o.query.default=!0),this.request(s,o)}queryPortal(t,e,r,s){const o=(0,c.dp)(f.A,e),i=e=>this.request(this.restUrl+t,{...o.toRequestOptions(this),...s}).then(t=>{const r=o.clone();return r.start=t.nextStart,new M({nextQueryParams:r,queryParams:o,total:t.total,results:Z._resultsToTypedArray(e,{portal:this},t,s)})}).then(t=>Promise.all(t.results.map(e=>"function"==typeof e.when?e.when():t)).then(()=>t,e=>((0,d.QP)(e),t)));return r&&O[r]?O[r]().then(({default:t})=>((0,d.Te)(s),i(t))):i()}signIn(){if(this.hasAPIKey)return this.load().then(()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")});if(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then(()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then(()=>null)):"loading"===this.loadStatus?this.load().then(()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate"))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate"))).then(t=>{t&&(this.sourceJSON=t,this.read(t))});return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==Z.AUTH_MODE_NO_PROMPT}).then(e=>t(e)):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then(t=>{const e=Z._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map(e=>"function"==typeof e.when?e.when():t)).then(()=>e,()=>e)})}request(t,e={}){const r={f:"json",...e.query},{authMode:s=(this.authMode===Z.AUTH_MODE_ANONYMOUS||this.authMode===Z.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:o=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:s,body:o,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then(t=>t.data)}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new Z({sourceJSON:t})}_getHelperService(t){const e=this.helperServices?.[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new f.A;r.query=t||((0,P.Dd)()?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,e);if(!s.total)return[];const o=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=o.sortField||"name",r.sortOrder=o.sortOrder||"desc";const i=await o.queryItems(r,e);return i.total?i.results.filter(t=>"Web Map"===t.type).map(t=>new _({portalItem:t})):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];if((0,P.Dd)())return[];const s=new f.A({query:r,disableExtraQuery:!0}),o=await this.queryGroups(s,e);if(!o.total)return[];const i=o.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=i.sortField||"name",s.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(s,e);return l.total?l.results.filter(t=>"Web Scene"===t.type).map(t=>new _({portalItem:t})):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=_.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,s){let o;if(r){const i=null!=s?s.signal:null;o=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(o=o.map(r=>{const s=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof s.load&&s.load(i),s}))}else o=[];return o}};(0,s.Cg)([(0,h.MZ)()],A.prototype,"access",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"allSSL",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"authorizedCrossOriginDomains",void 0),(0,s.Cg)([(0,w.w)("authorizedCrossOriginDomains")],A.prototype,"readAuthorizedCrossOriginDomains",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"basemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],A.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3DTilesGalleryGroupQuery"}})],A.prototype,"g3DTilesGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"g3dTilesEnabled"}})],A.prototype,"g3dTilesEnabled",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"bingKey",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListApps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListData",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canListPreProvisionedItems",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canProvisionDirectPurchase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSearchPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canShareBingPublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSharePublic",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInArcGIS",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"canSignInIDP",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"colorSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"commentsEnabled",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"created",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"credential",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"culture",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"currentVersion",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"customBaseUrl",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"default3DBasemapQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultBasemap")],A.prototype,"readDefaultBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultDevBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultDevBasemap")],A.prototype,"readDefaultDevBasemap",null),(0,s.Cg)([(0,h.MZ)({type:y.A})],A.prototype,"defaultExtent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"defaultVectorBasemap",void 0),(0,s.Cg)([(0,w.w)("defaultVectorBasemap")],A.prototype,"readDefaultVectorBasemap",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"description",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"eueiEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"extraQuery",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredGroups",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"featuredItemsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"galleryTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layoutGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"livingAtlasGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"hasAPIKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasCategorySchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"hasClassificationSchema",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpBase",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helperServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"helpMap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContent",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"homePageFeaturedContentCount",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"httpsPort",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"ipCntryCode",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"isOrganization",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isPortal",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"isReadOnly",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"layerTemplatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"maxTokenExpirationMinutes",void 0),(0,s.Cg)([(0,h.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"name",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalHostname",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalMode",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"portalProperties",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"region",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"recycleBinEnabled",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"restUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"rotatorPanels",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"showHomePageDescription",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"staticImagesUrl",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],A.prototype,"stylesGroupQuery2d",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],A.prototype,"stylesGroupQuery3d",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"supportsHostedServices",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"symbolSetsGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"templatesGroupQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"thumbnail",void 0),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"units",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"url",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"urlKey",void 0),(0,s.Cg)([(0,w.w)("urlKey")],A.prototype,"readUrlKey",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"user",void 0),(0,s.Cg)([(0,w.w)("user")],A.prototype,"readUser",null),(0,s.Cg)([(0,h.MZ)()],A.prototype,"use3dBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useDefault3dBasemap",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useStandardizedQuery",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"useVectorBasemaps",void 0),(0,s.Cg)([(0,h.MZ)()],A.prototype,"vectorBasemapGalleryGroupQuery",void 0),A=Z=(0,s.Cg)([(0,h.$K)("esri.portal.Portal")],A);const b=new FinalizationRegistry(t=>{t.remove()})},96360(t,e,r){r.d(e,{A:()=>p});var s,o=r(32198),i=r(49186),l=r(25482),a=r(91429),n=r(56507),u=r(16405);let p=s=class extends l.o{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then(e=>{const r=e.categorySchema||[];return r.some(t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source)?this._fetchCategorySchemaSet("LivingAtlas",t):r})}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new s({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(u.A,t);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new u.A,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then(t=>{const s=t.contentCategorySetsGroupQuery;if(s){const t=new u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")}).then(r=>{if(r.total){const s=r.results[0],o=new u.A({num:1,query:`typekeywords:"${t}"`});return s.queryItems(o,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")}).then(t=>t.total?t.results[0].fetchData("json",e).then(t=>{const e=t?.categorySchema;return e?.length?e:[]}):[])}};(0,o.Cg)([(0,a.MZ)()],p.prototype,"access",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],p.prototype,"created",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"description",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],p.prototype,"modified",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"owner",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"portal",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"snippet",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sortField",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sortOrder",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"sourceJSON",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"tags",void 0),(0,o.Cg)([(0,a.MZ)()],p.prototype,"thumbnail",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,o.Cg)([(0,a.MZ)()],p.prototype,"title",void 0),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,o.Cg)([(0,a.$K)("esri.portal.PortalGroup")],p)},16405(t,e,r){r.d(e,{A:()=>c});var s,o=r(32198),i=r(69622),l=r(66552),a=r(4718),n=r(91429),u=r(5443),p=r(16930),d=r(28735);const h=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=s=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new s({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map(t=>Array.isArray(t)?JSON.stringify(t):t));let s="";if(this.extent){const t=(0,d.Cv)(this.extent,p.A.WGS84);null!=t&&(s=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let o=this.query;const i=t.extraQuery;!this.disableExtraQuery&&i&&(o=o?"("+o+") AND "+i:i);const l={categories:r,bbox:s,q:o,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(l.sortField=this.sortField.split(",").map(t=>h.toJSON(t.trim())).join(","),l.sortOrder=this.sortOrder),{query:{...e,...l}}}};(0,o.Cg)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,o.Cg)([(0,n.MZ)({type:u.A})],c.prototype,"extent",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"num",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"query",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,o.Cg)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,o.Cg)([(0,n.MZ)()],c.prototype,"start",void 0),c=s=(0,o.Cg)([(0,n.$K)("esri.portal.PortalQueryParams")],c)},41318(t,e,r){r.d(e,{A:()=>p});var s=r(32198),o=r(49186),i=r(25482),l=r(91429);let a=class extends i.o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new o.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s.Cg)([(0,l.MZ)({type:Date})],a.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],a.prototype,"title",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],a.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],a.prototype,"username",void 0),a=(0,s.Cg)([(0,l.$K)("esri.portal.PortalFolder")],a);var n,u=r(96360);let p=n=class extends i.o{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.id=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.id}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.id}`:null}addItem(t){const e=t&&t.item,r=t?.data,s=t?.folder,o={method:"post"};e&&(o.query=e.createPostQuery(),null!=r&&("string"==typeof r?o.query.text=r:"object"==typeof r&&(o.query.text=JSON.stringify(r))));let i=this.userContentUrl;return s&&(i+="/"+("string"==typeof s?s:s.id)),this.portal.request(i+"/addItem",o).then(t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load()))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const s=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:s}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",s=[],i=t.map(t=>t.id);if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find(t=>e.itemId===t.id),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new o.A("portal:delete-item-failed",e.error.message,e.error)),s.push({item:r,success:i,error:l})}}return s}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then(t=>{let e;return e=t&&t.folders?t.folders.map(t=>{const e=a.fromJSON(t);return e.portal=this.portal,e}):[],e})}fetchGroups(){return this.portal.request(this.url??"").then(t=>{let e;return e=t&&t.groups?t.groups.map(t=>{const e=u.A.fromJSON(t);return e.portal=this.portal,e}):[],e})}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:s}=await r.e(812).then(r.bind(r,80812)),o={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:o});let l;return i?.items?(l=i.items.map(t=>{const e=s.fromJSON(t);return e.portal=this.portal,e}),await Promise.all(l.map(t=>t.load())),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then(t=>t.tags)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new u.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new o.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,s=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:s})}toJSON(){throw new o.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new n({sourceJSON:t});return e.read(t),e}};(0,s.Cg)([(0,l.MZ)()],p.prototype,"access",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"created",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"culture",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"description",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"email",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"favGroupId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"fullName",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"id",void 0),(0,s.Cg)([(0,l.MZ)({type:Date})],p.prototype,"modified",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"orgId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"portal",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"preferredView",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"privileges",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"region",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"role",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"roleId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"sourceJSON",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"thumbnail",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"units",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"userContentUrl",null),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],p.prototype,"url",null),(0,s.Cg)([(0,l.MZ)()],p.prototype,"username",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userLicenseTypeId",void 0),(0,s.Cg)([(0,l.MZ)()],p.prototype,"userType",void 0),p=n=(0,s.Cg)([(0,l.$K)("esri.portal.PortalUser")],p)},926(t,e,r){r.d(e,{Dd:()=>h,Jn:()=>c,Qc:()=>y,getApiKey:()=>p,getSessionToken:()=>d});var s=r(92602),o=r(11254),i=r(84952);const l=/^https?:\/\/(i?basemaps|basemapstyles)-api\.arcgis\.com\//i,a=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]),n=new Map;let u=null;function p(t){if(!y(t))return null;const e=e=>e instanceof RegExp?e.test(t):"string"==typeof e&&t.startsWith(e),r=s.A.apiKeys;if(Array.isArray(r.scopes))for(const t of r.scopes)if(Array.isArray(t.urls)){if(t.urls.some(e))return t.token}else if(e(t.urls))return t.token;return r.basemapStyles&&l.test(t)?r.basemapStyles:s.A.apiKey&&/^https?:\/\/.+\.arcgis\.com(\/|$)/i.test(t)?s.A.apiKey:null}async function d(t){if(!s.A.sessions?.basemap?.enabled||!l.test(t))return null;const e=p(t);if(!e)return null;u&&await u;const{styleFamily:r="arcgis",autoRefresh:i,duration:a=43200}=s.A.sessions.basemap,d=`${e}:${r}`,h=n.get(d);if(h&&(!i||h.endTime>Date.now()))return h.sessionToken;let c;u=(0,o.A)("https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start",{cacheBust:!0,query:{durationSeconds:a,styleFamily:r,token:e}});try{c=(await u).data,c.endTime-=5e3,n.set(d,c)}finally{u=null}return c.sessionToken}function h(){return null!=s.A.apiKey||null!=s.A.apiKeys.basemapStyles}function c(t,e){return e?y(t):null!=p(t)}function y(t){const e=(0,i.$z)(t,!0);return!!e&&!a.has(e)&&!t.endsWith("/sharing/rest/generateToken")}},94128(t,e,r){r.d(e,{D:()=>o});const s=Symbol("GraphicInstance");function o(t){return null!=t&&"object"==typeof t&&s in t}r.d(e,["Z",0,s])}}]);