@arcgis/core 5.2.0-next.70 → 5.2.0-next.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcgisGlobal.d.ts +0 -2
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/43de723f765ec8f268ac.js +1 -0
- package/assets/esri/core/workers/chunks/{7ca9c908432b1afa0367.js → 5f31b375971ab067121e.js} +1 -1
- package/assets/esri/core/workers/chunks/{f5cf338cecfc81f23128.js → da484787bd9fd3b13d15.js} +1 -1
- package/assets/esri/core/workers/chunks/{de3d0973cff1e0858c52.js → fc2cae359d571690d754.js} +4 -4
- package/chunks/GaussianSplatDepth.glsl.js +4 -4
- package/chunks/GlobalIllumination.glsl.js +7 -7
- package/chunks/Viewshed.glsl.js +9 -5
- package/config.js +1 -1
- package/interfaces.d.ts +0 -14
- package/kernel.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/TextRasterizer.js +1 -1
- package/symbols/cim/richTextUtils.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatDepthRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/3d/webgl-engine/lib/ViewshedShadowMap.js +1 -1
- package/views/3d/webgl-engine/parts/Model.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthPolicy.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/assets/esri/core/workers/chunks/7f4a592bcf4ecb55949a.js +0 -1
- package/popup/Feature.d.ts +0 -311
- package/popup/Feature.js +0 -2
- package/popup/Features.d.ts +0 -569
- package/popup/Features.js +0 -2
package/arcgisGlobal.d.ts
CHANGED
|
@@ -551,10 +551,8 @@ export interface ArcgisImportModules {
|
|
|
551
551
|
"@arcgis/core/networks/support/UNTraceConfiguration.js": typeof import("./networks/support/UNTraceConfiguration.js").default;
|
|
552
552
|
"@arcgis/core/popup/ElementExpressionInfo.js": typeof import("./popup/ElementExpressionInfo.js").default;
|
|
553
553
|
"@arcgis/core/popup/ExpressionInfo.js": typeof import("./popup/ExpressionInfo.js").default;
|
|
554
|
-
"@arcgis/core/popup/Feature.js": typeof import("./popup/Feature.js").default;
|
|
555
554
|
"@arcgis/core/popup/FeatureContent.js": typeof import("./popup/FeatureContent.js").default;
|
|
556
555
|
"@arcgis/core/popup/FeatureContentCollection.js": typeof import("./popup/FeatureContentCollection.js").default;
|
|
557
|
-
"@arcgis/core/popup/Features.js": typeof import("./popup/Features.js").default;
|
|
558
556
|
"@arcgis/core/popup/FieldInfo.js": typeof import("./popup/FieldInfo.js").default;
|
|
559
557
|
"@arcgis/core/popup/LayerOptions.js": typeof import("./popup/LayerOptions.js").default;
|
|
560
558
|
"@arcgis/core/popup/RelatedRecordsInfo.js": typeof import("./popup/RelatedRecordsInfo.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.70";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:()=>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(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(872)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(6661),r.e(9619)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(8419)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(4800),r.e(7552),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(893),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(2438),r.e(5168),r.e(661),r.e(2515),r.e(3681),r.e(8889)]).then(r.bind(r,98889)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(7552),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(893),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(2515),r.e(5648)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(6977),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(9187),r.e(8885),r.e(5756),r.e(3299),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(473),r.e(5676)]).then(r.bind(r,55912)),GeoJSONSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(1635)]).then(r.bind(r,71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(6408),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(6999),r.e(2112),r.e(7379)]).then(r.bind(r,14289)),GlyphWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(5530),r.e(2438),r.e(8520),r.e(7539)]).then(r.bind(r,93602)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(4066)]).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(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(5153)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9078)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(6977),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(3819),r.e(661),r.e(4583)]).then(r.bind(r,6557)),PointCloudWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(7005),r.e(3290),r.e(7984),r.e(3846)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(7939),r.e(2754),r.e(9235),r.e(4924)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(1843),r.e(6661),r.e(6780)]).then(r.bind(r,56780)),SceneLayerWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(3586)]).then(r.bind(r,94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(2774),r.e(1950)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(6408),r.e(9953),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(5168),r.e(5897),r.e(8763)]).then(r.bind(r,36849)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(1123)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(6408),r.e(7865),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(2112),r.e(4560),r.e(5220)]).then(r.bind(r,26412)),ImageMeasurementWorker:()=>Promise.all([r.e(6408),r.e(9187),r.e(8885),r.e(5756),r.e(3299),r.e(8278),r.e(7865),r.e(9953),r.e(6554),r.e(2869),r.e(3910),r.e(564),r.e(7552),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(893),r.e(6231),r.e(2112),r.e(812),r.e(1683),r.e(2827),r.e(7939),r.e(5138),r.e(3470),r.e(7772),r.e(473),r.e(4751)]).then(r.bind(r,68747))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.u}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=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.70",(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,"20260807","u",0,"43add78fd01debfbebc7d1425f2392480ec35cdc"])}};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/"+{77:"5bf4ab72b9634b06cc5d",91:"a8ec5b85c2fa6fb4f391",117:"4c2794687aea172775a0",118:"b6c7b7b7f87dce5de811",124:"ed552941eca621a51f16",132:"ed4ac5568dc2815b066d",146:"72eb0ac55026a4f5d6a7",148:"fe10a95ebe1da2322af6",164:"3bc2943035391b44d4cf",217:"d36fba71c52ea4e71546",254:"24006cea112d657f053a",309:"086d7cdfa92a649c9f7b",349:"f06f591680c9e93e69f6",353:"436d51b9f1b1b5abc4bc",368:"0eaa8265a4cd64297545",369:"8a0a13f398ab488dbbe9",382:"d7e17df1c3675bf3633e",390:"ac4131121230cfc14f21",427:"0b18de5147d76b68896f",469:"16cade1c2ddf44e336ee",473:"4491dc227c28e2ab4f8e",500:"a988fd54912969b812ce",547:"484b3e2a220c440ccbb4",560:"869d292a60747c93dc84",563:"99e3aa4832ed87474ab4",564:"0dcfd82a2669df6eb5a0",566:"a27cdf4c29dd50a6dab1",578:"40693ee558a1eb1e93f4",594:"bfb6566c27c09deb0929",609:"eb95464bd017fb839510",661:"50e0dd74795978468625",692:"b313464b987db8a3987a",737:"73f228d966b89c73c9e9",788:"d31f62ecbb54bffc54f2",795:"e421dee5d8b030e79ffb",812:"a3a28c4887f802e8d96d",820:"aafa33f661462f5afd2b",822:"3dc71e03a630dd50b28e",837:"1d92d53186debd52e753",872:"2d3a18d56e2e5669c562",891:"40e48b720d89cd067892",893:"faa55265020591fd2224",895:"1cc063aa2ddf44bbd515",909:"cfe31b7d1c6c05fbd268",918:"158d2ac0333d53556e33",923:"1dba93abe84d30f05d8d",926:"f1f78bb3d34f973c19de",958:"e4353f0792f45aa6a62f",959:"8a48a6760c33ed50b650",980:"56bbde1dff96b423fbb9",990:"0623acb2bd14a61b65c9",993:"0c3c311400ee352187ea",1003:"69b9a327f23e052fced7",1011:"dbc9249dae41096d750d",1017:"bee5e738ecf8680909c4",1023:"b858adff7043683fe41c",1054:"864691186c449ca2c3db",1060:"7baa363b3b0a442a63d2",1075:"79c0a966f7d11d3c217f",1088:"9230ad807020fc2bbf8e",1123:"3b14ed3184743df336a6",1132:"5eb29f0068f1c839d05e",1204:"e02f02040b63d9c2e654",1214:"3c8e98cf23ad8ef12fcb",1262:"9684ab5e8254fdfcb7bb",1273:"e4a2eefffe16cd5bb20f",1277:"5441f96cdd0660229efe",1285:"a0d459bdb91ee892d4b6",1384:"5b70295da76d9227f64b",1482:"3d6b2d5ae647e140abaf",1512:"5fb76575575fe8cfb1f0",1521:"089f8c60e96d920a2cb2",1550:"f95870bb4d8e4e13e69e",1563:"6357c7cac401aee9fe77",1635:"065e3353124fc5ac44ce",1666:"af3ac4bed43e901b59c7",1670:"4710f21b138a2c9a0345",1683:"582a1d468089b9986416",1687:"3dff36f6de181d9dcdc5",1698:"4a40b894ec89b0a4f9bf",1728:"7f91e45156bbe88f9a62",1763:"601e44839fd46e449aa8",1787:"dc0c3109b7558b4fe016",1812:"b9a1046ca2cd0cca5da5",1817:"ed564358cc7b3ee463a3",1837:"3a8320a40916c755c031",1843:"5600fc334d20c4f0c83d",1894:"de6b3f80070abdd61d0f",1938:"8eecc6df6511c8830f5d",1948:"5fe9eea35ddb428efd8b",1950:"d93d0cb69f3a9a722510",1965:"8566449c39eba55147f5",2013:"57970d43cdcc5cf57a30",2024:"6525c925bb91facb3575",2059:"8d21e2dabc5165f1c8ca",2112:"32f5112c848efec6c33b",2158:"ef2e0a014c982d9c7ca4",2174:"94bf7f0da6ad3f7ea277",2186:"c45a5bcf26659daf02a1",2288:"2bdb9b5365869081c936",2314:"9be6827e5756031a56c1",2343:"ec1841e6e498d54012eb",2368:"fa5d27e47d47ff8fcb96",2372:"cd1f1a72483b7c80bd9a",2390:"d51c41c1944df0cbab3e",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2438:"f5cf338cecfc81f23128",2465:"4ce57dd39075e8fb357c",2491:"c25dc9073e73d6b44d88",2509:"77df0bb35d2688729479",2515:"7fa9dc39bf0a7a6fdc1f",2558:"31c4db1eac8f765bb93f",2656:"b599b7dadce8b8bc88f6",2733:"96d861265566854760cd",2741:"359584a8fb5687a7d098",2754:"073f1d5f89875c6aefb1",2764:"3aa0a34d2b7dbf2e2c66",2772:"4c73c2f4331351e2a50c",2774:"bd88228f781a0399d8bd",2806:"9937920e7993814d0b2c",2827:"ad27689b231e282b7620",2869:"8dcc6c19d5b3a5ac5512",2871:"c203df41f9d2e4b80889",2889:"381790e1f3df05c7eb68",2920:"e702abaeccef20b64a81",2958:"b13d2da33ec07e9d41ff",2969:"e21b3490bfce75405e55",2980:"3087910d19959fdc546b",2990:"a739e617fc461014ad1f",2997:"3dd5d481ae6c5d9dfa08",3103:"a294dd12b5c708ce04af",3116:"7f208ef75ef2ce0d7cf9",3166:"cc5ec6e99aa09342c704",3202:"3aacb935d632834d4154",3276:"f721756a6c1593f96409",3290:"afeeb11b39e140303b5a",3299:"05b6b2c0b76afb100e33",3304:"118ccfa2d685764752ee",3309:"7b290ac2e8a567ecae4a",3359:"259bdacfb7b0f866a8d0",3367:"2cfe6f41865ffb3a4645",3390:"0d7d54e74b5639a0be6e",3456:"7b862a074816c099b9ff",3467:"b780514be87a22b49b01",3470:"86a4057572755b403548",3500:"b4e5ee81b9eb171499a6",3543:"19cb8963d5ec2246357b",3561:"fa377112ef3b78f6ed18",3586:"4abd54518e35050feb90",3591:"ed1de8b7406269e217b9",3608:"bd311c85437743cf7d2f",3650:"989937c120bdd676ec1e",3666:"53817ef8c00d8cce4b8e",3681:"fba8065a3a6fbd877e23",3693:"9fee8441fbac9f723f77",3708:"67ebde34377f98d17cda",3717:"b9bdb1f05e904c3655e4",3781:"a7f42ada0aa69873a938",3813:"f6f7d885b4d6080e3f58",3819:"011281fe918c4f0aec5d",3846:"5e3d5347223f0111f40f",3902:"8c1bddc88cc5f4251021",3910:"c97451f75c23be979476",4038:"05f6887805d92da03122",4066:"d021775cf747556660a5",4097:"c02b3b8b71205f6ce290",4123:"fe71a0604f0928113419",4167:"b8cd81d8fcc78d272130",4168:"8fea514aada1195c8f30",4198:"31669511cfddf116d991",4280:"3978f00a03e97645b276",4297:"dc1787d88b11ed985159",4314:"2791f3fe16ca5ee2f39a",4333:"d3be4d914fc99a1d686c",4383:"51a8a47aac1d8d22ba9d",4428:"ebd619533be077059494",4535:"4da993c79b373b9d304e",4560:"8d2cac1952e817daaf1f",4571:"f69329b85b362b349a8c",4575:"d607cf154218d20e4114",4579:"5459ba8fdeb2370bb52b",4583:"a52c88e2d837b525ff6c",4591:"c03da138651ac53cadcb",4594:"1119a33245138e7b3914",4642:"8be707044d992ef5f1d8",4664:"6a9002fcba11e2cf3f2e",4674:"0ae0483b72f5e8d00d55",4690:"f563dd6cace047108b3c",4751:"fa19d5923276418096da",4778:"1e0140556c2e3fa72545",4795:"2bcb7e43578124538c3c",4800:"cd5206e19d86c60e3cf0",4807:"c53b2be005721591e29b",4849:"9482a6d7baa24bbf5693",4924:"a3bf8aa81ee398da5b52",4935:"a5c115fc53edb52ce1de",4996:"a25f51d2d3ff6b9af7ca",5077:"f475672ff4c2ec9367c2",5098:"b9953277d0cd4a01bdc6",5138:"8c76f31a363dd0c3354d",5141:"c02ae1d40c1fe95ae6c5",5153:"fff23b2682590c4b21e3",5165:"b3a1a93c6dc9247cb048",5168:"c7e9513f75b8ec205562",5220:"6f58cb9dffe8016397a2",5360:"19233d0016e5b154c5ce",5367:"a183b77854f5b42c1a86",5391:"253c231b5a52f1d2d3a5",5404:"01c92e68fb17cf2d0e08",5524:"b984b808d383974ca3d8",5530:"3de6e54b6ed0feae1940",5604:"1b130af7d14eaae69d96",5605:"fb12d3c63fcac8391e06",5613:"12a64eca4c571926d9d4",5648:"a62f1b8ed065b2a38f1a",5676:"2d45daacec0d5ed38782",5740:"9c57161ad48d8d546dc7",5756:"c21212c356f65244e34e",5804:"d2387906b52624b4f7f1",5841:"2ea3ca68cfa4d34e8f3b",5856:"be1d2c3a61e6447fbbc7",5897:"cd4e5c948d1bfa9b9a2d",5902:"d2cb3d5ef0a9285afb78",5914:"38660a8cc3623c854d88",5929:"9dda9414104f585560a4",5974:"d0c1bc90e474f706211c",6027:"c1189316d24fb4cdb2a0",6033:"da1c9257793c2817f40f",6052:"684d3cb4fb233180b2d0",6061:"987594539981483a7c5e",6113:"383304d33b496c5d8baa",6122:"1ede8666d804c553803e",6129:"0d9d33f29124d464a4cb",6154:"ac84e5b5d010c235fe6f",6160:"2d1ae18a28491b00091d",6187:"9234a293d61e134f121f",6196:"c838cc1c786368b78598",6231:"1642fa1263d8f4a45101",6247:"160b204cbf5bda2a29e9",6276:"28924f31f5ba8ebdc60a",6343:"c6ef0636073e28350c91",6344:"33e293836f5d28dc5d62",6408:"3db898a38a7c5f0efb48",6465:"d901f8503a73277cfa58",6475:"d456520e4b119a2816b6",6491:"7ddf9b2718dd047f15e6",6533:"fc9065d0cd6285fe0f0d",6554:"e4aacfc1617ccf60bd5a",6558:"c6bf17b5ff6ec4b980a1",6569:"b9d6f89f9b8e9d1bc787",6650:"aff0e7761276036e029d",6661:"c82ab4f0908290e70ee9",6671:"913fb883455aeac8582b",6684:"cea4b18e7f83c02922b1",6708:"1f888f026b004447772c",6765:"9bbff8237540409610b3",6780:"4d9bde9f66817a92ceca",6792:"4e129b9f5772a06e580c",6796:"6b208bac120bcfecd9e4",6956:"613e799377bdb767c955",6960:"694371f51c52a7a94da4",6977:"7f2f2a92dce3f68e579b",6999:"0aedeb837399d3f92e4a",7005:"9902fcd2070c8eb6d043",7087:"a23f4d8e7c372f5fb6d7",7157:"4695cd6120f60b234d5c",7217:"ce481eeb27ea9c1782ae",7269:"49a3888bf9e2481642ac",7301:"752343d92ed48e674351",7316:"28b09fe50b855a1d8a3f",7379:"6cd6d0cfd313f0475d98",7431:"98e6c1d035755a074d24",7444:"463747a822499dd933ef",7464:"9f65cc6d9f7390bb1d5b",7531:"6080e46fc79127500283",7539:"7ca9c908432b1afa0367",7546:"b792857a178da2dd77d6",7552:"04ac5ac6f592d8c34bbd",7561:"67773a9f031d9f1d672f",7632:"612873df0c8659ac2aa5",7733:"0846855843f85661e974",7745:"39a10b2092a98083f4cf",7772:"c873383e7dae35dc1a61",7828:"4344ab1250a1c550bf8b",7835:"da6134c7883531f21afe",7865:"d79ce047afbc034f6008",7869:"fd6107f95082e05f016a",7883:"1e5cb72830c7f32f2961",7891:"d56780290e0218d3e9de",7903:"3b3a8a6167f2e1eeb828",7939:"917c11cb40a7742d7f98",7982:"36171c72a3c04b0d13ef",7984:"32fb597aef66c444758f",7987:"0e333aced8b23aa49a0e",7992:"7f7a76f5fef25049fbf8",8010:"39d71e83261bff46f6bf",8018:"fb51f823b25c827c6b29",8089:"e61ab8ef30bbe788b9d7",8125:"255c8e937e7a123ebb04",8195:"5f201c77a09ae0df29d6",8231:"fec07a16b72cdcafc641",8245:"73f77f5a6907cb8d9a35",8278:"509cfac9e5d86a8ee449",8314:"623d5518bca227f643bd",8325:"44e8cd4b3dad777ab0c9",8377:"d08f81d545930a79fb2e",8393:"d7b6985984071e78c764",8414:"1ac8a7a129ba33e05a24",8419:"96cec8a02ca96175d602",8457:"399fcea09dfb1ad6deaa",8503:"7a143ca61c0a70306185",8520:"7f4a592bcf4ecb55949a",8548:"b466af9019f10420115e",8567:"62811bca7ad2100c023c",8626:"6072c63a5da4366e9942",8628:"c866b66ba72d96453899",8639:"3fd022df127af32782ce",8679:"55924fb0de05e727f5e3",8692:"687cf21e027f49b44d22",8714:"0a413d917f3d19440fc1",8763:"927582ec15bff2acbb49",8812:"72dcd4bd1a28bf8605c5",8825:"20b9bc8d5cbe9a18a644",8846:"cf360767310fb45660a8",8872:"a486d99f9879f94151ba",8885:"f6150b51a9430691a040",8889:"d2faac81142586cf7509",8908:"e602b91d8fdc36a92530",9013:"4e94793aab42ebd251ca",9020:"06c9aac75a01d3af6d54",9030:"09653bd2a31d293a10d9",9036:"1ca04ecf010e68863014",9078:"91d133c04ca764d74934",9125:"c29df43817278f674707",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9159:"af6e8c961fd768fa7be3",9177:"02dd79beb13eff6be85e",9187:"c99dcc17fbd7acd2ad2e",9192:"2ce845c990bb4d701362",9235:"7538a0fe0cec3156769e",9239:"74d9dd484b9bc4dc7e3d",9240:"e2ddfc96ddba92302e0c",9260:"2033e6d42453e4e67048",9296:"b7d8817018b3d277c454",9301:"d4465fd3319d0b6a26cc",9321:"d49e42f36bc3dc256b9f",9330:"7260e63252fa5452dc22",9358:"cec1c87eb3749276ced4",9413:"c715c585c42d8c2b86f5",9419:"4dcd4a052b40047a9230",9438:"f2ab8e49c7f17f488aa8",9506:"aa21031c8f12ca438eaa",9578:"de3d0973cff1e0858c52",9588:"507b7f4c276b60ffe9d5",9616:"bdd19dab276d20d5381a",9619:"ddb92c815d17c67a45e6",9657:"0da5b27b070ab780f8b3",9692:"4823e77515f451628fad",9695:"8e374ce47256a567ae11",9696:"1f54ed4a5238ba1a2551",9714:"b7458bd3a2f590f32111",9794:"ed988360264574cd8f6b",9812:"2f58e1f64df2da8259a2",9829:"903e1cd8b76eff19ebdf",9835:"fa59f10ed0f182a2a7f3",9838:"44b1cdf28269b4fa8a39",9933:"67d3ff7fcefaa7d5d27f",9953:"cae94d6805e0e8db3600",9958:"8ab39731775b0867a512"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{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.71";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:()=>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(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(872)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(6661),r.e(9619)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(8419)]).then(r.bind(r,38419)),FeaturePipelineWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(4800),r.e(7552),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(893),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(2438),r.e(5168),r.e(661),r.e(2515),r.e(3681),r.e(8889)]).then(r.bind(r,98889)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(7552),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(893),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(2515),r.e(5648)]).then(r.bind(r,20401)),FlowWorker:()=>Promise.all([r.e(6977),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(9187),r.e(8885),r.e(5756),r.e(3299),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(473),r.e(5676)]).then(r.bind(r,55912)),GeoJSONSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(1635)]).then(r.bind(r,71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(6408),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(6999),r.e(2112),r.e(7379)]).then(r.bind(r,14289)),GlyphWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(5530),r.e(2438),r.e(8520),r.e(7539)]).then(r.bind(r,93602)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(4066)]).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(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(5153)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9078)]).then(r.bind(r,39078)),PanoramicMeshWorker:()=>Promise.all([r.e(6977),r.e(4314)]).then(r.bind(r,96982)),ParquetSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(3819),r.e(661),r.e(4583)]).then(r.bind(r,6557)),PointCloudWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(7005),r.e(3290),r.e(7984),r.e(3846)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(7939),r.e(2754),r.e(9235),r.e(4924)]).then(r.bind(r,63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(1843),r.e(6661),r.e(6780)]).then(r.bind(r,56780)),SceneLayerWorker:()=>Promise.all([r.e(6408),r.e(9953),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(3586)]).then(r.bind(r,94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902)),WFSSourceWorker:()=>Promise.all([r.e(6408),r.e(4800),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(9696),r.e(6999),r.e(2112),r.e(8245),r.e(2774),r.e(1950)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(6408),r.e(9953),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(5168),r.e(5897),r.e(8763)]).then(r.bind(r,36849)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(1123)]).then(r.bind(r,1123)),statsWorker:()=>Promise.all([r.e(6408),r.e(7865),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(2112),r.e(4560),r.e(5220)]).then(r.bind(r,26412)),ImageMeasurementWorker:()=>Promise.all([r.e(6408),r.e(9187),r.e(8885),r.e(5756),r.e(3299),r.e(8278),r.e(7865),r.e(9953),r.e(6554),r.e(2869),r.e(3910),r.e(564),r.e(7552),r.e(6977),r.e(2741),r.e(4996),r.e(9419),r.e(9829),r.e(893),r.e(6231),r.e(2112),r.e(812),r.e(1683),r.e(2827),r.e(7939),r.e(5138),r.e(3470),r.e(7772),r.e(473),r.e(4751)]).then(r.bind(r,68747))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===h?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.u}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const a=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=a),v.clients.set(a,n),r.port2}static loadWorker(e){const t=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.71",(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,"20260808","u",0,"081fde3c3263c915ae51917fab8a6278a695a75a"])}};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/"+{77:"5bf4ab72b9634b06cc5d",91:"a8ec5b85c2fa6fb4f391",117:"4c2794687aea172775a0",118:"b6c7b7b7f87dce5de811",124:"ed552941eca621a51f16",132:"ed4ac5568dc2815b066d",146:"72eb0ac55026a4f5d6a7",148:"fe10a95ebe1da2322af6",164:"3bc2943035391b44d4cf",217:"d36fba71c52ea4e71546",254:"24006cea112d657f053a",309:"086d7cdfa92a649c9f7b",349:"f06f591680c9e93e69f6",353:"436d51b9f1b1b5abc4bc",368:"0eaa8265a4cd64297545",369:"8a0a13f398ab488dbbe9",382:"d7e17df1c3675bf3633e",390:"ac4131121230cfc14f21",427:"0b18de5147d76b68896f",469:"16cade1c2ddf44e336ee",473:"4491dc227c28e2ab4f8e",500:"a988fd54912969b812ce",547:"484b3e2a220c440ccbb4",560:"869d292a60747c93dc84",563:"99e3aa4832ed87474ab4",564:"0dcfd82a2669df6eb5a0",566:"a27cdf4c29dd50a6dab1",578:"40693ee558a1eb1e93f4",594:"bfb6566c27c09deb0929",609:"eb95464bd017fb839510",661:"50e0dd74795978468625",692:"b313464b987db8a3987a",737:"73f228d966b89c73c9e9",788:"d31f62ecbb54bffc54f2",795:"e421dee5d8b030e79ffb",812:"a3a28c4887f802e8d96d",820:"aafa33f661462f5afd2b",822:"3dc71e03a630dd50b28e",837:"1d92d53186debd52e753",872:"2d3a18d56e2e5669c562",891:"40e48b720d89cd067892",893:"faa55265020591fd2224",895:"1cc063aa2ddf44bbd515",909:"cfe31b7d1c6c05fbd268",918:"158d2ac0333d53556e33",923:"1dba93abe84d30f05d8d",926:"f1f78bb3d34f973c19de",958:"e4353f0792f45aa6a62f",959:"8a48a6760c33ed50b650",980:"56bbde1dff96b423fbb9",990:"0623acb2bd14a61b65c9",993:"0c3c311400ee352187ea",1003:"69b9a327f23e052fced7",1011:"dbc9249dae41096d750d",1017:"bee5e738ecf8680909c4",1023:"b858adff7043683fe41c",1054:"864691186c449ca2c3db",1060:"7baa363b3b0a442a63d2",1075:"79c0a966f7d11d3c217f",1088:"9230ad807020fc2bbf8e",1123:"3b14ed3184743df336a6",1132:"5eb29f0068f1c839d05e",1204:"e02f02040b63d9c2e654",1214:"3c8e98cf23ad8ef12fcb",1262:"9684ab5e8254fdfcb7bb",1273:"e4a2eefffe16cd5bb20f",1277:"5441f96cdd0660229efe",1285:"a0d459bdb91ee892d4b6",1384:"5b70295da76d9227f64b",1482:"3d6b2d5ae647e140abaf",1512:"5fb76575575fe8cfb1f0",1521:"089f8c60e96d920a2cb2",1550:"f95870bb4d8e4e13e69e",1563:"6357c7cac401aee9fe77",1635:"065e3353124fc5ac44ce",1666:"af3ac4bed43e901b59c7",1670:"4710f21b138a2c9a0345",1683:"582a1d468089b9986416",1687:"3dff36f6de181d9dcdc5",1698:"4a40b894ec89b0a4f9bf",1728:"7f91e45156bbe88f9a62",1763:"601e44839fd46e449aa8",1787:"dc0c3109b7558b4fe016",1812:"b9a1046ca2cd0cca5da5",1817:"ed564358cc7b3ee463a3",1837:"3a8320a40916c755c031",1843:"5600fc334d20c4f0c83d",1894:"de6b3f80070abdd61d0f",1938:"8eecc6df6511c8830f5d",1948:"5fe9eea35ddb428efd8b",1950:"d93d0cb69f3a9a722510",1965:"8566449c39eba55147f5",2013:"57970d43cdcc5cf57a30",2024:"6525c925bb91facb3575",2059:"8d21e2dabc5165f1c8ca",2112:"32f5112c848efec6c33b",2158:"ef2e0a014c982d9c7ca4",2174:"94bf7f0da6ad3f7ea277",2186:"c45a5bcf26659daf02a1",2288:"2bdb9b5365869081c936",2314:"9be6827e5756031a56c1",2343:"ec1841e6e498d54012eb",2368:"fa5d27e47d47ff8fcb96",2372:"cd1f1a72483b7c80bd9a",2390:"d51c41c1944df0cbab3e",2409:"f890cfa4932955ecd4e7",2423:"2b2283f1ee4bfc1baa18",2438:"da484787bd9fd3b13d15",2465:"4ce57dd39075e8fb357c",2491:"c25dc9073e73d6b44d88",2509:"77df0bb35d2688729479",2515:"7fa9dc39bf0a7a6fdc1f",2558:"31c4db1eac8f765bb93f",2656:"b599b7dadce8b8bc88f6",2733:"96d861265566854760cd",2741:"359584a8fb5687a7d098",2754:"073f1d5f89875c6aefb1",2764:"3aa0a34d2b7dbf2e2c66",2772:"4c73c2f4331351e2a50c",2774:"bd88228f781a0399d8bd",2806:"9937920e7993814d0b2c",2827:"ad27689b231e282b7620",2869:"8dcc6c19d5b3a5ac5512",2871:"c203df41f9d2e4b80889",2889:"381790e1f3df05c7eb68",2920:"e702abaeccef20b64a81",2958:"b13d2da33ec07e9d41ff",2969:"e21b3490bfce75405e55",2980:"3087910d19959fdc546b",2990:"a739e617fc461014ad1f",2997:"3dd5d481ae6c5d9dfa08",3103:"a294dd12b5c708ce04af",3116:"7f208ef75ef2ce0d7cf9",3166:"cc5ec6e99aa09342c704",3202:"3aacb935d632834d4154",3276:"f721756a6c1593f96409",3290:"afeeb11b39e140303b5a",3299:"05b6b2c0b76afb100e33",3304:"118ccfa2d685764752ee",3309:"7b290ac2e8a567ecae4a",3359:"259bdacfb7b0f866a8d0",3367:"2cfe6f41865ffb3a4645",3390:"0d7d54e74b5639a0be6e",3456:"7b862a074816c099b9ff",3467:"b780514be87a22b49b01",3470:"86a4057572755b403548",3500:"b4e5ee81b9eb171499a6",3543:"19cb8963d5ec2246357b",3561:"fa377112ef3b78f6ed18",3586:"4abd54518e35050feb90",3591:"ed1de8b7406269e217b9",3608:"bd311c85437743cf7d2f",3650:"989937c120bdd676ec1e",3666:"53817ef8c00d8cce4b8e",3681:"fba8065a3a6fbd877e23",3693:"9fee8441fbac9f723f77",3708:"67ebde34377f98d17cda",3717:"b9bdb1f05e904c3655e4",3781:"a7f42ada0aa69873a938",3813:"f6f7d885b4d6080e3f58",3819:"011281fe918c4f0aec5d",3846:"5e3d5347223f0111f40f",3902:"8c1bddc88cc5f4251021",3910:"c97451f75c23be979476",4038:"05f6887805d92da03122",4066:"d021775cf747556660a5",4097:"c02b3b8b71205f6ce290",4123:"fe71a0604f0928113419",4167:"b8cd81d8fcc78d272130",4168:"8fea514aada1195c8f30",4198:"31669511cfddf116d991",4280:"3978f00a03e97645b276",4297:"dc1787d88b11ed985159",4314:"2791f3fe16ca5ee2f39a",4333:"d3be4d914fc99a1d686c",4383:"51a8a47aac1d8d22ba9d",4428:"ebd619533be077059494",4535:"4da993c79b373b9d304e",4560:"8d2cac1952e817daaf1f",4571:"f69329b85b362b349a8c",4575:"d607cf154218d20e4114",4579:"5459ba8fdeb2370bb52b",4583:"a52c88e2d837b525ff6c",4591:"c03da138651ac53cadcb",4594:"1119a33245138e7b3914",4642:"8be707044d992ef5f1d8",4664:"6a9002fcba11e2cf3f2e",4674:"0ae0483b72f5e8d00d55",4690:"f563dd6cace047108b3c",4751:"fa19d5923276418096da",4778:"1e0140556c2e3fa72545",4795:"2bcb7e43578124538c3c",4800:"cd5206e19d86c60e3cf0",4807:"c53b2be005721591e29b",4849:"9482a6d7baa24bbf5693",4924:"a3bf8aa81ee398da5b52",4935:"a5c115fc53edb52ce1de",4996:"a25f51d2d3ff6b9af7ca",5077:"f475672ff4c2ec9367c2",5098:"b9953277d0cd4a01bdc6",5138:"8c76f31a363dd0c3354d",5141:"c02ae1d40c1fe95ae6c5",5153:"fff23b2682590c4b21e3",5165:"b3a1a93c6dc9247cb048",5168:"c7e9513f75b8ec205562",5220:"6f58cb9dffe8016397a2",5360:"19233d0016e5b154c5ce",5367:"a183b77854f5b42c1a86",5391:"253c231b5a52f1d2d3a5",5404:"01c92e68fb17cf2d0e08",5524:"b984b808d383974ca3d8",5530:"3de6e54b6ed0feae1940",5604:"1b130af7d14eaae69d96",5605:"fb12d3c63fcac8391e06",5613:"12a64eca4c571926d9d4",5648:"a62f1b8ed065b2a38f1a",5676:"2d45daacec0d5ed38782",5740:"9c57161ad48d8d546dc7",5756:"c21212c356f65244e34e",5804:"d2387906b52624b4f7f1",5841:"2ea3ca68cfa4d34e8f3b",5856:"be1d2c3a61e6447fbbc7",5897:"cd4e5c948d1bfa9b9a2d",5902:"d2cb3d5ef0a9285afb78",5914:"38660a8cc3623c854d88",5929:"9dda9414104f585560a4",5974:"d0c1bc90e474f706211c",6027:"c1189316d24fb4cdb2a0",6033:"da1c9257793c2817f40f",6052:"684d3cb4fb233180b2d0",6061:"987594539981483a7c5e",6113:"383304d33b496c5d8baa",6122:"1ede8666d804c553803e",6129:"0d9d33f29124d464a4cb",6154:"ac84e5b5d010c235fe6f",6160:"2d1ae18a28491b00091d",6187:"9234a293d61e134f121f",6196:"c838cc1c786368b78598",6231:"1642fa1263d8f4a45101",6247:"160b204cbf5bda2a29e9",6276:"28924f31f5ba8ebdc60a",6343:"c6ef0636073e28350c91",6344:"33e293836f5d28dc5d62",6408:"3db898a38a7c5f0efb48",6465:"d901f8503a73277cfa58",6475:"d456520e4b119a2816b6",6491:"7ddf9b2718dd047f15e6",6533:"fc9065d0cd6285fe0f0d",6554:"e4aacfc1617ccf60bd5a",6558:"c6bf17b5ff6ec4b980a1",6569:"b9d6f89f9b8e9d1bc787",6650:"aff0e7761276036e029d",6661:"c82ab4f0908290e70ee9",6671:"913fb883455aeac8582b",6684:"cea4b18e7f83c02922b1",6708:"1f888f026b004447772c",6765:"9bbff8237540409610b3",6780:"4d9bde9f66817a92ceca",6792:"4e129b9f5772a06e580c",6796:"6b208bac120bcfecd9e4",6956:"613e799377bdb767c955",6960:"694371f51c52a7a94da4",6977:"7f2f2a92dce3f68e579b",6999:"0aedeb837399d3f92e4a",7005:"9902fcd2070c8eb6d043",7087:"a23f4d8e7c372f5fb6d7",7157:"4695cd6120f60b234d5c",7217:"ce481eeb27ea9c1782ae",7269:"49a3888bf9e2481642ac",7301:"752343d92ed48e674351",7316:"28b09fe50b855a1d8a3f",7379:"6cd6d0cfd313f0475d98",7431:"98e6c1d035755a074d24",7444:"463747a822499dd933ef",7464:"9f65cc6d9f7390bb1d5b",7531:"6080e46fc79127500283",7539:"5f31b375971ab067121e",7546:"b792857a178da2dd77d6",7552:"04ac5ac6f592d8c34bbd",7561:"67773a9f031d9f1d672f",7632:"612873df0c8659ac2aa5",7733:"0846855843f85661e974",7745:"39a10b2092a98083f4cf",7772:"c873383e7dae35dc1a61",7828:"4344ab1250a1c550bf8b",7835:"da6134c7883531f21afe",7865:"d79ce047afbc034f6008",7869:"fd6107f95082e05f016a",7883:"1e5cb72830c7f32f2961",7891:"d56780290e0218d3e9de",7903:"3b3a8a6167f2e1eeb828",7939:"917c11cb40a7742d7f98",7982:"36171c72a3c04b0d13ef",7984:"32fb597aef66c444758f",7987:"0e333aced8b23aa49a0e",7992:"7f7a76f5fef25049fbf8",8010:"39d71e83261bff46f6bf",8018:"fb51f823b25c827c6b29",8089:"e61ab8ef30bbe788b9d7",8125:"255c8e937e7a123ebb04",8195:"5f201c77a09ae0df29d6",8231:"fec07a16b72cdcafc641",8245:"73f77f5a6907cb8d9a35",8278:"509cfac9e5d86a8ee449",8314:"623d5518bca227f643bd",8325:"44e8cd4b3dad777ab0c9",8377:"d08f81d545930a79fb2e",8393:"d7b6985984071e78c764",8414:"1ac8a7a129ba33e05a24",8419:"96cec8a02ca96175d602",8457:"399fcea09dfb1ad6deaa",8503:"7a143ca61c0a70306185",8520:"43de723f765ec8f268ac",8548:"b466af9019f10420115e",8567:"62811bca7ad2100c023c",8626:"6072c63a5da4366e9942",8628:"c866b66ba72d96453899",8639:"3fd022df127af32782ce",8679:"55924fb0de05e727f5e3",8692:"687cf21e027f49b44d22",8714:"0a413d917f3d19440fc1",8763:"927582ec15bff2acbb49",8812:"72dcd4bd1a28bf8605c5",8825:"20b9bc8d5cbe9a18a644",8846:"cf360767310fb45660a8",8872:"a486d99f9879f94151ba",8885:"f6150b51a9430691a040",8889:"d2faac81142586cf7509",8908:"e602b91d8fdc36a92530",9013:"4e94793aab42ebd251ca",9020:"06c9aac75a01d3af6d54",9030:"09653bd2a31d293a10d9",9036:"1ca04ecf010e68863014",9078:"91d133c04ca764d74934",9125:"c29df43817278f674707",9126:"b1c6a1759febad66927f",9134:"02ed969786ab24ca8d96",9159:"af6e8c961fd768fa7be3",9177:"02dd79beb13eff6be85e",9187:"c99dcc17fbd7acd2ad2e",9192:"2ce845c990bb4d701362",9235:"7538a0fe0cec3156769e",9239:"74d9dd484b9bc4dc7e3d",9240:"e2ddfc96ddba92302e0c",9260:"2033e6d42453e4e67048",9296:"b7d8817018b3d277c454",9301:"d4465fd3319d0b6a26cc",9321:"d49e42f36bc3dc256b9f",9330:"7260e63252fa5452dc22",9358:"cec1c87eb3749276ced4",9413:"c715c585c42d8c2b86f5",9419:"4dcd4a052b40047a9230",9438:"f2ab8e49c7f17f488aa8",9506:"aa21031c8f12ca438eaa",9578:"fc2cae359d571690d754",9588:"507b7f4c276b60ffe9d5",9616:"bdd19dab276d20d5381a",9619:"ddb92c815d17c67a45e6",9657:"0da5b27b070ab780f8b3",9692:"4823e77515f451628fad",9695:"8e374ce47256a567ae11",9696:"1f54ed4a5238ba1a2551",9714:"b7458bd3a2f590f32111",9794:"ed988360264574cd8f6b",9812:"2f58e1f64df2da8259a2",9829:"903e1cd8b76eff19ebdf",9835:"fa59f10ed0f182a2a7f3",9838:"44b1cdf28269b4fa8a39",9933:"67d3ff7fcefaa7d5d27f",9953:"cae94d6805e0e8db3600",9958:"8ab39731775b0867a512"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{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([[8520],{32488(t,e,r){r.d(e,{A:()=>k});const i=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],s=["آ","أ","إ","ا"],n=["ﻵ","ﻷ","ﻹ","ﻻ"],o=["ﻶ","ﻸ","ﻺ","ﻼ"],a=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],l=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],h=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],c=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],u=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],d=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],m=["ء","ف"],g=["غ","ي"],p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],y=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],S=10,_=11,x=12,M=18,b=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],w=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],C=[[M,M,M,M,M,M,M,M,M,6,5,6,8,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,5,5,5,6,8,4,4,_,_,_,4,4,4,4,4,S,9,S,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,M,M,M,M,M,M,5,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,M,9,4,_,_,_,_,4,4,4,4,0,4,4,M,4,4,_,_,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,1,x,1,x,x,1,x,x,1,x,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,_,_,7,9,7,4,4,x,x,x,x,x,x,x,x,x,x,x,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,3,3,3,3,3,3,3,3,3,3,_,3,3,7,7,7,x,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,x,x,x,x,x,x,x,3,4,x,x,x,x,x,x,7,7,x,x,4,x,x,x,x,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,x,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,x,x,x,x,x,x,x,x,x,x,x,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,x,x,x,x,x,x,x,x,x,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,M,M,M,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,_,_,_,_,_,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,M,M,M,M,M,4,4,4,4,4,M,M,M,M,M,M,2,0,4,4,2,2,2,2,2,2,S,S,4,4,4,0,2,2,2,2,2,2,2,2,2,2,S,S,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,x,1,1,1,1,1,1,1,1,1,1,S,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,x,x,x,x,x,x,x,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,_,4,4,S,S,4,4,4,4,4,_,_,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,M],[4,4,4,_,_,_,4,4,4,4,4,S,9,S,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,_,_,4,4,4,_,_,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class k{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){Y=[],Z=[];for(let i=0;i<r;i++)t[i]=i,e[i]=i,Y[i]=i}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let i=t;const a=J,c=$(e.charAt(1)),f=$(r.charAt(1)),m=(e.startsWith("I")?"L":e.charAt(0))+c,g=(r.startsWith("I")?"L":r.charAt(0))+f,p=e.charAt(2)+r.charAt(2);a.defInFormat=m,a.defOutFormat=g,a.defSwap=p;const y=P(t,m,g,p,a);let S=!1;return"R"===r.charAt(1)?S=!0:"C"!==r.charAt(1)&&"D"!==r.charAt(1)||(S="rtl"===this.checkContextual(y)),this.sourceToTarget=Y,this.targetToSource=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),q=this.targetToSource,i=e.charAt(3)===r.charAt(3)?y:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const r=(e=String(e)).split("");let i=0,s=1,a=r.length;t||(i=r.length-1,s=-1,a=1);const c=function(t,e,r,i){let s=0;const a=[];let c=0;for(let f=e;f*r<i;f+=r)if(A(t[f])||W(t[f])){if("ل"===t[f]&&E(t,f+r,r,i)){t[f]=V(t[f+r],0===s?n:o),f+=r,G(t,f,r,i),a[c]=f,c++,s=0;continue}const e=t[f];1===s?t[f]=F(t,f+r,r,i)?N(t[f]):O(t[f],h):!0===F(t,f+r,r,i)?t[f]=O(t[f],u):t[f]=O(t[f],l),W(e)||(s=1),!0===H(e)&&(s=0)}else s=0;return a}(r,i,s,a);let f="";for(let e=0;e<r.length;e++)v(c,c.length,e)>-1?(X(q,e,!t,-1),Y.splice(e,1)):f+=r[e];return f}(S,y):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let r="";const i=(t=String(t)).split("");for(let n=0;n<t.length;n++){let o=!1;if(i[n]>="ﹰ"&&i[n]<"\ufeff"){const a=t.charCodeAt(n);i[n]>="ﻵ"&&i[n]<="ﻼ"?(e?(n>0&&" "===i[n-1]?r=r.slice(0,-1)+"ل":(r+="ل",o=!0),r+=s[(a-65269)/2]):(r+=s[(a-65269)/2],r+="ل",n+1<t.length&&" "===i[n+1]?n++:o=!0),o&&(X(q,n,!0,1),Y.splice(n,0,Y[n]))):r+=d[a-65136]}else r+=i[n]}return r}(y,S),this.sourceToTarget=Y,this.targetToSource=q,this.levels=Z,i}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=T(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return rt.test(t)}}function P(t,e,r,i,s){const n=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;const i=e.inFormat.slice(0,1),s=e.outFormat.slice(0,1);let n,o=e.inFormat.slice(1,4),a=e.outFormat.slice(1,4);return o.startsWith("C")&&(n=T(t),o="ltr"===n||"rtl"===n?n.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=i+o),a.startsWith("C")&&(n=T(t),"rtl"===n?a="RTL":"ltr"===n?(n=function(t){const e=t.split("");return e.reverse(),T(e.join(""))}(t),a=n.toUpperCase()):a="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=s+a),e}(t,{inFormat:e,outFormat:r,swap:i},s);if(n.inFormat===n.outFormat)return t;e=n.inFormat,r=n.outFormat,i=n.swap;const o=e.slice(0,1),a=e.slice(1,4),l=r.slice(0,1),h=r.slice(1,4);if(s.inFormat=e,s.outFormat=r,s.swap=i,"L"===o&&"VLTR"===r){if("LTR"===a)return s.dir=Q,R(t,s);if("RTL"===a)return s.dir=tt,R(t,s)}if("V"===o&&"V"===l)return s.dir="RTL"===a?tt:Q,z(t,s);if("L"===o&&"VRTL"===r)return"LTR"===a?(s.dir=Q,t=R(t,s)):(s.dir=tt,t=R(t,s)),z(t);if("VLTR"===e&&"LLTR"===r)return s.dir=Q,R(t,s);if("V"===o&&"L"===l&&a!==h)return t=z(t),"RTL"===a?P(t,"LLTR","VLTR",i,s):P(t,"LRTL","VRTL",i,s);if("VRTL"===e&&"LRTL"===r)return P(t,"LRTL","VRTL",i,s);if("L"===o&&"L"===l){const e=s.swap;return s.swap=e.slice(0,1)+"N","RTL"===a?(s.dir=tt,t=R(t,s),s.swap="N"+e.slice(1,3),s.dir=Q,t=R(t,s)):(s.dir=Q,t=R(t,s),s.swap="N"+e.slice(1,3),t=P(t,"VLTR","LRTL",s.swap,s)),t}return t}function T(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function R(t,e){const r=t.split(""),i=[];return L(r,i,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=B(t[r]))}(r,i,e),D(2,r,i,e),D(1,r,i,e),Z=i,r.join("")}function L(t,e,r){const i=t.length,s=r.dir?y:p;let n=0,o=-1;const a=[],l=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<i;e++)a[e]=I(t[e]);for(let h=0;h<i;h++){const i=n,c=U(t,a,l,h,r);l[h]=c,n=s[i][c];const u=240&n;n&=15;const f=s[n][j];if(e[h]=f,u>0)if(16===u){for(let t=o;t<h;t++)e[t]=1;o=-1}else o=-1;if(s[n][K])-1===o&&(o=h);else if(o>-1){for(let t=o;t<h;t++)e[t]=f;o=-1}5===a[h]&&(e[h]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,i){for(let s=0;s<r;s++)if(6===t[s]){e[s]=i.dir;for(let r=s-1;r>=0&&8===t[r];r--)e[r]=i.dir}}(a,e,i,r)}function I(t){const e=t.charCodeAt(0),r=w[e>>8];return r<100?r:C[r-100][255&e]}function z(t,e){const r=t.split("");if(e){const t=[];L(r,t,e),Z=t}return r.reverse(),Y.reverse(),r.join("")}function v(t,e,r){for(let i=0;i<e;i++)if(t[i]===r)return i;return-1}function A(t){for(let e=0;e<m.length;e++)if(t>=m[e]&&t<=g[e])return!0;return!1}function F(t,e,r,i){for(;e*r<i&&W(t[e]);)e+=r;return!!(e*r<i&&A(t[e]))}function E(t,e,r,i){for(;e*r<i&&W(t[e]);)e+=r;let n=" ";if(!(e*r<i))return!1;n=t[e];for(let t=0;t<s.length;t++)if(s[t]===n)return!0;return!1}function D(t,e,r,i){if(i.hiLevel<t)return;if(1===t&&i.dir===tt&&!i.hasUbatB)return e.reverse(),void Y.reverse();const s=e.length;let n,o,a,l,h,c=0;for(;c<s;){if(r[c]>=t){for(n=c+1;n<s&&r[n]>=t;)n++;for(o=c,a=n-1;o<a;o++,a--)l=e[o],e[o]=e[a],e[a]=l,h=Y[o],Y[o]=Y[a],Y[a]=h;c=n}c++}}function U(t,e,r,i,s){const n=e[i];return{UBAT_L:()=>(s.lastArabic=!1,0),UBAT_R:()=>(s.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>s.lastArabic?3:2,UBAT_AL:()=>(s.lastArabic=!0,s.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,n;return i<1||i+1>=e.length||2!==(t=r[i-1])&&3!==t||2!==(n=e[i+1])&&3!==n?4:(s.lastArabic&&(n=3),n===t?n:4)},UBAT_ES:()=>2===(i>0?r[i-1]:5)&&i+1<e.length&&2===e[i+1]?2:4,UBAT_ET:()=>{if(i>0&&2===r[i-1])return 2;if(s.lastArabic)return 4;let t=i+1;const n=e.length;for(;t<n&&11===e[t];)t++;return t<n&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===s.inFormat){const r=e.length;let s=i+1;for(;s<r&&12===e[s];)s++;if(s<r){const r=t[i].charCodeAt(0),n=r>=1425&&r<=2303||64286===r,o=e[s];if(n&&(1===o||7===o))return 1}}return i<1||5===e[i-1]?4:r[i-1]},UBAT_B:()=>(s.lastArabic=!0,s.hasUbatB=!0,s.dir),UBAT_S:()=>(s.hasUbatS=!0,4),UBAT_LRE:()=>(s.lastArabic=!1,4),UBAT_RLE:()=>(s.lastArabic=!1,4),UBAT_LRO:()=>(s.lastArabic=!1,4),UBAT_RLO:()=>(s.lastArabic=!1,4),UBAT_PDF:()=>(s.lastArabic=!1,4),UBAT_BN:()=>4}[b[n]]()}function B(t){let e,r=0,s=i.length-1;for(;r<=s;)if(e=Math.floor((r+s)/2),t<i[e][0])s=e-1;else{if(!(t>i[e][0]))return i[e][1];r=e+1}return t}function H(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function N(t){for(let e=0;e<a.length;e++)if(t===a[e])return c[e];return t}function O(t,e){for(let r=0;r<a.length;r++)if(t===a[r])return e[r];return t}function W(t){return t>="ً"&&t<="ٕ"}function $(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function G(t,e,r,i){for(;e*r<i&&W(t[e]);)e+=r;return e*r<i&&(t[e]=" ",!0)}function V(t,e){for(let r=0;r<s.length;r++)if(t===s[r])return e[r];return t}function X(t,e,r,i){for(let s=0;s<t.length;s++)(t[s]>e||!r&&t[s]===e)&&(t[s]+=i)}let Y=[],q=[],Z=[];const J={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},j=5,K=6,Q=0,tt=1,et=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,rt=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,r){r.d(e,{y:()=>s});const i=new(r(32488).A);function s(t,e=!0){if(!i.hasBidiChar(t))return[t,!1,{...i}];let r;r="rtl"===i.checkContextual(t)?"IDNNN":"ICNNN";const s=e?"VLYSN":"VLYNN";return[i.bidiTransform(t,r,s),!0,{...i}]}},40804(t,e,r){function i(t,e=0){let r=0;for(let i=0;i<4;i++)r+=t[e+i]*s[i];return r}r(34727);const s=[1/256,1/65536,1/16777216,1/4294967296];i(new Uint8ClampedArray([255,255,255,255])),i(new Uint8ClampedArray([255,255,255,0]))},56512(t,e,r){function i(t){let e,r,i=[],s=!1;return function(...n){return s&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}(n,i)||(r=t.apply(this,n),e=this,i=n,s=!0),r}}r.d(e,{B:()=>i})},69397(t,e,r){r.d(e,{Qf:()=>a,Qh:()=>n,lM:()=>s});var i=r(34275);function s(t){if(!t)return 0;let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return a(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=c;for(let i=0;i<e;i++)r+=o(t[i]);return r}(t);let e=h;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+u:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return c+t.length*e}const h=32,c=16,u=145},31411(t,e,r){r.d(e,{GS:()=>C,gh:()=>P});var i=r(49186),s=r(56512),n=r(65864),o=r(4305),a=r(50954),l=r(52006),h=r(49663),c=r(46068),u=r(15507);const f=1e-6,d=[0,0];function m(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class g{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:r,maxSegmentsPerCurve:i,minSegmentsPerCurve:s}){const n=r*r,o=e*e,a=1/i,l=this.interpolate(0),h=this.interpolate(1);(0,u.kb)(this.curveStart,l)>f&&t.push(l),this.initialize(l,h);const c=1/s;for(let t=s-1;t>0;t--){const e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<a||(0===n||!isFinite(n)||(0,u.kb)(this.arcStart,this.arcEnd)<n)&&(0===o||!isFinite(o)||this.getDeviation2()<o)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class p extends g{constructor(t,e){const[r,i,s]=e.b;super(t,r),this._controlPointsStack=[],this._curveControlPoints=[i,s],this._arcControlPoints=[i,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){const{arcStart:e,arcEnd:r,tStart:i,tEnd:s}=this,[n,o]=this._arcControlPoints,a=(t-i)/(s-i),l=(0,u.RS)([],e,n,a),h=(0,u.RS)(d,n,o,a),c=(0,u.RS)([],o,r,a),f=(0,u.RS)([],l,h,a),m=(0,u.RS)([],h,c,a),g=(0,u.RS)([],f,m,a);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([m,c]),this.tEndStack.push(t),this.arcEndStack.push(g),this._arcControlPoints[0]=l,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){const{curveStart:e,curveEnd:r}=this,[i,s]=this._curveControlPoints;return(0,o.B4)(e,i,s,r,t)}getDeviation2(){const{arcStart:t,arcEnd:e}=this,[r,i]=this._arcControlPoints;return Math.max((0,u.yE)(r,t,e),(0,u.yE)(i,t,e))}}class y extends g{constructor(t,e){const[r]=e.a;super(t,r),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function S(t,e,r,{cx:i,cy:s,radius:n,thetaStart:o,thetaEnd:a,isInvalid:l},{maxDeviation:h,maxSegmentLength:c,maxSegmentsPerCurve:d,minSegmentsPerCurve:m}){if(l)return t.push([...r]),t;const g=2*n,p=[i+n*Math.cos(o),s+n*Math.sin(o)],y=[i+n*Math.cos(a),s+n*Math.sin(a)];(0,u.kb)(e,p)>f&&t.push(p);const S=Math.abs(a-o),_=c>0&&c<g?2*Math.asin(c/g):S,x=h>0&&h<=n?2*Math.acos(1-h/n):S,M=Math.min(_,x),b=Math.min(d,Math.max(m,Math.ceil(Math.abs(S/M)))),w=1/b;for(let e=1;e<b;e++){const r=e*w,l=o*(1-r)+a*r;t.push([i+n*Math.cos(l),s+n*Math.sin(l)])}return t.push(y),(0,u.kb)(r,y)>f&&t.push([...r]),t}function _(t,e,r,i){return new p(e,r).densify(t,i)}function x(t,e,r,i){const s=(0,a.pM)(e,r),[n]=r.c;return S(t,e,n,s,i)}function M(t,e,r,i){const s=(0,h.io)(e,r),[n]=r.a;return S(t,e,n,s,i)}function b(t,e,r,i){const[s,n,o,a,l,h,c]=r.a;return 0===h||0===c?(t.push([...s]),t):new y(e,r).densify(t,i)}function w(t,e,r,i){return(0,l.Xq)(r)?(t.push([...r]),t):(0,l.n1)(r)?_(t,e,r,i):(0,l.aO)(r)?x(t,e,r,i):(0,l.DA)(r)?M(t,e,r,i):b(t,e,r,i)}function C(t,e={}){if(!(0,l.Ed)(t))return t;const r=m(e),i=(0,l.FD)(t),s=[];for(const t of i){const e=[];for(let i=0;i<t.length-1;i++){const s=i+1,n=[...(0,l.yP)(t[i])];0===i&&e.push(n),w(e,n,t[s],r)}s.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},paths:s,spatialReference:t.spatialReference}:{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},rings:s,spatialReference:t.spatialReference}}const k=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function P(t,e,s){const o=new Set(e);return await async function(t,e,s){let n=null;for(const o of t)if(o&&(0,l.Ed)(o)&&null==o.spatialReference.xyTolerance&&(0,l.V8)(o,e)){const t=o.spatialReference;if(!t)throw new i.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");const e=T(t);if(s.has(e))o.spatialReference=s.get(e);else{n||(n=await Promise.all([r.e(9187),r.e(8885),r.e(5756),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));const a=n.fromSpatialReference(t),l=a?.getTolerance();if(null==l)throw new i.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");const h=o.spatialReference.clone();h.read({xyTolerance:l}),o.spatialReference=h,s.set(e,h)}}}(t,o,s),t.map(t=>{if(!t||!(0,l.Ed)(t))return t;const r=t.spatialReference.xyTolerance;if(null==r)return t;const i=k(r);return(0,n.rS)(function(t,e,r){if(!(0,l.Ed)(t))return t;const i=new Set(e),s=m(r),n=(0,l.FD)(t),o=[];let a=!1;for(const t of n){const e=[];for(let r=0;r<t.length-1;r++){const n=r+1,o=[...(0,l.yP)(t[r])];0===r&&e.push(o);const h=t[n];(0,l.Xq)(h)?e.push([...h]):(0,l.n1)(h)&&!i.has("cubic-bezier")?_(e,o,h,s):(0,l.aO)(h)&&!i.has("circular-arc")?x(e,o,h,s):(0,l.DA)(h)&&!i.has("elliptic-arc")?M(e,o,h,s):(0,l.wY)(h)&&!i.has("elliptic-arc")?b(e,o,h,s):(e.push((0,l.tk)(h)),a=!0)}o.push(e)}return"curvePaths"in t?{...void 0!==t.hasZ?{hasZ:t.hasZ}:{},...void 0!==t.hasM?{hasM:t.hasM}:{},spatialReference:t.spatialReference,...a?{curvePaths:o}:{paths:o}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...a?{curveRings:o}:{rings:o}}}(t,e,i))})}function T(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;const e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},92722(t,e,r){r.d(e,{A:()=>s});var i=r(69397);class s{constructor(t=[],e=[],r=!1,i=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=r,this.hasM=i}static fromJSON({lengths:t,coords:e,hasZ:r,hasM:i}){return new s(t,e,r||!1,i||!1)}static fromRect([t,e,r,i]){const n=r-t,o=i-e;return new s([5],[t,e,n,0,0,o,-n,0,0,-o])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,i.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let t=0,e=0;for(const r of this.lengths){if(r<3)continue;const{stride:i}=this;let s=this.coords[i*e],n=this.coords[i*e+1];for(let o=1;o<r;o+=1){const r=i*(e+o),a=this.coords[r],l=this.coords[r+1];t+=-.5*(a-s)*(l+n),s=a,n=l}e+=r}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);const{stride:r}=this;for(const i of this.lengths){for(let s=0;s<i;s++){const i=r*(e+s);t(this.coords[i],this.coords[i+1])}e+=i}}deltaDecode(){const t=this.clone(),{coords:e,lengths:r}=t;let i=0;const{stride:s}=this;for(const t of r){for(let r=1;r<t;r++){const t=s*(i+r);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}i+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const e=Array.from(this.lengths),{stride:r,size:i}=this,n=this.coords.slice(0,i*r);return t?(t.set(n),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(n),this.hasZ,this.hasM)}justXY(){const{stride:t,size:e}=this;if(2===t)return this;const r=new Array(e*t);for(let e=0,i=0;e<r.length;e+=t)r[i++]=this.coords[e],r[i++]=this.coords[e+1];return new s(this.lengths,r,!1,!1)}}},5427(t,e,r){r.r(e),r.d(e,{CIMSymbolHelper:()=>nt,CIMSymbolInflatedSizeHelper:()=>st,capTypeToEnum:()=>at,forEachSymbolLayer:()=>ot,slsDashToTemplateArray:()=>gt,symbolToCIM:()=>et});var i=r(6371),s=r(4718),n=r(53966),o=r(87811),a=r(90629),l=r(19419),h=r(537),c=r(52006),u=r(31411),f=r(11831),d=r(35833),m=r(98939),g=r(57582),p=(r(44208),r(34727)),y=r(93687),S=r(36745),_=r(12359),x=(r(12176),r(60408));class M{applyColorSubstitution(t,e){if(!e)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:r,height:i}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=r,s.height=i,n.drawImage(t,0,0,r,i));const o=n.getImageData(0,0,r,i).data;if(e)for(const t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){const[e,r,i,s]=t.oldColor,[n,a,l,h]=t.newColor;if(e===n&&r===a&&i===l&&s===h)continue;for(let t=0;t<o.length;t+=4)e===o[t]&&r===o[t+1]&&i===o[t+2]&&s===o[t+3]&&(o[t]=n,o[t+1]=a,o[t+2]=l,o[t+3]=h)}const a=new ImageData(o,r,i);return n.putImageData(a,0,0),s}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||(this._rasterizationCanvas=document.createElement("canvas"));const{width:r,height:i}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=r,s.height=i,n.drawImage(t,0,0,r,i));const o=n.getImageData(0,0,r,i),a=new Uint8Array(o.data),l=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<a.length;t+=4)a[t]*=l[0],a[t+1]*=l[1],a[t+2]*=l[2],a[t+3]*=l[3];const h=new ImageData(new Uint8ClampedArray(a.buffer),r,i);return n.putImageData(h,0,0),s}}var b=r(26937),w=r(28076);function C(t){const e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;const r=document.createElement("canvas");r.width=t.width,r.height=t.height;const i=r.getContext("2d");return e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0),r}function k(t,e=0){if(0===e)return t;const r=Math.cos(e),i=Math.sin(e),[s,n]=t;return[s*r+n*-i,s*i+n*r]}var P=r(44589);class T{constructor(t=0,e=0,r=0,i=0){this.x=t,this.y=e,this.width=r,this.height=i}static fromExtent(t){return new T(t.xmin,-t.ymax,t.xmax-t.xmin,t.ymax-t.ymin)}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}var R=r(69754);function L(t){return`rgb(${t.slice(0,3).toString()})`}function I(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}r(5760);class z{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeRichText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas,i=r.getContext("2d",{willReadFrequently:!0}),s=this._layoutRichTextRuns(i,t,e);this._parameters=e,this._lineHeight=Math.max(...s.map(t=>t.height),this._measureLineHeight(e));const{decoration:n,weight:o}=e.font;this._lineThroughWidthOffset=n&&"line-through"===n?.1*this._lineHeight:0;const a=null!=e.backgroundColor||null!=e.borderLine,l=a?8:0,h=Math.max(...s.map(t=>t.width),0)+2*l,c=s.reduce((t,e)=>t+e.height,0)+2*l;if(r.width=h+2*this._lineThroughWidthOffset,r.height=c,0===r.width||0===r.height)return r.width=r.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:r};this._renderedWidth=h,this._renderedHeight=c,this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._lineThroughWidthOffset*=e.pixelRatio;const u=(e.outline&&e.outline.color)??[0,0,0,0],f=e.color??[0,0,0,0],d=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=I(f),this._outlineStyle=I(u),this._haloStyle=L(d);const m=this._renderedOutlineSize,g=this._renderedHaloSize;i.save(),i.clearRect(0,0,r.width,r.height);const p=l*e.pixelRatio,y=F("left",this._renderedWidth-2*p,g+m)+p,S=g+m+p;let _=this._lineThroughWidthOffset,x=0;if(a){i.save();const t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);i.fillStyle=I(t),i.strokeStyle=I(s),i.lineWidth=n,i.fillRect(0,0,r.width,r.height),i.strokeRect(0,0,r.width,r.height),i.restore()}x+=S,_+=y,g>0&&this._renderRichTextOutline(i,s,_,x,e,this._renderedHaloSize+this._renderedOutlineSize),m>0&&this._renderRichTextOutline(i,s,_,x,e,this._renderedOutlineSize);for(const t of s){let r=_;"center"===e.horizontalAlignment?r+=(this._renderedWidth-2*p-t.width)/2:"right"===e.horizontalAlignment&&(r+=this._renderedWidth-2*p-t.width-g-m);let s=r;for(const e of t.segments)v(i,e.parameters,"left",e.characterSpacing),g>0&&(i.globalCompositeOperation="destination-out",i.fillStyle="rgb(0, 0, 0)",this._renderRichTextSegment(i,e,s,x,"fill"),i.globalCompositeOperation="source-over"),i.fillStyle=I(e.parameters.color??f),this._renderRichTextSegment(i,e,s,x,"fill"),s+=e.width;if(n&&"none"!==n){const e=this._renderedWidth;this._renderedWidth=t.width,i.textAlign="left",this._renderDecoration(i,r,x,n,o),this._renderedWidth=e}x+=t.height}i.restore();const M=this._renderedWidth+2*this._lineThroughWidthOffset,b=this._renderedHeight,w=i.getImageData(0,0,M,b),C=new Uint8Array(w.data);if(e.premultiplyColors){let t;for(let e=0;e<C.length;e+=4)t=C[e+3]/255,C[e]=C[e]*t,C[e+1]=C[e+1]*t,C[e+2]=C[e+2]*t}let k,P;switch(e.horizontalAlignment){case"left":k=-.5;break;case"right":k=.5;break;default:k=0}switch(e.verticalAlignment){case"bottom":P=-.5;break;case"top":P=.5;break;case"baseline":P=-1/6;break;default:P=0}return{size:[M,b],image:new Uint32Array(C.buffer),sdf:!1,simplePattern:!1,anchorX:k,anchorY:P,canvas:r}}rasterizeText(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas,i=r.getContext("2d",{willReadFrequently:!0});v(i,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const{decoration:s,weight:n}=e.font;this._lineThroughWidthOffset=s&&"line-through"===s?.1*this._lineHeight:0;const o=null!=e.backgroundColor||null!=e.borderLine,a=o?8:0,l=this._computeTextWidth(i,e)+2*a,h=this._lineHeight*this._textLines.length+2*a;if(r.width=l+2*this._lineThroughWidthOffset,r.height=h,0===r.width||0===r.height)return r.width=r.height=1,{size:[0,0],image:new Uint32Array(0),sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:r};this._renderedLineHeight=Math.round(this._lineHeight),this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._renderedWidth=l,this._renderedHeight=h,this._lineThroughWidthOffset*=e.pixelRatio;const c=(e.outline&&e.outline.color)??[0,0,0,0],u=e.color??[0,0,0,0],f=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=I(u),this._outlineStyle=I(c),this._haloStyle=L(f);const d=this._renderedLineHeight,m=this._renderedOutlineSize,g=this._renderedHaloSize;i.save(),i.clearRect(0,0,r.width,r.height),v(i,e);const p=a*e.pixelRatio,y=F(i.textAlign,this._renderedWidth-2*p,this._renderedHaloSize+this._renderedOutlineSize)+p,S=g+m+p,_=g>0;let x=this._lineThroughWidthOffset,M=0;if(o){i.save();const t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);i.fillStyle=I(t),i.strokeStyle=I(s),i.lineWidth=n,i.fillRect(0,0,r.width,r.height),i.strokeRect(0,0,r.width,r.height),i.restore()}_&&this._renderHalo(i,y,S,x,M,e),m>0&&this._renderOutline(i,y,S,x,M,e),M+=S,x+=y;for(const t of this._textLines)_?(i.globalCompositeOperation="destination-out",i.fillStyle="rgb(0, 0, 0)",i.fillText(t,x,M),i.globalCompositeOperation="source-over",i.fillStyle=this._fillStyle,i.fillText(t,x,M)):(i.fillStyle=this._fillStyle,i.fillText(t,x,M)),s&&"none"!==s&&this._renderDecoration(i,x,M,s,n),M+=d;i.restore();const b=this._renderedWidth+2*this._lineThroughWidthOffset,w=this._renderedHeight,C=i.getImageData(0,0,b,w),k=new Uint8Array(C.data);if(e.premultiplyColors){let t;for(let e=0;e<k.length;e+=4)t=k[e+3]/255,k[e]=k[e]*t,k[e+1]=k[e+1]*t,k[e+2]=k[e+2]*t}let P,T;switch(e.horizontalAlignment){case"left":P=-.5;break;case"right":P=.5;break;default:P=0}switch(e.verticalAlignment){case"bottom":T=-.5;break;case"top":T=.5;break;case"baseline":T=-1/6;break;default:T=0}return{size:[b,w],image:new Uint32Array(k.buffer),sdf:!1,simplePattern:!1,anchorX:P,anchorY:T,canvas:r}}_renderHalo(t,e,r,i,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),v(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._haloStyle,h.strokeStyle=this._haloStyle,h.lineJoin="round",this._renderOutlineNative(h,e,r,c,u,this._renderedHaloSize+this._renderedOutlineSize),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,i,s,o,a),t.globalAlpha=1}_renderOutline(t,e,r,i,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),v(h,n);const{decoration:c,weight:u}=n.font;h.fillStyle=this._outlineStyle,h.strokeStyle=this._outlineStyle,h.lineJoin="round",this._renderOutlineNative(h,e,r,c,u,this._renderedOutlineSize),t.globalAlpha=this._parameters.outline.color[3],t.drawImage(l,0,0,o,a,i,s,o,a),t.globalAlpha=1}_renderOutlineNative(t,e,r,i,s,n){const o=this._renderedLineHeight;for(const a of this._textLines){const l=2*n,h=5,c=.1;for(let n=0;n<h;n++){const o=(1-(h-1)*c+n*c)*l;t.lineWidth=o,t.strokeText(a,e,r),i&&"none"!==i&&this._renderDecoration(t,e,r,i,s,o)}r+=o}}computeTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas,i=r.getContext("2d");v(i,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();const s=this._computeTextWidth(i,e),n=this._lineHeight*this._textLines.length;return r.width=s,r.height=n,[s*e.pixelRatio,n*e.pixelRatio]}computeRichTextSize(t,e){this._textRasterizationCanvas||(this._textRasterizationCanvas=document.createElement("canvas"));const r=this._textRasterizationCanvas.getContext("2d"),i=this._layoutRichTextRuns(r,t,e),s=Math.max(...i.map(t=>t.width),0),n=i.reduce((t,e)=>t+e.height,0);return[s*e.pixelRatio,n*e.pixelRatio]}_renderRichTextOutline(t,e,r,i,s,n){const o=this._renderedWidth,a=this._renderedHeight;this._outlineRasterizationCanvas||(this._outlineRasterizationCanvas=document.createElement("canvas")),this._outlineRasterizationCanvas.width=o,this._outlineRasterizationCanvas.height=a;const l=this._outlineRasterizationCanvas,h=l.getContext("2d");h.clearRect(0,0,o,a),h.fillStyle=n===this._renderedOutlineSize?this._outlineStyle:this._haloStyle,h.strokeStyle=h.fillStyle,h.lineJoin="round";let c=i;for(const t of e){let e=r;"center"===s.horizontalAlignment?e+=(this._renderedWidth-t.width)/2:"right"===s.horizontalAlignment&&(e+=this._renderedWidth-t.width-this._renderedHaloSize-this._renderedOutlineSize);let i=e;for(const e of t.segments){v(h,e.parameters,"left",e.characterSpacing);const t=2*n,r=5,s=.1;for(let n=0;n<r;n++){const o=1-(r-1)*s+n*s;h.lineWidth=o*t,this._renderRichTextSegment(h,e,i,c,"stroke")}i+=e.width}if(s.font.decoration&&"none"!==s.font.decoration){const r=this._renderedWidth;this._renderedWidth=t.width,h.textAlign="left",this._renderDecoration(h,e,c,s.font.decoration,s.font.weight,2*n),this._renderedWidth=r}c+=t.height}n===this._renderedOutlineSize?t.globalAlpha=this._parameters.outline.color[3]:t.globalAlpha=this._parameters.halo.color[3],t.drawImage(l,0,0,o,a,this._lineThroughWidthOffset,0,o,a),t.globalAlpha=1}_layoutRichTextRuns(t,e,r){const i=[{segments:[],width:0,height:this._measureLineHeight(r)}];for(const s of e){const e=s.text.split(/\r?\n/),n=A(r,s);for(let o=0;o<e.length;o++){const a=e[o],l=i[i.length-1];if(a.length>0){const e=this._measureRichTextSegmentWidth(t,a,n,s.characterSpacing);l.segments.push({text:a,width:e,parameters:n,characterSpacing:s.characterSpacing}),l.width+=e,l.height=Math.max(l.height,this._measureLineHeight(n))}o<e.length-1&&i.push({segments:[],width:0,height:this._measureLineHeight(r)})}}return i}_measureTextWidthWithSpacing(t,e,r,i){const s=this._parameters,n=this._textLines;this._parameters=r,this._textLines=[e],v(t,r,"left",i);const o=this._computeTextWidth(t,r);return this._parameters=s,this._textLines=n,o}_measureRichTextSegmentWidth(t,e,r,i){return this._measureTextWidthWithSpacing(t,e,r,i)}_renderRichTextSegment(t,e,r,i,s){"fill"===s?t.fillText(e.text,r,i):t.strokeText(e.text,r,i)}_measureLineHeight(t){const e=this._parameters;this._parameters=t;const r=this._computeLineHeight();return this._parameters=e,r}_computeTextWidth(t,e){let r=0;for(const e of this._textLines)r=Math.max(r,t.measureText(e).width);const i=e.font;return("italic"===i.style||"oblique"===i.style||"string"==typeof i.weight&&("bold"===i.weight||"bolder"===i.weight)||"number"==typeof i.weight&&i.weight>600)&&(r+=.3*t.measureText("w").width),r+=2*(0,a.Lz)(this._parameters.halo.size),Math.round(r)}_computeLineHeightBase(){return 1.275*this._parameters.size}_computeLineHeight(){let t=this._computeLineHeightBase();const e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,a.Lz)(this._parameters.halo.size))}_renderDecoration(t,e,r,i,s,n){let o=.9*this._lineHeight;const a="bold"===s?.06:"bolder"===s?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}const l=t.textBaseline;if("underline"===i)switch(o=.9*this._computeLineHeightBase(),l){case"top":r+=o;break;case"middle":r+=o/2}else if("line-through"===i)switch(l){case"top":r+=o/1.5;break;case"middle":r+=o/3}const h=n?1.5*n:Math.ceil(o*a);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=h,t.moveTo(e-this._lineThroughWidthOffset,r),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,r),t.stroke(),t.restore()}}function v(t,e,r,i=0){const s=Math.max(e.size,.5),n=e.font,o=`${n.style} ${n.weight} ${(0,a.Lz)(s).toFixed(1)}px ${n.family}, sans-serif`;t.font=o,t.textBaseline="top",function(t,e){t.letterSpacing=e>0?`${e}em`:"0px"}(t,i);let l=r??"left";if(!r)switch(e.horizontalAlignment){case"left":default:l="left";break;case"right":l="right";break;case"center":l="center"}t.textAlign=l}function A(t,e){return{...t,color:e.color??t.color,font:{...t.font,family:e.font.family??t.font.family,style:e.font.style??t.font.style,weight:e.font.weight??t.font.weight},size:e.fontSize}}function F(t,e,r){return"center"===t?.5*e:"right"===t?e-r:r}var E=r(93397),D=r(75434),U=r(69221);const B=Math.PI/180,H=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class N{constructor(t){this._t=t}static createIdentity(){return new N([1,0,0,0,1,0])}clone(){const t=this._t;return new N(t.slice())}transform(t){const e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new N([t,0,0,0,e,0])}scale(t,e){const r=this._t;return r[0]*=t,r[1]*=t,r[2]*=t,r[3]*=e,r[4]*=e,r[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new N([0,0,t,0,0,e])}translate(t,e){const r=this._t;return r[2]+=t,r[5]+=e,this}static createRotate(t){const e=Math.cos(t),r=Math.sin(t);return new N([e,-r,0,r,e,0])}rotate(t){return N.multiply(this,N.createRotate(t),this)}angle(){const t=this._t[0],e=this._t[3],r=Math.sqrt(t*t+e*e);return[t/r,e/r]}static multiply(t,e,r){const i=t._t,s=e._t,n=i[0]*s[0]+i[3]*s[1],o=i[1]*s[0]+i[4]*s[1],a=i[2]*s[0]+i[5]*s[1]+s[2],l=i[0]*s[3]+i[3]*s[4],h=i[1]*s[3]+i[4]*s[4],c=i[2]*s[3]+i[5]*s[4]+s[5],u=r._t;return u[0]=n,u[1]=o,u[2]=a,u[3]=l,u[4]=h,u[5]=c,r}invert(){const t=this._t;let e=t[0]*t[4]-t[1]*t[3];if(0===e)return new N([0,0,0,0,0,0]);e=1/e;const r=(t[1]*t[5]-t[2]*t[4])*e,i=(t[2]*t[3]-t[0]*t[5])*e,s=t[4]*e,n=-t[1]*e,o=-t[3]*e,a=t[0]*e;return new N([s,n,r,o,a,i])}}class O{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._textScaling=[],this._geomUnitsPerPoint=1,this._placementPool=new y.A(()=>new m.W,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||N.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1),this._textScaling.push(1)}setTransform(t,e){this._transfos=[t||N.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)],this._textScaling=[1]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}scaleText(t){return t*this._textScaling[this._textScaling.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformScalar(t){return t/this._transfos[this._transfos.length-1].scaleRatio()}reverseScaleText(t){return t/this._textScaling[this._textScaling.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}prevGeomUnitsPerPoint(){return this._transfos.length>2?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e=!1,r=1){const i=e?t.scaleRatio():1;N.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*i),this._textScaling.push(this._textScaling[this._textScaling.length-1]*r)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1),this._textScaling.splice(-1,1)}drawSymbol(t,e,r){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,r)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;const r=t.symbolLayers;if(!r)return;const i=t.effects;if(i&&i.length>0){const t=this.executeEffects(i,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(r,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(r,e)}executeEffects(t,e){const r=this.geomUnitsPerPoint(),i=(0,E.ll)(t);let s=new d.kT(S.z.fromJSONCIM(e));for(const n of t){const t=(0,b.A)(n);t&&(s=t.execute(s,n,{geomUnitsPerPoint:r,tileKey:null,maxInflateSize:i,scale:null,spatialReference:e.spatialReference,preventClipping:!1}))}return s}drawSymbolLayers(t,e){let r=t.length;for(;r--;){const i=t[r];if(!i||!1===i.enable)continue;const s=i.effects;if(s&&s.length>0){const t=this.executeEffects(s,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(i,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(i,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color,t.path);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit,t.path);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){const r=function(t,e,r){let i=(0,E.$w)(t.separation,w.D.CIMHatchFill.separation)*r,s=(0,E.$w)(t.rotation);if(0===i)return null;i<0&&(i=-i);let n=0;const o=.5*i;for(;n>o;)n-=i;for(;n<-o;)n+=i;const a=(0,l.vt)();(0,h.Rg)(a,e),a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o;const c=[[a[0],a[1]],[a[0],a[3]],[a[2],a[3]],[a[2],a[1]]];for(;s>180;)s-=180;for(;s<0;)s+=180;const u=Math.cos(s*B),f=Math.sin(s*B),d=-i*f,m=i*u;let g,p,y,S;n=(0,E.$w)(t.offsetX)*r*f-(0,E.$w)(t.offsetY)*r*u,g=y=Number.MAX_VALUE,p=S=-Number.MAX_VALUE;for(const t of c){const e=t[0],r=t[1],i=u*e+f*r,s=-f*e+u*r;g=Math.min(g,i),y=Math.min(y,s),p=Math.max(p,i),S=Math.max(S,s)}y=Math.floor(y/i)*i;let _=u*g-f*y-d*n/i,x=f*g+u*y-m*n/i,M=u*p-f*y-d*n/i,b=f*p+u*y-m*n/i;const C=1+Math.round((S-y)/i),k=[];for(let t=0;t<C;t++)_+=d,x+=m,M+=d,b+=m,k.push([[_,x],[M,b]]);return{paths:k}}(e,t,this.geomUnitsPerPoint());r&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,r),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){const r=t.markerPlacement;if(r){const i=(0,b.c)(r);if(i){const s="CIMMarkerPlacementInsidePolygon"===r.type||"CIMMarkerPlacementPolygonCenter"===r.type&&r.clipAtBoundary;s&&this.pushClipPath(e);const n=i.execute(S.z.fromJSONCIM(e),r,this.geomUnitsPerPoint(),null);if(n){let e=null;for(;(e=n.next())&&(this.drawMarker(t,e),!this._earlyReturn););}s&&this.popClipPath()}}else{const r=this._placementPool.acquire();if((0,x.fT)(e))r.tx=e.x,r.ty=e.y,this.drawMarker(t,r);else if((0,x.Bi)(e)){const i=(0,_.l8)(e);i&&([r.tx,r.ty]=i,this.drawMarker(t,r))}else if((0,x.Rg)(e)){for(const i of e.paths)for(const e of i)if(r.tx=e[0],r.ty=e[1],this.drawMarker(t,r),this._earlyReturn)break}else for(const i of e.points)if(r.tx=i[0],r.ty=i[1],this.drawMarker(t,r),this._earlyReturn)break;this._placementPool.release(r)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;const r=this._resourceManager.getResource(t.url),i=(0,E.$w)(t.size,w.D.CIMPictureMarker.size);if(null==r||i<=0)return;const s=r.width,n=r.height;if(!s||!n)return;const o=s/n,a=(0,E.$w)(t.scaleX,1),l=N.createIdentity(),h=t.anchorPoint;if(h){let e=h.x,r=h.y;"Absolute"!==t.anchorPointUnits&&(e*=i*o*a,r*=i),l.translate(-e,-r)}let c=(0,E.$w)(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&l.rotate(c*B);let u=(0,E.$w)(t.offsetX),f=(0,E.$w)(t.offsetY);if(u||f){if(this._mapRotation){const t=B*this._mapRotation,e=Math.cos(t),r=Math.sin(t),i=u*r+f*e;u=u*e-f*r,f=i}l.translate(u,f)}const d=this.geomUnitsPerPoint();1!==d&&l.scale(d,d);const m=e.getAngle();m&&l.rotate(m),l.translate(e.tx,e.ty),this.push(l),this.drawImage(t,i),this.pop()}drawVectorMarker(t,e){if(!t)return;const r=t.markerGraphics;if(!r)return;const i=(0,E.$w)(t.size,w.D.CIMVectorMarker.size),s=t.frame,n=s?s.ymax-s.ymin:0,o=i&&n?i/n:1,a=N.createIdentity();s&&a.translate(.5*-(s.xmax+s.xmin),.5*-(s.ymax+s.ymin));const l=t.anchorPoint;if(l){let e=l.x,r=l.y;"Absolute"!==t.anchorPointUnits?s&&(e*=s.xmax-s.xmin,r*=s.ymax-s.ymin):(e/=o,r/=o),a.translate(-e,-r)}1!==o&&a.scale(o,o);let h=(0,E.$w)(t.rotation);t.rotateClockwise&&(h=-h),this._mapRotation&&(h+=this._mapRotation),h&&a.rotate(h*B);let c=(0,E.$w)(t.offsetX),u=(0,E.$w)(t.offsetY);if(c||u){if(this._mapRotation){const t=B*this._mapRotation,e=Math.cos(t),r=Math.sin(t),i=c*r+u*e;c=c*e-u*r,u=i}a.translate(c,u)}const f=this.geomUnitsPerPoint();1!==f&&a.scale(f,f);const d=e.getAngle();d&&a.rotate(d),a.translate(e.tx,e.ty);const m=t.scaleSymbolsProportionally?1:o;this.push(a,t.scaleSymbolsProportionally,m);for(const t of r){t?.symbol&&t.geometry||H().error("Invalid marker graphic",t);let e=t.textString;if("number"==typeof e&&(e=e.toString()),this.drawSymbol(t.symbol,t.geometry,e),this._earlyReturn)break}this.pop()}drawTextSymbol(t,e,r){if(!t)return;if(!(0,x.fT)(e))return;if((0,E.$w)(t.height,w.D.CIMTextSymbol.height)<=0)return;const i=N.createIdentity();let s=(0,E.$w)(t.angle);s=-s,s&&i.rotate(s*B);const n=(0,E.$w)(t.offsetX),o=(0,E.$w)(t.offsetY);(n||o)&&i.translate(n,o);const a=this.geomUnitsPerPoint();1!==a&&i.scale(a,a),i.translate(e.x,e.y),this.push(i),this.drawText(t,r),this.pop()}}class W extends O{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new T(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,l.fA)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,x.Bi)(t))this._processPath(t.rings,0);else if((0,x.Rg)(t))this._processPath(t.paths,0);else if((0,x.ZC)(t)){const e=V(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,r){if(!t||this._clipCount>0||null==r||r<=0)return;const i=Math.max(.5*this.transformSize((0,E.$w)(r,w.D.CIMSolidStroke.width)),.25);if((0,x.Bi)(t))this._processPath(t.rings,i);else if((0,x.Rg)(t))this._processPath(t.paths,i);else if((0,x.ZC)(t)){const e=V(t);e&&this._processPath(e.rings,i)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,x.Bi)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){const{url:r}=t,i=(0,E.$w)(t.scaleX,1);let s=i*e,n=e;const o=this._resourceManager.getResource(r);if(null!=o){const t=o.height/o.width;s=i*(e?t>1?e:e/t:o.width),n=e?t>1?e*t:e:o.height}this._merge(this.transformPt([-s/2,-n/2]),0),this._merge(this.transformPt([-s/2,n/2]),0),this._merge(this.transformPt([s/2,-n/2]),0),this._merge(this.transformPt([s/2,n/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new z);const r=X(t),i=(0,R.Z)({textString:e,font:r.font,symbol:t,supportsRichText:(0,R.q)(e)});let[s,n]=i?this._textRasterizer.computeRichTextSize(i,r):this._textRasterizer.computeTextSize(e,r);s=(0,a.PN)(s),n=(0,a.PN)(n);const o=this.transformSize(1)*this.reverseTransformScalar(1);s*=o,n*=o;const l=t.horizontalAlignment??w.D.CIMTextSymbol.horizontalalignment,h=t.verticalAlignment??w.D.CIMTextSymbol.verticalalignment;let c=0;switch(l){case"Left":c=s/2;break;case"Right":c=-s/2}let u=0;switch(h){case"Bottom":u=n/2;break;case"Top":u=-n/2;break;case"Baseline":u=n/6}this._merge(this.transformPt([-s/2+c,-n/2+u]),0),this._merge(this.transformPt([-s/2+c,n/2+u]),0),this._merge(this.transformPt([s/2+c,-n/2+u]),0),this._merge(this.transformPt([s/2+c,n/2+u]),0)}_processPath(t,e){if(t)for(const r of t){const t=r?r.length:0;if(t>1){this._merge(this.transformPt(r[0]),e);for(let i=1;i<t;i++)this._merge(this.transformPt(r[i]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class $ extends O{constructor(t,e,r,i){super(e,r),this._applyAdditionalRenderProps=i,this._colorSubstitutionHelper=new M,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,x.Bi)(t))this._buildPath(t.rings,!0);else if((0,x.Rg)(t))this._buildPath(t.paths,!0);else if((0,x.ZC)(t))this._buildPath(V(t).rings,!0);else{if(!(0,x.U9)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}const r=this._ctx;r.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",r.fill("evenodd")}drawSolidStroke(t,e,r,i,s,n){if(!t||!e||0===r)return;if((0,x.Bi)(t))this._buildPath(t.rings,!0);else if((0,x.Rg)(t))this._buildPath(t.paths,!1);else{if(!(0,x.ZC)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(V(t).rings,!0)}const o=this._ctx;o.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",o.lineWidth=Math.max(this.transformSize(r),.5),this._setCapStyle(i),this._setJoinStyle(s),o.miterLimit=n,o.stroke()}pushClipPath(t){if(this._ctx.save(),(0,x.Bi)(t))this._buildPath(t.rings,!0);else if((0,x.Rg)(t))this._buildPath(t.paths,!0);else{if(!(0,x.ZC)(t))return;this._buildPath(V(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){const{colorSubstitutions:r,url:i,tintColor:s}=t,n=(0,E.$w)(t.scaleX,1),o=this._resourceManager.getResource(i);if(null==o)return;let a=e*(o.width/o.height),l=e;e||(a=o.width,l=o.height);const h=(0,E.UE)(i)||"src"in o&&(0,E.UE)(o.src);let c="getFrame"in o?C(o):o;r&&(c=this._colorSubstitutionHelper.applyColorSubstitution(c,r)),this._applyAdditionalRenderProps&&!h&&s&&(c=this._colorSubstitutionHelper.tintImageData(c,s));const u=this.transformPt([0,0]),[f,d]=this.getTransformAngle(),m=this.transformSize(1),g=this._ctx;g.save(),g.setTransform({m11:n*m*f,m12:n*m*d,m21:-m*d,m22:m*f,m41:u[0],m42:u[1]}),g.drawImage(c,-a/2,-l/2,a,l),g.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||(this._textRasterizer=new z);const r=X(t,this.transformSize((0,a.PN)(1))),i=(0,R.Z)({textString:e,font:r.font,symbol:t,supportsRichText:(0,R.q)(e)}),s=i?this._textRasterizer.rasterizeRichText(i,r):this._textRasterizer.rasterizeText(e,r);if(!s)return;const{size:n,anchorX:o,anchorY:l,canvas:h}=s,c=n[0]*(o+.5),u=n[1]*(l-.5),f=this._ctx,d=this.transformPt([0,0]),[m,g]=this.getTransformAngle();f.save(),f.setTransform({m11:1*m,m12:1*g,m21:-1*g,m22:1*m,m41:d[0]-1*c,m42:d[1]+1*u}),f.drawImage(h,0,0),f.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:r,height:i,offsetX:s,offsetY:n,rotation:o,scaleX:a,tintColor:l,url:h}=e;const c=this._resourceManager.getResource(h);if(null==c)return;if((0,x.Bi)(t))this._buildPath(t.rings,!0);else if((0,x.Rg)(t))this._buildPath(t.paths,!0);else if((0,x.ZC)(t))this._buildPath(V(t).rings,!0);else{if(!(0,x.U9)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}const u=this._ctx,f=(0,E.UE)(h)||"src"in c&&(0,E.UE)(c.src);let d,m="getFrame"in c?C(c):c;if(r&&(m=this._colorSubstitutionHelper.applyColorSubstitution(m,r)),this._applyAdditionalRenderProps){f||l&&(m=this._colorSubstitutionHelper.tintImageData(m,l)),d=u.createPattern(m,"repeat");const t=this.transformSize(1);o||(o=0),s?s*=t:s=0,n?n*=t:n=0,i&&(i*=t);const e=i?i/c.height:1,r=a&&i?a*i/c.width:1;if(0!==o||1!==e||1!==r||0!==s||0!==n){const t=new DOMMatrix;t.rotateSelf(0,0,-o).translateSelf(s,n).scaleSelf(r,e,1),d.setTransform(t)}}else d=u.createPattern(m,"repeat");u.save(),u.fillStyle=d,u.fill("evenodd"),u.restore()}drawPictureStroke(t,e){if(!t)return;let{colorSubstitutions:r,capStyle:i,joinStyle:n,miterLimit:o,tintColor:l,url:h,width:c}=e;const u=this._resourceManager.getResource(h);if(null==u)return;let f;if((0,x.Bi)(t))f=t.rings;else if((0,x.Rg)(t))f=t.paths;else{if(!(0,x.ZC)(t))return(0,x.U9)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;f=V(t).rings}c||(c=u.width);const d=(0,E.UE)(h)||"src"in u&&(0,E.UE)(u.src);let m="getFrame"in u?C(u):u;r&&(m=this._colorSubstitutionHelper.applyColorSubstitution(m,r)),this._applyAdditionalRenderProps&&(d||l&&(m=this._colorSubstitutionHelper.tintImageData(m,l)));const g=Math.max(this.transformSize((0,a.Lz)(c)),.5),p=g/m.width,y=this._ctx,S=y.createPattern(m,"repeat-y");let _,M;y.save(),this._setCapStyle(i),this._setJoinStyle(n),void 0!==o&&(y.miterLimit=o),y.lineWidth=g;for(let t of f)if(t=(0,s.o8)(t),Y(t),t&&!(t.length<=1)){_=this.transformPt(t[0]);for(let e=1;e<t.length;e++){M=this.transformPt(t[e]);const r=G(_,M),i=new DOMMatrix;i.translateSelf(0,_[1]-g/2).scaleSelf(p,p,1).rotateSelf(0,0,90-r),S.setTransform(i),y.strokeStyle=S,y.beginPath(),y.moveTo(_[0],_[1]),y.lineTo(M[0],M[1]),y.stroke(),_=M}}y.restore()}drawGradientFill(t,e){if(!t)return;let r;if((0,x.Bi)(t))r=t.rings;else if((0,x.Rg)(t))r=t.paths;else{if(!(0,x.ZC)(t))return void H().error("Unable to draw gradient fill");r=V(t).rings}this._buildPath(r,!0);const{angle:i,gradientMethod:s,gradientSize:n,gradientSizeUnits:o}=e,h=w.D.CIMGradientFill,c=e.gradientType??h.gradientType,u=-(0,p.kU)(i??0),f=(0,l.Ie)();for(const t of r){const e=t?t.length:0;if(e>1)for(let r=0;r<e;r++){let e=this.transformPt(t[r]);"Linear"!==s&&"Rectangular"!==s||(e=k(e,-u)),(0,l.tK)(f,e)}}const[d,m,g,y]=f,S=this._ctx;switch(S.save(),s){case"Buffered":H().error(`Gradient method "${s}" currently unsupported.`);break;case"Linear":{const t=(m+y)/2,r="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,E.yX)(n,h.gradientSize)*(g-d),[i,s]="Discrete"===c?[g,g-r]:[d+r,d],l=k([i,t],u),f=k([s,t],u),p=S.createLinearGradient(l[0],l[1],f[0],f[1]);(0,P.AH)(p,e),S.fillStyle=p,S.fill("evenodd");break}case"Circular":{const t=(0,l.gX)(f),r=(0,l.ib)(f)/2,i="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,E.yX)(n,h.gradientSize)*r,[s,u]="Discrete"===c?[r,r-i]:[i,0],d=S.createRadialGradient(t[0],t[1],s,t[0],t[1],u);(0,P.AH)(d,e),S.fillStyle=d,S.fill("evenodd");break}case"Rectangular":{const r=(0,l.gX)(f),i=r[0],s=r[1],p=k(r,u),_=(r,i,s,n,o,a,l,h)=>{S.save(),this.pushClipPath(t);const c=k([o,a],u),f=k([l,h],u);S.beginPath(),S.moveTo(p[0],p[1]),S.lineTo(c[0],c[1]),S.lineTo(f[0],f[1]),S.lineTo(p[0],p[1]),S.clip();const d=k([r,i],u),m=k([s,n],u),g=S.createLinearGradient(d[0],d[1],m[0],m[1]);(0,P.AH)(g,e),S.fillStyle=g,S.fill("evenodd"),S.restore()};let x="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,E.yX)(n,h.gradientSize)*((0,l.VL)(f)/2),[M,b]="Discrete"===c?[g,g-x]:[i+x,i];_(M,s,b,s,g,m,g,y),[M,b]="Discrete"===c?[d,d+x]:[i-x,i],_(M,s,b,s,d,y,d,m),x="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,E.yX)(n,h.gradientSize)*((0,l.uJ)(f)/2);let[w,C]="Discrete"===c?[y,y-x]:[s+x,s];_(i,w,i,C,g,y,d,y),[w,C]="Discrete"===c?[m,m+x]:[s-x,s],_(i,w,i,C,d,m,g,m);break}}S.restore()}drawGradientStroke(t,e){const{capStyle:r,gradientMethod:i,gradientSize:n,gradientSizeUnits:o,joinStyle:l,miterLimit:h,width:c}=e;if(!t||0===c)return;let u;if((0,x.Bi)(t))u=t.rings;else if((0,x.Rg)(t))u=t.paths;else{if(!(0,x.ZC)(t))return void H().error("Unable to draw gradient stroke");u=V(t).rings}const f=e.gradientType??w.D.CIMGradientStroke.gradientType,d=Math.max(this.transformSize((0,a.Lz)(c)),.5),m=this._ctx;let g,p;m.save(),this._setCapStyle(r),this._setJoinStyle(l),void 0!==h&&(m.miterLimit=h),m.lineWidth=d;for(let t of u){if(t=(0,s.o8)(t),Y(t),!t||t.length<=1)continue;let r=0;g=this.transformPt(t[0]);for(let e=1;e<t.length;e++){p=this.transformPt(t[e]);const i=p[0]-g[0],s=p[1]-g[1];r+=Math.sqrt(i*i+s*s),g=p}const l="Absolute"===o?this.transformSize((0,a.Lz)(n)):(0,E.yX)(n,w.D.CIMGradientStroke.gradientSize)*("AcrossLine"===i?d:r);let h=0;g=this.transformPt(t[0]);for(let s=1;s<t.length;s++){p=this.transformPt(t[s]);const n=p[0]-g[0],o=p[1]-g[1],a=Math.sqrt(n*n+o*o);let c,u,y,S;switch(i){case"AcrossLine":{const[t,e]=k([n/a,o/a],-Math.PI/2),r=d/2,i="Discrete"===f?r:l-r;c=(g[0]+p[0])/2+t*i,u=(g[1]+p[1])/2+e*i,y=c-t*l,S=u-e*l;break}case"AlongLine":{const t=n/a,e=o/a;"Discrete"===f?(c=g[0]-t*h,u=g[1]-e*h,y=c+t*l,S=u+e*l):(y=g[0]+t*(r-h),S=g[1]+e*(r-h),c=y-t*l,u=S-e*l);break}default:return H().error("Unrecognized gradient method:",i),void m.restore()}const _=m.createLinearGradient(c,u,y,S);(0,P.AH)(_,e),m.strokeStyle=_,m.beginPath(),m.moveTo(g[0],g[1]),m.lineTo(p[0],p[1]),m.stroke(),h+=a,g=p}}m.restore()}_buildPath(t,e){const r=this._ctx;if(r.beginPath(),t)for(const i of t){const t=i?i.length:0;if(t>1){let s=this.transformPt(i[0]);r.moveTo(s[0],s[1]);for(let e=1;e<t;e++)s=this.transformPt(i[e]),r.lineTo(s[0],s[1]);e&&r.closePath()}}}_setCapStyle(t){switch(t){case"Butt":this._ctx.lineCap="butt";break;case"Round":this._ctx.lineCap="round";break;case"Square":this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case"Bevel":this._ctx.lineJoin="bevel";break;case"Round":this._ctx.lineJoin="round";break;case"Miter":this._ctx.lineJoin="miter"}}}function G(t,e){const r=e[0]-t[0],i=e[1]-t[1];return 180/Math.PI*Math.atan2(i,r)}const V=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null;function X(t,e=1){const r=(0,E.DW)(t),i=(0,E._d)(t.fontStyleName),s=t.fontFamilyName??g.Vb,{weight:n,style:o}=i,a=e*(t.height||5),l=(0,E.Bu)(t.horizontalAlignment),h=(0,E.Nl)(t.verticalAlignment),c=(0,E.pM)(t),u=(0,E.pM)(t.haloSymbol),f=null!=u?e*(t.haloSize??0):0,d=(0,E._1)(t.symbol),m=e*((0,E.xo)(t.symbol)||0),p="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,y=(0,E.pM)(p),S=(0,E.xo)(p),_=(0,E._1)(p);return{color:c,size:a,horizontalAlignment:l,verticalAlignment:h,font:{family:s,style:(0,E.pV)(o),weight:(0,E.Kn)(n),decoration:r},outline:{size:m||0,color:d},halo:{size:f||0,color:u,style:o},backgroundColor:y,borderLine:null!=S&&null!=_?{size:S,color:_}:null,pixelRatio:1,premultiplyColors:!0}}function Y(t){let e,r,i,s,n,o=t[0],a=1;for(;a<t.length;)e=t[a][0]-o[0],r=t[a][1]-o[1],s=0!==e?r/e:Math.PI/2,void 0!==i&&Math.abs(s-i)<=1e-4?(t.splice(a-1,1),o=n):(n=o,o=t[a],a++),i=s}var q=r(59868),Z=r(13195);const J=Math.PI,j=J/2,K=Math.PI/180,Q=96/72,tt=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolHelper");function et(t){let e;switch(t.type){case"cim":return t.data;case"web-style":return t;case"simple-marker":{const r=nt.fromSimpleMarker(t);if(!r)throw new Error("InternalError: Cannot convert symbol to CIM");e=r;break}case"picture-marker":e=nt.fromPictureMarker(t);break;case"simple-line":e=nt.fromSimpleLineSymbol(t);break;case"simple-fill":e=nt.fromSimpleFillSymbol(t);break;case"picture-fill":e=nt.fromPictureFillSymbol(t);break;case"text":e=nt.fromTextSymbol(t)}return{type:"CIMSymbolReference",symbol:e}}function rt(t,e,r){switch(e.type){case"CIMSymbolReference":return rt(t,e.symbol,r);case"CIMPointSymbol":null==r&&(r={x:0,y:0}),t.drawSymbol(e,r);break;case"CIMLineSymbol":null==r&&(r={paths:[[[0,0],[10,0]]]}),t.drawSymbol(e,r);break;case"CIMPolygonSymbol":null==r&&(r={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}),t.drawSymbol(e,r);break;case"CIMTextSymbol":{const r={x:0,y:0};t.drawSymbol(e,r);break}case"CIMVectorMarker":{const r=new m.W;t.drawMarker(e,r);break}}return t.envelope()}function it(t){if(!t)return 0;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(t.offset??0);default:return 0}}class st{static getSymbolInflateSize(t,e,r,i,s){return t||(t=[0,0,0,0]),e?this._getInflateSize(t,e,r,i,s):t}static safeSize(t){const e=Math.max(Math.abs(t[0]),Math.abs(t[2])),r=Math.max(Math.abs(t[1]),Math.abs(t[3]));return Math.sqrt(e*e+r*r)}static _vectorMarkerBounds(t,e,r,i){let s=!0;const n=(0,l.vt)();if(e?.markerGraphics)for(const o of e.markerGraphics){const e=[0,0,0,0];o.geometry&&((0,h.Rg)(n,o.geometry),e[0]=0,e[1]=0,e[2]=0,e[3]=0,this.getSymbolInflateSize(e,o.symbol,r,0,i),n[0]+=e[0],n[1]+=e[1],n[2]+=e[2],n[3]+=e[3],s?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],s=!1):(t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])))}return t}static _getInflateSize(t,e,r,i,s){if(function(t){return void 0!==t.symbolLayers}(e)){const n=this._getLayersInflateSize(t,e.symbolLayers,r,i,s),o=(0,E.ll)(e.effects);return o>0&&(n[0]-=o,n[1]-=o,n[2]+=o,n[3]+=o),n}return this._getTextInflatedSize(t,e,s)}static _getLayersInflateSize(t,e,r,i,s){let n=!0;if(!e)return t;for(const o of e){if(!o)continue;let e=[0,0,0,0];switch(o.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const t=o;let r=t.width;null!=r&&("Square"===t.capStyle||"Miter"===t.joinStyle?r/=1.4142135623730951:r/=2,e[0]=-r,e[1]=-r,e[2]=r,e[3]=r);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{const t=o;if("CIMVectorMarker"===o.type){const t=o;if(e=this._vectorMarkerBounds(e,t,r,s),t.frame){const r=(t.frame.xmin+t.frame.xmax)/2,i=(t.frame.ymin+t.frame.ymax)/2;if(e[0]-=r,e[1]-=i,e[2]-=r,e[3]-=i,null!=t.size){const r=t.size/(t.frame.ymax-t.frame.ymin);e[0]*=r,e[1]*=r,e[2]*=r,e[3]*=r}}}else if("CIMPictureMarker"===o.type){const i=o,s=r.getResource(i.url);let n=1;if(null!=s&&s.height&&(n=s.width/s.height),null!=t.size){const r=t.size/2,s=t.size*n*(i.scaleX??1)/2;e=[-s,-r,s,r]}}else if(null!=t.size){const r=t.size/2;e=[-r,-r,r,r]}if(t.anchorPoint){let r,i;"Absolute"===t.anchorPointUnits?(r=t.anchorPoint.x,i=t.anchorPoint.y):(r=t.anchorPoint.x*(e[2]-e[0]),i=t.anchorPoint.y*(e[3]-e[1]));const s=1.25*Math.sqrt(r*r+i*i);e[0]-=s,e[1]-=s,e[2]+=s,e[3]+=s}let n=(0,E.$w)(t.rotation);if(t.rotateClockwise&&(n=-n),i&&(n-=i),n){const t=K*n,r=Math.cos(t),i=Math.sin(t),s=(0,l.vt)([Z.MG,Z.MG,-Z.MG,-Z.MG]);(0,l.tK)(s,[e[0]*r-e[1]*i,e[0]*i+e[1]*r]),(0,l.tK)(s,[e[0]*r-e[3]*i,e[0]*i+e[3]*r]),(0,l.tK)(s,[e[2]*r-e[1]*i,e[2]*i+e[1]*r]),(0,l.tK)(s,[e[2]*r-e[3]*i,e[2]*i+e[3]*r]),e=s}let a=(0,E.$w)(t.offsetX),h=(0,E.$w)(t.offsetY);if(i){const t=K*i,e=Math.cos(t),r=Math.sin(t),s=a*r+h*e;a=a*e-h*r,h=s}e[0]+=a,e[1]+=h,e[2]+=a,e[3]+=h;const c=it(t.markerPlacement);c>0&&(e[0]-=c,e[1]-=c,e[2]+=c,e[3]+=c);break}}const a=(0,E.ll)(o.effects);a>0&&(e[0]-=a,e[1]-=a,e[2]+=a,e[3]+=a),n?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],n=!1):(t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]))}return t}static _getTextInflatedSize(t,e,r){const i=(0,U.hV)(e.height??w.D.CIMTextSymbol.height);if(t[0]=-i/2,t[1]=-i/2,t[2]=i/2,t[3]=i/2,!r)return t;const s=r.get(e);if(!s)return t;if(!function(t){return"glyphs"===t.type?t.glyphs.length>0:t.runs.some(t=>t.glyphs.glyphs.length>0)}(s.glyphMosaicItems))return t;const{lineGapType:n,lineGap:o}=e,a=n?((t,e,r)=>{switch(t){case"ExtraLeading":return 1+e/r;case"Multiple":return e;case"Exact":return e/r}})(n,o??0,i):0,l=e.horizontalAlignment??w.D.CIMTextSymbol.horizontalalignment,h=e.verticalAlignment??w.D.CIMTextSymbol.verticalalignment,c="CIMBackgroundCallout"===e.callout?.type,u=(0,D.tA)(s.glyphMosaicItems,{scale:i/24,angle:(0,E.$w)(e.angle),xOffset:(0,E.$w)(e.offsetX),yOffset:(0,E.$w)(e.offsetY),horizontalAlignment:l,verticalAlignment:h,maxLineWidth:(0,U.Lu)(e.lineWidth),lineHeight:29*Math.max(.25,Math.min(a||1,4)),decoration:e.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:c}).boundsT,f=Math.sqrt(u.width*u.width+u.height*u.height);return t[0]-=u.x+f,t[1]-=u.y-f,t[2]+=u.x+f,t[3]+=-u.y+f,t}}class nt{static getEnvelope(t,e,r,i){if(!t)return null;const s=new W(r,i);if(Array.isArray(t)){let r;for(const i of t)r?r.union(rt(s,i,e)):r=rt(s,i,e);return r}return rt(s,t,e)}static getTextureInfo(t,e,r,i,s){const n=i??this.getEnvelope(t,null,e);if(!n)return[0,0,0,0,1];const o=Math.max(n.width,n.height)*Q;let a=null!=s?Math.max(s/o,1):1;a*=Q,n.x*=a,n.y*=a,n.width*=a,n.height*=a,n.width=Math.max(Math.ceil(n.x+n.width)-Math.floor(n.x),1)-1,n.height=Math.max(Math.ceil(n.y+n.height)-Math.floor(n.y),1)-1;let l=n.x+.5*n.width,h=n.y+.5*n.height;return l+=n.x-Math.floor(n.x),h+=n.y-Math.floor(n.y),i||(n.width+=r,n.height+=r,l+=r/2,h+=r/2),[n.width,n.height,l,h,a]}static getTextureAnchor(t,e,r){const[i,s,n,o,a]=this.getTextureInfo(t,e,2,null,r);return[-n/i,-o/s,s/a*Q]}static rasterize(t,e,r,i,s=!0,n){const[o,a,l,h,c]=this.getTextureInfo(e,i,2,r,n);t.width=o,t.height=a;const u=t.getContext("2d",{willReadFrequently:!0}),f=N.createScale(c,-c);f.translate(.5*o-l,.5*a+h);const d=new $(u,i,f);switch(e.type){case"CIMPointSymbol":{const t={type:"point",x:0,y:0};d.drawSymbol(e,t);break}case"CIMVectorMarker":{const t=new m.W;d.drawMarker(e,t);break}}const g=u.getImageData(0,0,t.width,t.height),p=new Uint8Array(g.data);if(s){let t;for(let e=0;e<p.length;e+=4)t=p[e+3]/255,p[e]=p[e]*t,p[e+1]=p[e+1]*t,p[e+2]=p[e+2]*t}return[p,t.width,t.height,-l/o,-h/a]}static fromTextSymbol(t){const{text:e}=t;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:nt.createCIMTextSymbolfromTextSymbol(t),textString:e}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){const{height:e,outline:r,width:i,xoffset:s,xscale:n,yoffset:o,yscale:a}=t,l=[],h={type:"CIMPolygonSymbol",symbolLayers:l};if(r){const t=St(r);t&&l.push(t)}let c=t.url;"esriPFS"===t.type&&t.imageData&&(c=t.imageData);const u="angle"in t?t.angle??0:0,f=(i??0)*(n||1),d=(e??0)*(a||1);return l.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:c,height:d,width:f,offsetX:(0,E.$w)(s),offsetY:(0,E.$w)(o),rotation:(0,E.$w)(-u),colorSubstitutions:null}),h}static fromSimpleFillSymbol(t){const{color:e,style:r,outline:i}=t,n=[],o={type:"CIMPolygonSymbol",symbolLayers:n};if(i){const t=St(i);t&&n.push(t)}if(r&&"solid"!==r&&"none"!==r&&"esriSFSSolid"!==r&&"esriSFSNull"!==r){const t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:ut(e),capStyle:"Butt",joinStyle:"Miter",width:.75}]};let i=0;const o=(0,a.PN)(yt(r)?8:10);switch(r){case"vertical":case"esriSFSVertical":i=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":i=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":i=45;break;case"cross":case"esriSFSCross":i=0}n.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:i,separation:o}),"cross"===r||"esriSFSCross"===r?n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:90,separation:o}):"diagonal-cross"!==r&&"esriSFSDiagonalCross"!==r||n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:45,separation:o})}else!r||"solid"!==r&&"esriSFSSolid"!==r||n.push({type:"CIMSolidFill",enable:!0,color:ut(e)});return o}static fromSimpleLineSymbol(t){const{cap:e,color:r,join:i,marker:s,miterLimit:n,style:o,width:a}=t;let l=null;"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(l=[{type:"CIMGeometricEffectDashes",dashTemplate:gt(o,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);const h=[];if(s){let t;switch(s.placement){case"begin-end":t="Both";break;case"begin":t="JustBegin";break;case"end":t="JustEnd";break;default:t="None"}const e=nt.fromSimpleMarker(s,a,r).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:t,offsetAlongLine:0},h.push(e)}return h.push({type:"CIMSolidStroke",color:"none"!==o&&"esriSLSNull"!==o?ut(r):[0,0,0,0],capStyle:at(e),joinStyle:lt(i),miterLimit:n,width:a,effects:l}),{type:"CIMLineSymbol",symbolLayers:h}}static fromPictureMarker(t){const{angle:e,height:r,width:i,xoffset:s,yoffset:n}=t;let o=t.url;return"esriPMS"===t.type&&t.imageData&&(o=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:r,width:i,offsetX:(0,E.$w)(s),offsetY:(0,E.$w)(n),rotation:(0,E.$w)(-e)}]}}static createCIMTextSymbolfromTextSymbol(t){const{angle:e,color:r,font:s,haloColor:n,haloSize:o,horizontalAlignment:a,kerning:l,lineWidth:h,text:c,verticalAlignment:u,xoffset:f,yoffset:d,backgroundColor:m,borderLineColor:g,borderLineSize:p}=t;let y,S,_,x,M,b;s&&(y=s.family,S=s.style,_=s.weight,x=s.size,M=s.decoration);let w=!1;return c&&(w=(0,i.y)(c)[1]),(m||p)&&(b={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:ut(m)},{type:"CIMSolidStroke",enable:!0,color:ut(g),width:p??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:e,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:y||"Arial",fontStyleName:ft(S,_),fontType:0,haloSize:o,height:x,hinting:1,horizontalAlignment:ht(a??"center"),kerning:l,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:h,offsetX:(0,E.$w)(f),offsetY:(0,E.$w)(d),strikethrough:"line-through"===M,underline:"underline"===M,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:ut(r)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:ut(n)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:w?1:0,verticalAlignment:ct(u??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:b}}static createPictureMarkerRasterizationParam(t){const{angle:e,height:r,width:i,xoffset:s,yoffset:n}=t,o=t.url??t.source?.url??t.source?.imageData;return o?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:o,size:r,width:i,offsetX:(0,E.$w)(s),offsetY:(0,E.$w)(n),rotation:(0,E.$w)(-e)}}:null}static createPictureFillRasterizationParam(t){const{width:e,height:r,xoffset:i,yoffset:s,url:n}=t;return n?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:n,width:e,height:r,offsetX:(0,E.$w)(i),offsetY:(0,E.$w)(s),rotation:0}}:null}static fromSimpleMarker(t,e,r){const{style:i}=t,s=t.color??r;if("path"===i||"esriSMSPath"===i){const e=[];if("outline"in t&&t.outline){const r=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:r.width,color:ut(r.color),path:t.path})}e.push({type:"CIMSolidFill",enable:!0,color:ut(s),path:t.path});const[r,i]=pt("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-(0,E.$w)(t.angle),size:(0,E.$w)(t.size||6),offsetX:(0,E.$w)(t.xoffset),offsetY:(0,E.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:r,markerGraphics:[{type:"CIMMarkerGraphic",geometry:i,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}const n=[];let o,a,l=t.size;if("outline"in t&&t.outline&&"none"!==t.outline.style&&"esriSLSNull"!==t.outline.style){const e=t.outline,r="solid"!==e.style&&"esriSLSSolid"!==e.style;[o,a]=r?pt(i,t.size):pt(i);const s=e.width??q.A7.width;if(r){const e=s/t.size,r=(o.xmax-o.xmin)*e/2,i=(o.ymax-o.ymin)*e/2;o.xmin-=r,o.xmax+=r,o.ymin-=i,o.ymax+=i,l&&(l+=s)}const h="cross"!==t.style&&"x"!==t.style||"dot"===t?.outline.style||"short-dot"===t?.outline.style?"HalfGap":"FullPattern",c=r?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:gt(e.style,null).map(t=>e.width&&e.width>0?t*e.width:t),lineDashEnding:h,controlPointEnding:"FullPattern"}]:void 0;n.push({type:"CIMSolidStroke",capStyle:r?"Round":"Butt",enable:!0,width:s,color:ut(e.color),effects:c})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style?[o,a]=pt(i):([o,a]=pt(i),n.push({type:"CIMSolidStroke",enable:!0,width:e,color:ut(s)}));n.push({type:"CIMSolidFill",enable:!0,color:ut(s)});const h={type:"CIMPolygonSymbol",symbolLayers:n};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,E.$w)(-t.angle),size:(0,E.$w)(l||6*e),offsetX:(0,E.$w)(t.xoffset),offsetY:(0,E.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:o,markerGraphics:[{type:"CIMMarkerGraphic",geometry:a,symbol:h}]}]}}static fromCIMHatchFill(t,e){const r=e*(t.separation??w.D.CIMHatchFill.separation),i=r/2,n=(0,s.o8)(t.lineSymbol);n.symbolLayers?.forEach(t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach(t=>{if("CIMGeometricEffectDashes"===t.type){const r=t.dashTemplate;t.dashTemplate=r?.map(t=>t*e)}});break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);const r=t.markerPlacement;null!=r&&"placementTemplate"in r&&(r.placementTemplate=r.placementTemplate.map(t=>t*e));break}}});let o=this._getLineSymbolPeriod(n)||4;for(;o<4;)o*=2;const a=o/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-a,xmax:a,ymin:-i,ymax:i},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-a,0],[a,0]]]},symbol:n}],size:r}}static async normalizeSymbolAndFetchResources(t,e,r=null){if(!t)return;const i=[];if("effects"in t&&t.effects)for(const e of t.effects)i.push((0,d.ai)(e));async function s(t){if("CIMTextSymbol"!==t.type)return;const{fontFamilyName:r,fontStyleName:i}=t;if("calcitewebcoreicons"===r?.toLowerCase())return;const{style:s,weight:n}=(0,E._d)(i),o=(0,E.DW)(t),a=new f.A({family:r,style:s,weight:n,decoration:o});try{await e.loadFont(a)}catch{tt().error(`Unsupported font ${r} in CIM symbol`)}}i.push(s(t)),ot(t,t=>{if(t.effects)for(const e of t.effects)i.push((0,d.ai)(e));if("CIMVectorMarker"===t.type){for(const e of t.markerGraphics)(0,c.Ed)(e.geometry)&&(e.geometry=(0,u.GS)(e.geometry,{maxDeviation:.01}));t.markerPlacement&&i.push((0,d.g1)(t.markerPlacement))}"url"in t&&t.url&&i.push(e.fetchResource(t.url,{signal:r})),"symbol"in t&&i.push(s(t.symbol))}),await Promise.all(i)}static _getLineSymbolPeriod(t){if(t){const e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(const e of t.symbolLayers)if(e){const t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(const e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{const t=e.dashTemplate;if(t&&t.length){let e=0;for(const r of t)e+=r;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:tt().error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{const e=t.placementTemplate;if(e&&e.length){let t=0;for(const r of e)t+=+r;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){const e=t.markerPlacement,r={...t};r.markerPlacement=null,r.anchorPoint=null;const i=Math.abs(e.stepX),s=Math.abs(e.stepY),n=(e.randomness??100)/100;let l,h,c,u;if("Random"===e.gridType){const t=(0,a.PN)(1024),r=Math.max(Math.floor(t/i),1),f=Math.max(Math.floor(t/s),1);l=r*i/2,h=f*s/2,c=2*h;const d=new o.A(e.seed),m=n*i/1.5,g=n*s/1.5;u=[];for(let t=0;t<r;t++)for(let e=0;e<f;e++){const r=t*i-l+m*(.5-d.getFloat()),n=e*s-h+g*(.5-d.getFloat());u.push({x:r,y:n}),0===t&&u.push({x:r+2*l,y:n}),0===e&&u.push({x:r,y:n+2*h})}}else!0===e.shiftOddRows?(l=i/2,h=s,c=2*s,u=[{x:-l,y:0},{x:l,y:0},{x:0,y:h},{x:0,y:-h}]):(l=i/2,h=s/2,c=s,u=[{x:-i,y:0},{x:0,y:-s},{x:-i,y:-s},{x:0,y:0},{x:i,y:0},{x:0,y:s},{x:i,y:s},{x:-i,y:s},{x:i,y:-s}]);return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-h,ymax:h},markerGraphics:u.map(t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[r]}})),size:c}}}function ot(t,e){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const r=t.symbolLayers;if(!r)return;for(const t of r)if(e(t),"CIMVectorMarker"===t.type){const r=t.markerGraphics;if(!r)continue;for(const t of r)if(t){const r=t.symbol;r&&ot(r,e)}}break}}}const at=t=>{if(!t)return"Butt";switch(t){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},lt=t=>{if(!t)return"Miter";switch(t){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},ht=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},ct=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},ut=t=>{if(!t)return[0,0,0,0];const{r:e,g:r,b:i,a:s}=t;return[e,r,i,255*s]},ft=(t,e)=>{const r=dt(e),i=mt(t);return r&&i?`${r}-${i}`:`${r}${i}`},dt=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},mt=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},gt=(t,e)=>{const r=.001,i="butt"===e;switch(t){case"dash":case"esriSLSDash":return i?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return i?[4,3,1,3]:[3,4,r,4];case"dot":case"esriSLSDot":return i?[1,3]:[r,4];case"long-dash":case"esriSLSLongDash":return i?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return i?[8,3,1,3]:[7,4,r,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return i?[8,3,1,3,1,3]:[7,4,r,4,r,4];case"short-dash":case"esriSLSShortDash":return i?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return i?[4,1,1,1]:[3,2,r,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return i?[4,1,1,1,1,1]:[3,2,r,2,r,2];case"short-dot":case"esriSLSShortDot":return i?[1,1]:[r,2];case"solid":case"esriSLSSolid":case"none":return tt().error("Unexpected: style does not require rasterization"),[0,0];default:return tt().error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},pt=(t,e=100)=>{const r=e/2;let i,s;const n=t;if("circle"===n||"esriSMSCircle"===n){const t=.25;let e=Math.acos(1-t/r),n=Math.ceil(J/e/4);0===n&&(n=1),e=j/n,n*=4;const o=[];o.push([r,0]);for(let t=1;t<n;t++)o.push([r*Math.cos(t*e),-r*Math.sin(t*e)]);o.push([r,0]),i={rings:[o]},s={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("cross"===n||"esriSMSCross"===n){const t=0;i={paths:[[[t,r],[t,-r]],[[r,t],[-r,t]]]},s={xmin:-r,ymin:-r,xmax:r,ymax:r}}else if("diamond"===n||"esriSMSDiamond"===n)i={rings:[[[-r,0],[0,r],[r,0],[0,-r],[-r,0]]]},s={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("square"===n||"esriSMSSquare"===n)i={rings:[[[-r,-r],[-r,r],[r,r],[r,-r],[-r,-r]]]},s={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("x"===n||"esriSMSX"===n)i={paths:[[[r,r],[-r,-r]],[[r,-r],[-r,r]]]},s={xmin:-r,ymin:-r,xmax:r,ymax:r};else if("triangle"===n||"esriSMSTriangle"===n){const t=.5773502691896257*e,r=-t,n=2/3*e,o=n-e;i={rings:[[[r,o],[0,n],[t,o],[r,o]]]},s={xmin:r,ymin:o,xmax:t,ymax:n}}else"arrow"===n&&(i={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},s={xmin:-r,ymin:-r,xmax:r,ymax:r});return[s,i]},yt=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t;function St(t){if(!t)return null;let e=null;const{cap:r,color:i,join:s,miterLimit:n,style:o,width:a}=t;return"solid"!==o&&"none"!==o&&"esriSLSSolid"!==o&&"esriSLSNull"!==o&&(e=[{type:"CIMGeometricEffectDashes",dashTemplate:gt(o,r),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==o&&"none"!==o?ut(i):[0,0,0,0],capStyle:at(r),joinStyle:lt(s),miterLimit:n,width:a,effects:e}}},44589(t,e,r){r.d(e,{AH:()=>a}),r(40804);var i=r(53966),s=(r(34727),r(35521),r(28076));const n=()=>i.A.getLogger("esri.symbols.cim.rasterizingUtils");let o;function a(t,e){const{colorRamp:r,gradientType:i}=e,n=l(r),a="CIMFixedColorRamp"===r.type;if("Continuous"===i&&!a)return h(t,n);const c=e.interval??s.D.CIMGradientFill.interval;if(a)return h(t,function(t,e){const r=[],i=(t.length-1)/(e-1);for(let s=0;s<e;s++){const n=t[Math.round(s*i)].color;r.push({offset:s/e,color:n}),r.push({offset:(s+1)/e,color:n})}return r}(n,c));const u=[];o??=document.createElement("canvas"),function(t,e,r,i,s){const n=r+2*s;t.width=n,t.height=i;const o=(s+1)/n,a=t.getContext("2d",{willReadFrequently:!0});if(e.length>0){const t=a.createLinearGradient(0,0,n,i);h(t,e,o),a.fillStyle=t}else a.fillStyle="rgba(128, 128, 128, 1)";a.fillRect(0,0,n,i)}(o,n,c,1,0);const f=o.getContext("2d").getImageData(0,0,c,1).data;for(let t=0,e=0;t<c;t++,e=4*t){const r=[f[e+0],f[e+1],f[e+2],f[e+3]];u.push({offset:t/c,color:r}),u.push({offset:(t+1)/c,color:r})}return h(t,u)}function l(t){const e=[];switch(t.type){case"CIMPolarContinuousColorRamp":case"CIMLinearContinuousColorRamp":{"CIMPolarContinuousColorRamp"===t.type&&n().warnOnce("CIMPolarContinuousColorRamp is currently unsupported. Falling back to CIMLinearContinuousColorRamp.");const r=t;e.push({offset:0,color:[r.fromColor[0],r.fromColor[1],r.fromColor[2],r.fromColor[3]/255]}),e.push({offset:1,color:[r.toColor[0],r.toColor[1],r.toColor[2],r.toColor[3]/255]});break}case"CIMFixedColorRamp":{const r=t,i=1/(r.colors.length-1);let s=0;for(const t of r.colors)e.push({offset:s,color:[t[0],t[1],t[2],t[3]/255]}),s+=i;break}case"CIMMultipartColorRamp":{const r=t,i=r.weights.reduce((t,e)=>t+e,0);let s=0;for(let t=0;t<r.colorRamps.length;t++){const n=r.colorRamps[t],o=r.weights[t],a=l(n);for(const t of a)e.push({offset:(s+t.offset*o)/i,color:t.color});s+=o}break}default:n().error(`Color ramp "${t.type}" currently unsupported.`)}return e}function h(t,e,r=0){for(const{offset:i,color:s}of e)t.addColorStop(Math.min(Math.max(i,r),1-r),`rgba(${s[0]}, ${s[1]}, ${s[2]}, ${s[3]})`)}}}]);
|