@arcgis/core 4.34.0-next.76 → 4.34.0-next.78
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/Basemap.js +1 -1
- package/Ground.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/025f1d78dfa5ec93178b.js +1 -0
- package/assets/esri/core/workers/chunks/050429f516149ce3b517.js +1 -0
- package/assets/esri/core/workers/chunks/0652d7e525d99e39c957.js +1 -0
- package/assets/esri/core/workers/chunks/0668eee42b3169e1bf66.js +1 -0
- package/assets/esri/core/workers/chunks/07a355a9c95154971aab.js +1 -0
- package/assets/esri/core/workers/chunks/0dd6b8b3e634bb5f0ca7.js +1 -0
- package/assets/esri/core/workers/chunks/124f8757ea18bfd158ec.js +1 -0
- package/assets/esri/core/workers/chunks/1990162dcf73601d54f7.js +1 -0
- package/assets/esri/core/workers/chunks/20850b0fdb55fb17bc90.js +1 -0
- package/assets/esri/core/workers/chunks/{6a1b652ccbf58ac44658.js → 23e17b745adf71a5efc7.js} +1 -1
- package/assets/esri/core/workers/chunks/2605062e44f2d4e73f14.js +1 -0
- package/assets/esri/core/workers/chunks/29a86d51407310bb7745.js +1 -0
- package/assets/esri/core/workers/chunks/2a2a925c45d5fd58628b.js +1 -0
- package/assets/esri/core/workers/chunks/2fe96bf7dedef11a3b63.js +1 -0
- package/assets/esri/core/workers/chunks/3452ba299f6ce0582f09.js +1 -0
- package/assets/esri/core/workers/chunks/36a006c55766f9540bfc.js +1 -0
- package/assets/esri/core/workers/chunks/{18641332bee3e9b9c44a.js → 388482cea4b9fdeaf06e.js} +1 -1
- package/assets/esri/core/workers/chunks/3b23c37e5bc552dc81d4.js +1 -0
- package/assets/esri/core/workers/chunks/{9325000c87295c473291.js → 3b2ef975831eb75b40fb.js} +1 -1
- package/assets/esri/core/workers/chunks/3ff3e1507220d3869c76.js +1 -0
- package/assets/esri/core/workers/chunks/43818bf53dd5445a7bdb.js +1 -0
- package/assets/esri/core/workers/chunks/4823e4522bd7379d858e.js +1 -0
- package/assets/esri/core/workers/chunks/49e6202da7a20f06c661.js +353 -0
- package/assets/esri/core/workers/chunks/{b818b5e392d5eb7c7e70.js → 4e6e8dda6c12f6fbed8e.js} +1 -1
- package/assets/esri/core/workers/chunks/5019f1b8186a65a0313b.js +1 -0
- package/assets/esri/core/workers/chunks/512dcd6e34e217029391.js +1 -0
- package/assets/esri/core/workers/chunks/5248581d23ada240c78d.js +1 -0
- package/assets/esri/core/workers/chunks/614a00a3179f8fe23f45.js +1 -0
- package/assets/esri/core/workers/chunks/{5477ff0ce432c9e5b3ab.js → 6201356f7f91e5c06425.js} +1 -1
- package/assets/esri/core/workers/chunks/6271a706ac3fcba91432.js +1 -0
- package/assets/esri/core/workers/chunks/6593b419339e7598b760.js +1 -0
- package/assets/esri/core/workers/chunks/{51ddda291bbbf5db9905.js → 65e279516170ddbd4a65.js} +1 -1
- package/assets/esri/core/workers/chunks/67fdc8074cdcf374af9a.js +1 -0
- package/assets/esri/core/workers/chunks/6dafb2b95bae552c1cc2.js +1 -0
- package/assets/esri/core/workers/chunks/7680d4d739f7aa3f7ae1.js +1 -0
- package/assets/esri/core/workers/chunks/7889a909394c61a9d3e0.js +1 -0
- package/assets/esri/core/workers/chunks/79e965e8f7cf822b4f45.js +1 -0
- package/assets/esri/core/workers/chunks/804e3b3df375177e6c86.js +1 -0
- package/assets/esri/core/workers/chunks/81a8addcb858086ff9ee.js +1 -0
- package/assets/esri/core/workers/chunks/83065bef261314f9b2c5.js +1 -0
- package/assets/esri/core/workers/chunks/8a5e40f48a8265fd1b42.js +1 -0
- package/assets/esri/core/workers/chunks/8bd6c27a93a697a7fa3d.js +1 -0
- package/assets/esri/core/workers/chunks/8c94448a44fb27054a22.js +1 -0
- package/assets/esri/core/workers/chunks/92d0e0155563c6355079.js +1 -0
- package/assets/esri/core/workers/chunks/{c86f5bb199cf046b8952.js → 930322c9790572bd0c49.js} +1 -1
- package/assets/esri/core/workers/chunks/96a14689815bec741308.js +1 -0
- package/assets/esri/core/workers/chunks/97d71459ad72b4b780a3.js +1 -0
- package/assets/esri/core/workers/chunks/9835c579edfc08125d31.js +1 -0
- package/assets/esri/core/workers/chunks/9971de3f38a55735cec9.js +1 -0
- package/assets/esri/core/workers/chunks/99ac292a858bbedc6a89.js +1 -0
- package/assets/esri/core/workers/chunks/9ce599dc1d385e6893c1.js +1 -0
- package/assets/esri/core/workers/chunks/{fec572f03f9514244972.js → a05a7df07b74e1957538.js} +1 -1
- package/assets/esri/core/workers/chunks/a7e649b3b02e664ada80.js +1 -0
- package/assets/esri/core/workers/chunks/a8a79a5c804ef715aa94.js +1 -0
- package/assets/esri/core/workers/chunks/acb49f3d2b783e81a215.js +1 -0
- package/assets/esri/core/workers/chunks/adc61d88c3c6936ad75a.js +1 -0
- package/assets/esri/core/workers/chunks/afa3ca2bd2648774f133.js +1 -0
- package/assets/esri/core/workers/chunks/afb76f9d6abedef771df.js +1 -0
- package/assets/esri/core/workers/chunks/b168b6ffc16cd509d316.js +1 -0
- package/assets/esri/core/workers/chunks/b19d723d09f5bea9ca27.js +1 -0
- package/assets/esri/core/workers/chunks/b246ed6d86c2c8df56fb.js +1 -0
- package/assets/esri/core/workers/chunks/b4a053063e6022080d31.js +1 -0
- package/assets/esri/core/workers/chunks/b4ba7f8ea81522ad1e2e.js +1 -0
- package/assets/esri/core/workers/chunks/b97f224972f1b1abaee8.js +1 -0
- package/assets/esri/core/workers/chunks/b9e725d2b5a7d0132663.js +1 -0
- package/assets/esri/core/workers/chunks/bbb3b32affde9ea78534.js +1 -0
- package/assets/esri/core/workers/chunks/bbb585f0b484ab5eabb3.js +1 -0
- package/assets/esri/core/workers/chunks/bc83bcfe123525d21884.js +1 -0
- package/assets/esri/core/workers/chunks/c799f1c03cb22ef52f5f.js +1 -0
- package/assets/esri/core/workers/chunks/cac5732f9dfece4bf2c5.js +1 -0
- package/assets/esri/core/workers/chunks/cafc19bf2caaf7a8c2e8.js +1 -0
- package/assets/esri/core/workers/chunks/cc7423413747566f56e2.js +1 -0
- package/assets/esri/core/workers/chunks/ccd157ede169b93eea65.js +1 -0
- package/assets/esri/core/workers/chunks/ce0bf0d0cd9e9a90093b.js +1 -0
- package/assets/esri/core/workers/chunks/ce49ff6bf20cff349726.js +1 -0
- package/assets/esri/core/workers/chunks/d1657a29321adb259166.js +1 -0
- package/assets/esri/core/workers/chunks/d2b69f91eb85b561fe01.js +1 -0
- package/assets/esri/core/workers/chunks/d51e8eeb1e1eb0605cc9.js +1 -0
- package/assets/esri/core/workers/chunks/d69bd6b5d781a6c527d1.js +1 -0
- package/assets/esri/core/workers/chunks/d7fc8ea2ff527a09f4b9.js +1 -0
- package/assets/esri/core/workers/chunks/d8494617cebc68e50d35.js +1 -0
- package/assets/esri/core/workers/chunks/d89832617bac4890893e.js +1 -0
- package/assets/esri/core/workers/chunks/{d55c55d39a253630d228.js → db2396bf062468ee8b60.js} +1 -1
- package/assets/esri/core/workers/chunks/e4833b718a813a8d125b.js +1 -0
- package/assets/esri/core/workers/chunks/{d1f181f91b36351f1d3b.js → e7af5caab9aa9b6a12e3.js} +1 -1
- package/assets/esri/core/workers/chunks/e81386199a6db9a50fd3.js +1 -0
- package/assets/esri/core/workers/chunks/f45c343527709f6f91c2.js +1 -0
- package/assets/esri/core/workers/chunks/f5710ced8d38f9a90fc5.js +1 -0
- package/assets/esri/core/workers/chunks/f592c4e5e1746d4619db.js +1 -0
- package/assets/esri/core/workers/chunks/f8d2c52cc51d5f1bbce2.js +1 -0
- package/assets/esri/core/workers/chunks/feed74ed275f21a68a1b.js +1 -0
- package/assets/esri/core/workers/chunks/ffee8cc83d703c1dc0c0.js +1 -0
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/Layer.js +1 -1
- package/layers/catalog/catalogUtils.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/package.json +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/symbolUtils.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/assets/esri/core/workers/chunks/03fac1122eb73bb14d2d.js +0 -1
- package/assets/esri/core/workers/chunks/0434a490326c0de47c22.js +0 -1
- package/assets/esri/core/workers/chunks/0618ea8bf9da93d713b1.js +0 -1
- package/assets/esri/core/workers/chunks/06b65105b15abf4d0fbf.js +0 -1
- package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +0 -1
- package/assets/esri/core/workers/chunks/13de06e614adf92239fe.js +0 -1
- package/assets/esri/core/workers/chunks/14a22d1a0eefa970efa1.js +0 -1
- package/assets/esri/core/workers/chunks/181b3564a0e3939020bc.js +0 -1
- package/assets/esri/core/workers/chunks/199a17b0a0f75cbaed16.js +0 -1
- package/assets/esri/core/workers/chunks/19c1f1431c0b2f4525a2.js +0 -1
- package/assets/esri/core/workers/chunks/21bfad7283620766d9cd.js +0 -1
- package/assets/esri/core/workers/chunks/28a2f74d4a449386d082.js +0 -1
- package/assets/esri/core/workers/chunks/2afafaf40293d5ab1d8e.js +0 -1
- package/assets/esri/core/workers/chunks/2c399991e8627baa51b3.js +0 -1
- package/assets/esri/core/workers/chunks/2f44848916051f5501eb.js +0 -1
- package/assets/esri/core/workers/chunks/3064320d54a9b48bd697.js +0 -1
- package/assets/esri/core/workers/chunks/38e7d1c6987aaa9b520b.js +0 -1
- package/assets/esri/core/workers/chunks/3a5f0c759dd2f4638343.js +0 -1
- package/assets/esri/core/workers/chunks/3bf99037befdedd75cb4.js +0 -1
- package/assets/esri/core/workers/chunks/3e9c3e7c5cf7c0afbc80.js +0 -1
- package/assets/esri/core/workers/chunks/3fecfe4f8ca2a5fd7360.js +0 -1
- package/assets/esri/core/workers/chunks/43095bed5456251940b9.js +0 -1
- package/assets/esri/core/workers/chunks/433c4dc666a6b2c99063.js +0 -353
- package/assets/esri/core/workers/chunks/451761c7bd2da530e1d0.js +0 -1
- package/assets/esri/core/workers/chunks/4832faefd3b7edc17c84.js +0 -1
- package/assets/esri/core/workers/chunks/48449abe795cb7a831eb.js +0 -1
- package/assets/esri/core/workers/chunks/4bc091770bab38874848.js +0 -1
- package/assets/esri/core/workers/chunks/52286d4135b8395a3400.js +0 -1
- package/assets/esri/core/workers/chunks/540506802776f77e47f3.js +0 -1
- package/assets/esri/core/workers/chunks/56f54d007b0da0d908aa.js +0 -1
- package/assets/esri/core/workers/chunks/5879cebb22157b0b4998.js +0 -1
- package/assets/esri/core/workers/chunks/58cc06ed86301f4cee75.js +0 -1
- package/assets/esri/core/workers/chunks/61896e64e9ef49b4bb1b.js +0 -1
- package/assets/esri/core/workers/chunks/6531f33d6710960079e9.js +0 -1
- package/assets/esri/core/workers/chunks/6e59ba2afd444eb4be18.js +0 -1
- package/assets/esri/core/workers/chunks/70367da4ba916376f40c.js +0 -1
- package/assets/esri/core/workers/chunks/7430c462c350fdd26349.js +0 -1
- package/assets/esri/core/workers/chunks/7aaa6b318195d7342e6c.js +0 -1
- package/assets/esri/core/workers/chunks/7b73a808922b52755abd.js +0 -1
- package/assets/esri/core/workers/chunks/7e746427375e83fc4351.js +0 -1
- package/assets/esri/core/workers/chunks/810e4c16c6eae420508b.js +0 -1
- package/assets/esri/core/workers/chunks/8b587affaaa0b1e4368c.js +0 -1
- package/assets/esri/core/workers/chunks/8bc8caa384b24af12411.js +0 -1
- package/assets/esri/core/workers/chunks/8fc13e0e1a5a8f3e4798.js +0 -1
- package/assets/esri/core/workers/chunks/90540fdfb0c5f68aa959.js +0 -1
- package/assets/esri/core/workers/chunks/92d5b0559e128d62fbda.js +0 -1
- package/assets/esri/core/workers/chunks/9304c3cdf732745577fd.js +0 -1
- package/assets/esri/core/workers/chunks/9421389888d4d9e4e809.js +0 -1
- package/assets/esri/core/workers/chunks/98c94a99e2e04d5ae65f.js +0 -1
- package/assets/esri/core/workers/chunks/9c35860439948638cb8f.js +0 -1
- package/assets/esri/core/workers/chunks/a0a519f498e9ea7623ff.js +0 -1
- package/assets/esri/core/workers/chunks/a2baeb9fa805c3537049.js +0 -1
- package/assets/esri/core/workers/chunks/a33e1a031ba9f028023d.js +0 -1
- package/assets/esri/core/workers/chunks/a9f6054d86982b9e5a7c.js +0 -1
- package/assets/esri/core/workers/chunks/ad3ebd4f05cc673140f3.js +0 -1
- package/assets/esri/core/workers/chunks/b6c6f82df3b60c2f831f.js +0 -1
- package/assets/esri/core/workers/chunks/b70d71144a060f7eeeeb.js +0 -1
- package/assets/esri/core/workers/chunks/b7f5a26ff3a73c64552d.js +0 -1
- package/assets/esri/core/workers/chunks/bd2dc1282c49125ede89.js +0 -1
- package/assets/esri/core/workers/chunks/bd4e64d6e73cd4db9695.js +0 -1
- package/assets/esri/core/workers/chunks/bfbbf180c2c8fdbb6731.js +0 -1
- package/assets/esri/core/workers/chunks/c07507a42def2bd2a222.js +0 -1
- package/assets/esri/core/workers/chunks/c34a164a8ece4cb33e81.js +0 -1
- package/assets/esri/core/workers/chunks/c6fecf2bbd2a711f15d3.js +0 -1
- package/assets/esri/core/workers/chunks/d95554f43694b4769675.js +0 -1
- package/assets/esri/core/workers/chunks/dd587d51dad2d82708d1.js +0 -1
- package/assets/esri/core/workers/chunks/e086b835a98b71a46825.js +0 -1
- package/assets/esri/core/workers/chunks/e3f2cdf5d71a7040894b.js +0 -1
- package/assets/esri/core/workers/chunks/e54df2128039425a9090.js +0 -1
- package/assets/esri/core/workers/chunks/e58c5c8639aa837c84d1.js +0 -1
- package/assets/esri/core/workers/chunks/e92d9e0ac789bcf1cdf4.js +0 -1
- package/assets/esri/core/workers/chunks/eb0a5d592f5805836203.js +0 -1
- package/assets/esri/core/workers/chunks/eccb4550edc4752cf41a.js +0 -1
- package/assets/esri/core/workers/chunks/f3ef59991c577ff5e825.js +0 -1
- package/assets/esri/core/workers/chunks/f749e2a89a14ab89ae59.js +0 -1
- package/assets/esri/core/workers/chunks/f7f5c4f30e5a0ddbf9a4.js +0 -1
- package/assets/esri/core/workers/chunks/fb0f729eff2f2911d6c3.js +0 -1
- package/assets/esri/core/workers/chunks/fdf2b980e8a8aa47ce91.js +0 -1
- package/assets/esri/core/workers/chunks/fe24c6d61a50898549a5.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[573,2042,7136],{4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},9093:(e,t,r)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i,n,s,o,l,a,u,c,h,p,f,y,m){return[e,t,r,i,n,s,o,l,a,u,c,h,p,f,y,m]}},Symbol.toStringTag,{value:"Module"}))},13069:(e,t,r)=>{r.d(t,{AG:()=>l,lk:()=>n,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17136:(e,t,r)=>{r.d(t,{Y_:()=>x,O7:()=>w,el:()=>A});var i=r(92602),n=r(69052),s=r(49186),o=r(53966),l=r(39829),a=r(82799),u=r(16930),c=r(80754),h=r(21325),p=r(28735),f=r(78888),y=r(65864),m=r(2272),d=r(84952),g=r(92300);const v=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function M(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function _(e,t,r){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof l.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new s.A("internal:geometry",e)}const r=(0,c.r8)(e),i=[];for(const e of r){const r=[];i.push(r),r.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const n=e[i][0],s=e[i][1],o=e[i+1][0],l=e[i+1][1],a=Math.sqrt((o-n)*(o-n)+(l-s)*(l-s)),u=(l-s)/a,c=(o-n)/a,h=a/t;if(h>1){for(let e=1;e<=h-1;e++){const i=e*t,o=c*i+n,l=u*i+s;r.push([o,l])}const e=(a+Math.floor(h-1)*t)/2,i=c*e+n,o=u*e+s;r.push([i,o])}r.push([o,l])}}return function(e){return"polygon"===e.type}(e)?new l.A({rings:i,spatialReference:e.spatialReference}):new a.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function T(e,t,r){if(Array.isArray(e)){const i=e[0];if(i>t){const r=(0,c.kd)(i,t);e[0]=i+r*(-2*t)}else if(i<r){const t=(0,c.kd)(i,r);e[0]=i+t*(-2*r)}}else{const i=e.x;if(i>t){const r=(0,c.kd)(i,t);e=e.clone().offset(r*(-2*t),0)}else if(i<r){const t=(0,c.kd)(i,r);e=e.clone().offset(t*(-2*r),0)}}return e}function S(e,t){let r=-1;for(let i=0;i<t.cutIndexes.length;i++){const n=t.cutIndexes[i],s=t.geometries[i],o=(0,c.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const i=t[e][0];r=i>r?i:r}r=Number(r.toFixed(9));const i=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=s.getPoint(e,r);s.setPoint(e,r,t.clone().offset(i,0))}return!0}})}if(n===r){if(M(e))for(const t of(0,c.r8)(s))e[n]=e[n].addRing(t);else if(b(e))for(const t of(0,c.r8)(s))e[n]=e[n].addPath(t)}else r=n,e[n]=s}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let s,o,u,M,b,w,F,x,C=0;const N=[],I=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,o=(0,h.Vp)(s),u=s.isWebMercator,w=u?102100:4326,M=c.j7[w].maxX,b=c.j7[w].minX,F=c.j7[w].plus180Line,x=c.j7[w].minus180Line),o)if("mesh"===t.type)I.push(t);else if("point"===t.type)I.push(T(t.clone(),M,b));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>T(e,M,b)),I.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);I.push(e.rings?new l.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,b)*(2*M);let i=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:s}=e;n=Number(n.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(F)&&s!==M?(C=s>C?s:C,i=_(i,u),N.push(i),I.push("cut")):e.intersects(x)&&n!==b?(C=s*(2*M)>C?s*(2*M):C,i=_(i,u,360),N.push(i),I.push("cut")):I.push(i)}else I.push(t.clone());else I.push(t);else I.push(t);let O=(0,c.kd)(C,M),R=-90;const Z=O,G=new a.A;for(;O>0;){const e=360*O-180;G.addPath([[e,R],[e,-1*R]]),R*=-1,O--}if(N.length>0&&Z>0){const t=S(N,await async function(e,t,r,i){const n=(0,m.Dl)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,h.YX)(s),target:JSON.stringify({geometryType:(0,y.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},l=await(0,f.A)(n.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=l.data;return{cutIndexes:a,geometries:u.map(e=>{const t=(0,y.rS)(e);return t.spatialReference=s,t})}}(n,N,G,r)),i=[],s=[];for(let r=0;r<I.length;r++){const n=I[r];if("cut"!==n)s.push(n);else{const n=t.shift(),o=e[r];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),s.push("simplify")):s.push(u?(0,p.Gh)(n):n)}}if(!i.length)return s;const o=await async function(e,t,r){const i="string"==typeof e?(0,d.An)(e):e,n=t[0].spatialReference,s=(0,y.$B)(t[0]),o={...r,query:{...i.query,f:"json",sr:(0,h.YX)(n),geometries:JSON.stringify((0,g.X)(t))}},{data:l}=await(0,f.A)(i.path+"/simplify",o);return(0,g.V)(l.geometries,s,n)}(n,i,r),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(u?(0,p.Gh)(o.shift()):o.shift())}return l}const j=[];for(let e=0;e<I.length;e++){const t=I[e];if("cut"!==t)j.push(t);else{const e=N.shift();j.push(!0===u?(0,p.Gh)(e):e)}}return j}function w(e,t,r){const i=(0,h.Vp)(r);if(null==i)return e;const[n,s]=i.valid,o=2*s;let l=0,a=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<n&&(l=-Math.ceil(Math.abs(t-n)/o)),e>s?a=Math.ceil(Math.abs(e-s)/o):e<n&&(a=-Math.ceil(Math.abs(e-n)/o));let u=e+(l-a)*o;const c=u-t;return c>s?u-=o:c<n&&(u+=o),u}function F(e){const t=(0,h.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new n.hr(r,i)}const x=F(u.A.WGS84);F(u.A.WebMercator)},22671:(e,t,r)=>{r.d(t,{A:()=>v});var i,n=r(31635),s=r(52106),o=r(66552),l=r(25482),a=r(4718),u=r(10107),c=(r(44208),r(53966),r(36005)),h=r(40608),p=r(43937),f=r(16930),y=r(65864),m=r(50498),d=r(20437);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=f.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=f.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=i);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],r=a[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(l[0]),n=r(l[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,y.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,y.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,y.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,c.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[d.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,p.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,c.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,p.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,h.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},50498:(e,t,r)=>{r.d(t,{Ye:()=>h,gy:()=>c,yR:()=>p});var i=r(66552),n=r(5443),s=r(91075),o=r(48526),l=r(86738),a=r(39829),u=r(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,r)=>{r.d(t,{A:()=>T});var i,n=r(31635),s=r(37838),o=r(69540),l=r(51447),a=r(25482),u=r(53966),c=r(36708),h=r(24326),p=r(10107),f=(r(44208),r(87811),r(40608)),y=r(12195),m=r(65864),d=r(50498),g=r(55156),v=r(60950),M=r(54339),b=r(33910);function _(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let T=class extends((0,o.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,h.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:_(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,p.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,m.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],T.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,p.MZ)({value:null})],T.prototype,"attributes",null),(0,n.Cg)([(0,p.MZ)({value:null,types:d.yR,json:{read:m.rS}})],T.prototype,"geometry",null),(0,n.Cg)([(0,p.MZ)({type:Boolean})],T.prototype,"isAggregate",void 0),(0,n.Cg)([(0,p.MZ)({clonable:!1})],T.prototype,"layer",void 0),(0,n.Cg)([(0,p.MZ)({clonable:"reference"})],T.prototype,"origin",void 0),(0,n.Cg)([(0,p.MZ)({type:s.A,value:null})],T.prototype,"popupTemplate",null),(0,n.Cg)([(0,p.MZ)({clonable:"reference"})],T.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,p.MZ)({value:null,types:b.Es})],T.prototype,"symbol",null),(0,n.Cg)([(0,p.MZ)({clonable:!1,json:{read:!1,write:!1}})],T.prototype,"_version",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,value:!0})],T.prototype,"visible",null),T=i=(0,n.Cg)([(0,f.$)("esri.Graphic")],T)},54339:(e,t,r)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},55156:(e,t,r)=>{r.d(t,{I:()=>n,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}},69052:(e,t,r)=>{r.d(t,{hr:()=>n,ie:()=>a,uC:()=>l});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,i,n=0,s=!1){return(i-=n)<t?i+=o(e,t-i):i>r&&(i-=o(e,i-r)),s&&i===r&&(i=t),i+n}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const l=new n(0,2*Math.PI),a=(new n(-Math.PI,Math.PI),new n(0,360))},70328:(e,t,r)=>{r.d(t,{BI:()=>M,DC:()=>h,Ej:()=>f,Ie:()=>g,Jt:()=>v,Ne:()=>y,RF:()=>c,aI:()=>_,fA:()=>o,gE:()=>a,hZ:()=>d,iT:()=>p,is:()=>b,qv:()=>T,vI:()=>m,vY:()=>l,v_:()=>S,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=S){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,i,n,o,l=s()){return l[0]=e,l[1]=t,l[2]=r,l[3]=i,l[4]=n,l[5]=o,l}function l(e,t=s()){return function(e,t,r,i=s()){return d(i,T),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function a(e,t=(0,n.jh)(24)){const[r,i,s,o,l,a]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=a,t[6]=r,t[7]=l,t[8]=s,t[9]=r,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function y(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function m(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?d(e,T):s(T)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function _(e,t,r){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const T=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];s()},71756:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var i,n=r(31635),s=r(78888),o=r(49186),l=r(81583),a=r(92071),u=r(74887),c=r(84952),h=r(10107),p=r(79901),f=(r(44208),r(87811),r(36005)),y=r(40608),m=r(43937),d=r(16930),g=r(4146),v=r(52136),M=r(89186),b=r(98534),_=r(18768),T=r(63074),S=r(69208),A=r(16131),w=r(8303),F=r(54310),x=r(25036),C=r(91921),N=r(60694),I=r(10873),O=r(33446),R=r(15775),Z=r(88625);const G=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let j=i=class extends((0,T.dM)((0,x.j)((0,C.I)((0,M.f)((0,b.V)((0,A.q)((0,w.A)((0,_.b)((0,a.P)((0,F.J)((0,v.p)((0,S.d)(g.A))))))))))))){constructor(...e){super(...e),this.listMode="show",this.elevationInfo=new Z.A({mode:"on-the-ground"}),this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get attributionDataUrl(){const e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}get hasAttributionData(){return super.hasAttributionData}readSpatialReference(e,t){return(e=e||t.tileInfo?.spatialReference)&&d.A.fromJSON(e)}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),s=[],o={writeSublayerStructure:!1,...i};n.forEach(e=>{const t=e.write({},o);s.push(t)}),s.some(e=>Object.keys(e).length>1)&&(t.layers=s)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map(e=>(0,c.An)(e).path):null}fetchTile(e,t,r,i={}){const{signal:n}=i,o=this.getTileUrl(e,t,r),l={responseType:"image",signal:n,query:{...this.refreshParameters}};return(0,s.A)(o,l).then(e=>e.data)}async fetchImageBitmapTile(e,t,r,n={}){const{signal:o}=n;if(this.fetchTile!==i.prototype.fetchTile){const i=await this.fetchTile(e,t,r,n);return(0,O.C)(i,e,t,r,o)}const l=this.getTileUrl(e,t,r),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,s.A)(l,a);return(0,O.C)(u,e,t,r,o)}getTileUrl(e,t,r){const i=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,n=(0,c.x0)({...this.parsedUrl?.query,blankTile:!i&&null,...this.customParameters,token:this.apiKey}),s=this.tileServers;return`${s&&s.length?s[t%s.length]:this.parsedUrl?.path}/tile/${e}/${t}/${r}${n?"?"+n:""}`}loadAll(){return(0,l.g)(this,e=>{e(this.allSublayers)})}_fetchService(e){return new Promise((t,r)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new o.A("tile-layer:undefined-url","layer's url is not defined");const i=(0,N.qg)(this.parsedUrl.path);if(null!=i&&"ImageServer"===i.serverType)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,r)}).then(t=>{let r=this.url;if(t.ssl&&(r=this.url=r.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,N.Wo)(r))return this._fetchServerVersion(r,e).then(e=>{this.read({currentVersion:e})}).catch(()=>{})})}_fetchServerVersion(e,t){if(!(0,N.Fi)(e))return Promise.reject();const r=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,s.A)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then(e=>{if(e.data?.currentVersion)return e.data.currentVersion;throw new o.A("tile-layer:version-not-available","Server did not provide a version")})}_getMapName(e){const t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let r=0,i=G.length;r<i;r++)if(t=G[r],t.toLowerCase().includes(e))return(0,c.s2)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];const t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),r=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||r?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[L]}};(0,n.Cg)([(0,h.MZ)({readOnly:!0})],j.prototype,"attributionDataUrl",null),(0,n.Cg)([(0,h.MZ)({type:["show","hide","hide-children"]})],j.prototype,"listMode",void 0),(0,n.Cg)([(0,h.MZ)({json:{read:!0,write:!0}})],j.prototype,"blendMode",void 0),(0,n.Cg)([(0,h.MZ)()],j.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],j.prototype,"isReference",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],j.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,h.MZ)({type:Boolean})],j.prototype,"resampling",void 0),(0,n.Cg)([(0,h.MZ)()],j.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,h.MZ)({type:d.A})],j.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.w)("spatialReference",["spatialReference","tileInfo"])],j.prototype,"readSpatialReference",null),(0,n.Cg)([(0,h.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],j.prototype,"path",void 0),(0,n.Cg)([(0,h.MZ)({readOnly:!0})],j.prototype,"sublayers",void 0),(0,n.Cg)([(0,m.K)("sublayers",{layers:{type:[R.A]}})],j.prototype,"writeSublayers",null),(0,n.Cg)([(0,h.MZ)({json:{read:!1,write:!1}})],j.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,h.MZ)()],j.prototype,"tileServers",null),(0,n.Cg)([(0,p.w)("tileServers")],j.prototype,"castTileServers",null),(0,n.Cg)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],j.prototype,"type",void 0),(0,n.Cg)([(0,h.MZ)(I.OZ)],j.prototype,"url",void 0),j=i=(0,n.Cg)([(0,y.$)("esri.layers.TileLayer")],j);const L=Symbol("default-fetch-tile");j.prototype.fetchTile[L]=!0;const P=j},80754:(e,t,r)=>{r.d(t,{j7:()=>o,kS:()=>a,kd:()=>l,r8:()=>u});var i=r(82799),n=r(16930),s=r(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},92300:(e,t,r)=>{r.d(t,{V:()=>s,X:()=>n});var i=r(65864);function n(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,r){const n=(0,i.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=r,t})}},95466:(e,t,r)=>{r.d(t,{A:()=>f});var i=r(49186),n=r(53966),s=r(91869),o=r(3330),l=r(12195),a=r(30524),u=r(98623),c=r(56400),h=r(96285);const p=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=m(t);if(t&&i){const n=y(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(y(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):d.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?h.mQ.utcInstance:(0,s.tE)(p,t,()=>h.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function y(e){return e.trim().toLowerCase()}function m(e){return(0,a.rS)(e)?.toLowerCase()??""}const d=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,c.ZS)(n.dateFieldsTimeReference):l??u.n$:null,h=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,p=new Map([[y(n?.creationDateField??""),a],[y(n?.editDateField??""),a],[y(s),h],[y(o),h]]);for(const{name:i,type:n}of e.fields)if(d.has(n))t.set(i,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,u.L5);else{const e=p.get(y(i??""))??l;t.set(i,e)}return t}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[73,3549],{4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var r=i(34275),n=i(9093);function s(e){return e<=r.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,r.iu)(e)?e.byteLength/8:e.length)<=r.y9?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}function u(e){const t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},6455:(e,t,i)=>{i.d(t,{FJ:()=>v,Dp:()=>b,KV:()=>w});var r=i(31635),n=i(93637),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),l=i(89317),a=i(69540),u=i(7762),p=i(25482),d=i(43937),c=i(83960),m=i(13069);const h={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let y=class extends((0,a.OU)(p.o)){constructor(e){super(e),this.id=(0,m.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:h})],y.prototype,"maxScale",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:h})],y.prototype,"minScale",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,r.Cg)([(0,o.$)("esri.layers.support.DisplayFilter")],y);var f=i(41560);let g=class extends((0,a.OU)(p.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(u.A.ofType(y)),this.mode="manual"}writeFilters(e,t,i,r){const n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{const i=(0,c.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=n.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,s.MZ)({type:u.A.ofType(y),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,r.Cg)([(0,d.K)("filters")],g.prototype,"writeFilters",null),(0,r.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,r.Cg)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const v=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,s.MZ)(b)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,s.MZ)(w)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],i),i},b={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,i){(0,n.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},w={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797:(e,t,i)=>{i.d(t,{Mj:()=>c,Ui:()=>h,w2:()=>m});var r=i(65008),n=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.A}function a(e){return e instanceof n.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=a(e),n=a(t);if(0===r.length&&0===n.length)return;if(!r.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=n.filter(e=>!r.includes(e)),c=r.filter(e=>!n.includes(e)),m=r.filter(i=>n.includes(i)&&u(e,i)!==u(t,i)).concat(s,c).sort(),h=p(e);if(h&&o.has(h)&&m.length)return{type:"complete",oldValue:e,newValue:t};let y;const f=l(e)&&l(t);for(const r of m){const n=u(e,r),s=u(t,r);let o;if((f||"function"!=typeof n&&"function"!=typeof s)&&n!==s&&(null!=n||null!=s)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(n,s);else if(n instanceof Date&&s instanceof Date){if(n.getTime()===s.getTime())continue;o={type:"complete",oldValue:n,newValue:s}}else o="object"==typeof n&&"object"==typeof s&&p(n)===p(s)?d(n,s):{type:"complete",oldValue:n,newValue:s};null!=o&&(null!=y?y.diff[r]=o:y={type:"partial",diff:{[r]:o}})}}return y}function c(e,t){return function(e,t){if(null==e)return!1;const i=t.split(".");let r=e;for(const e of i){if("complete"===r.type)return!0;if("partial"!==r.type)return!1;{const t=r.diff[e];if(!t)return!1;r=t}}return!0}(e,t)}function m(e,t){if(!e)return!1;if("partial"===e.type){const i=Object.keys(e.diff);return 1===i.length&&i[0]===t}return!1}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},8303:(e,t,i)=>{i.d(t,{A:()=>_});var r=i(31635),n=i(92602),s=i(70333),o=i(78888),l=i(60999),a=i(49186),u=i(53966),p=i(97768),d=i(74887),c=i(84952),m=i(10107),h=(i(44208),i(87811),i(36005)),y=i(40608),f=i(43937),g=i(77548),v=i(20655),b=i(80812),w=i(41318),I=i(10407);const _=e=>{const t=e;let _=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new b.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,d.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!s.id?.findCredential(this.url),n=e===i.id;if(n&&i.portal.user)return this._getUserPrivileges(i,r);let o,l;if(n)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!o||!(0,c.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,u=!1,p=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:p}};try{if(n?await i.reload():(i=new b.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const i=(0,I.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,c.S8)(n.restUrl)===(0,c.S8)(r))return n.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,p=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&r&&!(0,c.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,m.MZ)({type:b.default})],_.prototype,"portalItem",null),(0,r.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,r.Cg)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,r.Cg)([(0,m.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,r.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],_),_},T={credential:null,user:null}},8947:(e,t,i)=>{i.d(t,{L:()=>o});var r=i(60999),n=i(74887),s=i(67076);async function o(e,t,i){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,r.Ke)(o.populateFromStyle());if((0,n.Te)(i),!1===l.ok){const i=l.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},9093:(e,t,i)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>n,vt:()=>r,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:r,fromValues:function(e,t,i,r,n,s,o,l,a,u,p,d,c,m,h,y){return[e,t,i,r,n,s,o,l,a,u,p,d,c,m,h,y]}},Symbol.toStringTag,{value:"Module"}))},10184:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(31635),n=i(69540),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),u=i(40608),p=i(73133);let d=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,a.e)(p.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,r.Cg)([(0,u.$)("esri.time.TimeInterval")],d)},13069:(e,t,i)=>{i.d(t,{AG:()=>l,lk:()=>n,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036:(e,t,i)=>{i.d(t,{p:()=>a});var r=i(44208),n=i(53966),s=i(20437),o=i(95466),l=i(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,i)=>{i.d(t,{b:()=>a});var r=i(31635),n=i(53966),s=i(10107),o=(i(44208),i(87811),i(40608)),l=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,n.A.getLogger(this)))}};return(0,r.Cg)([(0,s.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,s.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],i),i}},32730:(e,t,i)=>{i.d(t,{BI:()=>f,D3:()=>h,XJ:()=>y,lc:()=>m,mX:()=>v,rU:()=>g,tH:()=>T});var r=i(799);const n="__begin__",s="__end__",o=new RegExp(n,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+n,"i"),u=new RegExp(s+"$","i"),p='"',d=p+" + ",c=" + "+p;function m(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function y(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=m(e.labelExpression),t.type="conventional"),t}function f(e){const t=y(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=y(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function v(e){let t;return e?(t=(0,r.HC)(e,e=>n+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):p+t,t=u.test(t)?t.replace(u,""):t+p,t=t.replaceAll(o,d).replaceAll(l,c)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=w.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}},41366:(e,t,i)=>{i.d(t,{K:()=>c,Q:()=>u});var r=i(31635),n=i(66552),s=i(53966),o=i(10107),l=(i(44208),i(87811),i(93223)),a=i(40608);const u=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",d="field",c=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&p||null,t&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==d&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},41560:(e,t,i)=>{i.d(t,{Ch:()=>o,mW:()=>s});var r=i(34727),n=i(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,i){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:r}of e.filters)t[0]=Math.max(t[0],p(i)),t[1]=Math.min(t[1],d(r));return t}(e);if(s&&((0,r.gg)(t,s[0])||(0,r.ZH)(i,s[1])))return"";const o=Array.from(l(e,t,i)),a=function(e,t,i){if(0===e.length)return!0;const n=p(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,r.ZH)(n,t)||(0,r.gg)(s,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],n=e[t+1];if((0,r.ZH)(p(n.minScale),d(i.maxScale)))return!0}return!1}(o,t,i)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,i){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,i)&&(yield r)}}function a(e,t,i,n){return e=p(e),i=p(i),t=d(t),!(!(0,r.Sp)(i,e)&&(n??i)>e||(0,r.Hx)(t,i)||void 0!==n&&(0,r.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},46140:(e,t,i)=>{i.d(t,{R:()=>n});var r=i(49186);let n=class e{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,i=""){const[n,s]=t.split("."),o=/^\s*\d+\s*$/;if(!n?.match||!o.test(n))throw new r.A((i&&i+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new r.A((i&&i+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(n,10),a=parseInt(s,10);return new e(l,a,i)}}},50498:(e,t,i)=>{i.d(t,{Ye:()=>d,gy:()=>p,yR:()=>c});var r=i(66552),n=i(5443),s=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const p=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),c={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,i)=>{i.d(t,{A:()=>_});var r,n=i(31635),s=i(37838),o=i(69540),l=i(51447),a=i(25482),u=i(53966),p=i(36708),d=i(24326),c=i(10107),m=(i(44208),i(87811),i(40608)),h=i(12195),y=i(65864),f=i(50498),g=i(55156),v=i(60950),b=i(54339),w=i(33910);function I(e){if(null==e)return null;const t={};for(const i in e){const r=e[i];r&&(t[i]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let _=class extends((0,o.OU)(a.o)){static{r=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new r({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(n.action=r),"attributes"===e&&(n.attributeName=r),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const r=(0,y.rS)(e[i]);r&&(t[i]=r)}return 0!==Object.keys(t).length?t:null}}})],_.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,c.MZ)({value:null})],_.prototype,"attributes",null),(0,n.Cg)([(0,c.MZ)({value:null,types:f.yR,json:{read:y.rS}})],_.prototype,"geometry",null),(0,n.Cg)([(0,c.MZ)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],_.prototype,"layer",void 0),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],_.prototype,"origin",void 0),(0,n.Cg)([(0,c.MZ)({type:s.A,value:null})],_.prototype,"popupTemplate",null),(0,n.Cg)([(0,c.MZ)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,c.MZ)({value:null,types:w.Es})],_.prototype,"symbol",null),(0,n.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],_.prototype,"_version",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,value:!0})],_.prototype,"visible",null),_=r=(0,n.Cg)([(0,m.$)("esri.Graphic")],_)},54339:(e,t,i)=>{function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>n})},55156:(e,t,i)=>{i.d(t,{I:()=>n,e:()=>r});const r=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&r in t?e[r]:void 0;var t}},55674:(e,t,i)=>{i.d(t,{Ad:()=>m,Gj:()=>f,QY:()=>c,lL:()=>g,xR:()=>h});var r=i(66131),n=i(49186),s=(i(44208),i(44729)),o=i(15032),l=i(65864),a=i(95466),u=i(43668),p=i(98623);const d=["geometry","scale","timeProperties"];function c(e,t){if(null!=t)for(const i of d)t.hasArcadeDependency(i)&&e.add(i);return e}function m(e,t){return y.create(e,t,null,["$feature","$view"])}function h(e,t,i){return y.create(e,t,i,["$feature","$view","$config"])}class y{static async create(e,t,i,r){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const p={vars:r.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=s.compileScript(l,p);let c=null;null!=i&&(c=new o(i),c.immutable=!0);const m=new o;return m.immutable=!1,m.setField("scale",0),new y(e,s,l,d,t,m,c,o)}constructor(e,t,i,r,n,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=i,this._compiled=r,this._spatialReference=n,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new f,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const i=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=i?r.lY.epochToArcadeDate(n,i):r.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=s?null!=i?r.lY.epochToArcadeDate(s,i):r.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:i})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class f{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,i){const r=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=i}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const i=this._getField(e);if(i){const t=this._boundTarget.attributes[i.name];if(null==t)return null;switch(i.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const i in e)t.push({name:i,alias:i,type:"string"==typeof e[i]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},63396:(e,t,i)=>{i.d(t,{d:()=>T});var r=i(31635),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),o=i(60950),l=i(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var u=i(37838),p=i(69540),d=i(25482),c=i(93637),m=i(43937),h=i(50820),y=i(10873),f=i(46499),g=i(41214);let v=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,n.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,n.MZ)(y.kF)],v.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,n.MZ)({types:g.Hg,json:{write:!0}})],v.prototype,"renderer",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],v.prototype,"visible",void 0),v=(0,r.Cg)([(0,s.$)("esri.layers.support.TrackPartInfo")],v);var b=i(96576),w=i(59868),I=i(10184);let _=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new v({renderer:new b.A({symbol:w.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new v({renderer:new b.A({symbol:w.UK.clone()})}),this.trackLines=new v({renderer:new b.A({symbol:w.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){const r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(i,r,t)}};(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"enabled",void 0),(0,r.Cg)([(0,n.MZ)({type:[h.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,r.Cg)([(0,m.K)("fields")],_.prototype,"writeFields",null),(0,r.Cg)([(0,n.MZ)({type:v,json:{write:!0}})],_.prototype,"latestObservations",void 0),(0,r.Cg)([(0,n.MZ)({type:I.A,json:{write:!0}})],_.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],_.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,n.MZ)(y.M6)],_.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,n.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],_.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,n.MZ)({type:v,json:{write:!0}})],_.prototype,"previousObservations",void 0),(0,r.Cg)([(0,n.MZ)({type:v,json:{write:!0}})],_.prototype,"trackLines",void 0),(0,r.Cg)([(0,n.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],_.prototype,"timeField",void 0),_=(0,r.Cg)([(0,s.$)("esri.layers.support.TrackInfo")],_);const T=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,r.Cg)([(0,n.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,n.MZ)({type:_})],i.prototype,"trackInfo",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.TrackableLayer")],i),i}},69208:(e,t,i)=>{i.d(t,{d:()=>o});var r=i(31635),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608));const o=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},70328:(e,t,i)=>{i.d(t,{BI:()=>b,DC:()=>d,Ej:()=>m,Ie:()=>g,Jt:()=>v,Ne:()=>h,RF:()=>p,aI:()=>I,fA:()=>o,gE:()=>a,hZ:()=>f,iT:()=>c,is:()=>w,qv:()=>_,vI:()=>y,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var r=i(5443),n=(i(19419),i(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,r,n,o,l=s()){return l[0]=e,l[1]=t,l[2]=i,l[3]=r,l[4]=n,l[5]=o,l}function l(e,t=s()){return function(e,t,i,r=s()){return f(r,_),function(e,t,i=0,r=t.length/3){let n=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<r;e++)n=Math.min(n,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),l=Math.max(l,t[i+3*e]),a=Math.max(a,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(r,e,t,i),r}(e,0,e.length/3,t)}function a(e,t=(0,n.jh)(24)){const[i,r,s,o,l,a]=e;return t[0]=i,t[1]=r,t[2]=s,t[3]=i,t[4]=r,t[5]=a,t[6]=i,t[7]=l,t[8]=s,t[9]=i,t[10]=l,t[11]=a,t[12]=o,t[13]=r,t[14]=s,t[15]=o,t[16]=r,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function y(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?f(e,_):s(_)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,i,r,n){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function I(e,t,i){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},72691:(e,t,i)=>{i.d(t,{Aw:()=>o,DN:()=>r,EA:()=>s,Gm:()=>n,xq:()=>l});const r="__esri_stream_id__",n="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",l="__esri_track_line__"},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73681:(e,t,i)=>{i.d(t,{n:()=>a});var r=i(49186),n=i(53966),s=i(46140),o=i(95466),l=i(55674);class a{static async from(e,t,i){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,p=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const c=new Set(e.authoringInfo.symbol);for(const e of Object.keys(i))c.delete(e);c.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:c});const m=await(0,l.xR)(e.expression,null,d);if(!m)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const y=new u(i,h);return new a(h,p,m,y)}constructor(e,t,i,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=i,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,i,r){try{return this._reader.bind(e,i,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},79457:(e,t,i)=>{i.r(t),i.d(t,{default:()=>oe});var r=i(31635),n=i(37838),s=i(78888),o=i(69540),l=i(49186),a=i(36563),u=i(4718),p=i(53966),d=i(92071),c=i(74887),m=i(10107),h=i(56507),y=i(36005),f=i(40608),g=i(5443),v=i(16930),b=i(50498),w=i(55156),I=i(60950),_=i(89808),T=i(99959);const M=Symbol("isStreamGraphicOrigin");var x;class F extends T.A{get[(x=M,I.ym)](){return this.layer}get[w.e](){return this.layer}get[_.Q](){return this.layer}constructor(e){super(),this[x]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var S,C=i(4146),A=i(18768),Z=i(63074),j=i(69208),O=i(6455),E=i(87718),N=i(56658),P=i(16131),D=i(8303),R=i(54310),U=i(25036),$=i(82935),k=i(63396),L=i(10873),G=i(15426),z=i(20437),V=i(17036),J=i(30524),q=i(46499),B=i(39383),H=i(25482);i(44208),i(87811);let Y=class extends H.o{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}static{S=this}clone(){return new S({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,r.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],Y.prototype,"age",void 0),(0,r.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],Y.prototype,"ageReceived",void 0),(0,r.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],Y.prototype,"displayCount",void 0),(0,r.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],Y.prototype,"maxObservations",void 0),Y=S=(0,r.Cg)([(0,f.$)("esri.layers.support.PurgeOptions")],Y);var K=i(72691),W=i(65494),Q=i(8947),X=i(41214),ee=i(61956),te=i(30291),ie=i(88625);const re=(0,V.p)();function ne(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let se=class extends((0,O.FJ)((0,N.J)((0,E.F)((0,Z.dM)((0,$.e)((0,k.d)((0,U.j)((0,R.J)((0,A.b)((0,P.q)((0,D.A)((0,d.P)((0,j.d)((0,o.OU)(C.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new F(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new Y,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=v.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,c.sg)(async(e,t,r)=>{const{save:n,saveAs:s}=await i.e(7301).then(i.bind(i,87301));switch(e){case 0:return n(this,t);case 1:return s(this,r,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(c.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,J.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,W.L)(r,t,i)||void 0;return e||p.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,G.PD)(t,i)}async connect(e){const[{createConnection:t}]=await Promise.all([i.e(624).then(i.bind(i,30624)),this.load()]),r=this.geometryType?b.gy.toJSON(this.geometryType):null,{customParameters:n=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:u=20,spatialReference:p=this.spatialReference}=e||this.createConnectionParameters(),d=t(this.parsedUrl,this.spatialReference,p,r,s,o,l,u,n??void 0),c=(0,a.vE)([this.on("send-message-to-socket",e=>d.sendMessageToSocket(e)),this.on("send-message-to-client",e=>d.sendMessageToClient(e))]);return d.once("destroy",c.remove),d}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,te.tn)(this,e)}createQuery(){const e=new ee.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let i=null;return this.fields.some(t=>(t.name===e&&(i=t.domain),!!i)),i}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const i=t?.messages;return this.webSocketUrl?(i?.push(ne(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(i?.push(ne(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new l.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new z.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,J.yp)(this.renderer,this.fieldsIndex),(0,J.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=K.DN),(0,Q.L)(this,{origin:"service"})}};(0,r.Cg)([(0,m.MZ)({type:String})],se.prototype,"copyright",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],se.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,m.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],se.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],se.prototype,"displayField",void 0),(0,r.Cg)([(0,m.MZ)({type:ie.A})],se.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],se.prototype,"featureReduction",null),(0,r.Cg)([(0,m.MZ)(re.fields)],se.prototype,"fields",void 0),(0,r.Cg)([(0,m.MZ)(re.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,m.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],se.prototype,"geometryDefinition",void 0),(0,r.Cg)([(0,m.MZ)({type:b.gy.apiValues,json:{read:{reader:b.gy.read}}})],se.prototype,"geometryType",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],se.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,m.MZ)(L.kF)],se.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:[q.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],se.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,m.MZ)(L.fV)],se.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],se.prototype,"listMode",void 0),(0,r.Cg)([(0,m.MZ)({type:h.jz})],se.prototype,"maxReconnectionAttempts",void 0),(0,r.Cg)([(0,m.MZ)({type:h.jz})],se.prototype,"maxReconnectionInterval",void 0),(0,r.Cg)([(0,m.MZ)(L.hG)],se.prototype,"maxScale",void 0),(0,r.Cg)([(0,m.MZ)(L.hn)],se.prototype,"minScale",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],se.prototype,"objectIdField",void 0),(0,r.Cg)([(0,m.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],se.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],se.prototype,"outFields",void 0),(0,r.Cg)([(0,m.MZ)(L.M6)],se.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,m.MZ)({type:Y})],se.prototype,"purgeOptions",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1,write:!1}})],se.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,m.MZ)({types:X.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:X.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],se.prototype,"renderer",null),(0,r.Cg)([(0,y.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,y.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],se.prototype,"readRenderer",null),(0,r.Cg)([(0,m.MZ)((()=>{const e=(0,u.o8)(L.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],se.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,m.MZ)()],se.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,m.MZ)({type:v.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],se.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1}})],se.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)(L.OZ)],se.prototype,"url",void 0),(0,r.Cg)([(0,m.MZ)({type:Number})],se.prototype,"updateInterval",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1,write:!1}})],se.prototype,"useViewTime",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],se.prototype,"webSocketUrl",void 0),se=(0,r.Cg)([(0,f.$)("esri.layers.StreamLayer")],se);const oe=se},82935:(e,t,i)=>{i.d(t,{B:()=>m,e:()=>h});var r=i(31635),n=i(10107),s=(i(44208),i(53966),i(87811),i(36005)),o=i(40608),l=i(89317),a=i(30524),u=i(96184),p=i(73133),d=i(79677),c=i(10184);const m={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,n=p.j.fromJSON(i.timeOffsetUnits);return r&&n?new c.A({value:r,unit:n}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,n.MZ)({type:d.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,n.MZ)({type:c.A})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,n.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,n.MZ)(m)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>o,oW:()=>a,zx:()=>l});var r=i(34727),n=i(83047);const s=96;function o(e,t){const i=t||e.extent,r=e.width,o=(0,n.GA)(i?.spatialReference);return i&&r?i.width/r*o*n.dy*s:0}function l(e,t,i){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,i)}function a(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},95466:(e,t,i)=>{i.d(t,{A:()=>m});var r=i(49186),n=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),p=i(56400),d=i(96285);const c=new Map;class m{static fromJSON(e){return new m(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new m(e.fields??[],g(e))}static fromLayerJSON(e){return new m(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,r=y(t);if(t&&r){const n=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?d.mQ.utcInstance:(0,s.tE)(c,t,()=>d.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,p.ZS)(n.dateFieldsTimeReference):l??u.n$:null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,p.ZS)(r.timeReference):l:null,c=new Map([[h(n?.creationDateField??""),a],[h(n?.editDateField??""),a],[h(s),d],[h(o),d]]);for(const{name:r,type:n}of e.fields)if(f.has(n))t.set(r,u.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=c.get(h(r??""))??l;t.set(r,e)}return t}},96184:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(31635),n=i(69540),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(40608),u=i(43937),p=i(79677),d=i(10184),c=i(56400);function m(e,t){return d.A.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r.Cg)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,o.MZ)({type:d.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,r.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r.Cg)([(0,o.MZ)((0,c.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,r.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,r.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5845],{9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,l,s,a,u,c,f,h,p,d,m){return[t,n,e,r,o,i,l,s,a,u,c,f,h,p,d,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(t,n,e)=>{e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(37539);function o(t,n,e,o,i,l,s=Math.floor(t.length/3)){const a=(0,r.jd)(n,i);if(null==a)return!1;if(a===r.pO){if(t===o&&e===l)return!0;const n=e+3*s;for(let r=e,i=l;r<n;r++,i++)o[i]=t[r];return!0}const u=e+3*s;for(let n=e,r=l;n<u;n+=3,r+=3)a(t,n,o,r);return!0}},11006:(t,n,e)=>{function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||l)}function o(t,n,e,r,l){for(;r>e;){if(r-e>600){var s=r-e+1,a=n-e+1,u=Math.log(s),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(s-c)/s)*(a-s/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-a*c/s+f)),Math.min(r,Math.floor(n+(s-a)*c/s+f)),l)}var h=t[n],p=e,d=r;for(i(t,e,n),l(t[r],h)>0&&i(t,e,r);p<d;){for(i(t,p,d),p++,d--;l(t[p],h)<0;)p++;for(;l(t[d],h)>0;)d--}0===l(t[e],h)?i(t,e,d):i(t,++d,r),d<=n&&(e=d+1),n<=d&&(r=d-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function l(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},18251:(t,n,e)=>{e.d(n,{A:()=>c});var r=e(31635),o=e(69540),i=e(25482),l=e(10107),s=(e(44208),e(53966),e(87811),e(93223)),a=e(40608),u=e(51850);let c=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,u.vt)()}};(0,r.Cg)([(0,s.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$)("esri.geometry.support.MeshLocalVertexSpace")],c)},22141:(t,n,e)=>{e.d(n,{$5:()=>_,CN:()=>M,JP:()=>y,KM:()=>k,Mv:()=>S,X4:()=>w,gr:()=>v,qs:()=>b,si:()=>x,xA:()=>A});var r=e(34727),o=e(77690),i=e(29242),l=e(58083),s=e(9093),a=e(38954),u=e(51850),c=e(48353),f=e(9762),h=(e(79258),e(21325)),p=e(28735),d=e(13030),m=e(73354),g=e(65686);const y="Projection may be possible after calling projection.load().";function M(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function w(t,n,e,r,o,i){return j(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function x(t,n,e,r,o,i){return j(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function _(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(T,e),(0,m.b)(n,t,T),(0,r.or)(T)&&(0,m.n)(n,n),n}function k(t,n,e){return(0,o.z0)(T,e),(0,g.t)(n,t,T),(0,r.or)(T)&&(0,m.n)(n,n,4),n}function A(t,n,e,r,o,i){if(!j(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function S(t,n,e,r,o,i){if(!j(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function R(t,n,e,r,i){switch((0,c.l)(r,e,O,r),1===t&&(0,l.B8)(O,O),n){case 0:return(0,o.Ge)(i,O);case 1:return(0,o.z0)(i,O)}}function j(t,n,e,r,o,i,l,s){if(!n)return;const u=r.count;if(function(t){return t.isWGS84||(0,h.x1)(t)||(0,h.q8)(t)||(0,h.KQ)(t)}(o))for(let r=0;r<u;r++)i.getVec(r,B),n.getVec(r,I),(0,a.o)(I,I,R(t,e,B,l,T)),s.setVec(r,I);else for(let o=0;o<u;o++){i.getVec(o,B),n.getVec(o,I);const u=(0,p.jg)(r.get(o,1));let c=Math.cos(u);1===e!=(0===t)&&(c=1/c),R(t,e,B,l,T),0===t?(T[0]*=c,T[1]*=c,T[2]*=c,T[3]*=c,T[4]*=c,T[5]*=c):(T[0]*=c,T[3]*=c,T[6]*=c,T[1]*=c,T[4]*=c,T[7]*=c),(0,a.o)(I,I,T),(0,a.n)(I,I),s.setVec(o,I)}return s}const B=(0,u.vt)(),I=(0,u.vt)(),O=(0,s.vt)(),T=(0,i.vt)()},27615:(t,n,e)=>{e.d(n,{CK:()=>a,Hq:()=>s,MW:()=>u,TE:()=>c,yJ:()=>f});var r=e(38954),o=e(86738),i=e(95696),l=e(18251);function s(t){return null!=t.origin}function a(t){return s(t.vertexSpace)}function u(t,n){if(!s(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function c(t,n){const{x:e,y:r,z:o,spatialReference:s}=t,a=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new l.A({origin:a}):new i.A({origin:a})}function f(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.q)(t.origin,n.origin))}},31635:(t,n,e)=>{function r(t,n,e,r){var o,i=arguments.length,l=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(l=(i<3?o(l):i>3?o(n,e,l):o(n,e))||l);return i>3&&l&&Object.defineProperty(n,e,l),l}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>l,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function l(t){function n(n){t.error=t.hasError?new i(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},37539:(t,n,e)=>{e.d(n,{pO:()=>m,jd:()=>h,Tp:()=>p,w5:()=>f});var r=e(34727),o=e(83047),i=e(73941),l=e(79258);Math.PI;const s=l.$O.radius,a=l.$O.eccentricitySquared,u={a1:s*a,a2:s*a*s*a,a3:s*a*a/2,a4:s*a*s*a*2.5,a5:s*a+s*a*a/2,a6:1-a};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var c=e(21325);const f={2:{5:m,7:null,9:null,10:m,1:b,6:null,8:null,0:null,3:y,11:M,2:m,4:j},5:{5:m,7:null,9:null,10:m,1:b,6:null,8:null,0:null,3:y,11:M,2:m,4:j},7:{5:null,7:m,9:null,10:m,1:null,6:_,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,n,e,r){const o=t[n]/X,i=P-2*Math.atan(Math.exp(-t[n+1]/X)),l=X+t[n+2],s=Math.cos(i)*l;e[r]=Math.cos(o)*s,e[r+1]=Math.sin(o)*s,e[r+2]=Math.sin(i)*l},6:null,8:null,0:null,3:m,11:function(t,n,e,r){g(t,n,e,r),M(e,r,e,r)},2:g,4:function(t,n,e,r){g(t,n,e,r),j(e,r,e,r)}},4:{5:B,7:null,9:null,10:B,1:function(t,n,e,r){B(t,n,e,r),b(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){B(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){B(t,n,e,r),M(e,r,e,r)},2:B,4:m},1:{5:R,7:null,9:null,10:R,1:m,6:null,8:null,0:null,3:function(t,n,e,r){R(t,n,e,r),y(e,r,e,r)},11:function(t,n,e,r){R(t,n,e,r),M(e,r,e,r)},2:R,4:function(t,n,e,r){R(t,n,e,r),j(e,r,e,r)}},6:{5:null,7:S,9:null,10:S,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:m,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:b,6:_,8:v,0:null,3:y,11:M,2:m,4:j},11:{5:w,7:null,9:null,10:w,1:function(t,n,e,r){w(t,n,e,r),b(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){w(t,n,e,r),y(e,r,e,r)},11:m,2:w,4:function(t,n,e,r){w(t,n,e,r),j(e,r,e,r)}}};function h(t,n){return p(t,n)?.projector}function p(t,n){if(null==t||null==n)return null;if(I.source.spatialReference===t&&I.dest.spatialReference===n)return I;const e=d(t,I.source),r=d(n,I.dest);return 0===e&&0===r?(0,c.aI)(t,n)?I.projector=m:I.projector=null:I.projector=f[e][r],I}function d(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,i.jA)(t)?n.spatialReferenceId=1:(0,c.oT)(t)?n.spatialReferenceId=2:(0,c.K8)(t)?n.spatialReferenceId=3:(0,c.r1)(t)?n.spatialReferenceId=11:t.wkt===i.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===i.FY.wkt?n.spatialReferenceId=6:t.wkt===i.LJ.wkt?n.spatialReferenceId=8:(0,c.q8)(t)?n.spatialReferenceId=7:(0,c.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function m(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n])}function g(t,n,e,r){e[r]=T*(t[n]/X),e[r+1]=T*(P-2*Math.atan(Math.exp(-t[n+1]/X))),e[r+2]=t[n+2]}function y(t,n,e,o){!function(t,n,e,o,i){const l=.4999999*Math.PI,s=(0,r.qE)(O*t[n+1],-l,l),a=Math.sin(s);e[o++]=O*t[n]*i.radius,e[o++]=i.halfSemiMajorAxis*Math.log((1+a)/(1-a)),e[o]=t[n+2]}(t,n,e,o,l.$O)}function M(t,n,e,r){e[r]=t[n]*Y,e[r+1]=t[n+1]*Y,e[r+2]=t[n+2]}function w(t,n,e,r){e[r]=t[n]*q,e[r+1]=t[n+1]*q,e[r+2]=t[n+2]}function x(t,n,e,r,o){const i=o+t[n+2],l=O*t[n+1],s=O*t[n],a=Math.cos(l)*i;e[r]=Math.cos(s)*a,e[r+1]=Math.sin(s)*a,e[r+2]=Math.sin(l)*i}function v(t,n,e,r){x(t,n,e,r,l.Sw.radius)}function _(t,n,e,r){x(t,n,e,r,l.sH.radius)}function b(t,n,e,r){x(t,n,e,r,l.$O.radius)}function k(t,n,e,o,i){const l=t[n],s=t[n+1],a=t[n+2],u=Math.sqrt(l*l+s*s+a*a),c=(0,r.YN)(a/(0===u?1:u)),f=Math.atan2(s,l);e[o++]=T*f,e[o++]=T*c,e[o]=u-i}function A(t,n,e,r){k(t,n,e,r,l.Sw.radius)}function S(t,n,e,r){k(t,n,e,r,l.sH.radius)}function R(t,n,e,r){k(t,n,e,r,l.$O.radius)}function j(t,n,e,r){!function(t,n,e,r,o){const i=O*t[n],l=O*t[n+1],s=t[n+2],a=Math.sin(l),u=Math.cos(l),c=o.radius/Math.sqrt(1-o.eccentricitySquared*a*a);e[r++]=(c+s)*u*Math.cos(i),e[r++]=(c+s)*u*Math.sin(i),e[r++]=(c*(1-o.eccentricitySquared)+s)*a}(t,n,e,r,l.$O)}function B(t,n,e,r){const o=u,i=t[n],s=t[n+1],a=t[n+2];let c,f,h,p,d,m,g,y,M,w,x,v,_,b,k,A,S,R,j,B,I;c=Math.abs(a),f=i*i+s*s,h=Math.sqrt(f),p=f+a*a,d=Math.sqrt(p),B=Math.atan2(s,i),m=a*a/p,g=f/p,b=o.a2/d,k=o.a3-o.a4/d,g>.3?(y=c/d*(1+g*(o.a1+b+m*k)/d),j=Math.asin(y),w=y*y,M=Math.sqrt(1-w)):(M=h/d*(1-m*(o.a5-b-g*k)/d),j=Math.acos(M),w=1-M*M,y=Math.sqrt(w)),x=1-l.$O.eccentricitySquared*w,v=l.$O.radius/Math.sqrt(x),_=o.a6*v,b=h-v*M,k=c-_*y,S=M*b+y*k,A=M*k-y*b,R=A/(_/x+S),j+=R,I=S+A*R/2,a<0&&(j=-j),e[r++]=T*B,e[r++]=T*j,e[r]=I}const I={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},O=(0,r.kU)(1),T=(0,r.KJ)(1),P=.5*Math.PI,X=l.$O.radius,Y=X*Math.PI/180,q=180/(X*Math.PI)},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>s});var r=e(44208),o=e(75503),i=e(95696),l=e(72258);class s{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.wq;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,s=(0,l.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),s=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return a().fromJSON(s)}createIndexThread(t){const n=a();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=u(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map(t=>new Uint32Array(t))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=u(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function a(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function u(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},38954:(t,n,e)=>{e.d(n,{A:()=>d,B:()=>p,C:()=>c,D:()=>f,E:()=>P,F:()=>E,H:()=>z,a:()=>X,b:()=>y,c:()=>l,d:()=>u,e:()=>k,f:()=>a,g:()=>g,h:()=>A,i:()=>s,j:()=>M,k:()=>x,l:()=>i,m:()=>S,n:()=>b,o:()=>j,q:()=>T,r:()=>_,s:()=>w,t:()=>R,u:()=>v,v:()=>B,w:()=>h,x:()=>N,y:()=>C,z:()=>m});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function l(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function w(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function x(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function _(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function b(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function k(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],o=n[1],i=n[2],l=e[0],s=e[1],a=e[2];return t[0]=o*a-i*s,t[1]=i*l-r*a,t[2]=r*s-o*l,t}function S(t,n,e,r){const o=n[0],i=n[1],l=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=l+r*(e[2]-l),t}function R(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function j(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function B(t,n,e){const r=e[0],o=e[1],i=e[2],l=e[3],s=n[0],a=n[1],u=n[2],c=o*u-i*a,f=i*s-r*u,h=r*a-o*s,p=o*h-i*f,d=i*c-r*h,m=r*f-o*c,g=2*l;return t[0]=s+c*g+2*p,t[1]=a+f*g+2*d,t[2]=u+h*g+2*m,t}const I=(0,r.vt)(),O=(0,r.vt)();function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function P(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let l=r*r+o*o+i*i;return l>0?(l=1/Math.sqrt(l),t[0]=r*l,t[1]=o*l,t[2]=i*l,t):(t[0]=0,t[1]=0,t[2]=0,t)}const X=u,Y=c,q=f,E=M,N=w,z=i,C=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:function(t,n){b(I,t),b(O,n);const e=k(I,O);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const l=1-i,s=l*l,a=i*i,u=s*l,c=3*i*s,f=3*a*l,h=a*i;return t[0]=n[0]*u+e[0]*c+r[0]*f+o[0]*h,t[1]=n[1]*u+e[1]*c+r[1]*f+o[1]*h,t[2]=n[2]*u+e[2]*c+r[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:l,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],l=e[0],s=e[1],a=e[2],u=o*a-i*s,c=i*l-r*a,f=r*s-o*l,h=Math.sqrt(u*u+c*c+f*f);return t[0]=u/h,t[1]=c/h,t[2]=f/h,t},direction:P,dist:E,distance:M,div:q,divide:f,dot:k,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],l=n[0],s=n[1],a=n[2],u=(0,o.FD)();return Math.abs(e-l)<=u*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))},exactEquals:T,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const l=i*i,s=l*(2*i-3)+1,a=l*(i-2)+i,u=l*(i-1),c=l*(3-2*i);return t[0]=n[0]*s+e[0]*a+r[0]*u+o[0]*c,t[1]=n[1]*s+e[1]*a+r[1]*u+o[1]*c,t[2]=n[2]*s+e[2]*a+r[2]*u+o[2]*c,t},inverse:_,len:z,length:i,lerp:S,max:m,min:d,mul:Y,multiply:c,negate:v,normalize:b,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,l=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*l,t[1]=Math.sin(r)*l,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:y,set:s,sign:p,sqrDist:N,sqrLen:C,squaredDistance:w,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:X,subtract:u,transformMat3:j,transformMat4:R,transformQuat:B},Symbol.toStringTag,{value:"Module"}))},40876:(t,n,e)=>{e.d(n,{Eq:()=>p,G1:()=>m,TS:()=>i,Tf:()=>M,V6:()=>o,Vm:()=>d,ay:()=>a,c1:()=>g,c4:()=>l,j5:()=>u,lT:()=>f,oW:()=>c});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function l(t){return[...i(t)]}function s(t,n,e){e<0&&++e,e>1&&--e;const r=6*e;return r<1?t+(n-t)*r:2*e<1?n:3*e<2?t+(n-t)*(2/3-e)*6:t}function a(t,n,e,r=1){const o=(t%360+360)%360/360,i=e<=.5?e*(n+1):e+n-e*n,l=2*e-i;return[Math.round(255*s(l,i,o+1/3)),Math.round(255*s(l,i,o)),Math.round(255*s(l,i,o-1/3)),r]}function u(t){const n=t.length>5,e=n?8:4,r=(1<<e)-1,o=n?1:17,i=n?9===t.length:5===t.length;let l=Number("0x"+t.slice(1));if(isNaN(l))return null;const s=[0,0,0,1];let a;return i&&(a=l&r,l>>=e,s[3]=o*a/255),a=l&r,l>>=e,s[2]=o*a,a=l&r,l>>=e,s[1]=o*a,a=l&r,l>>=e,s[0]=o*a,s}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.slice(1,2),16),e=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),o=4===t.length?15:parseInt(t.slice(4),16);return[n+16*n,e+16*e,r+16*r,(o+16*o)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function f(t){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),e=n[1];if("rgb"===e&&3===t.length||"rgba"===e&&4===t.length){if(t[0].endsWith("%")){const n=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(n[3]=parseFloat(t[3])),h(n)}return h(t.map(t=>parseFloat(t)))}if("hsl"===e&&3===t.length||"hsla"===e&&4===t.length)return a(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function h(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function p(t){let n=o(t)?i(t):null;return n??=f(t),n??=c(t),n}function d(t){const n=p(t);return null!=n?[n[0]/255,n[1]/255,n[2]/255,n[3]]:null}function m(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,n,e){return t=Number(t),isNaN(t)?e:t<n?n:t>e?e:t}const M=2.2},48163:(t,n,e)=>{function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function l(){return i(1,1)}function s(){return i(1,0)}function a(){return i(0,1)}e.d(n,{Un:()=>u,fA:()=>i,o8:()=>o,vt:()=>r});const u=l(),c=s(),f=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:l,unitX:s,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>u});var r=e(34727),o=e(58083),i=e(51850);function l(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),l=Math.cos(n),s=e;return s[0]=-r,s[4]=-i*o,s[8]=l*o,s[12]=0,s[1]=o,s[5]=-i*r,s[9]=l*r,s[13]=0,s[2]=0,s[6]=l,s[10]=i,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(37539),a=e(21325);function u(t,n,e,r){const i=(0,s.Tp)(t,r);if(null==i)return!1;const u=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(u===d&&!c(d)&&(0!==u||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(d)){const t=s.w5[u][10],r=s.w5[10][d];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),l(f*h[0],f*h[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const m=c(u);if((3===d||11===d||2===d||5===d)&&(2===u||m||3===u||5===u)){const t=s.w5[u][10],r=s.w5[10][d];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),m?function(t,n,e){l(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},51850:(t,n,e)=>{function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function l(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function a(){return i(1,1,1)}function u(){return i(1,0,0)}function c(){return i(0,1,0)}function f(){return i(0,0,1)}e.d(n,{CN:()=>l,Cb:()=>g,Cw:()=>d,JP:()=>m,Un:()=>p,ci:()=>s,fA:()=>i,o8:()=>o,uY:()=>h,vt:()=>r});const h=[0,0,0],p=a(),d=u(),m=c(),g=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:d,UNIT_Y:m,UNIT_Z:g,ZEROS:h,clone:o,create:r,freeze:l,fromArray:s,fromValues:i,ones:a,unitX:u,unitY:c,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},62815:(t,n,e)=>{e.d(n,{N:()=>l});var r=e(83047),o=e(73941),i=e(21325);function l(t,n,e){if(null==n||null==e||e.vcsWkid||(0,i.aI)(n,e)||(0,o.xP)(n)||(0,o.xP)(e))return null;const l=(0,r.G9)(n)/(0,r.G9)(e);if(1===l)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,n){null!=t?.z&&(t.z*=n)}(t,l);case"polyline":case"esriGeometryPolyline":return t=>function(t,n){if(t)for(const e of t.paths)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"polygon":case"esriGeometryPolygon":return t=>function(t,n){if(t)for(const e of t.rings)for(const t of e)t.length>2&&(t[2]*=n)}(t,l);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,n){if(t)for(const e of t.points)e.length>2&&(e[2]*=n)}(t,l);case"extent":case"esriGeometryEnvelope":return t=>function(t,n){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=n,t.zmax*=n)}(t,l);default:return null}}},65806:(t,n,e)=>{e.d(n,{g:()=>l});var r=e(51850),o=e(98988),i=e(9762);function l(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){s[0]=t.x,s[1]=t.y;const o=t.z;return s[2]=o??r??0,(0,i.projectBuffer)(s,t.spatialReference,0,n,e,0)}const l=(0,o.tryProjectWithZConversion)(t,e);return!!l&&(n[0]=l?.x,n[1]=l?.y,n[2]=l?.z??r??0,!0)}const s=(0,r.vt)()},69540:(t,n,e)=>{e.d(n,{OU:()=>c,Pw:()=>f});var r=e(31635),o=e(65008),i=(e(44208),e(4718)),l=(e(53966),e(97768)),s=e(88620),a=e(40608);const u=Symbol("ClonableMixin"),c=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=u}clone(t){const n=(0,s.oY)(this);(0,l.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},a=new Map;for(const n in e){const l=e[n],s=r?.originOf(n),u=l.clonable;if(l.readOnly||!1===u||7!==s&&0!==s&&5!==s&&4!==s)continue;const c=this[n];let f=null;if("function"==typeof u)f=u(c,t);else if("reference"===u)f=c;else if(f=(0,i.TU)(c,t),null!=c&&null==f)continue;0===s?a.set(n,f):o[n]=f}const u=new(0,Object.getPrototypeOf(this).constructor)(o);if(a.size){const t=(0,s.oY)(u)?.store;if(t)for(const[n,e]of a)t.set(n,e,0)}return u}};return o=(0,r.Cg)([(0,a.$)("esri.core.Clonable")],o),o},f=c(o.A)},72258:(t,n,e)=>{e.d(n,{UR:()=>v,p5:()=>x,xK:()=>R});var r=e(53966),o=e(34727),i=e(83047),l=e(77690),s=e(29242),a=e(58083),u=e(9093),c=e(38954),f=e(51850),h=e(98764),p=e(48353),d=e(65806),m=e(27615),g=e(21325),y=e(73354),M=e(22141);const w=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function x(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:l}=e,s=T;if(!(0,p.l)(r,l,s,o))return!1;const u=(0,a.B8)(T,s);return null!=u&&((0,c.t)(t,i,u),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,s=(0,m.Hq)(r)?o:null,f=A(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!s||(0,a.t2)(s.localMatrix,u.zK))&&S(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=_(n,i);if(!(0,p.l)(n,r,j,l))return(0,M.CN)(w(),n,l),null;if(e&&(0,a.lw)(j,j,e.localMatrix),!(0,p.l)(n,o,B,l))return(0,M.CN)(w(),l,n),null;(0,a.B8)(B,B);const s=(0,a.lw)(j,B,j);return k(s,n,i,3),b(t,s)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const l=_(t,i);if(!(0,p.l)(t,r,j,l))return(0,M.CN)(w(),t,l),null;e&&(0,a.lw)(j,j,e.localMatrix),k(j,t,i,1);const s=new Float64Array(n.position.length),u=function(t,n,e,r,o){(0,y.t)(r,t,n);const i=new Float64Array(t.length);return(0,M.$5)(r,o,i,e)?i:((0,M.CN)(w(),o,e),null)}(n.position,j,t,s,l);if(!u)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.qs)(o,l,i),(0,M.si)(l,t,n,e,r,l)?l:((0,M.CN)(w(),r,n),null)}(u,t,s,l,n.normal,j);if(n.normal&&!f)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,M.KM)(o,l,i),(0,M.Mv)(l,t,n,e,r,l)?l:((0,M.CN)(w(),r,n),null)}(u,t,s,l,n.tangent,j);if(n.tangent&&!h)return null;if(o){const t=(0,c.u)(O,o);(0,y.a)(u,u,t)}return{position:u,normal:f,tangent:h}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const s=_(n,i);if(!(0,p.l)(n,o,j,s))return(0,M.CN)(w(),n,s),null;const u=1/A(n,i,2);(0,a.hs)(j,j,[u,u,u]);const c=(0,a.B8)(B,j),{position:f,normal:h,tangent:d}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,y.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,y.a)(r.position,r.position,n),r}(t,r,e),m=new Float64Array(f.length),g=function(t,n,e,r,o){const i=(0,M.gr)(t,n,r,o);if(!i)return(0,M.CN)(w(),n,o),null;const l=new Float64Array(i.length);return(0,y.t)(l,i,e),l}(f,n,c,m,s);if(!g)return null;const x=(0,l.Ge)(I,c),v=function(t,n,e,r,o,i,l){if(null==t)return null;const s=l??new Float32Array(t.length);return(0,M.X4)(t,n,e,r,o,s)?((0,y.b)(s,s,i),s):((0,M.CN)(w(),e,o),null)}(h,f,n,m,s,x,h!==t.normal?h:void 0);if(!v&&h)return null;const k=function(t,n,e,r,o,i,l){if(null==t)return null;const s=l??new Float32Array(t.length);return(0,M.xA)(t,n,e,r,o,s)?((0,y.b)(s,s,i,4),s):((0,M.CN)(w(),e,o),null)}(d,f,n,m,s,x,d!==t.tangent?d:void 0);return!k&&d?null:{position:g,normal:v,tangent:k}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const l=A(e,i,3),s=r||!S(l)?(0,a.C)(j,n?.localMatrix??u.zK):null;s&&k(s,e,i,3);const{position:f,normal:h,tangent:p}=s?b(t,s):t,d=i?.allowBufferReuse,m=d?f:new Float64Array(f.length);let g=f;if(r&&(g=(0,y.a)(m,g,r)),o){const t=(0,c.u)(O,o);g=(0,y.a)(m,g,t)}return{position:g!==t.position||d?g:g.slice(),normal:h!==t.normal||d?h:h?.slice(),tangent:p!==t.tangent||d?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function _(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?h.Y0:(0,h.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,y.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,n),o&&t.tangent&&(0,M.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function k(t,n,e,r){const o=A(n,e,r);S(o)||(0,a.hs)(t,t,[o,o,o])}function A(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,l=n?.targetUnit;if(!i&&!l)return 1;let s=R(i,t);r||!i||S(s)||(w().warn("source unit conversion not supported"),s=1);let a=1/R(l,t);return o||!l||S(a)||(w().warn("target unit conversion not supported"),a=1),s*a}function S(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const j=(0,u.vt)(),B=(0,u.vt)(),I=(0,s.vt)(),O=(0,f.vt)(),T=(0,u.vt)()},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>s,c:()=>l,d:()=>o,e:()=>h,f:()=>c,l:()=>u,n:()=>p,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,l=e[0],s=e[1],a=e[2],u=e[4],c=e[5],f=e[6],h=e[8],p=e[9],d=e[10],m=e[12],g=e[13],y=e[14];let M=0,w=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],x=n[M+2];t[w]=l*e+u*i+h*x+m,t[w+1]=s*e+c*i+p*x+g,t[w+2]=a*e+f*i+d*x+y,M+=o,w+=r}return t}function l(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,l=e[0],s=e[1],a=e[2],u=e[3],c=e[4],f=e[5],h=e[6],p=e[7],d=e[8];let m=0,g=0;for(let e=0;e<i;e++){const e=n[m],i=n[m+1],y=n[m+2];t[g]=l*e+u*i+h*y,t[g+1]=s*e+c*i+p*y,t[g+2]=a*e+f*i+d*y,m+=o,g+=r}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let l=0,s=0;for(let a=0;a<i;a++)t[s]=e*n[l],t[s+1]=e*n[l+1],t[s+2]=e*n[l+2],l+=o,s+=r;return t}function u(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,l=i){const s=Math.min(t.length/i,n.length/l);let a=0,u=0;const c=1/r.Tf;for(let r=0;r<s;r++)t[u]=o*(e*n[a])**c,t[u+1]=o*(e*n[a+1])**c,t[u+2]=o*(e*n[a+2])**c,a+=l,u+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let l=0,s=0;for(let a=0;a<i;a++)t[s]=n[l]+e[0],t[s+1]=n[l+1]+e[1],t[s+2]=n[l+2]+e[2],l+=o,s+=r;return t}function h(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,l=0;for(let s=0;s<o;s++){const o=n[i],s=n[i+1],a=n[i+2],u=o*o+s*s+a*a;if(u>0){const n=1/Math.sqrt(u);t[l]=n*o,t[l+1]=n*s,t[l+2]=n*a}i+=r,l+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:p,normalizeView:h,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,l=n.typedBuffer,s=n.typedBufferStride;let a=0,u=0;for(let t=0;t<r;t++)o[u]=l[a]>>e,o[u+1]=l[a+1]>>e,o[u+2]=l[a+2]>>e,a+=s,u+=i},transformMat3:s,transformMat3View:l,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{EC:()=>A,wq:()=>s});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),l=e(11006);class s{constructor(t=9,n){this._compareMinX=h,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),v.prune(),_.prune(),b.prune(),k.prune()}all(t){a(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(w(t,e))for(v.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],l=e.leaf?r(i):i;w(t,l)&&(e.leaf?n(i):M(t,l)?a(i,n):v.push(i))}e=v.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!w(t,n))return!1;for(v.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(w(t,i)){if(n.leaf||M(t,i))return!0;v.push(o)}}n=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let n,e=this._data,i=null,l=0,s=!1;const a=this._toBBox(t);for(b.clear(),k.clear();e||b.length>0;){if(e||(e=b.pop(),i=b.data[b.length-1],l=k.pop()??0,s=!0),e.leaf&&(n=(0,r.qh)(e.children,(0,o.zI)(t),e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),b.push(e),this._condense(b),this;s||e.leaf||!M(e,a)?i?(l++,e=i.children[l],s=!1):e=null:(b.push(e),k.push(l),l=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new R(t.slice(n,e+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const l=new j([]);l.height=r;const s=Math.ceil(o/i),a=s*Math.ceil(Math.sqrt(i));x(t,n,e,a,this._compareMinX);for(let o=n;o<=e;o+=a){const n=Math.min(o+a-1,e);x(t,o,n,s,this._compareMinY);for(let e=o;e<=n;e+=s){const o=Math.min(e+s-1,n);l.children.push(this._build(t,e,o,r-1))}}return u(l,this._toBBox),l}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);b.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,l=n.children.length;i<l;i++){const l=n.children[i],s=d(l),a=g(t,l)-s;a<o?(o=a,r=s<r?s:r,e=l):a===o&&s<r&&(r=s,e=l)}n=e||n.children[0]}return n}(o,this._data,n,b);for(i.children.push(t),f(i,o);n>=0&&b.data[n].children.length>this._maxEntries;)this._split(b,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)f(n.data[r],t)}(o,b,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const l=e.children.splice(i,e.children.length-i),s=e.leaf?new R(l):new j(l);s.height=e.height,u(e,this._toBBox),u(s,this._toBBox),n?t.data[n-1].children.push(s):this._splitRoot(e,s)}_splitRoot(t,n){this._data=new j([t,n]),this._data.height=t.height+1,u(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let l=n;l<=e-n;l++){const n=c(t,0,l,this._toBBox),s=c(t,l,e,this._toBBox),a=y(n,s),u=d(n)+d(s);a<r?(r=a,i=l,o=u<o?u:o):a===r&&u<o&&(o=u,i=l)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:h,o=t.leaf?this._compareMinY:p;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=c(t,0,n,o),l=c(t,e-n,e,o);let s=m(i)+m(l);for(let r=n;r<e-n;r++){const n=t.children[r];f(i,t.leaf?o(n):n),s+=m(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];f(l,t.leaf?o(n):n),s+=m(l)}return s}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else u(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,n){let e=t;for(_.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.zI)(t));else _.pushArray(e.children);e=_.pop()??null}}function u(t,n){c(t,0,t.children.length,n,t)}function c(t,n,e,r,o){o||(o=new R([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,l=n;l<e;l++)i=t.children[l],f(o,t.leaf?r(i):i);return o}function f(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function h(t,n){return t.minX-n.minX}function p(t,n){return t.minY-n.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function y(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function M(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function w(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function x(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const s=e+Math.ceil((n-e)/r/2)*r;(0,l.q)(t,s,e,n,o),i.push(e,s,s,n)}}const v=new i.A,_=new i.A,b=new i.A,k=new i.A({deallocator:void 0});class A{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends A{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class R extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class j extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},93223:(t,n,e)=>{e.d(n,{e:()=>i});var r=e(66552),o=e(10107);function i(t,n={}){const e=t instanceof r.J?t:new r.J(t,n),{alwaysWriteDefaults:i,default:l,ignoreUnknown:s=!0,name:a,nonNullable:u,readOnly:c=!1}=n;return(0,o.MZ)({type:s?e.apiValues:String,json:{type:e.jsonValues,default:l,name:a,read:!c&&{reader:e.read},write:{writer:e.write,alwaysWriteDefaults:i}},nonNullable:u,readOnly:c})}},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},95696:(t,n,e)=>{e.d(n,{A:()=>c});var r,o=e(31635),i=e(69540),l=e(25482),s=e(10107),a=(e(44208),e(53966),e(87811),e(93223)),u=e(40608);let c=class extends((0,i.OU)(l.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},98764:(t,n,e)=>{e.d(n,{Y0:()=>u,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const l=new o.A(r.fv),s=new o.A(r.FY),a=new o.A(r.LJ),u=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=l;if(t)if(t===s)e=s;else if(t===a)e=a;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=s:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=a);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=s:t===p&&(e=a)}}}return f.set(t,e),e}const f=new Map,h=s.wkt.toUpperCase(),p=a.wkt.toUpperCase()},98988:(t,n,e)=>{e.r(n),e.d(n,{canProjectWithoutEngine:()=>V,getTransformation:()=>C,getTransformations:()=>F,initializeProjection:()=>K,isEqualBaseGCS:()=>W,isLoaded:()=>O,isLoadedOrLoad:()=>T,isLoadedOrLoadFor:()=>P,load:()=>Y,project:()=>q,projectExtent:()=>it,projectMany:()=>E,projectMultipoint:()=>Q,projectOrLoad:()=>N,projectOrLoadMany:()=>z,projectPoint:()=>J,projectPolygon:()=>rt,projectPolyline:()=>nt,projectWithZConversion:()=>$,projectWithoutEngine:()=>D,requiresLoad:()=>X,test:()=>L,tryProjectWithZConversion:()=>Z,unload:()=>U});var r=e(49186),o=e(74887),i=e(62788),l=e(95488),s=e(51850),a=e(21276),u=e(73941),c=e(5443),f=e(48526),h=e(83290),p=e(86738),d=e(39829),m=e(82799),g=e(16930),y=e(9762),M=e(37539);function w(t,n,e,r,o,i){return x[0]=t,x[1]=n,x[2]=e,(0,y.projectBuffer)(x,r,0,o,i,0)}const x=(0,s.vt)();let v=0;class _{static fromGE(t){const n=new _;return n._wkt=t.wkt,n._wkid=t.wkid,n._isInverse=t.isInverse,n}constructor(t){this.uid=v++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=v++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=v++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=v++}getInverse(){const t=new _;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class b{static cacheKey(t,n){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}static fromGE(t){const n=new b;let e="";for(const r of t.steps){const t=_.fromGE(r);n.steps.push(t),e+=t.uid.toString()+","}return n._cachedProjection={},n._gtlistentry=null,n._chain=e,n}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const n of t.steps)n instanceof _?this.steps.push(n):this.steps.push(new _({wkid:n.wkid,wkt:n.wkt,isInverse:n.isInverse}))}getInverse(){const t=new b;t.steps=[];for(let n=this.steps.length-1;n>=0;n--){const e=this.steps[n];t.steps.push(e.getInverse())}return t}getGTListEntry(){let t="";for(const n of this.steps)t+=n.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,n,e){this._cachedProjection[b.cacheKey(t,n)]=e}getCachedGeTransformation(t,n){let e="";for(const t of this.steps)e+=t.uid.toString()+",";e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e);const r=this._cachedProjection[b.cacheKey(t,n)];return void 0===r?null:r}}var k=e(21325),A=e(62815);let S=null,R=null,j=null,B={};const I=new l.I;function O(){return!!S&&(0,h.i)()}function T(){return!!O()||((0,i.gc)(I),Y(),!1)}function P(t,n){return!t||!n||V(t,n)||T()}function X(t,n){return!V(t,n)&&!O()}function Y(t){return null==j&&(j=Promise.all([(0,h.l)(),e.e(9930).then(e.bind(e,49930)).then(t=>t.g),e.e(2731).then(e.bind(e,12731))])),j.then(([,n,{hydratedAdapter:e}])=>{(0,o.Te)(t),R=e,S=n.default,S._enableProjection(h.p),I.notify()})}function q(t,n,e=null,r=null){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),E(R,t,t[0].spatialReference,n,e,r)):((0,a.f)(t),E(R,[t],t.spatialReference,n,e,r)[0])}function E(t,n,e,r,o=null,i=null){if(null==e||null==r)return n;if(V(e,r,o))return n.map(t=>D(t,e,r));if(null==o&&(0,u.jA)(e))return n.map(t=>D(t,e,g.A.WGS84)).map(t=>Z(t,r));if(null==o&&(0,u.jA)(r))return n.map(t=>Z(t,g.A.WGS84)).map(t=>D(t,g.A.WGS84,r));if(null==o){const t=b.cacheKey(e,r);void 0!==B[t]?o=B[t]:(null==(o=C(e,r,void 0))&&(o=new b),B[t]=o)}if(null==S||null==t)throw new G;return null!=i?S._project(t,n,e,r,o,i):S._project(t,n,e,r,o)}function N(t,n){const e=z([t],n);return null!=e.pending?{pending:e.pending,geometry:null}:null!=e.geometries?{pending:null,geometry:e.geometries[0]}:{pending:null,geometry:null}}function z(t,n){if(!O())for(const e of t)if(null!=e&&!(0,k.aI)(e.spatialReference,n)&&(0,k.fn)(e.spatialReference)&&(0,k.fn)(n)&&!V(e.spatialReference,n))return(0,i.gc)(I),{pending:Y(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,k.aI)(t.spatialReference,n)?t:(0,k.fn)(t.spatialReference)&&(0,k.fn)(n)?Z(t,n):null)}}function C(t,n,e=null){if(null==t||null==n)return null;if(null==S||null==R)throw new G;const r=S._getTransformation(R,t,n,e,e?.spatialReference);return null!==r?b.fromGE(r):null}function F(t,n,e=null){if(null==S||null==R)throw new G;const r=S._getTransformationBySuitability(R,t,n,e,e?.spatialReference);if(null!==r){const t=[];for(const n of r)t.push(b.fromGE(n));return t}return[]}class G extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function U(){S=null,R=null,j=null,B={}}const L={get loadPromise(){return j}};function Z(t,n){try{const e=q(t,n);if(null==e)return null;"xmin"in t&&"xmin"in e&&(e.zmin=t.zmin,e.zmax=t.zmax);const r=(0,A.N)(e.type,t.spatialReference,n);return null!=r&&r(e),e}catch(t){if(!(t instanceof G))throw t;return null}}async function $(t,n,e){const r=t.spatialReference;return null!=r&&null!=n&&await K(r,n,null,e),Z(t,n)}function V(t,n,e){return!e&&(!!(0,k.aI)(t,n)||(0,k.fn)(t)&&(0,k.fn)(n)&&!!(0,M.jd)(t,n))}function W(t,n){if((0,k.aI)(t,n))return!0;if(!(0,k.fn)(t)||!(0,k.fn)(n))return!1;const e=(0,k.oT)(t)||(0,k.K8)(t)||(0,k.x1)(t),r=(0,k.oT)(n)||(0,k.K8)(n)||(0,k.x1)(n);return e&&r}async function K(t,n,e,r){if(O())return(0,o.NO)(r);if(Array.isArray(t)){for(const{source:n,dest:e,geographicTransformation:o}of t)if(n&&e&&!V(n,e,o))return Y(r)}else if(t&&n&&!V(t,n,e))return Y(r);return(0,o.NO)(r)}function D(t,n,e){return t?"x"in t?H(t,n,new p.A,e,0):"xmin"in t?lt(t,n,new c.A,e,0):"rings"in t?ot(t,n,new d.A,e,0):"paths"in t?et(t,n,new m.A,e,0):"points"in t?tt(t,n,new f.A,e,0):null:null}function J(t,n,e=n.spatialReference,r=0){return null!=e&&null!=t.spatialReference&&null!=H(t,t.spatialReference,n,e,r)}function H(t,n,e,r,o){at[0]=t.x,at[1]=t.y;const i=t.z;return at[2]=void 0!==i?i:o,(0,y.projectBuffer)(at,n,0,at,r,0)?(e.x=at[0],e.y=at[1],e.spatialReference=r,void 0!==i||(0,u.xP)(r)?(e.z=at[2],e.hasZ=!0):(e.z=void 0,e.hasZ=!1),void 0===t.m?(e.m=void 0,e.hasM=!1):(e.m=t.m,e.hasM=!0),e):null}function Q(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=tt(t,t.spatialReference,n,e,r)}function tt(t,n,e,r,o){const{points:i,hasZ:l,hasM:s}=t,a=[],c=i.length,f=[];for(const t of i)f.push(t[0],t[1],l?t[2]:o);if(!(0,y.projectBuffer)(f,n,0,f,r,0,c))return null;const h=l||(0,u.xP)(r);for(let t=0;t<c;++t){const n=3*t,e=f[n],r=f[n+1];h&&s?a.push([e,r,f[n+2],i[t][3]]):h?a.push([e,r,f[n+2]]):s?a.push([e,r,i[t][2]]):a.push([e,r])}return e.points=a,e.spatialReference=r,e.hasZ=l,e.hasM=s,e}function nt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=et(t,t.spatialReference,n,e,r)}function et(t,n,e,r,o){const{paths:i,hasZ:l,hasM:s}=t,a=[];if(!st(i,l??!1,s??!1,n,a,r,o))return null;const c=l||(0,u.xP)(r);return e.paths=a,e.spatialReference=r,e.hasZ=c,e.hasM=s,e}function rt(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=ot(t,t.spatialReference,n,e,r)}function ot(t,n,e,r,o){const{rings:i,hasZ:l,hasM:s}=t,a=[];if(!st(i,l??!1,s??!1,n,a,r,o))return null;const c=l||(0,u.xP)(r);return e.rings=a,e.spatialReference=r,e.hasZ=c,e.hasM=s,e}function it(t,n,e=n.spatialReference,r=0){return null!=t.spatialReference&&null!=e&&null!=lt(t,t.spatialReference,n,e,r)}function lt(t,n,e,r,o){const{xmin:i,ymin:l,xmax:s,ymax:a,hasZ:c,hasM:f}=t;if(!w(i,l,c?t.zmin:o,n,at,r))return null;const h=c||(0,u.xP)(r);return e.xmin=at[0],e.ymin=at[1],h&&(e.zmin=at[2]),w(s,a,c?t.zmax:o,n,at,r)?(e.xmax=at[0],e.ymax=at[1],h&&(e.zmax=at[2]),f&&(e.mmin=t.mmin,e.mmax=t.mmax),e.spatialReference=r,e):null}function st(t,n,e,r,o,i,l=0){const s=new Array;for(const e of t)for(const t of e)s.push(t[0],t[1],n?t[2]:l);if(!(0,y.projectBuffer)(s,r,0,s,i,0))return!1;let a=0;o.length=0;const c=n||(0,u.xP)(i);for(const n of t){const t=new Array;for(const r of n)c&&e?t.push([s[a++],s[a++],s[a++],r[3]]):c?t.push([s[a++],s[a++],s[a++]]):e?(t.push([s[a++],s[a++],r[2]]),a++):(t.push([s[a++],s[a++]]),a++);o.push(t)}return!0}const at=(0,s.vt)()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8389],{4902:(t,e,r)=>{r.d(e,{PH:()=>n,sA:()=>l});var i=r(31635),s=r(40608);let o=0;const l=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable")],r),r},n=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],r),r};l(class{})},8303:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(92602),o=r(70333),l=r(78888),n=r(60999),a=r(49186),u=r(53966),h=r(97768),p=r(74887),d=r(84952),c=r(10107),y=(r(44208),r(87811),r(36005)),g=r(40608),m=r(43937),f=r(77548),S=r(20655),w=r(80812),C=r(41318),v=r(10407);const b=t=>{const e=t;let b=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,h.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new w.default({id:e.itemId,portal:r?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,p.Te)(e),await i({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,p.zf)(t)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch(t=>((0,p.QP)(t),!0)))}async setUserPrivileges(t,e){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(t){(0,p.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const i=!o.id?.findCredential(this.url),s=t===r.id;if(s&&r.portal.user)return this._getUserPrivileges(r,i);let l,n;if(s)l=r.portal.url;else try{l=await(0,f.wI)(this.url,e)}catch(t){(0,p.QP)(t)}if(!l||!(0,d.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;n=await(o.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,p.QP)(t)}const a=!0,u=!1,h=!1;if(!n)return{features:{edit:a,fullEdit:u},content:{updateItem:h}};try{if(s?await r.reload():(r=new w.default({id:t,portal:{url:l}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,i)}catch(t){(0,p.QP)(t)}return{features:{edit:a,fullEdit:u},content:{updateItem:h}}}_getUserPrivileges(t,e){const r=(0,v.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,p.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const r=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=S.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(i))return s.user;const a=`${i}/community/self`,u=null!=t?t.signal:null,h=await(0,n.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?C.A.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,i=this.portalItem?.id&&(this.portalItem.portal||S.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i.Cg)([(0,c.MZ)({type:w.default})],b.prototype,"portalItem",null),(0,i.Cg)([(0,y.w)("web-document","portalItem",["itemId"])],b.prototype,"readPortalItem",null),(0,i.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],b.prototype,"writePortalItem",null),(0,i.Cg)([(0,c.MZ)({clonable:!1})],b.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],b.prototype,"userHasUpdateItemPrivileges",void 0),b=(0,i.Cg)([(0,g.$)("esri.layers.mixins.PortalLayer")],b),b},M={credential:null,user:null}},20378:(t,e,r)=>{r.d(e,{A:()=>d});var i=r(31635),s=r(68197),o=r(66552),l=r(25482),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608);const h=new o.J({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,d=class extends l.o{constructor(t){super(t),this.id="sym"+p++,this.type=null,this.color=new s.A([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i.Cg)([(0,n.MZ)({type:h.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:h.write,isRequired:!0}}})],d.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,i.Cg)([(0,a.w)("color")],d.prototype,"readColor",null),d=(0,i.Cg)([(0,u.$)("esri.symbols.Symbol")],d)},31593:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(66552),o=r(4718),l=r(90629),n=r(10107),a=(r(44208),r(53966),r(93223)),u=r(40608),h=(r(87811),r(20378));let p=class extends h.A{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,i.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],p.prototype,"width",void 0),p=(0,i.Cg)([(0,u.$)("esri.symbols.LineSymbol")],p);var d,c=r(68197),y=r(25482),g=r(36005),m=r(43937),f=r(83213);let S=d=class extends y.o{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,r,i){e[r]="web-map"===i?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,r,i){"web-map"===i?.origin||(e[r]=t)}clone(){return new d({color:(0,o.o8)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,i.Cg)([(0,n.MZ)({type:["begin","end","begin-end"],json:{write:!0}})],S.prototype,"placement",void 0),(0,i.Cg)([(0,a.e)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.MZ)({json:{origins:{"web-map":{write:!1}}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:f.z})],S.prototype,"style",void 0),(0,i.Cg)([(0,m.K)("style")],S.prototype,"writeStyle",null),(0,i.Cg)([(0,n.MZ)({type:c.A,value:null,json:{write:{allowNull:!0}}})],S.prototype,"color",null),(0,i.Cg)([(0,g.w)("color")],S.prototype,"readColor",null),(0,i.Cg)([(0,m.K)("color")],S.prototype,"writeColor",null),S=d=(0,i.Cg)([(0,u.$)("esri.symbols.LineSymbolMarker")],S);const w=S;var C;const v=new s.J({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let b=C=class extends p{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,r,i,s,o){if(t&&"string"!=typeof t)return t;const n={};return null!=t&&(n.style=t),null!=e&&(n.color=e),null!=r&&(n.width=(0,l.cr)(r)),null!=i&&(n.cap=i),null!=s&&(n.join=s),null!=o&&(n.miterLimit=(0,l.cr)(o)),n}clone(){return new C({color:(0,o.o8)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,i.Cg)([(0,a.e)({esriSLS:"simple-line"},{readOnly:!0})],b.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:v.apiValues,json:{read:v.read,write:v.write}})],b.prototype,"style",void 0),(0,i.Cg)([(0,n.MZ)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],b.prototype,"cap",void 0),(0,i.Cg)([(0,n.MZ)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,r)=>({enabled:"round"!==t&&null==r?.origin})}}})],b.prototype,"join",void 0),(0,i.Cg)([(0,n.MZ)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":w}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],b.prototype,"marker",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:!1,write:!1}})],b.prototype,"miterLimit",void 0),b=C=(0,i.Cg)([(0,u.$)("esri.symbols.SimpleLineSymbol")],b)},53930:(t,e,r)=>{r.d(e,{A:()=>m});var i,s=r(31635),o=r(68197),l=r(66552),n=r(4718),a=r(90629),u=r(10107),h=(r(44208),r(53966),r(93223)),p=r(40608),d=r(43937),c=r(89420),y=r(31593);const g=new l.J({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let m=i=class extends c.A{constructor(...t){super(...t),this.color=new o.A([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new y.A}normalizeCtorArgs(t,e,r,i){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),null!=e&&(s.size=(0,a.cr)(e)),r&&(s.outline=r),i&&(s.color=i),s}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new i({angle:this.angle,color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s.Cg)([(0,u.MZ)()],m.prototype,"color",void 0),(0,s.Cg)([(0,d.K)("color")],m.prototype,"writeColor",null),(0,s.Cg)([(0,h.e)({esriSMS:"simple-marker"},{readOnly:!0})],m.prototype,"type",void 0),(0,s.Cg)([(0,u.MZ)()],m.prototype,"size",void 0),(0,s.Cg)([(0,u.MZ)({type:g.apiValues,json:{read:g.read,write:g.write}})],m.prototype,"style",void 0),(0,s.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],m.prototype,"path",null),(0,s.Cg)([(0,u.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":y.A}},json:{default:null,write:!0}})],m.prototype,"outline",void 0),m=i=(0,s.Cg)([(0,p.$)("esri.symbols.SimpleMarkerSymbol")],m)},58592:(t,e,r)=>{r.d(e,{A:()=>c});var i,s=r(31635),o=r(4718),l=r(90629),n=r(10107),a=(r(44208),r(53966),r(93223)),u=r(36005),h=r(40608),p=r(89420),d=r(77040);let c=i=class extends p.A{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const i={};return t&&(i.url=t),null!=e&&(i.width=(0,l.cr)(e)),null!=r&&(i.height=(0,l.cr)(r)),i}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new i({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,o.o8)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"color",void 0),(0,s.Cg)([(0,a.e)({esriPMS:"picture-marker"},{readOnly:!0})],c.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)(d.ku)],c.prototype,"url",void 0),(0,s.Cg)([(0,n.MZ)(d.k7)],c.prototype,"source",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"height",void 0),(0,s.Cg)([(0,u.w)("height",["height","size"])],c.prototype,"readHeight",null),(0,s.Cg)([(0,n.MZ)({type:Number,cast:l.cr,json:{write:!0}})],c.prototype,"width",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!1}})],c.prototype,"size",void 0),c=i=(0,s.Cg)([(0,h.$)("esri.symbols.PictureMarkerSymbol")],c)},65851:(t,e,r)=>{r.d(e,{A:()=>a});var i=r(31635),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),l=r(31593),n=r(20378);let a=class extends n.A{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline?.hash()}`}};(0,i.Cg)([(0,s.MZ)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.A}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,i.Cg)([(0,s.MZ)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,o.$)("esri.symbols.FillSymbol")],a)},68197:(t,e,r)=>{r.d(e,{A:()=>a});var i=r(40876),s=r(34727),o=r(56507);function l(t){return(0,s.qE)((0,o.Vr)(t),0,255)}function n(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class a{static blendColors(t,e,r,i=new a){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=(0,i.lT)(t);return r?a.fromArray(r,e):null}static fromHex(t,e=new a){const r=(0,i.oW)(t);return r?a.fromArray(r,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,i.Eq)(t);return r?a.fromArray(r,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,s=4===r||8===r,o=`#${n(this.r,i)}${n(this.g,i)}${n(this.b,i)}${s?n(Math.round(255*this.a),i):""}`;return e?o.toUpperCase():o}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=l(this.r),r=l(this.g),i=l(this.b);return 0===t||1!==this.a?[e,r,i,l(255*this.a)]:[e,r,i]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}a.prototype.declaredClass="esri.Color"},69540:(t,e,r)=>{r.d(e,{OU:()=>h,Pw:()=>p});var i=r(31635),s=r(65008),o=(r(44208),r(4718)),l=(r(53966),r(97768)),n=r(88620),a=r(40608);const u=Symbol("ClonableMixin"),h=t=>{var e;const r=t;let s=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,n.oY)(this);(0,l.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,i=e.store,s={},a=new Map;for(const e in r){const l=r[e],n=i?.originOf(e),u=l.clonable;if(l.readOnly||!1===u||7!==n&&0!==n&&5!==n&&4!==n)continue;const h=this[e];let p=null;if("function"==typeof u)p=u(h,t);else if("reference"===u)p=h;else if(p=(0,o.TU)(h,t),null!=h&&null==p)continue;0===n?a.set(e,p):s[e]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){const t=(0,n.oY)(u)?.store;if(t)for(const[e,r]of a)t.set(e,r,0)}return u}};return s=(0,i.Cg)([(0,a.$)("esri.core.Clonable")],s),s},p=h(s.A)},77040:(t,e,r)=>{r.d(e,{k7:()=>n,ku:()=>l});var i=r(84952),s=r(97159);function o(t,e){if(!(0,i.oP)(t)){const r=function(t){if(!t)return null;const{origin:e,layer:r}=t;if("service"!==e&&"portal-item"!==e)return null;const i=r?.type;return"feature"===i||"stream"===i?r.parsedUrl?.path:"map-image"===i||"tile"===i?t.url?.path:null}(e);if(r)return(0,i.fj)(r,"images",t)}return(0,s.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,r){return e.imageData?(0,i.Hg)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):o(e.url,r)}},write:{writer(t,e,r,o){!function(t,e,r,o){if((0,i.DB)(t)){const l=(0,i.r$)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,r&&r.imageData===e.imageData&&r.url&&(0,s.w)(r.url,e,"url",o)}else(0,s.w)(t,e,"url",o)}(t,e,this.source,o)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,r){const i={};return e.imageData&&(i.imageData=e.imageData),e.contentType&&(i.contentType=e.contentType),e.url&&(i.url=o(e.url,r)),i}}}}},78553:(t,e,r)=>{r.d(e,{D:()=>o,p:()=>s});var i=r(56507);function s(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,r)=>{r.d(e,{A:()=>d});var i,s=r(31635),o=r(25482),l=r(88930),n=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),h=r(43937),p=r(98623);let d=class extends o.o{static{i=this}static get allTime(){return c}static get empty(){return y}static fromArray(t){return new i({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,s=t.end?.getTime()??t.end;return e===i&&r===s}expandTo(t,e=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,t,e));let s=this.end;if(s){const r=(0,l.lL)(s,t,e);s=s.getTime()===r.getTime()?r:(0,l.S1)(r,1,t,e)}return new i({start:r,end:s})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,s=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let l,n;return s>=e&&s<=r?l=s:e>=s&&e<=o&&(l=e),r>=s&&r<=o?n=r:o>=e&&o<=r&&(n=o),null==l||null==n||isNaN(l)||isNaN(n)?i.empty:new i({start:l===-1/0?null:new Date(l),end:n===1/0?null:new Date(n)})}offset(t,e,r=p.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:o,end:n}=this;return null!=o&&(s.start=(0,l.S1)(o,t,e,r)),null!=n&&(s.end=(0,l.S1)(n,t,e,r)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:r})}};(0,s.Cg)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s.Cg)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,s.Cg)([(0,h.K)("end")],d.prototype,"writeEnd",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s.Cg)([(0,n.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s.Cg)([(0,n.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s.Cg)([(0,a.w)("start")],d.prototype,"readStart",null),(0,s.Cg)([(0,h.K)("start")],d.prototype,"writeStart",null),d=i=(0,s.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const c=new d,y=new d({start:void 0,end:void 0})},83213:(t,e,r)=>{r.d(e,{x:()=>i,z:()=>s});const i=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},85582:(t,e,r)=>{r.r(e),r.d(e,{default:()=>k});var i=r(31635),s=r(92602),o=r(78888),l=r(92071),n=r(74887),a=r(84952),u=r(10107),h=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),d=r(5443),c=r(21325),y=r(4146),g=r(63074),m=r(16131),f=r(8303),S=r(54310),w=r(25036),C=r(10873),v=r(58592),b=r(94985),M=r(31593),A=r(53930),P=r(20378);const $=["atom","xml"],D={base:P.A,key:"type",typeMap:{"simple-line":M.A},errorContext:"symbol"},Z={base:P.A,key:"type",typeMap:{"picture-marker":v.A,"simple-marker":A.A},errorContext:"symbol"},T={base:P.A,key:"type",typeMap:{"simple-fill":b.A},errorContext:"symbol"};let j=class extends((0,g.dM)((0,S.J)((0,m.q)((0,f.A)((0,w.j)((0,l.P)(y.A))))))){constructor(...t){super(...t),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(t,e){return"string"==typeof t?{url:t,...e}:t}readFeatureCollections(t,e){return e.featureCollection.layers.forEach(t=>{const e=t.layerDefinition.drawingInfo.renderer.symbol;e&&"esriSFS"===e.type&&e.outline?.style.includes("esriSFS")&&(e.outline.style="esriSLSSolid")}),e.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const t=this._get("title");return t&&"defaults"!==this.originOf("title")?t:this.url?(0,a.e7)(this.url,$)||"GeoRSS":t}set title(t){this._set("title",t)}load(t){const e=null!=t?t.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},t).catch(n.QP).then(()=>this._fetchService(e)).then(t=>{this.read(t,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const t=await this._fetchService();return this.read(t,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(t){const e=this.spatialReference,{data:r}=await(0,o.A)(s.A.geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:(0,c.oT)(e)?void 0:e.wkid??JSON.stringify(e)},signal:t});return r}_hasGeometry(t){return this.featureCollections?.some(e=>e.featureSet?.geometryType===t&&e.featureSet.features?.length>0)??!1}};(0,i.Cg)([(0,u.MZ)()],j.prototype,"description",void 0),(0,i.Cg)([(0,u.MZ)()],j.prototype,"featureCollections",void 0),(0,i.Cg)([(0,h.w)("service","featureCollections",["featureCollection.layers"])],j.prototype,"readFeatureCollections",null),(0,i.Cg)([(0,u.MZ)({type:d.A,json:{name:"lookAtExtent"}})],j.prototype,"fullExtent",void 0),(0,i.Cg)([(0,u.MZ)(C.id)],j.prototype,"id",void 0),(0,i.Cg)([(0,u.MZ)(C.fV)],j.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,u.MZ)({types:D,json:{write:!0}})],j.prototype,"lineSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["show","hide"]})],j.prototype,"listMode",void 0),(0,i.Cg)([(0,u.MZ)({types:Z,json:{write:!0}})],j.prototype,"pointSymbol",void 0),(0,i.Cg)([(0,u.MZ)({types:T,json:{write:!0}})],j.prototype,"polygonSymbol",void 0),(0,i.Cg)([(0,u.MZ)({type:["GeoRSS"]})],j.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,u.MZ)(C.OZ)],j.prototype,"url",void 0),(0,i.Cg)([(0,u.MZ)({json:{origins:{service:{read:{source:"name",reader:t=>t||void 0}}}}})],j.prototype,"title",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1},value:"geo-rss"})],j.prototype,"type",void 0),j=(0,i.Cg)([(0,p.$)("esri.layers.GeoRSSLayer")],j);const k=j},89420:(t,e,r)=>{r.d(e,{A:()=>u});var i=r(31635),s=r(90629),o=r(10107),l=r(56507),n=(r(44208),r(87811),r(40608)),a=r(20378);let u=class extends a.A{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],u.prototype,"angle",void 0),(0,i.Cg)([(0,o.MZ)({type:["simple-marker","picture-marker"],readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],u.prototype,"xoffset",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,cast:s.cr,json:{write:!0}})],u.prototype,"yoffset",void 0),(0,i.Cg)([(0,o.MZ)({cast:t=>"auto"===t?t:(0,l.GB)((0,s.cr)(t)),json:{write:!0}})],u.prototype,"size",void 0),u=(0,i.Cg)([(0,n.$)("esri.symbols.MarkerSymbol")],u)},94985:(t,e,r)=>{r.d(e,{A:()=>y});var i,s=r(31635),o=r(68197),l=r(66552),n=r(4718),a=r(10107),u=(r(44208),r(53966),r(93223)),h=r(40608),p=r(65851),d=r(31593);const c=new l.J({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let y=i=class extends p.A{constructor(...t){super(...t),this.color=new o.A([0,0,0,.25]),this.outline=new d.A,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,r){if(t&&"string"!=typeof t)return t;const i={};return t&&(i.style=t),e&&(i.outline=e),r&&(i.color=r),i}clone(){return new i({color:(0,n.o8)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s.Cg)([(0,a.MZ)()],y.prototype,"color",void 0),(0,s.Cg)([(0,a.MZ)()],y.prototype,"outline",void 0),(0,s.Cg)([(0,u.e)({esriSFS:"simple-fill"},{readOnly:!0})],y.prototype,"type",void 0),(0,s.Cg)([(0,a.MZ)({type:c.apiValues,json:{read:c.read,write:c.write}})],y.prototype,"style",void 0),y=i=(0,s.Cg)([(0,h.$)("esri.symbols.SimpleFillSymbol")],y)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5613],{4513:(e,a,t)=>{t.d(a,{S:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(1449)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(4111),t.e(8506),t.e(9784),t.e(7005),t.e(3474),t.e(6445),t.e(6298),t.e(3546),t.e(8207)]).then(t.bind(t,51613))).default,CSVLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(4111),t.e(8506),t.e(9784),t.e(5964)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(4111),t.e(8506),t.e(364),t.e(8628),t.e(2593),t.e(9279),t.e(3549)]).then(t.bind(t,83508))).default,DimensionLayer:async()=>(await Promise.all([t.e(6131),t.e(3813)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(6131),t.e(9953),t.e(9186),t.e(5751)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(4111),t.e(8506),t.e(9784),t.e(1072)]).then(t.bind(t,29784))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(6131),t.e(1120),t.e(6475)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(8766)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8389)]).then(t.bind(t,85582))).default,GroupLayer:async()=>(await Promise.all([t.e(6131),t.e(3562),t.e(8256)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(9953),t.e(1956),t.e(364),t.e(3356),t.e(6699),t.e(5794)]).then(t.bind(t,55942))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(9953),t.e(3356),t.e(6049),t.e(6699),t.e(7677),t.e(9718)]).then(t.bind(t,19718))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(6131),t.e(1120),t.e(1528)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(6131),t.e(6298),t.e(5720)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1863)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(5655),t.e(1082),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(6131),t.e(7721),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(5655),t.e(1082),t.e(1728)]).then(t.bind(t,71728))).default,MapImageLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(4111),t.e(364),t.e(3249),t.e(7656),t.e(2042)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(4111),t.e(8506),t.e(9784),t.e(5655),t.e(8110)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7330),t.e(6131),t.e(2763)]).then(t.bind(t,19647))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(1017),t.e(6445),t.e(5363),t.e(4224)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(1010),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(4111),t.e(8506),t.e(9784),t.e(9361),t.e(5549)]).then(t.bind(t,9352))).default,PointCloudLayer:async()=>(await Promise.all([t.e(6131),t.e(2869),t.e(7984),t.e(7885)]).then(t.bind(t,77885))).default,RouteLayer:async()=>(await Promise.all([t.e(6131),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(217),t.e(979)]).then(t.bind(t,64185))).default,SceneLayer:async()=>(await Promise.all([t.e(6131),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(8399),t.e(7005),t.e(3474),t.e(6445),t.e(6298),t.e(3546),t.e(1713)]).then(t.bind(t,36969))).default,StreamLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(8399),t.e(1017),t.e(73)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1956),t.e(8399),t.e(4111),t.e(8506),t.e(6731)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(1956),t.e(8399),t.e(708),t.e(4111),t.e(364),t.e(9186),t.e(3249),t.e(573)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9186),t.e(5897),t.e(5314)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(6131),t.e(3910),t.e(5111),t.e(5323),t.e(7732)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(6131),t.e(7721),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(6131),t.e(2869),t.e(1005)]).then(t.bind(t,21005))).default,WCSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(9953),t.e(3356),t.e(6049),t.e(6699),t.e(7677),t.e(8854)]).then(t.bind(t,88854))).default,WFSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5111),t.e(5323),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(8399),t.e(1017),t.e(9110)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7330),t.e(6131),t.e(8219),t.e(2869),t.e(3910),t.e(5323),t.e(5181)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(1010),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(1010)]).then(t.bind(t,47314))).default}},22429:(e,a,t)=>{t.d(a,{v:()=>n});var r=t(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.V)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},23154:(e,a,t)=>{t.d(a,{K:()=>f,Q:()=>i});var r=t(77548),n=t(24183);const s=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{loadContext:t,...s}=a||{},i=t?await t.fetchServiceMetadata(e,s):await(0,n.V)(e,s),l=(0,r.G$)();d(i),o(i);const c={serviceJSON:i,preferredHost:l};if((i.currentVersion??0)<10.5)return c;const u=`${(0,r.$x)()??e}/layers`,y=t?await t.fetchServiceMetadata(u,s):await(0,n.V)(u,s);return d(y),o(y),c.layersJSON={layers:y.layers,tables:y.tables},c}function l(e){const{type:a}=e;return!!a&&s.has(a)}function c(e){return"Table"===e.type}function o(e){e.layers=e.layers?.filter(l),e.tables=e.tables?.filter(c)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function d(e){e.layers?.forEach(u),e.tables?.forEach(y)}function f(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},24183:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(78888);async function n(e,a){const{data:t}=await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}},45613:(e,a,t)=>{t.d(a,{fromItem:()=>d,n:()=>f});var r=t(49186),n=t(92009),s=t(23154),i=t(22429),l=t(77548),c=t(4513),o=t(80812),u=t(66964),y=t(10407);async function d(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new i.v;return async function(e){const a=e.className,t=c.S[a];return{constructor:await t(),properties:e.properties}}(await f(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await m(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const s=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=s.cacheType?.toLowerCase(),l=s.capabilities?.toLowerCase().includes("tilesonly"),c=s.tileInfo?.format?.toLowerCase()??"",o=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===i||o||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await m(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(l.XX))if(e.typeKeywords.includes(a))return{className:l.XX[a]};const s=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:l.XX[s?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,t){const{url:r,type:n}=e,i="Feature Service"===n;if(!r)return{};if(/\/\d+$/.test(r)){if(i){const t=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return(0,l.Gh)(e,(0,l.G$)()),{id:t.id,className:(0,s.K)(t.type),sourceJSON:t}}return{}}if("Video Service"===n){const e=await a.fetchServiceMetadata(r);return!((e.layers?.length??0)>1)&&{}}await e.load();let c=await a.fetchItemData(e);if(i){const{data:t,preferredHost:n}=await(0,u.bO)(c,r,a);(0,l.Gh)(e,n);const s=w(t);if("object"==typeof s){const e=(0,u.rc)(t,s.id);s.className=(0,u.K8)(e?.layerType)}return s}if("Scene Service"===n&&(c=await(0,u.nu)(e,c,a)),(0,u.XH)(c)>0)return w(c);const o=await a.fetchServiceMetadata(r);return t&&(o.tables=await t()),w(o)}function w(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},66964:(e,a,t)=>{t.d(a,{Ju:()=>u,K8:()=>f,XH:()=>y,_r:()=>i,bO:()=>l,l:()=>d,nu:()=>m,pJ:()=>c,rc:()=>o});var r=t(92009),n=t(23154),s=t(77548);function i(e){const a={id:e.id,name:e.name},t=(0,n.K)(e.type);return"FeatureLayer"!==t&&(a.layerType=t),a}async function l(e,a,t){let r;if(null==e?.layers||null==e?.tables){const n=await t.fetchServiceMetadata(a,{customParameters:c(e)?.customParameters});r=(0,s.G$)(),(e=e||{}).layers=e.layers||n?.layers?.map(i),e.tables=e.tables||n?.tables?.map(i)}return{data:e,preferredHost:r}}function c(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.length?a[0]:t?.length?t[0]:null}function o(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find(e=>e.id===a)}function u(e,a){return[...e.layers||[],...e.tables||[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function y(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function d(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function f(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function m(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(i)}const{serverUrl:n,portalItem:s}=await(0,r.L)(e.url,{sceneLayerItem:e,customParameters:c(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==n)return a.tables=[],a;if(!a.tables&&s){const e=await s.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(i);else{const r=await t.fetchServiceMetadata(n,{customParameters:c(e)?.customParameters}).catch(()=>null);a.tables=r?.tables?.map(i)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},92009:(e,a,t)=>{t.d(a,{L:()=>u});var r=t(70333),n=t(78888),s=t(49186),i=t(74887),l=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),s=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,i.QP)(e)}return null}(e);null!=s&&(t.portal=new c.A({url:s}));try{return await t.load({signal:e.signal})}catch(e){return(0,i.QP)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,i.QP)(e),null}}(u);if(!f?.url)throw new s.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,l.qg)(e);if(!t)throw new s.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,i=a.layerId;if(null==i)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,d=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},f=d("anonymous").catch(()=>d("no-prompt")),[m,w]=await Promise.all([f,c]),p=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,h.length);e++)if(p[e].id===i)return{serverUrl:r,layerId:h[e].id}}else if(null!=i&&i<h.length)return{serverUrl:r,layerId:h[i].id};throw new Error("could not find matching associated sublayer")}}}]);
|