@arcgis/core 4.34.0-next.56 → 4.34.0-next.57
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/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +4 -0
- package/analysis/VolumeMeasurement/{CutFillOptions.js → VolumeMeasurementCutFillOptions.js} +1 -1
- package/analysis/VolumeMeasurementAnalysis.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02902303e5585a16ebea.js +1 -0
- package/assets/esri/core/workers/chunks/02a31483e09652a1a1a2.js +1 -0
- package/assets/esri/core/workers/chunks/0390f3aa624e3f380ce2.js +1 -0
- package/assets/esri/core/workers/chunks/047d6f7b1677cc7ab271.js +1 -0
- package/assets/esri/core/workers/chunks/04e652df94790f5ca08a.js +1 -0
- package/assets/esri/core/workers/chunks/{9f178cf73c63caaea190.js → 06d2251d6f6b3e44800a.js} +1 -1
- package/assets/esri/core/workers/chunks/07d5e0633cc2f765037f.js +1 -0
- package/assets/esri/core/workers/chunks/{8fa50cac57b6e1ecec76.js → 08393d9cc2ed846dd5b4.js} +1 -1
- package/assets/esri/core/workers/chunks/{18ceea59e469a0f2721b.js → 094c741fa8139c3f40cf.js} +1 -1
- package/assets/esri/core/workers/chunks/0d946a226b846b3c0849.js +1 -0
- package/assets/esri/core/workers/chunks/0f51e51db83f303ce5a6.js +1 -0
- package/assets/esri/core/workers/chunks/{6530449cd1975deb61f1.js → 184d3c88ac2fc1d7e2c3.js} +1 -1
- package/assets/esri/core/workers/chunks/1cbd59918c60a1a21494.js +1 -0
- package/assets/esri/core/workers/chunks/2ded2446700f89155ccd.js +1 -0
- package/assets/esri/core/workers/chunks/{19391d60c76a1dc7c262.js → 2f7e192ee2066f863e1d.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b11476b2004b4db576e.js → 3445ffd752262673fb13.js} +1 -1
- package/assets/esri/core/workers/chunks/38f09e36e174792646bd.js +1 -0
- package/assets/esri/core/workers/chunks/{adf11d31f95481f89a55.js → 3b51b61a7b8a1ef87c9b.js} +1 -1
- package/assets/esri/core/workers/chunks/3c57b2e13628b5c1f6de.js +1 -0
- package/assets/esri/core/workers/chunks/{65e1f5b20a585e04655a.js → 44dc7ec52c4abb700783.js} +1 -1
- package/assets/esri/core/workers/chunks/{c91217d977a6baaee74a.js → 4558f2e3e77831758fdc.js} +1 -1
- package/assets/esri/core/workers/chunks/4753793daf0b7ff8b5ff.js +1 -0
- package/assets/esri/core/workers/chunks/{853b9f29b4d62fa621b9.js → 4d2473e680324dc17cfa.js} +1 -1
- package/assets/esri/core/workers/chunks/52917b753c5ceab0c1f7.js +353 -0
- package/assets/esri/core/workers/chunks/{6940bb6524938894a246.js → 53873f26a2c24cd75e4a.js} +1 -1
- package/assets/esri/core/workers/chunks/561a2078458bc0339f83.js +1 -0
- package/assets/esri/core/workers/chunks/{6dc0009889f2b7cc8cff.js → 5691d504ffe5592bc40f.js} +1 -1
- package/assets/esri/core/workers/chunks/56b4dcd04c844eaacd60.js +1 -0
- package/assets/esri/core/workers/chunks/5f079be7f322768aef21.js +1 -0
- package/assets/esri/core/workers/chunks/61a294f9411bf884f2ab.js +1 -0
- package/assets/esri/core/workers/chunks/{ad93a2621f75270f06cb.js → 69fbe363bb130fdd8146.js} +1 -1
- package/assets/esri/core/workers/chunks/{722931d1a60be461e521.js → 70cf81ec5a901782d2db.js} +1 -1
- package/assets/esri/core/workers/chunks/{24ac204d8a045aa821be.js → 7388e8c905d93dea1c05.js} +1 -1
- package/assets/esri/core/workers/chunks/749c7159e0902388e828.js +1 -0
- package/assets/esri/core/workers/chunks/76ff7ccfe583927918f3.js +969 -0
- package/assets/esri/core/workers/chunks/{ae73ac81bd10614c2b53.js → 7714228825fb44d506df.js} +1 -1
- package/assets/esri/core/workers/chunks/{6130bc641aa7c1bcaaa8.js → 7c23be93d394f1bee941.js} +1 -1
- package/assets/esri/core/workers/chunks/7c86af4f60cea383ed96.js +1 -0
- package/assets/esri/core/workers/chunks/7eda1c400658b6a99be8.js +1 -0
- package/assets/esri/core/workers/chunks/{97ae2fdb6cb98249f5fa.js → 7f80bbbd0897082c1af3.js} +1 -1
- package/assets/esri/core/workers/chunks/80a69897fa3ce1eaa6e7.js +1 -0
- package/assets/esri/core/workers/chunks/80bd5988180f4618fd61.js +1 -0
- package/assets/esri/core/workers/chunks/{b47688e3263099540873.js → 81e518dd62bd95611d00.js} +1 -1
- package/assets/esri/core/workers/chunks/{10b46438885916d18425.js → 8257352421f453a669e9.js} +1 -1
- package/assets/esri/core/workers/chunks/8762928d10c3821738ad.js +1 -0
- package/assets/esri/core/workers/chunks/88a5e7415f8858c454f7.js +1 -0
- package/assets/esri/core/workers/chunks/893e5eb5c028c4704317.js +1 -0
- package/assets/esri/core/workers/chunks/8ead467a5af0d9bba804.js +1 -0
- package/assets/esri/core/workers/chunks/91e04d03b0013bcaad82.js +1 -0
- package/assets/esri/core/workers/chunks/{c7d4c296011c5393bcaa.js → 9275313e0f1f521b2658.js} +1 -1
- package/assets/esri/core/workers/chunks/{e666ca4d14b6490485d6.js → 92b60d4fb09711919601.js} +1 -1
- package/assets/esri/core/workers/chunks/977582cb3c8f17a2cb4c.js +1 -0
- package/assets/esri/core/workers/chunks/{5c556468e2a598ab793a.js → 9940e59033a8a1eff2a9.js} +1 -1
- package/assets/esri/core/workers/chunks/998c38974372720b1c52.js +1 -0
- package/assets/esri/core/workers/chunks/{9928e432b884c75c3436.js → 9d920f3488d59e7f276c.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0124b0dd62b331afe58.js → 9fef330b241f958b55df.js} +1 -1
- package/assets/esri/core/workers/chunks/{a778a72456fefdf40115.js → a249e56a0be8cef33ba8.js} +1 -1
- package/assets/esri/core/workers/chunks/a3ee76b7e46d3fba7cf7.js +1 -0
- package/assets/esri/core/workers/chunks/a7530dcb08b43e37bbb2.js +1 -0
- package/assets/esri/core/workers/chunks/{2cda605c302176905e84.js → a96ac5c68d84122e7751.js} +1 -1
- package/assets/esri/core/workers/chunks/{e6bf4f3f6868dc9028e3.js → aab349d4624b78ef429f.js} +1 -1
- package/assets/esri/core/workers/chunks/acf13a64df2991a4cb6b.js +1 -0
- package/assets/esri/core/workers/chunks/b5640f9623a9c9ded92a.js +1 -0
- package/assets/esri/core/workers/chunks/{d42fd0effc560eefb14b.js → b6a201e86f9caef45ff0.js} +1 -1
- package/assets/esri/core/workers/chunks/bb67d491f62a5cce96cd.js +1 -0
- package/assets/esri/core/workers/chunks/{862fe2f96d4b777ff5b8.js → bbdbb618a18542f7a4a2.js} +1 -1
- package/assets/esri/core/workers/chunks/bc9f54a6b577c43189fd.js +1 -0
- package/assets/esri/core/workers/chunks/{6fe738748ce837811ff4.js → bd4125d163f372a7e978.js} +1 -1
- package/assets/esri/core/workers/chunks/bead38898c3f4d4d3569.js +1 -0
- package/assets/esri/core/workers/chunks/c51e2a048df152abd901.js +1 -0
- package/assets/esri/core/workers/chunks/{22334a464f798b5279b2.js → c80c032c5b7a11db177a.js} +1 -1
- package/assets/esri/core/workers/chunks/{3490d47cac7c8dec70cd.js → c9c109d43a1e5160955d.js} +2 -2
- package/assets/esri/core/workers/chunks/{4d5abcf57a6ded4750ba.js → cac060a187f3a27a19ba.js} +1 -1
- package/assets/esri/core/workers/chunks/cc748d4f4adb9c584aa4.js +1 -0
- package/assets/esri/core/workers/chunks/cf699b9bb530b87be14c.js +1 -0
- package/assets/esri/core/workers/chunks/d578c3880eaf2dd62324.js +1 -0
- package/assets/esri/core/workers/chunks/{5d331f7628514a572f82.js → d6ab4d55f1023ee6ec6a.js} +1 -1
- package/assets/esri/core/workers/chunks/d71836cf70b9604832f1.js +1 -0
- package/assets/esri/core/workers/chunks/{4874aabdb5c60ca66216.js → db2b8d8cf7131554cf7e.js} +1 -1
- package/assets/esri/core/workers/chunks/de4da985c398c8bcf2e7.js +1 -0
- package/assets/esri/core/workers/chunks/{cb57cdff976d2d4b0b41.js → e1b25b1ce3bd4f0f2cda.js} +1 -1
- package/assets/esri/core/workers/chunks/ef85cd0e82d59db8a26f.js +33 -0
- package/assets/esri/core/workers/chunks/{faf4002f9547a0cc4e33.js → fae6030a81cb91a91b69.js} +1 -1
- package/assets/esri/core/workers/chunks/fd1fdb97a294a1b7041d.js +1 -0
- package/assets/esri/core/workers/chunks/{ff42b24b48019a03d841.js → fe55833c80cf59df9c2b.js} +1 -1
- package/assets/esri/core/workers/chunks/{ff8a4bf1bceb362d67ab.js → ff7962063d132c1ec814.js} +1 -1
- package/config.js +1 -1
- package/geometry/Multipoint.js +1 -1
- package/geometry/support/boundsUtils.js +1 -1
- package/geometry/support/contains.js +1 -1
- package/geometry/support/curves/circleUtils.js +1 -1
- package/geometry/support/curves/circularArcUtils.js +1 -1
- package/geometry/support/curves/curveUtils.js +1 -1
- package/geometry/support/curves/ellipticArc7Utils.js +1 -1
- package/geometry/support/curves/rotate.js +5 -0
- package/geometry/support/extentUtils.js +1 -1
- package/geometry/support/rotate.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +5 -0
- package/graphic/ImageryTileGraphicOrigin.js +5 -0
- package/graphic/WCSGraphicOrigin.js +5 -0
- package/graphic/isImageryGraphicOrigin.js +5 -0
- package/graphic/isImageryTileGraphicOrigin.js +5 -0
- package/graphic/isWCSGraphicOrigin.js +5 -0
- package/interfaces.d.ts +12 -15
- package/kernel.js +1 -1
- package/layers/CatalogLayer.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/GroundLayer.js +5 -0
- package/layers/ImageryLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/WCSLayer.js +1 -1
- package/layers/catalog/CatalogFootprintLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/{CutFillVolumeMeasurementComputation.js → VolumeMeasurementCutFillComputation.js} +1 -1
- package/views/3d/analysis/VolumeMeasurement/{CutFillVolumeMeasurementController.js → VolumeMeasurementCutFillController.js} +1 -1
- package/views/3d/analysis/VolumeMeasurement/{CutFillVolumeMeasurementVisualization.js → VolumeMeasurementCutFillVisualization.js} +1 -1
- package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
- package/views/3d/layers/CatalogFootprintLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/GroundView.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/draw/support/drawUtils.js +1 -1
- package/views/interactive/editGeometry/operations/RotateVertex.js +1 -1
- package/views/interactive/editGeometry/operations/curveOperationUtils.js +1 -1
- package/views/layers/ImageryLayerView.js +1 -1
- package/views/layers/ImageryTileLayerView.js +1 -1
- package/analysis/VolumeMeasurement/CutFillOptions.d.ts +0 -4
- package/assets/esri/core/workers/chunks/01e8b9dc77a57d1c2a52.js +0 -1
- package/assets/esri/core/workers/chunks/027cfcde29fe87aa2ffe.js +0 -1
- package/assets/esri/core/workers/chunks/03ee4d63aa8de44958ab.js +0 -1
- package/assets/esri/core/workers/chunks/0a4586e596413ef7a4b5.js +0 -1
- package/assets/esri/core/workers/chunks/0a6d33d013628f671aea.js +0 -1
- package/assets/esri/core/workers/chunks/1166ed298cf5ca7ad444.js +0 -1
- package/assets/esri/core/workers/chunks/13797036850dcc3671c3.js +0 -1
- package/assets/esri/core/workers/chunks/1a2278b9fe9666342728.js +0 -1
- package/assets/esri/core/workers/chunks/1e01aaebdeffdfc0c6bd.js +0 -1
- package/assets/esri/core/workers/chunks/222f981e876f60ae282f.js +0 -1
- package/assets/esri/core/workers/chunks/277941bec15525dbd3a0.js +0 -1
- package/assets/esri/core/workers/chunks/2cb14d040e67a261b31c.js +0 -1
- package/assets/esri/core/workers/chunks/31c088966ccfff2ea1db.js +0 -1
- package/assets/esri/core/workers/chunks/3245d20ea4bb779f87ef.js +0 -1
- package/assets/esri/core/workers/chunks/46a470bea2a3601182dc.js +0 -1
- package/assets/esri/core/workers/chunks/4b58da6cb91f7bf6af8b.js +0 -1
- package/assets/esri/core/workers/chunks/5900dde7a201a7d47469.js +0 -1
- package/assets/esri/core/workers/chunks/5b2ff220aebe464dac23.js +0 -1
- package/assets/esri/core/workers/chunks/5f518931a660b3c4f519.js +0 -1
- package/assets/esri/core/workers/chunks/66f3659ba18f92cd623e.js +0 -1
- package/assets/esri/core/workers/chunks/67355372ac5fd8a15d18.js +0 -1
- package/assets/esri/core/workers/chunks/6801b92bce7a918fda6f.js +0 -1
- package/assets/esri/core/workers/chunks/7b560ac0be93c6aa9940.js +0 -1
- package/assets/esri/core/workers/chunks/7bdfc7c7ce1d94c00745.js +0 -353
- package/assets/esri/core/workers/chunks/83737d86584bf1b32368.js +0 -1
- package/assets/esri/core/workers/chunks/854bfda25bb406814929.js +0 -1
- package/assets/esri/core/workers/chunks/855f25ce748aaef44b1a.js +0 -1
- package/assets/esri/core/workers/chunks/87f68c2b9361bd3f8cac.js +0 -1
- package/assets/esri/core/workers/chunks/9307108821d82c131654.js +0 -1
- package/assets/esri/core/workers/chunks/97a38d700f2cb8807d51.js +0 -1
- package/assets/esri/core/workers/chunks/9e9be7f6ea32957f1088.js +0 -33
- package/assets/esri/core/workers/chunks/af4412e79275c5a87539.js +0 -1
- package/assets/esri/core/workers/chunks/cbec768cd98caff212f2.js +0 -1
- package/assets/esri/core/workers/chunks/d3a7747f23e91d1f1b5e.js +0 -1
- package/assets/esri/core/workers/chunks/d3ae88fcde2d7fb3e2e2.js +0 -1
- package/assets/esri/core/workers/chunks/d81c4afad4abe2d1d0b9.js +0 -1
- package/assets/esri/core/workers/chunks/d87fdc64a5cc6be4bd69.js +0 -1
- package/assets/esri/core/workers/chunks/db5d3feeb61ccb5ede98.js +0 -1
- package/assets/esri/core/workers/chunks/dfb12f42b8d319ffa5fc.js +0 -1
- package/assets/esri/core/workers/chunks/ead1acf95c3385630da8.js +0 -1001
- package/assets/esri/core/workers/chunks/f3e3c2340452c1d60c95.js +0 -1
- package/assets/esri/core/workers/chunks/f4d7cbd33ef8710d7316.js +0 -1
- package/assets/esri/core/workers/chunks/f74b0cdc1c2b56bac5f0.js +0 -1
- package/assets/esri/core/workers/chunks/f807e7fc90e0e7ce6b67.js +0 -1
- package/assets/esri/core/workers/chunks/ff4e15a872de94d2b438.js +0 -1
- /package/assets/esri/core/workers/chunks/{3490d47cac7c8dec70cd.js.LICENSE.txt → c9c109d43a1e5160955d.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8189],{24770:(t,n,r)=>{r.d(n,{$I:()=>p,AU:()=>M,g7:()=>d,i4:()=>f,ui:()=>l,up:()=>b,vt:()=>c,yo:()=>m});var e=r(34727),o=r(58083),a=r(67026),s=r(82534),u=r(38954),i=r(51850);function c(t=b){return[t[0],t[1],t[2],t[3]]}function f(t,n,r=c()){return(0,u.c)(r,t),r[3]=n,r}function l(t,n=c()){const r=(0,o.l)(v,t);return g(n,(0,e.KJ)((0,a.Xd)(n,r))),n}function h(t,n,r=c()){return(0,a.x8)(v,t,p(t)),(0,a.x8)(y,n,p(n)),(0,a.lw)(v,y,v),g(r,(0,e.KJ)((0,a.Xd)(r,v)))}function M(t,n,r,e=c()){return f(i.Cw,t,x),f(i.JP,n,A),f(i.Cb,r,w),h(x,A,x),h(x,w,e),e}function m(t){return t}function d(t){return t[3]}function p(t){return(0,e.kU)(t[3])}function g(t,n){return t[3]=n,t}const b=[0,0,1,0],v=(0,s.vt)(),y=(0,s.vt)(),x=(c(),c()),A=c(),w=c()},27921:(t,n,r)=>{r.d(n,{$Q:()=>I,C:()=>c,Cr:()=>M,LV:()=>i,O_:()=>h,Qj:()=>f,T7:()=>_,Tj:()=>S,Ui:()=>w,_I:()=>P,fA:()=>l,gv:()=>q,lU:()=>m,mN:()=>Z,mP:()=>x,mR:()=>A,vE:()=>T,vt:()=>u});var e=r(34727),o=r(38954),a=r(51850),s=(r(87317),r(44280),r(32114));function u(t=j){return[t[0],t[1],t[2],t[3]]}function i(t=j[0],n=j[1],r=j[2],e=j[3]){return l(t,n,r,e,s.Km.get())}function c(t,n){return l(n[0],n[1],n[2],n[3],t)}function f(t){return t}function l(t,n,r,e,o=u()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function M(t,n,r,e=u()){const o=r[0]-n[0],a=r[1]-n[1],s=r[2]-n[2],i=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=a*f-s*c,h=s*i-o*f,M=o*c-a*i,m=l*l+h*h+M*M,d=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return e[0]=l*d,e[1]=h*d,e[2]=M*d,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function m(t,n,r,e=0,a=Math.floor(r*(1/3)),s=Math.floor(r*(2/3))){if(r<3)return!1;n(p,e);let u=a,i=!1;for(;u<r-1&&!i;)n(g,u),u++,i=!(0,o.q)(p,g);if(!i)return!1;for(u=Math.max(u,s),i=!1;u<r&&!i;)n(b,u),u++,(0,o.d)(v,p,g),(0,o.n)(v,v),(0,o.d)(y,g,b),(0,o.n)(y,y),i=!(0,o.q)(p,b)&&!(0,o.q)(g,b)&&Math.abs((0,o.e)(v,y))<d;return i?(M(p,g,b,t),!0):(0!==e||1!==a||2!==s)&&m(t,n,r,0,1,2)}r(32728);const d=.99619469809,p=(0,a.vt)(),g=(0,a.vt)(),b=(0,a.vt)(),v=(0,a.vt)(),y=(0,a.vt)();function x(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.e)(t,r),t}function A(t,n,r,e){return(0,o.h)(b,n,t),h(r,b,e)}function w(t,n,r){return null!=n&&O(T(t,n.origin,n.direction,N,r))}function _(t,n,r){return O(T(t,n.origin,n.vector,0,r))}function q(t,n,r){return O(T(t,n.origin,n.vector,1,r))}function S(t,n){return Z(t,n)>=0}function I(t,n){const r=(0,o.e)(t,n.ray.direction),e=-Z(t,n.ray.origin);if(e<0&&r>=0)return!1;if(r>-1e-6&&r<1e-6)return e>0;if((e<0||r<0)&&!(e<0&&r<0))return!0;const a=e/r;return r>0?a<n.c1&&(n.c1=a):a>n.c0&&(n.c0=a),n.c0<=n.c1}function P(t,n,r){const e=(0,o.g)(s.rq.get(),t,-t[3]),a=function(t,n,r){const e=(0,o.g)(s.rq.get(),t,(0,o.e)(t,n));return(0,o.d)(r,n,e),r}(t,(0,o.d)(s.rq.get(),n,e),s.rq.get());return(0,o.f)(r,a,e),r}function Z(t,n){return(0,o.e)(t,n)+t[3]}function O(t){return 0===t||1===t}function T(t,n,r,a,s){const u=(0,o.e)(t,r),i=Z(t,n);if(0===u)return i>=0?2:3;let c=-i/u;return 1&a&&(c=(0,e.qE)(c,0,1)),!(4&a)&&c<0||!(8&a)&&c>1?i>=0?2:3:((0,o.f)(s,n,(0,o.g)(s,r,c)),i>=0?0:1)}const j=[0,0,1,0],N=8},29242:(t,n,r)=>{function e(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,e,o,a,s,u,i){return[t,n,r,e,o,a,s,u,i]}r.d(n,{fA:()=>o,vt:()=>e,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:o},Symbol.toStringTag,{value:"Module"}))},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>m,rq:()=>l,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),a=r(9093),s=r(82534),u=r(48163),i=r(51850),c=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(u.vt)}static createVec3f64(){return new f(i.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(a.vt)}static createQuatf64(){return new f(s.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),M=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},32728:(t,n,r)=>{r.d(n,{nu:()=>s,wp:()=>a}),r(34727);var e=r(38954),o=r(51850);function a(t,n){const r=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),a=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,e.i)(t,r,o,a),t}function s(t,n,r,a=(0,o.vt)()){const s=(0,e.l)(t),c=(0,e.l)(n),f=(0,e.e)(t,n)/(s*c);if(f<.9999999999999999){const o=Math.acos(f),l=((1-r)*s+r*c)/Math.sin(o),h=l/s*Math.sin((1-r)*o),M=l/c*Math.sin(r*o);return(0,e.g)(u,t,h),(0,e.g)(i,n,M),(0,e.f)(a,u,i)}return(0,e.m)(a,t,n,r)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const u=(0,o.vt)(),i=(0,o.vt)()},38954:(t,n,r)=>{r.d(n,{A:()=>m,B:()=>M,C:()=>f,D:()=>l,E:()=>N,F:()=>Y,H:()=>F,a:()=>C,b:()=>g,c:()=>s,d:()=>c,e:()=>_,f:()=>i,g:()=>p,h:()=>q,i:()=>u,j:()=>b,k:()=>y,l:()=>a,m:()=>S,n:()=>w,o:()=>P,q:()=>j,r:()=>A,s:()=>v,t:()=>I,u:()=>x,v:()=>Z,w:()=>h,x:()=>z,y:()=>R,z:()=>d});var e=r(51850),o=r(34304);function a(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function i(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function l(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[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 M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function d(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function p(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function g(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function v(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function y(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function x(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function w(t,n){const r=n[0],e=n[1],o=n[2];let a=r*r+e*e+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function _(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function q(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],u=r[1],i=r[2];return t[0]=o*i-a*u,t[1]=a*s-e*i,t[2]=e*u-o*s,t}function S(t,n,r,e){const o=n[0],a=n[1],s=n[2];return t[0]=o+e*(r[0]-o),t[1]=a+e*(r[1]-a),t[2]=s+e*(r[2]-s),t}function I(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*a+r[12],t[1]=r[1]*e+r[5]*o+r[9]*a+r[13],t[2]=r[2]*e+r[6]*o+r[10]*a+r[14],t}function P(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=e*r[0]+o*r[3]+a*r[6],t[1]=e*r[1]+o*r[4]+a*r[7],t[2]=e*r[2]+o*r[5]+a*r[8],t}function Z(t,n,r){const e=r[0],o=r[1],a=r[2],s=r[3],u=n[0],i=n[1],c=n[2],f=o*c-a*i,l=a*u-e*c,h=e*i-o*u,M=o*h-a*l,m=a*f-e*h,d=e*l-o*f,p=2*s;return t[0]=u+f*p+2*M,t[1]=i+l*p+2*m,t[2]=c+h*p+2*d,t}const O=(0,e.vt)(),T=(0,e.vt)();function j(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function N(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],a=r[2]-n[2];let s=e*e+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=e*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const C=c,X=f,E=l,Y=b,z=v,F=a,R=y;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:i,angle:function(t,n){w(O,t),w(T,n);const r=_(O,T);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,a){const s=1-a,u=s*s,i=a*a,c=u*s,f=3*a*u,l=3*i*s,h=i*a;return t[0]=n[0]*c+r[0]*f+e[0]*l+o[0]*h,t[1]=n[1]*c+r[1]*f+e[1]*l+o[1]*h,t[2]=n[2]*c+r[2]*f+e[2]*l+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,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:s,cross:q,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],u=r[1],i=r[2],c=o*i-a*u,f=a*s-e*i,l=e*u-o*s,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:N,dist:Y,distance:b,div:E,divide:l,dot:_,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],a=t[2],s=n[0],u=n[1],i=n[2],c=(0,o.FD)();return Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(a-i)<=c*Math.max(1,Math.abs(a),Math.abs(i))},exactEquals:j,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,r,e,o,a){const s=a*a,u=s*(2*a-3)+1,i=s*(a-2)+a,c=s*(a-1),f=s*(3-2*a);return t[0]=n[0]*u+r[0]*i+e[0]*c+o[0]*f,t[1]=n[1]*u+r[1]*i+e[1]*c+o[1]*f,t[2]=n[2]*u+r[2]*i+e[2]*c+o[2]*f,t},inverse:A,len:F,length:a,lerp:S,max:d,min:m,mul:X,multiply:f,negate:x,normalize:w,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,a=2*r()-1,s=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(e)*s,t[1]=Math.sin(e)*s,t[2]=a*n,t},rotateX:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0],a[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),a[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),a[1]=o[1],a[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),a[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),a[2]=o[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[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:p,scaleAndAdd:g,set:u,sign:M,sqrDist:z,sqrLen:R,squaredDistance:v,squaredLength:y,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:C,subtract:c,transformMat3:P,transformMat4:I,transformQuat:Z},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>p,extractMesh:()=>d,meshFeatureSetFromJSON:()=>m});var e=r(52106),o=r(53966),a=r(91869),s=r(5443),u=r(40036),i=r(16930),c=r(63579),f=r(20557),l=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function m(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const a=l.A.fromJSON(r);if(a.geometryType="mesh",!r.assetMaps)return a;const s=p(n,r.assetMaps),u=t.sourceSpatialReference??i.A.WGS84,c=r.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(M=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=d(t,c,u,n,s);a.features.push(new e.A({geometry:r,attributes:h(t)}))}return a}function d(t,n,r,e,o){const a=t.attributes[n],i=o.get(a);if(null==i||!t.geometry)return null;const f=(0,h.V)(t.attributes,r,e.transformFieldRoles),l=s.A.fromJSON(t.geometry);l.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),m=r.isGeographic?"local":"georeferenced",d=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(i);return d?u.default.createWithExternalSource(f,d,{extent:l,transform:M,vertexSpace:m,unitConversionDisabled:!0}):u.default.createIncomplete(f,{extent:l,transform:M,vertexSpace:m})}function p(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,s=e.assetType,u=e.assetHash,i=e.assetURL,c=e.conversionStatus,l=e.seqNo,h=(0,f.Fm)(s,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const m=(0,a.tE)(r,n,()=>({files:new Map}));(0,a.tE)(m.files,o,()=>({name:o,type:s,mimeType:h,status:g(c),parts:[]})).parts[l]={hash:u,url:i}}return r}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},44280:(t,n,r)=>{r.d(n,{EJ:()=>i,g7:()=>u,gr:()=>s});var e=r(34727),o=r(38954),a=r(51850);function s(t,n){return(0,o.e)(t,n)/(0,o.l)(t)}function u(t,n){const r=(0,o.e)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,e.XM)(r)}function i(t,n,r){(0,o.n)(c,t),(0,o.n)(f,n);const a=(0,o.e)(c,f),s=(0,e.XM)(a),u=(0,o.h)(c,c,f);return(0,o.e)(u,r)<0?2*Math.PI-s:s}const c=(0,a.vt)(),f=(0,a.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function s(){return a(1,1)}function u(){return a(1,0)}function i(){return a(0,1)}r.d(n,{Un:()=>c,fA:()=>a,o8:()=>o,vt:()=>e});const c=s(),f=u(),l=i();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:a,ones:s,unitX:u,unitY:i,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),a=r(51850);function s(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),s=Math.cos(n),u=r;return u[0]=-e,u[4]=-a*o,u[8]=s*o,u[12]=0,u[1]=o,u[5]=-a*e,u[9]=s*e,u[13]=0,u[2]=0,u[6]=s,u[10]=a,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=r(37539),i=r(21325);function c(t,n,r,e){const a=(0,u.Tp)(t,e);if(null==a)return!1;const c=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(c===m&&!f(m)&&(0!==c||(0,i.aI)(t,e)))return(0,o.kN)(r,n),!0;if(f(m)){const t=u.w5[c][10],e=u.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),s(l*h[0],l*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const d=f(c);if((3===m||11===m||2===m||5===m)&&(2===c||d||3===c||5===c)){const t=u.w5[c][10],e=u.w5[10][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),d?function(t,n,r){s(t,n,r),(0,o.mg)(r,r)}(l*h[0],l*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,e.kU)(1),h=(0,a.vt)(),M=(0,a.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>s});var e=r(51850),o=r(98988),a=r(9762);function s(t,n,r,e){if((0,o.canProjectWithoutEngine)(t.spatialReference,r)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??e??0,(0,a.projectBuffer)(u,t.spatialReference,0,n,r,0)}const s=(0,o.tryProjectWithZConversion)(t,r);return!!s&&(n[0]=s?.x,n[1]=s?.y,n[2]=s?.z??e??0,!0)}const u=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>d,Xd:()=>f,Xr:()=>M,hZ:()=>g,lw:()=>l,t2:()=>P,x8:()=>c});var e=r(29242),o=r(82534),a=r(51850),s=r(34304),u=r(38954),i=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function f(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,s.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=r[0],i=r[1],c=r[2],f=r[3];return t[0]=e*f+s*u+o*c-a*i,t[1]=o*f+s*i+a*u-e*c,t[2]=a*f+s*c+e*i-o*u,t[3]=s*f-e*u-o*i-a*c,t}function h(t,n,r,e){const o=n[0],a=n[1],u=n[2],i=n[3];let c,f,l,h,M,m=r[0],d=r[1],p=r[2],g=r[3];return f=o*m+a*d+u*p+i*g,f<0&&(f=-f,m=-m,d=-d,p=-p,g=-g),1-f>(0,s.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-e)*c)/l,M=Math.sin(e*c)/l):(h=1-e,M=e),t[0]=h*o+M*m,t[1]=h*a+M*d,t[2]=h*u+M*p,t[3]=h*i+M*g,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function d(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),s=Math.cos(n),u=Math.sin(r),i=Math.cos(r),c=Math.sin(e),f=Math.cos(e);return t[0]=a*i*f-s*u*c,t[1]=s*u*f+a*i*c,t[2]=s*i*c-a*u*f,t[3]=s*i*f+a*u*c,t}const p=i.d,g=i.s,b=i.g,v=l,y=i.c,x=i.h,A=i.l,w=i.i,_=w,q=i.b,S=q,I=i.n,P=i.a,Z=i.e,O=(0,a.vt)(),T=(0,a.fA)(1,0,0),j=(0,a.fA)(0,1,0),N=(0,o.vt)(),C=(0,o.vt)(),X=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:p,dot:x,equals:Z,exactEquals:P,fromEuler:d,fromMat3:m,getAxisAngle:f,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r*r+e*e+o*o+a*a,u=s?1/s:0;return t[0]=-r*u,t[1]=-e*u,t[2]=-o*u,t[3]=a*u,t},len:_,length:w,lerp:A,mul:v,multiply:l,normalize:I,random:function(t){const n=s.Ov,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),u=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=u*Math.sin(2*Math.PI*o),t[3]=u*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i+s*u,t[1]=o*i+a*u,t[2]=a*i-o*u,t[3]=s*i-e*u,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i-a*u,t[1]=o*i+s*u,t[2]=a*i+e*u,t[3]=s*i-o*u,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i+o*u,t[1]=o*i-e*u,t[2]=a*i+s*u,t[3]=s*i-a*u,t},rotationTo:function(t,n,r){const e=(0,u.e)(n,r);return e<-.999999?((0,u.h)(O,T,n),(0,u.H)(O)<1e-6&&(0,u.h)(O,j,n),(0,u.n)(O,O),c(t,O,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,u.h)(O,n,r),t[0]=O[0],t[1]=O[1],t[2]=O[2],t[3]=1+e,I(t,t))},scale:y,set:g,setAxes:function(t,n,r,e){const o=X;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],I(t,m(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(N,n,o,a),h(C,r,e,a),h(t,N,C,2*a*(1-a)),t},sqrLen:S,squaredLength:q,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>m});var e=r(31635),o=r(69540),a=r(25482),s=r(10107),u=(r(44208),r(53966),r(87811),r(40608)),i=r(58083),c=r(9093),f=r(67026),l=r(82534),h=r(51850),M=r(24770);let m=class extends((0,o.O)(a.o)){constructor(t){super(t),this.translation=(0,h.vt)(),this.rotationAxis=(0,h.ci)(M.up),this.rotationAngle=0,this.scale=(0,h.fA)(1,1,1)}get rotation(){return(0,M.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,h.o8)((0,M.yo)(t)),this.rotationAngle=(0,M.g7)(t)}get localMatrix(){const t=(0,c.vt)();return(0,f.x8)(d,(0,M.yo)(this.rotation),(0,M.$I)(this.rotation)),(0,i.o1)(t,d,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,c.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}};(0,e.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"translation",void 0),(0,e.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAxis",void 0),(0,e.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAngle",void 0),(0,e.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"scale",void 0),(0,e.Cg)([(0,s.MZ)()],m.prototype,"rotation",null),(0,e.Cg)([(0,s.MZ)()],m.prototype,"localMatrix",null),(0,e.Cg)([(0,s.MZ)()],m.prototype,"localMatrixInverse",null),m=(0,e.Cg)([(0,u.$)("esri.geometry.support.MeshTransform")],m);const d=(0,l.vt)()},77690:(t,n,r)=>{r.d(n,{B8:()=>u,Ge:()=>h,I0:()=>l,KC:()=>i,hZ:()=>a,hs:()=>f,lw:()=>c,mg:()=>s,z0:()=>o});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,s,u,i,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=s,t[6]=u,t[7]=i,t[8]=c,t}function s(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],f=n[8],l=f*s-u*c,h=-f*a+u*i,M=c*a-s*i;let m=r*l+e*h+o*M;return m?(m=1/m,t[0]=l*m,t[1]=(-f*e+o*c)*m,t[2]=(u*e-o*s)*m,t[3]=h*m,t[4]=(f*r-o*i)*m,t[5]=(-u*r+o*a)*m,t[6]=M*m,t[7]=(-c*r+e*i)*m,t[8]=(s*r-e*a)*m,t):null}function i(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],f=n[8];return t[0]=s*f-u*c,t[1]=o*c-e*f,t[2]=e*u-o*s,t[3]=u*i-a*f,t[4]=r*f-o*i,t[5]=o*a-r*u,t[6]=a*c-s*i,t[7]=e*i-r*c,t[8]=r*s-e*a,t}function c(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],f=n[7],l=n[8],h=r[0],M=r[1],m=r[2],d=r[3],p=r[4],g=r[5],b=r[6],v=r[7],y=r[8];return t[0]=h*e+M*s+m*c,t[1]=h*o+M*u+m*f,t[2]=h*a+M*i+m*l,t[3]=d*e+p*s+g*c,t[4]=d*o+p*u+g*f,t[5]=d*a+p*i+g*l,t[6]=b*e+v*s+y*c,t[7]=b*o+v*u+y*f,t[8]=b*a+v*i+y*l,t}function f(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function l(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r+r,u=e+e,i=o+o,c=r*s,f=e*s,l=e*u,h=o*s,M=o*u,m=o*i,d=a*s,p=a*u,g=a*i;return t[0]=1-l-m,t[3]=f-g,t[6]=h+p,t[1]=f+g,t[4]=1-c-m,t[7]=M-d,t[2]=h-p,t[5]=M+d,t[8]=1-c-l,t}function h(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],f=n[8],l=n[9],h=n[10],M=n[11],m=n[12],d=n[13],p=n[14],g=n[15],b=r*u-e*s,v=r*i-o*s,y=r*c-a*s,x=e*i-o*u,A=e*c-a*u,w=o*c-a*i,_=f*d-l*m,q=f*p-h*m,S=f*g-M*m,I=l*p-h*d,P=l*g-M*d,Z=h*g-M*p;let O=b*Z-v*P+y*I+x*S-A*q+w*_;return O?(O=1/O,t[0]=(u*Z-i*P+c*I)*O,t[1]=(i*S-s*Z-c*q)*O,t[2]=(s*P-u*S+c*_)*O,t[3]=(o*P-e*Z-a*I)*O,t[4]=(r*Z-o*S+a*q)*O,t[5]=(e*S-r*P-a*_)*O,t[6]=(d*w-p*A+g*x)*O,t[7]=(p*y-m*w-g*v)*O,t[8]=(m*A-d*y+g*b)*O,t):null}function M(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const m=c,d=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:i,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],s=t[5],u=t[6],i=t[7],c=t[8];return n*(c*a-s*i)+r*(-c*o+s*u)+e*(i*o-a*u)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],i=t[5],c=t[6],f=t[7],l=t[8],h=n[0],M=n[1],m=n[2],d=n[3],p=n[4],g=n[5],b=n[6],v=n[7],y=n[8],x=(0,e.FD)();return Math.abs(r-h)<=x*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-M)<=x*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-m)<=x*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(s-d)<=x*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(u-p)<=x*Math.max(1,Math.abs(u),Math.abs(p))&&Math.abs(i-g)<=x*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(c-b)<=x*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(f-v)<=x*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(l-y)<=x*Math.max(1,Math.abs(l),Math.abs(y))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:l,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],i=t[5],c=t[6],f=t[7],l=t[8];return Math.abs(1-(r*r+s*s+c*c))<=n&&Math.abs(1-(o*o+u*u+f*f))<=n&&Math.abs(1-(a*a+i*i+l*l))<=n},mul:m,multiply:c,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:h,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],s=n[5],u=n[6],i=n[8],c=n[9],f=n[10],l=f*s-u*c,h=-f*a+u*i,M=c*a-s*i,m=r*l+e*h+o*M;if(!m)return null;const d=1/m;return t[0]=l*d,t[1]=(-f*e+o*c)*d,t[2]=(u*e-o*s)*d,t[3]=h*d,t[4]=(f*r-o*i)*d,t[5]=(-u*r+o*a)*d,t[6]=M*d,t[7]=(-c*r+e*i)*d,t[8]=(s*r-e*a)*d,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],f=n[7],l=n[8],h=Math.sin(r),M=Math.cos(r);return t[0]=M*e+h*s,t[1]=M*o+h*u,t[2]=M*a+h*i,t[3]=M*s-h*e,t[4]=M*u-h*o,t[5]=M*i-h*a,t[6]=c,t[7]=f,t[8]=l,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:d,subtract:M,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],f=n[7],l=n[8],h=r[0],M=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=s,t[4]=u,t[5]=i,t[6]=h*e+M*s+c,t[7]=h*o+M*u+f,t[8]=h*a+M*i+l,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},77793:(t,n,r)=>{r.d(n,{V:()=>a,f:()=>s});var e=r(86738),o=r(73836);function a(t,n,r=u){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function s(t,n=u){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const u={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>f});var e=r(73941),o=r(16930),a=r(21325);const s=new o.A(e.fv),u=new o.A(e.FY),i=new o.A(e.LJ),c=new o.A(e.Ro);function f(t){const n=l.get(t);if(n)return n;let r=s;if(t)if(t===u)r=u;else if(t===i)r=i;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,a.tl)(n)||(0,a.tl)(e)?r=u:((0,a.ZL)(n)||(0,a.ZL)(e))&&(r=i);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=u:t===M&&(r=i)}}}return l.set(t,r),r}const l=new Map,h=u.wkt.toUpperCase(),M=i.wkt.toUpperCase()}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4111],{8303:(t,e,r)=>{r.d(e,{A:()=>I});var s=r(31635),o=r(92602),i=r(70333),n=r(78888),a=r(60999),p=r(49186),u=r(53966),l=r(97768),d=r(74887),c=r(84952),y=r(10107),g=(r(44208),r(87811),r(36005)),h=r(40608),m=r(43937),f=r(77548),v=r(20655),C=r(80812),w=r(41318),F=r(10407);const I=t=>{const e=t;let I=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,l.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 C.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:s}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(e),await s({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,d.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,d.QP)(t),!0)))}async setUserPrivileges(t,e){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:o}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",o)}catch(t){(0,d.QP)(t)}}async _fetchUserPrivileges(t,e){let r=this.portalItem;if(!t||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(e);const s=!i.id?.findCredential(this.url),o=t===r.id;if(o&&r.portal.user)return this._getUserPrivileges(r,s);let n,a;if(o)n=r.portal.url;else try{n=await(0,f.wI)(this.url,e)}catch(t){(0,d.QP)(t)}if(!n||!(0,c.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(i.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,d.QP)(t)}const p=!0,u=!1,l=!1;if(!a)return{features:{edit:p,fullEdit:u},content:{updateItem:l}};try{if(o?await r.reload():(r=new C.default({id:t,portal:{url:n}}),await r.load(e)),r.portal.user)return this._getUserPrivileges(r,s)}catch(t){(0,d.QP)(t)}return{features:{edit:p,fullEdit:u},content:{updateItem:l}}}_getUserPrivileges(t,e){const r=(0,F.It)(t);return e&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,d.QP)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?i.id?.findCredential(this.url):null;if(!e)return!0;const r=A.credential===e?A.user:await this._fetchEditingUser(t);return A.credential=e,A.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=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,o=v.A.getDefault();if(o&&o.loaded&&(0,c.S8)(o.restUrl)===(0,c.S8)(s))return o.user;const p=`${s}/community/self`,u=null!=t?t.signal:null,l=await(0,a.Ke)((0,n.A)(p,{authMode:"no-prompt",query:{f:"json"},signal:u}));return l.ok?w.A.fromJSON(l.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e?.portal,s=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&s&&!(0,c.ut)(s.restUrl,r.restUrl)?(e.messages&&e.messages.push(new p.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,s.Cg)([(0,y.MZ)({type:C.default})],I.prototype,"portalItem",null),(0,s.Cg)([(0,g.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,s.Cg)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,s.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,s.Cg)([(0,h.$)("esri.layers.mixins.PortalLayer")],I),I},A={credential:null,user:null}},18768:(t,e,r)=>{r.d(e,{b:()=>p});var s=r(31635),o=r(53966),i=r(10107),n=(r(44208),r(87811),r(40608)),a=r(60694);const p=t=>{const e=t;let r=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const t=(0,a.qg)(this.url);if(t?.title)return t.title}return this._get("title")||""}set title(t){this._set("title",t)}set url(t){this._set("url",(0,a.Jf)(t,o.A.getLogger(this)))}};return(0,s.Cg)([(0,i.MZ)()],r.prototype,"title",null),(0,s.Cg)([(0,i.MZ)({type:String})],r.prototype,"url",null),r=(0,s.Cg)([(0,n.$)("esri.layers.mixins.ArcGISService")],r),r}},20557:(t,e,r)=>{r.d(e,{Fm:()=>p,Hz:()=>y,JQ:()=>c,JZ:()=>w,ND:()=>h,R_:()=>n,U9:()=>d,fu:()=>o,nr:()=>g,oF:()=>i,rq:()=>u,z$:()=>l});const s=[["binary","application/octet-stream","bin",""]];function o(t,e){return null!=f(e.name,t?.supportedFormats??[])}function i(t,e){if(!t)return!1;const r=u(e,t.supportedFormats??[]);return null!=r&&t.editFormats.includes(r)}function n(t,e){return v(function(t,e){const r=t.toLowerCase();return m(e).find(t=>C(t)===r)}(t,e))}function a(t,e){return v(f(t,e))}function p(t,e){return C(function(t,e){return m(e).find(e=>v(e)===t)}(t,e))}function u(t,e){return a(t.name,e)??n(t.type,e)}function l(t,e,r){return n(t,r)??a(e,r)}function d({supportedFormats:t}){return l("model/gltf-binary","glb",t)}function c(t){const e=d(t);return null!=e&&t.editFormats.includes(e)}function y(t){if(!t)return null;const e=d(t),r=function({supportedFormats:t}){return l("model/gltf+json","gltf",t)}(t);let s=null;for(const o of t.queryFormats){if(o===e)return o;o===r&&(s=o)}return s}function g({supportedFormats:t}){return l("application/esri3do-SR_world","wld",t)}function h({supportedFormats:t}){return l("application/esri3do-SR_prj","prj",t)}function m(t){return[...s,...t]}function f(t,e){const r=t.toLowerCase();return m(e).find(t=>function(t){return t?.[2].split(",").map(t=>t.toLowerCase())??[]}(t).some(t=>r.endsWith(t)))}function v(t){return t?.[0]}function C(t){return t?.[1].toLowerCase()}function w(t){return t.tables?.find(t=>"assetMaps"===t.role)}},22453:(t,e,r)=>{r.d(e,{S:()=>g,d:()=>P});var s=r(44208),o=r(60694),i=r(20557);function n(t,e,r){return!!p(t,e,r)}function a(t,e,r){return p(t,e,r)}function p(t,e,r){return t&&t.hasOwnProperty(e)?t[e]:r}const u={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function l(t){const e=t?.supportedSpatialAggregationStatistics?.map(t=>t.toLowerCase());return{envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function d(t,e){const r=t?.supportedOperationsWithCacheHint?.map(t=>t.toLowerCase());return!!r?.includes(e.toLowerCase())}function c(t){const e=t?.supportedStatisticTypes?.map(t=>t.toLowerCase());return{count:!!e?.includes("count"),sum:!!e?.includes("sum"),min:!!e?.includes("min"),max:!!e?.includes("max"),avg:!!e?.includes("avg"),var:!!e?.includes("var"),stddev:!!e?.includes("stddev"),percentileContinuous:!!e?.includes("percentile_cont"),percentileDiscrete:!!e?.includes("percentile_disc"),envelope:!!e?.includes("envelopeaggregate"),centroid:!!e?.includes("centroidaggregate"),convexHull:!!e?.includes("convexhullaggregate")}}function y(t){const e=t?.supportedNormalizationTypes?.map(t=>t.toLowerCase());return{field:!!e?.includes("field"),log:!!e?.includes("log"),naturalLog:!!e?.includes("naturallog"),percentOfTotal:!!e?.includes("percentoftotal"),squareRoot:!!e?.includes("squareroot")}}function g(t,e){return{analytics:h(t),attachment:m(t),data:f(t),metadata:v(t),operations:C(t.capabilities,t,e),query:w(t,e),queryAttributeBins:A(t),queryRelated:F(t),queryTopFeatures:I(t),editing:T(t)}}function h(t){return{supportsCacheHint:d(t.advancedQueryCapabilities,"queryAnalytics")}}function m(t){const e=t.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:d(t.advancedQueryCapabilities,"queryAttachments"),supportsOrderByFields:n(t.advancedQueryCapabilities,"supportsQueryAttachmentOrderByFields",!1),supportsResize:n(t,"supportsAttachmentsResizing",!1)};return e&&Array.isArray(e)&&e.forEach(t=>{const e=u[t.name];e&&(r[e]=!!t.isEnabled)}),r}function f(t){return{isVersioned:n(t,"isDataVersioned",!1),isBranchVersioned:n(t,"isDataBranchVersioned",!1),supportsAttachment:n(t,"hasAttachments",!1),supportsM:n(t,"hasM",!1),supportsZ:n(t,"hasZ",!1)}}function v(t){return{supportsAdvancedFieldProperties:n(t,"supportsFieldDescriptionProperty",!1)}}function C(t,e,r){const s=t?.toLowerCase().split(",").map(t=>t.trim())??[],i=r?(0,o.qg)(r):null,a=s.includes("MapServer"===i?.serverType?"data":"query"),p=s.includes("editing")&&!e.datesInUnknownTimezone&&!(!0===e.uniqueIdInfo?.OIDFieldContainsHashValue);let u=p&&s.includes("create"),l=p&&s.includes("delete"),d=p&&s.includes("update");const c=s.includes("changetracking"),y=e.advancedQueryCapabilities;return p&&!(u||l||d)&&(u=l=d=!0),{supportsCalculate:n(e,"supportsCalculate",!1),supportsTruncate:n(e,"supportsTruncate",!1),supportsValidateSql:n(e,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:l,supportsEditing:p,supportsChangeTracking:c,supportsQuery:a,supportsQueryAnalytics:n(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:n(y,"supportsQueryAttachments",!1),supportsQueryBins:n(y,"supportsQueryBins",!1)||!!e.queryBinsCapabilities,supportsQueryTopFeatures:n(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:n(e,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:d,supportsExceedsLimitStatistics:n(e,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:n(e,"supportsAsyncConvert3D",!1)}}function w(t,e){const r=t.advancedQueryCapabilities,p=t.ownershipBasedAccessControlForFeatures,u=t.archivingInfo,c=t.currentVersion,y=e?.includes("MapServer"),g=!y||c>=(0,s.A)("mapserver-pbf-version-support"),h=(0,o.Wo)(e),m=new Set((t.supportedQueryFormats??"").split(",").map(t=>t.toLowerCase().trim()));return{maxRecordCount:a(t,"maxRecordCount",void 0),maxRecordCountFactor:a(t,"maxRecordCountFactor",void 0),maxUniqueIDCount:a(t,"maxUniqueIDCount",void 0),standardMaxRecordCount:a(t,"standardMaxRecordCount",void 0),supportedSpatialAggregationStatistics:l(r),supportsCacheHint:n(r,"supportsQueryWithCacheHint",!1)||d(r,"query"),supportsCentroid:n(r,"supportsReturningGeometryCentroid",!1),supportsCentroidOnDegeneratedQuantizedGeometry:h||null==e,supportsCompactGeometry:h,supportsCurrentUser:n(r,"supportsCurrentUserQueries",!1),supportsDefaultSpatialReference:n(r,"supportsDefaultSR",!1),supportsDegeneratedQuantizedGeometry:n(r,"supportsDegeneratedQuantizedGeometry",!1),supportsDisjointSpatialRelationship:n(r,"supportsDisjointSpatialRel",!1),supportsDistance:n(r,"supportsQueryWithDistance",!1),supportsDistinct:n(r,"supportsDistinct",t.supportsAdvancedQueries),supportsExtent:n(r,"supportsReturningQueryExtent",!1),supportsFormatPBF:g&&m.has("pbf"),supportsFullTextSearch:n(r,"supportsFullTextSearch",!1),supportsGeometryProperties:n(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:n(r,"supportsHavingClause",!1),supportsHistoricMoment:n(u,"supportsQueryWithHistoricMoment",!1),supportsMaxRecordCountFactor:n(r,"supportsMaxRecordCountFactor",!1),supportsOrderBy:n(r,"supportsOrderBy",t.supportsAdvancedQueries),supportsPagination:n(r,"supportsPagination",!1),supportsPaginationOnAggregatedQueries:n(r,"supportsPaginationOnAggregatedQueries",!1),supportsPercentileStatistics:n(r,"supportsPercentileStatistics",!1),supportsQuantization:n(t,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:n(t,"supportsQuantizationEditMode",!1),supportsQueryByAnonymous:n(p,"allowAnonymousToQuery",!0),supportsQueryByOthers:n(p,"allowOthersToQuery",!0),supportsQueryGeometry:n(t,"supportsReturningQueryGeometry",!1),supportsResultType:n(r,"supportsQueryWithResultType",!1),supportsReturnMesh:!!(0,i.Hz)(t.infoFor3D),supportsSpatialAggregationStatistics:n(r,"supportsSpatialAggregationStatistics",!1),supportsSqlExpression:n(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:n(t,"useStandardizedQueries",!1),supportsStatistics:n(r,"supportsStatistics",t.supportsStatistics),supportsTopFeaturesQuery:n(r,"supportsTopFeaturesQuery",!1),supportsTrueCurve:n(r,"supportsTrueCurve",!1),tileMaxRecordCount:a(t,"tileMaxRecordCount",void 0)}}function F(t){const e=t.advancedQueryCapabilities,r=n(e,"supportsAdvancedQueryRelated",!1);return{supportsPagination:n(e,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:d(e,"queryRelated")}}function I(t){return{supportsCacheHint:d(t.advancedQueryCapabilities,"queryTopFilter")}}function A(t){const e=t?t.queryBinsCapabilities:void 0;return{supportsDate:n(e,"supportsDateBin",!1),supportsFixedInterval:n(e,"supportsFixedIntervalBin",!1),supportsAutoInterval:n(e,"supportsAutoIntervalBin",!1),supportsFixedBoundaries:n(e,"supportsFixedBoundariesBin",!1),supportsStackBy:n(e,"supportsStackBy",!1),supportsSplitBy:n(e,"supportsSplitBy",!1),supportsSnapToData:n(e,"supportsSnapToData",!1),supportsReturnFullIntervalBin:n(e,"supportsReturnFullIntervalBin",!1),supportsFirstDayOfWeek:n(e,"supportsFirstDayOfWeek",!1),supportsNormalization:n(e,"supportsNormalization",!1),supportedStatistics:c(e),supportedNormalizationTypes:y(e)}}function T(t){const e=t.ownershipBasedAccessControlForFeatures,r=t?t.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:n(t,"allowGeometryUpdates",!0),supportsGlobalId:n(t,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:n(t,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:n(t,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:n(t,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:n(t,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:n(e,"allowAnonymousToDelete",!0),supportsDeleteByOthers:n(e,"allowOthersToDelete",!0),supportsUpdateByAnonymous:n(e,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:n(e,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:n(r,"supportsAsyncApplyEdits",!1),zDefault:a(t,"zDefault",void 0)}}function P(t){return{operations:{supportsAppend:n(t,"supportsAppend",!1),supportsCoverageQuery:t?.playbackInfo?.klv["0601"]??!1,supportsExportClip:n(t,"supportsExportClip",!1),supportsExportFrameset:n(t,"supportsExportFrameset",!1),supportsMensuration:n(t,"supportsMensuration",!1),supportsPreviews:n(t,"supportsPreviews",!1),supportsUpdate:n(t,"supportsUpdate",!1)}}}},29005:(t,e,r)=>{r.d(e,{A:()=>l});var s=r(31635),o=r(69540),i=r(66552),n=r(25482),a=r(10107),p=(r(44208),r(53966),r(87811),r(40608));const u=new i.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let l=class extends((0,o.O)(n.o)){constructor(t){super(t),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"name",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"description",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],l.prototype,"drawingTool",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"prototype",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"thumbnail",void 0),l=(0,s.Cg)([(0,p.$)("esri.layers.support.FeatureTemplate")],l)},37352:(t,e,r)=>{r.d(e,{A:()=>u});var s,o=r(31635),i=r(7762),n=r(25482),a=r(10107),p=(r(44208),r(53966),r(87811),r(40608));let u=s=class extends n.o{constructor(t){super(t),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.A}clone(){return new s({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"floorField",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=s=(0,o.Cg)([(0,p.$)("esri.layers.support.LayerFloorInfo")],u)},45067:(t,e,r)=>{r.d(e,{A:()=>d});var s=r(31635),o=r(69540),i=r(66552),n=r(25482),a=r(10107),p=(r(44208),r(53966),r(87811),r(40608));const u=new i.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),l=new i.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let d=class extends((0,o.O)(n.o)){constructor(t){super(t),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,s.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"cardinality",void 0),(0,s.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],d.prototype,"catalogId",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"composite",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"id",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyField",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"keyFieldInRelationshipTable",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"name",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relatedTableId",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],d.prototype,"relationshipTableId",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],d.prototype,"role",void 0),d=(0,s.Cg)([(0,p.$)("esri.layers.support.Relationship")],d)},52136:(t,e,r)=>{r.d(e,{p:()=>n});var s=r(31635),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608));const n=t=>{const e=t;let r=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(t){null!=t?this._override("apiKey",t):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,s.Cg)([(0,i.$)("esri.layers.mixins.APIKeyMixin")],r),r}},69208:(t,e,r)=>{r.d(e,{d:()=>n});var s=r(31635),o=r(10107),i=(r(44208),r(53966),r(87811),r(40608));const n=t=>{const e=t;let r=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s.Cg)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:t=>({enabled:!!(t&&Object.keys(t).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,s.Cg)([(0,i.$)("esri.layers.mixins.CustomParametersMixin")],r),r}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7985],{4902:(e,t,i)=>{i.d(t,{PH:()=>o,sA:()=>n});var r=i(31635),s=i(40608);let l=0;const n=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+l++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable")],i),i},o=e=>{const t=e;let i=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:l++})}};return i=(0,r.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};n(class{})},17029:(e,t,i)=>{i.r(t),i.d(t,{default:()=>z});var r,s=i(31635),l=i(78888),n=i(51447),o=i(49186),a=i(66552),u=i(53966),p=i(92071),c=i(10107),d=(i(44208),i(87811),i(40608)),g=i(86738),h=i(16930),y=i(5443),w=i(19419),m=i(4146),v=i(63074),f=i(54310),b=i(25036),M=i(33446),A=i(87045);const T=new(i(72802).U)("0/0/0",0,0,0,void 0);let C=r=class extends((0,v.dM)((0,b.j)((0,f.J)(m.A)))){constructor(){super(...arguments),this.tileInfo=A.A.create({spatialReference:h.A.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new y.A(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,h.A.WebMercator),this.spatialReference=h.A.WebMercator}addResolvingPromise(e){super.addResolvingPromise(e)}getTileBounds(e,t,i,r){const s=r||(0,w.vt)();return T.level=e,T.row=t,T.col=i,T.extent=s,this.tileInfo.updateTileInfo(T),T.extent=void 0,s}fetchTile(e,t,i,r={}){const{signal:s}=r,n=this.getTileUrl(e,t,i),o={responseType:"image",signal:s,query:{...this.refreshParameters}};return(0,l.A)(n??"",o).then(e=>e.data)}async fetchImageBitmapTile(e,t,i,s={}){const{signal:n}=s;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,i,s);return(0,M.C)(r,e,t,i,n)}const o=this.getTileUrl(e,t,i)??"",a={responseType:"blob",signal:n,query:{...this.refreshParameters}},{data:u}=await(0,l.A)(o,a);return(0,M.C)(u,e,t,i,n)}getTileUrl(){throw new o.A("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,s.Cg)([(0,c.MZ)({type:A.A})],C.prototype,"tileInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:["show","hide"]})],C.prototype,"listMode",void 0),(0,s.Cg)([(0,c.MZ)({readOnly:!0,value:"base-tile"})],C.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({nonNullable:!0})],C.prototype,"fullExtent",void 0),(0,s.Cg)([(0,c.MZ)()],C.prototype,"spatialReference",void 0),C=r=(0,s.Cg)([(0,d.$)("esri.layers.BaseTileLayer")],C);var x=i(16131),j=i(91806);const Z=new a.J({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});(0,n.uW)(u.A.getLogger("esri.layers.BingMapsLayer"),"esri.layers.BingMapsLayer",{version:"4.33",warnOnce:!0});let S=class extends((0,v.dM)((0,x.q)((0,p.P)(C)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new A.A({size:[256,256],dpi:96,origin:new g.A({x:-20037508.342787,y:20037508.342787,spatialReference:h.A.WebMercator}),spatialReference:h.A.WebMercator,lods:[new j.A({level:1,resolution:78271.5169639999,scale:295828763.795777}),new j.A({level:2,resolution:39135.7584820001,scale:147914381.897889}),new j.A({level:3,resolution:19567.8792409999,scale:73957190.948944}),new j.A({level:4,resolution:9783.93962049996,scale:36978595.474472}),new j.A({level:5,resolution:4891.96981024998,scale:18489297.737236}),new j.A({level:6,resolution:2445.98490512499,scale:9244648.868618}),new j.A({level:7,resolution:1222.99245256249,scale:4622324.434309}),new j.A({level:8,resolution:611.49622628138,scale:2311162.217155}),new j.A({level:9,resolution:305.748113140558,scale:1155581.108577}),new j.A({level:10,resolution:152.874056570411,scale:577790.554289}),new j.A({level:11,resolution:76.4370282850732,scale:288895.277144}),new j.A({level:12,resolution:38.2185141425366,scale:144447.638572}),new j.A({level:13,resolution:19.1092570712683,scale:72223.819286}),new j.A({level:14,resolution:9.55462853563415,scale:36111.909643}),new j.A({level:15,resolution:4.77731426794937,scale:18055.954822}),new j.A({level:16,resolution:2.38865713397468,scale:9027.977411}),new j.A({level:17,resolution:1.19432856685505,scale:4513.988705}),new j.A({level:18,resolution:.597164283559817,scale:2256.994353}),new j.A({level:19,resolution:.298582141647617,scale:1128.497176}),new j.A({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return Z.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then(()=>this._getMetadata())):this.addResolvingPromise(Promise.reject(new o.A("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,i){if(!this.loaded||null==this.bingMetadata)return null;const r=this.bingMetadata.resourceSets[0].resources[0],s=r.imageUrlSubdomains[t%r.imageUrlSubdomains.length],l=this._getQuadKey(e,t,i);return r.imageUrl.replace("{subdomain}",s).replace("{quadkey}",l)}async fetchAttributionData(){return this.load().then(()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map(e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map(e=>({zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]}))}))})}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,l.A)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then(e=>{const t=e.data;if(200!==t.statusCode)throw new o.A("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new o.A("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new o.A("bingmapslayer:getmetadata","no bing resources")}).catch(e=>{throw new o.A("bingmapslayer:getmetadata",e.message)})}_getPortalBingKey(){return(0,l.A)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then(e=>{if(!e.data.bingKey)throw new o.A("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey}).catch(e=>{throw new o.A("bingmapslayer:getportalbingkey",e.message)})}_getQuadKey(e,t,i){let r="";for(let s=e;s>0;s--){let e=0;const l=1<<s-1;0!==(i&l)&&(e+=1),0!==(t&l)&&(e+=2),r+=e.toString()}return r}};(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1},value:null})],S.prototype,"bingMetadata",null),(0,s.Cg)([(0,c.MZ)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],S.prototype,"type",void 0),(0,s.Cg)([(0,c.MZ)({type:A.A})],S.prototype,"tileInfo",void 0),(0,s.Cg)([(0,c.MZ)({type:String,readOnly:!0,json:{read:!1,write:!1}})],S.prototype,"copyright",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!1,read:!1}})],S.prototype,"key",void 0),(0,s.Cg)([(0,c.MZ)({type:Z.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:Z.read}}})],S.prototype,"style",void 0),(0,s.Cg)([(0,c.MZ)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],S.prototype,"operationalLayerType",null),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!1,read:!1}})],S.prototype,"culture",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!1,read:!1}})],S.prototype,"region",void 0),(0,s.Cg)([(0,c.MZ)({type:String,json:{write:!0,read:!0}})],S.prototype,"portalUrl",void 0),(0,s.Cg)([(0,c.MZ)({type:Boolean,json:{write:!1,read:!1}})],S.prototype,"hasAttributionData",void 0),(0,s.Cg)([(0,c.MZ)({type:String,readOnly:!0})],S.prototype,"bingLogo",null),S=(0,s.Cg)([(0,d.$)("esri.layers.BingMapsLayer")],S);const z=S},33446:(e,t,i)=>{i.d(t,{C:()=>n,m:()=>l});var r=i(49186),s=i(74887);async function l(e,t,i){let l;try{l=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(i),l}async function n(e,t,i,l,n){let o;try{o=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${l}`,{error:e,level:t,row:i,col:l})}return(0,s.Te)(n),o}},64272:(e,t,i)=>{i.d(t,{T:()=>d});var r,s=i(31635),l=i(25482),n=i(88930),o=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),p=i(43937),c=i(98623);let d=class extends l.o{static{r=this}static get allTime(){return g}static get empty(){return h}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===r&&i===s}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,n.lL)(i,e,t));let s=this.end;if(s){const i=(0,n.lL)(s,e,t);s=s.getTime()===i.getTime()?i:(0,n.S1)(i,1,e,t)}return new r({start:i,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,l=e.end?.getTime()??1/0;let n,o;return s>=t&&s<=i?n=s:t>=s&&t<=l&&(n=t),i>=s&&i<=l?o=i:l>=t&&l<=i&&(o=l),null==n||null==o||isNaN(n)||isNaN(o)?r.empty:new r({start:n===-1/0?null:new Date(n),end:o===1/0?null:new Date(o)})}offset(e,t,i=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new r,{start:l,end:o}=this;return null!=l&&(s.start=(0,n.S1)(l,e,t,i)),null!=o&&(s.end=(0,n.S1)(o,e,t,i)),s}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return g.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,i=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:i})}};(0,s.Cg)([(0,o.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,p.K)("end")],d.prototype,"writeEnd",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s.Cg)([(0,o.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,p.K)("start")],d.prototype,"writeStart",null),d=r=(0,s.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const g=new d,h=new d({start:void 0,end:void 0})},72802:(e,t,i)=>{i.d(t,{U:()=>r});class r{constructor(e,t,i,r,s=void 0){this.id=e,this.level=t,this.row=i,this.col=r,this.extent=s}}},78553:(e,t,i)=>{i.d(t,{D:()=>l,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function l(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},87045:(e,t,i)=>{i.d(t,{A:()=>M});var r,s=i(31635),l=i(66552),n=i(25482),o=i(83047),a=i(10107),u=i(56507),p=(i(44208),i(87811),i(36005)),c=i(40608),d=i(43937),g=i(86738),h=i(16930),y=i(19419),w=i(21325),m=i(28735),v=i(91806),f=i(72802);const b=new l.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let M=class extends n.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:i,size:s=256,spatialReference:l=h.A.WebMercator,numLODs:n=24}=e;if(!(0,w.fn)(l)){const e=[];if(i)for(let t=0;t<i.length;t++){const r=i[t];e.push(new v.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let i=n-1;i>=0;i--)e.unshift(new v.A({level:i,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new g.A(0,0,l),size:[s,s],spatialReference:l})}const a=(0,w.Vp)(l),u=e.origin?new g.A({x:e.origin.x,y:e.origin.y,spatialReference:l}):new g.A(a?{x:a.origin[0],y:a.origin[1],spatialReference:l}:{x:0,y:0,spatialReference:l}),p=1/(39.37*(0,o.GA)(l)*96),c=[];if(i)for(let e=0;e<i.length;e++){const t=i[e],r=t*p;c.push(new v.A({level:e,scale:t,resolution:r}))}else{let e=(0,w.EA)(l)?512/s*591657527.5917094:256/s*591657527.591555;const i=Math.ceil(n/t);c.push(new v.A({level:0,scale:e,resolution:e*p}));for(let r=1;r<i;r++){const i=e/2**t,s=i*p;c.push(new v.A({level:r,scale:i,resolution:s})),e=i}}return new r({dpi:96,lods:c,origin:u,size:[s,s],spatialReference:l})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const i=(0,w.Vp)(e);return e.isWrappable&&!!i&&Math.abs(i.origin[0]-t.x)<=i.dx}return!1}readOrigin(e,t){return g.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,i=0;const r=[],s=this._levelToLOD={};e&&(t=-1/0,i=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,i=e.scale<i?e.scale:i,s[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const i=Math.floor(e),r=i+1;return t[i]/(t[i]/t[r])**(e-i)}scaleToZoom(e){const t=this.scales,i=t.length-1;let r=0;for(;r<i;r++){const i=t[r],s=t[r+1];if(i<=e)return r;if(s===e)return r+1;if(i>e&&s<e)return r+Math.log(i/e)/Math.log(i/s)}return r}tileAt(e,t,i,r){const s=this.lodAt(e);if(!s)return null;let l,n;if("number"==typeof t)l=t,n=i;else if((0,w.aI)(t.spatialReference,this.spatialReference))l=t.x,n=t.y,r=i;else{const e=(0,m.Cv)(t,this.spatialReference);if(null==e)return null;l=e.x,n=e.y,r=i}const o=s.resolution*this.size[0],a=s.resolution*this.size[1];return r||(r=new f.U(null,0,0,0,(0,y.vt)())),r.level=e,r.row=Math.floor((this.origin.y-n)/a+.001),r.col=Math.floor((l-this.origin.x)/o+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){let i=this.lodAt(e.level);if(!i&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(i=t)}if(!i)return;const r=e.level-i.level,s=i.resolution*this.size[0]/2**r,l=i.resolution*this.size[1]/2**r;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,y.vt)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*l,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+l}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const i=this.lodAt(t.level);if(null==i)return null;const{resolution:r}=i,s=r*this.size[0],l=r*this.size[1];return e[0]=this.origin.x+t.col*s,e[1]=this.origin.y-(t.row+1)*l,e[2]=e[0]+s,e[3]=e[1]+l,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const i=[],s=this.lods.length-t;for(let e=0;e<s;e++){const r=e+t,{scale:s,resolution:l}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};i.push(new v.A({level:e,scale:s,resolution:l}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:i})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let i=0;i<e.length;i++){const r=e[i];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"compressionQuality",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],M.prototype,"dpi",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{read:b.read,write:b.write,origins:{"web-scene":{read:!1,write:!1}}}})],M.prototype,"format",void 0),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"isWrappable",null),(0,s.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],M.prototype,"origin",void 0),(0,s.Cg)([(0,p.w)("origin")],M.prototype,"readOrigin",null),(0,s.Cg)([(0,a.MZ)({type:[v.A],value:null,json:{write:!0}})],M.prototype,"lods",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"scales",void 0),(0,s.Cg)([(0,a.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],M.prototype,"size",void 0),(0,s.Cg)([(0,p.w)("size",["rows","cols"])],M.prototype,"readSize",null),(0,s.Cg)([(0,d.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],M.prototype,"writeSize",null),(0,s.Cg)([(0,a.MZ)({type:h.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),M=r=(0,s.Cg)([(0,c.$)("esri.layers.support.TileInfo")],M)},91806:(e,t,i)=>{i.d(t,{A:()=>u});var r,s=i(31635),l=i(25482),n=i(10107),o=i(56507),a=(i(44208),i(87811),i(40608));let u=class extends l.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,s.Cg)([(0,n.MZ)({type:o.jz,json:{write:!0}})],u.prototype,"level",void 0),(0,s.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,s.Cg)([(0,n.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,s.Cg)([(0,a.$)("esri.layers.support.LOD")],u)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9924],{15142:(t,n,e)=>{e.d(n,{A:()=>u});var r=e(4576),a=e(21818);const i=(t,n,e,r)=>{let a=n,i=n;const s=e>>>1,o=t[a-1];for(;i<=s;){i=a<<1,i<e&&r(t[i-1],t[i])<0&&++i;const n=t[i-1];if(r(n,o)<=0)break;t[a-1]=n,a=i}t[a-1]=o},s=(t,n)=>t<n?-1:t>n?1:0;function o(t,n,e,r){void 0===n&&(n=0),void 0===e&&(e=t.length),void 0===r&&(r=s);for(let a=e>>>1;a>n;a--)i(t,a,e,r);const a=n+1;for(let s=e-1;s>n;s--){const e=t[n];t[n]=t[s],t[s]=e,i(t,a,s,r)}}function*h(t,n,e,r){void 0===n&&(n=0),void 0===e&&(e=t.length),void 0===r&&(r=s);for(let a=e>>>1;a>n;a--)i(t,a,e,r),yield;const a=n+1;for(let s=e-1;s>n;s--){const e=t[n];t[n]=t[s],t[s]=e,i(t,a,s,r),yield}}class u{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new r.vW,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const n=new Array;for(let e=0;e<this._length;e++){const r=this.data[e];t(r)&&n.push(r)}return n}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,n){const e=this.data.indexOf(t,n);return-1!==e&&e<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let n=t;n<this._length;++n)this.data[n]=this._deallocator(this.data[n]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,n=t.length){for(let e=0;e<n;e++)this.data[this._length++]=t[e]}fill(t,n){for(let e=0;e<n;e++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,c(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const n=(0,r.qh)(this.data,(0,a.zI)(t),this.length,this._hint);if(-1!==n)return this.data.splice(n,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex((0,r.qh)(this.data,(0,a.zI)(t),this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,n=t.length,e){this.length=(0,r.mW)(this.data,t,this.length,n,this._hint,e),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,n){if(t>=this.length||n>=this.length||t===n)return;const e=this.data[t];this.data[t]=this.data[n],this.data[n]=e}sort(t){o(this.data,0,this.length,t)}iterableSort(t){return h(this.data,0,this.length,t)}some(t,n){for(let e=0;e<this.length;++e)if(t.call(n,this.data[e],e,this.data))return!0;return!1}find(t,n){const{data:e,length:r}=this;for(let a=0;a<r;++a)if(t.call(n,e[a]))return e[a]}filterInPlace(t,n){let e=0;for(let r=0;r<this._length;++r){const a=this.data[r];t.call(n,a,r,this.data)&&(this.data[r]=this.data[e],this.data[e]=a,e++)}if(this._deallocator)for(let t=e;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=e,this._shrink(),this}forAll(t,n){const{data:e,length:r}=this;for(let a=0;a<r;++a)t.call(n,e[a],a,e)}forEach(t,n){this.data.slice(0,this.length).forEach(t,n)}map(t,n){const e=new Array(this.length);for(let r=0;r<this.length;++r)e[r]=t.call(n,this.data[r],r,this.data);return e}reduce(t,n){let e=n;for(let n=0;n<this.length;++n)e=t(e,this.data[n],n,this.data);return e}has(t){const n=this.length,e=this.data;for(let r=0;r<n;++r)if(e[r]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}function c(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},34304:(t,n,e)=>{e.d(n,{DF:()=>h,FD:()=>a,Ov:()=>i,ct:()=>u});let r=1e-6;function a(){return r}const i=Math.random,s=Math.PI/180,o=180/Math.PI;function h(t){return t*s}function u(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){r=t},toDegree:u,toRadian:h},Symbol.toStringTag,{value:"Module"}))},38954:(t,n,e)=>{e.d(n,{A:()=>M,B:()=>d,C:()=>c,D:()=>l,E:()=>U,F:()=>j,H:()=>V,a:()=>L,b:()=>_,c:()=>s,d:()=>u,e:()=>I,f:()=>h,g:()=>m,h:()=>w,i:()=>o,j:()=>b,k:()=>v,l:()=>i,m:()=>A,n:()=>q,o:()=>S,q:()=>E,r:()=>x,s:()=>p,t:()=>D,u:()=>y,v:()=>O,w:()=>f,x:()=>P,y:()=>C,z:()=>g});var r=e(51850),a=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 s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function h(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 l(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){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(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 g(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 m(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function _(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 b(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function p(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function v(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function y(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function x(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function q(t,n){const e=n[0],r=n[1],a=n[2];let i=e*e+r*r+a*a;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 I(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function w(t,n,e){const r=n[0],a=n[1],i=n[2],s=e[0],o=e[1],h=e[2];return t[0]=a*h-i*o,t[1]=i*s-r*h,t[2]=r*o-a*s,t}function A(t,n,e,r){const a=n[0],i=n[1],s=n[2];return t[0]=a+r*(e[0]-a),t[1]=i+r*(e[1]-i),t[2]=s+r*(e[2]-s),t}function D(t,n,e){const r=n[0],a=n[1],i=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*i+e[12],t[1]=e[1]*r+e[5]*a+e[9]*i+e[13],t[2]=e[2]*r+e[6]*a+e[10]*i+e[14],t}function S(t,n,e){const r=n[0],a=n[1],i=n[2];return t[0]=r*e[0]+a*e[3]+i*e[6],t[1]=r*e[1]+a*e[4]+i*e[7],t[2]=r*e[2]+a*e[5]+i*e[8],t}function O(t,n,e){const r=e[0],a=e[1],i=e[2],s=e[3],o=n[0],h=n[1],u=n[2],c=a*u-i*h,l=i*o-r*u,f=r*h-a*o,d=a*f-i*l,M=i*c-r*f,g=r*l-a*c,m=2*s;return t[0]=o+c*m+2*d,t[1]=h+l*m+2*M,t[2]=u+f*m+2*g,t}const k=(0,r.vt)(),z=(0,r.vt)();function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function U(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],i=e[2]-n[2];let s=r*r+a*a+i*i;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=a*s,t[2]=i*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=u,T=c,N=l,j=b,P=p,V=i,C=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,n){q(k,t),q(z,n);const e=I(k,z);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,i){const s=1-i,o=s*s,h=i*i,u=o*s,c=3*i*o,l=3*h*s,f=h*i;return t[0]=n[0]*u+e[0]*c+r[0]*l+a[0]*f,t[1]=n[1]*u+e[1]*c+r[1]*l+a[1]*f,t[2]=n[2]*u+e[2]*c+r[2]*l+a[2]*f,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:s,cross:w,crossAndNormalize:function(t,n,e){const r=n[0],a=n[1],i=n[2],s=e[0],o=e[1],h=e[2],u=a*h-i*o,c=i*s-r*h,l=r*o-a*s,f=Math.sqrt(u*u+c*c+l*l);return t[0]=u/f,t[1]=c/f,t[2]=l/f,t},direction:U,dist:j,distance:b,div:N,divide:l,dot:I,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],s=n[0],o=n[1],h=n[2],u=(0,a.FD)();return Math.abs(e-s)<=u*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-h)<=u*Math.max(1,Math.abs(i),Math.abs(h))},exactEquals:E,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,a,i){const s=i*i,o=s*(2*i-3)+1,h=s*(i-2)+i,u=s*(i-1),c=s*(3-2*i);return t[0]=n[0]*o+e[0]*h+r[0]*u+a[0]*c,t[1]=n[1]*o+e[1]*h+r[1]*u+a[1]*c,t[2]=n[2]*o+e[2]*h+r[2]*u+a[2]*c,t},inverse:x,len:V,length:i,lerp:A,max:g,min:M,mul:T,multiply:c,negate:y,normalize:q,random:function(t,n=1){const e=a.Ov,r=2*e()*Math.PI,i=2*e()-1,s=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=i*n,t},rotateX:function(t,n,e,r){const a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[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 a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[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 a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[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:m,scaleAndAdd:_,set:o,sign:d,sqrDist:P,sqrLen:C,squaredDistance:p,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:u,transformMat3:S,transformMat4:D,transformQuat:O},Symbol.toStringTag,{value:"Module"}))},48163:(t,n,e)=>{function r(){return[0,0]}function a(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function s(){return i(1,1)}function o(){return i(1,0)}function h(){return i(0,1)}e.d(n,{Un:()=>u,fA:()=>i,o8:()=>a,vt:()=>r});const u=s(),c=o(),l=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:l,ZEROS:[0,0],clone:a,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:s,unitX:o,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},71936:(t,n,e)=>{e.r(n),e.d(n,{default:()=>h});var r=e(1843);function a(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:new r.l5(t.layout)}}var i=e(3055),s=e(93406),o=e(431);class h{async extract(t){const n=u(t),e=(0,o.o6)(n),r=[n.data.buffer];return{result:c(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=u(t),e=(0,o.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,s.K)(e,f).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=u(t),e=(0,o.hx)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,s.K)(e,l).regular.instancesData,r),transferList:r}}}function u(t){return{data:i.I$.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function c(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const l=new class{allocate(t){return o.Jb.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},f=new class{allocate(t){return o.HY.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}}},87317:(t,n,e)=>{e.d(n,{a:()=>p,b:()=>M,c:()=>c,d:()=>a,e:()=>v,f:()=>f,g:()=>s,h:()=>m,i:()=>d,l:()=>_,n:()=>g,s:()=>i,t:()=>b});var r=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],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[3]=n[3]/e[3],t}function c(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+i*i)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+a*a+i*i}function d(t){const n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function M(t){const n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function g(t,n){const e=n[0],r=n[1],a=n[2],i=n[3];let s=e*e+r*r+a*a+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e*s,t[1]=r*s,t[2]=a*s,t[3]=i*s),t}function m(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function _(t,n,e,r){const a=n[0],i=n[1],s=n[2],o=n[3];return t[0]=a+r*(e[0]-a),t[1]=i+r*(e[1]-i),t[2]=s+r*(e[2]-s),t[3]=o+r*(e[3]-o),t}function b(t,n,e){const r=n[0],a=n[1],i=n[2],s=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*i+e[12]*s,t[1]=e[1]*r+e[5]*a+e[9]*i+e[13]*s,t[2]=e[2]*r+e[6]*a+e[10]*i+e[14]*s,t[3]=e[3]*r+e[7]*a+e[11]*i+e[15]*s,t}function p(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function v(t,n){const e=t[0],a=t[1],i=t[2],s=t[3],o=n[0],h=n[1],u=n[2],c=n[3],l=(0,r.FD)();return Math.abs(e-o)<=l*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(a-h)<=l*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=l*Math.max(1,Math.abs(s),Math.abs(c))}const y=o,x=h,q=u,I=l,w=f,A=d,D=M;Object.freeze(Object.defineProperty({__proto__:null,add:s,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:I,distance:l,div:q,divide:u,dot:m,equals:v,exactEquals:p,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:A,length:d,lerp:_,max:function(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[3]=Math.max(n[3],e[3]),t},min:function(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[3]=Math.min(n[3],e[3]),t},mul:x,multiply:h,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n=1){const e=r.Ov;let a,i,s,o,h,u;do{a=2*e()-1,i=2*e()-1,h=a*a+i*i}while(h>=1);do{s=2*e()-1,o=2*e()-1,u=s*s+o*o}while(u>=1);const c=Math.sqrt((1-h)/u);return t[0]=n*a,t[1]=n*i,t[2]=n*s*c,t[3]=n*o*c,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[3]=Math.round(n[3]),t},scale:c,scaleAndAdd:function(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[3]=n[3]+e[3]*r,t},set:i,sqrDist:w,sqrLen:D,squaredDistance:f,squaredLength:M,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:y,subtract:o,transformMat4:b,transformQuat:function(t,n,e){const r=n[0],a=n[1],i=n[2],s=e[0],o=e[1],h=e[2],u=e[3],c=u*r+o*i-h*a,l=u*a+h*r-s*i,f=u*i+s*a-o*r,d=-s*r-o*a-h*i;return t[0]=c*u+d*-s+l*-h-f*-o,t[1]=l*u+d*-o+f*-s-c*-h,t[2]=f*u+d*-h+c*-o-l*-s,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},91829:(t,n,e)=>{function r(){return[0,0,0,0]}function a(t){return[t[0],t[1],t[2],t[3]]}function i(t,n,e,r){return[t,n,e,r]}function s(t,n,e,r){return[t,n,e,r]}function o(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function h(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function c(){return i(0,1,0,0)}function l(){return i(0,0,1,0)}function f(){return i(0,0,0,1)}e.d(n,{CN:()=>s,Un:()=>M,ci:()=>o,fA:()=>i,o8:()=>a,uY:()=>d,vt:()=>r});const d=[0,0,0,0],M=h(),g=u(),m=c(),_=l(),b=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_W:b,UNIT_X:g,UNIT_Y:m,UNIT_Z:_,ZEROS:d,clone:a,create:r,freeze:s,fromArray:o,fromValues:i,ones:h,unitW:f,unitX:u,unitY:c,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4447,8256],{4146:(t,e,r)=>{r.d(e,{A:()=>b});var i=r(31635),s=r(78888),n=r(49186),o=r(65529),a=r(4902),l=r(92474),u=r(53966),p=r(74887),h=r(84952),d=r(10107),c=(r(44208),r(87811),r(40608)),g=r(5443),y=r(16930),f=r(92602),m=r(64272);let v=0,b=class extends((0,o.Zt)((0,a.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(e)}catch(t){const r=e?.portalItem,i=r?.id||"unset",s=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch(t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})})}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"groundLayers"in t&&t.groundLayers.includes(e)?t.groundLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,s.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,d.MZ)({type:y.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,d.MZ)({type:m.T})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,c.$)("esri.layers.Layer")],b)},4902:(t,e,r)=>{r.d(e,{PH:()=>a,sA:()=>o});var i=r(31635),s=r(40608);let n=0;const o=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-"+n++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable")],r),r},a=t=>{const e=t;let r=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return r=(0,i.Cg)([(0,s.$)("esri.core.Identifiable.NumericIdentifiable")],r),r};o(class{})},36475:(t,e,r)=>{r.r(e),r.d(e,{default:()=>p});var i=r(31635),s=r(92071),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),a=r(4146),l=r(16131);let u=class extends((0,l.q)((0,s.P)(a.A))){constructor(t){super(t),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat"}};(0,i.Cg)([(0,n.MZ)({json:{read:!1}})],u.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({type:["GaussianSplatLayer"],json:{read:!1}})],u.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,n.MZ)({json:{read:!1}})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,o.$)("esri.layers.GaussianSplatLayer")],u);const p=u},64272:(t,e,r)=>{r.d(e,{T:()=>d});var i,s=r(31635),n=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),h=r(98623);let d=class extends n.o{static{i=this}static get allTime(){return c}static get empty(){return g}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=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,t,e));let s=this.end;if(s){const r=(0,o.lL)(s,t,e);s=s.getTime()===r.getTime()?r:(0,o.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,n=t.end?.getTime()??1/0;let o,a;return s>=e&&s<=r?o=s:e>=s&&e<=n&&(o=e),r>=s&&r<=n?a=r:n>=e&&n<=r&&(a=n),null==o||null==a||isNaN(o)||isNaN(a)?i.empty:new i({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(t,e,r=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:n,end:a}=this;return null!=n&&(s.start=(0,o.S1)(n,t,e,r)),null!=a&&(s.end=(0,o.S1)(a,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,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s.Cg)([(0,l.w)("end")],d.prototype,"readEnd",null),(0,s.Cg)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s.Cg)([(0,l.w)("start")],d.prototype,"readStart",null),(0,s.Cg)([(0,p.K)("start")],d.prototype,"writeStart",null),d=i=(0,s.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const c=new d,g=new d({start:void 0,end:void 0})},78553:(t,e,r)=>{r.d(e,{D:()=>n,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 n(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},92071:(t,e,r)=>{r.d(e,{P:()=>v,L:()=>b});var i=r(31635),s=r(65008),n=r(76953),o=r(4718),a=r(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,r=this._originStores[0];r&&r.forEach((t,r)=>{e.set(r,(0,o.o8)(t),0)});for(let r=2;r<a.AU;r++){const i=this._originStores[r];i&&i.forEach((i,s)=>{t&&t.has(s)||e.set(s,(0,o.o8)(i),r)})}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=7){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=7){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r?.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=r(45917),p=r(88620),h=r(40608);const d=t=>{const e=t;let r=class extends e{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,i=new l;e.store=i,(0,n.k)(e,r,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=c(this),i=(0,a.aB)(e);if("string"==typeof t)return r.get(t,i);const s={};return t.forEach(t=>{s[t]=r.get(t,i)}),s}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return c(this).originOf(t)}revert(t,e){const r=c(this),i=(0,a.aB)(e),s=(0,p.oY)(this);let n;n="string"==typeof t?"*"===t?r.keys(i):[t]:t,n.forEach(t=>{s.invalidate(t),r.revert(t,i),s.commit(t)})}};return r=(0,i.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],r),r};function c(t){return(0,p.oY)(t).store}d(s.A);var g=r(16649),y=r(49422);const f=t=>{const e=t;let r=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,p.oY)(this).clearOrigin(t,(0,a.aB)(e))}write(t,e){return(0,y.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,a.aB)(r))}removeOrigin(t){const e=m(this),r=(0,a.aB)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),7)}updateOrigin(t,e){const r=m(this),i=(0,a.aB)(e),s=(0,g.Jt)(this,t);for(let e=i+1;e<a.AU;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return r=(0,i.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function m(t){return(0,p.oY)(t).store}const v=t=>{const e=f(d(t));let r=class extends e{constructor(...t){super(...t)}};return r=(0,i.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],r),r},b=v(s.A)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4990],{18768:(e,t,i)=>{i.d(t,{b:()=>l});var r=i(31635),s=i(53966),n=i(10107),o=(i(44208),i(87811),i(40608)),a=i(60694);const l=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,a.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,a.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],i),i}},24212:(e,t,i)=>{function r(e,t){return function(e,t){return t?.mode?t.mode:function(e){return e?l:u}(e).mode}(null==e||(e.hasZ??!1),t)}function s(e,t,i){return i&&i.mode!==t?`${e} only support ${t} elevation mode`:null}function n(e,t,i){return i?.mode===t?`${e} do not support ${t} elevation mode`:null}function o(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function a(e,t){t&&e.warn(".elevationInfo=",t)}i.d(t,{$7:()=>n,B:()=>s,XF:()=>a,tW:()=>o,w7:()=>r}),i(83047),i(16271);const l={mode:"absolute-height",offset:0},u={mode:"on-the-ground",offset:null}},27647:(e,t,i)=>{function r(e,t){return e?t?4:3:t?3:2}function s(e,t,i,s){if(!t?.lengths.length)return null;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const a=e.coords,l=[],u=i?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:p,coords:c}=t,m=r(i,s);let d=0;for(const e of p){const t=n(u,c,d,e,i,s);t&&l.push(t),d+=e*m}if(l.sort((e,t)=>{let r=e[2]-t[2];return 0===r&&i&&(r=e[4]-t[4]),r}),l.length){let e=6*l[0][2];a[0]=l[0][0]/e,a[1]=l[0][1]/e,i&&(e=6*l[0][4],a[2]=0!==e?l[0][3]/e:0),(a[0]<u[0]||a[0]>u[1]||a[1]<u[2]||a[1]>u[3]||i&&(a[2]<u[4]||a[2]>u[5]))&&(a.length=0)}if(!a.length){const e=t.lengths[0]?o(c,0,p[0],i,s):null;if(!e)return null;a[0]=e[0],a[1]=e[1],i&&e.length>2&&(a[2]=e[2])}return e}function n(e,t,i,s,n,o){const a=r(n,o);let l=i,u=i+a,p=0,c=0,m=0,d=0,h=0;for(let i=0,r=s-1;i<r;i++,l+=a,u+=a){const i=t[l],r=t[l+1],s=t[l+2],o=t[u],a=t[u+1],y=t[u+2];let g=i*a-o*r;d+=g,p+=(i+o)*g,c+=(r+a)*g,n&&(g=i*y-o*s,m+=(s+y)*g,h+=g),i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i),r<e[2]&&(e[2]=r),r>e[3]&&(e[3]=r),n&&(s<e[4]&&(e[4]=s),s>e[5]&&(e[5]=s))}if(d>0&&(d*=-1),h>0&&(h*=-1),!d)return null;const y=[p,c,.5*d];return n&&(y[3]=m,y[4]=.5*h),y}function o(e,t,i,s,n){const o=r(s,n);let c=t,m=t+o,d=0,h=0,y=0,g=0;for(let t=0,r=i-1;t<r;t++,c+=o,m+=o){const t=e[c],i=e[c+1],r=e[c+2],n=e[m],o=e[m+1],f=e[m+2],w=s?l(t,i,r,n,o,f):a(t,i,n,o);if(w)if(d+=w,s){const e=p(t,i,r,n,o,f);h+=w*e[0],y+=w*e[1],g+=w*e[2]}else{const e=u(t,i,n,o);h+=w*e[0],y+=w*e[1]}}return d>0?s?[h/d,y/d,g/d]:[h/d,y/d]:i>0?s?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function a(e,t,i,r){const s=i-e,n=r-t;return Math.sqrt(s*s+n*n)}function l(e,t,i,r,s,n){const o=r-e,a=s-t,l=n-i;return Math.sqrt(o*o+a*a+l*l)}function u(e,t,i,r){return[e+.5*(i-e),t+.5*(r-t)]}function p(e,t,i,r,s,n){return[e+.5*(r-e),t+.5*(s-t),i+.5*(n-i)]}i.d(t,{Q:()=>s})},33446:(e,t,i)=>{i.d(t,{C:()=>o,m:()=>n});var r=i(49186),s=i(74887);async function n(e,t,i){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(i),n}async function o(e,t,i,n,o){let a;try{a=await createImageBitmap(e)}catch(e){throw new r.A("request:server",`Unable to load tile ${t}/${i}/${n}`,{error:e,level:t,row:i,col:n})}return(0,s.Te)(o),a}},43334:(e,t,i)=>{i.d(t,{N3:()=>a,Om:()=>o});var r=i(69397),s=i(27647),n=i(92722);class o{constructor(e=null,t={},i,r,s=0){this.geometry=e,this.attributes=t,this.centroid=i,this.objectId=r,this.displayId=s}static fromJSON(e){const t=e.geometry?n.A.fromJSON(e.geometry):null,i=e.centroid?n.A.fromJSON(e.centroid):null,r=e.objectId;return new o(t,e.attributes,i,r)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,s.Q)(new n.A,this.geometry,e.hasZ,e.hasM),this.centroid}get usedMemory(){return 128+(0,r.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},56551:(e,t,i)=>{i.d(t,{H:()=>m});var r=i(31635),s=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(69540),a=i(25482),l=i(56507),u=i(93223),p=i(94359);let c=class extends((0,o.O)(a.o)){constructor(e){super(e),this.name=void 0,this.method="none",this.value=void 0,this.bandIds=void 0,this.renderer=void 0}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["raster-function-template","variable","none"],json:{write:{isRequired:!0}}}),(0,u.e)({rasterFunctionTemplate:"raster-function-template",variable:"variable",none:"none"})],c.prototype,"method",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"value",void 0),(0,r.Cg)([(0,s.MZ)({type:[l.jz],json:{write:{isRequired:!0}}})],c.prototype,"bandIds",void 0),(0,r.Cg)([(0,s.MZ)({types:p.uy,json:{write:!0,origins:{"web-scene":{types:p.Gj,write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],c.prototype,"renderer",void 0),c=(0,r.Cg)([(0,n.$)("esri.renderers.support.RasterPresetRenderer")],c);const m=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.activePresetRendererName=null,this.presetRenderers=null}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"layerDefinition.activePresetRendererName",write:{allowNull:!0}}})],i.prototype,"activePresetRendererName",void 0),(0,r.Cg)([(0,s.MZ)({type:[c],json:{name:"layerDefinition.presetRenderers",write:!0}})],i.prototype,"presetRenderers",void 0),i=(0,r.Cg)([(0,n.$)("esri.layers.mixins.RasterPresetRendererMixin")],i),i}},58434:(e,t,i)=>{i.r(t),i.d(t,{default:()=>si});var r=i(31635),s=i(13874),n=i(69540),o=i(49186),a=i(53966),l=i(92071),u=i(74887),p=i(10107),c=(i(44208),i(87811),i(40608)),m=i(43937),d=i(4146),h=i(52106),y=i(78888),g=i(51447),f=i(4718),w=i(36708),v=i(84952),R=i(56507),C=i(36005),b=i(5443),S=i(39829),I=i(16930),F=i(21325),M=i(10873),x=i(45617),A=i(25482),D=i(22796),T=i(16019);const N={StretchFunction:{arguments:{ComputeGamma:{isDataset:!1,isPublic:!1,name:"ComputeGamma",type:"RasterFunctionVariable",value:!1},DRA:{isDataset:!1,isPublic:!1,name:"DRA",type:"RasterFunctionVariable",value:!1},EstimateStatsHistogram:{isDataset:!1,isPublic:!1,name:"EstimateStatsHistogram",type:"RasterFunctionVariable",value:!1},Gamma:{displayName:"Gamma",isDataset:!1,isPublic:!1,name:"Gamma",type:"RasterFunctionVariable"},Histograms:{isDataset:!1,isPublic:!1,name:"Histograms",type:"RasterFunctionVariable"},Max:{isDataset:!1,isPublic:!1,name:"Max",type:"RasterFunctionVariable",value:255},MaxPercent:{isDataset:!1,isPublic:!1,name:"MaxPercent",type:"RasterFunctionVariable",value:.5},Min:{isDataset:!1,isPublic:!1,name:"Min",type:"RasterFunctionVariable",value:0},MinPercent:{isDataset:!1,isPublic:!1,name:"MinPercent",type:"RasterFunctionVariable",value:.25},NumberOfStandardDeviations:{isDataset:!1,isPublic:!1,name:"NumberOfStandardDeviation",type:"RasterFunctionVariable",value:2},Raster:{isDataset:!0,isPublic:!1,name:"Raster",type:"RasterFunctionVariable"},SigmoidStrengthLevel:{isDataset:!1,isPublic:!1,name:"SigmoidStrengthLevel",type:"RasterFunctionVariable",value:2},Statistics:{isDataset:!1,isPublic:!1,name:"Statistics",type:"RasterFunctionVariable"},StretchType:{isDataset:!1,isPublic:!1,name:"StretchType",type:"RasterFunctionVariable",value:0},type:"StretchFunctionArguments",UseGamma:{isDataset:!1,isPublic:!1,name:"UseGamma",type:"RasterFunctionVariable",value:!1}},description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",function:{description:"Enhances an image by adjusting the range of values displayed. This does not alter the underlying pixel values. If a pixel has a value outside of the specified range, it will appear as either the minimum or maximum value.",name:"Stretch",pixelType:"UNKNOWN",type:"StretchFunction"},functionType:0,name:"Stretch",thumbnail:""},RemapFunction:{name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table.",function:{type:"RemapFunction",pixelType:"UNKNOWN",name:"Remap",description:"Changes pixel values by assigning new values to ranges of pixel values or using an external table."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},UseTable:{name:"UseTable",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},InputRanges:{name:"InputRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Input Ranges"},OutputValues:{name:"OutputValues",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"Output Values"},NoDataRanges:{name:"NoDataRanges",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable",displayName:"NoData Ranges"},Table:{name:"Table",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputField:{name:"InputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},OutputField:{name:"OutputField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},InputMaxField:{name:"InputMaxField",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},RemapTableType:{name:"RemapTableType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},AllowUnmatched:{name:"AllowUnmatched",isPublic:!1,isDataset:!1,value:!0,type:"RasterFunctionVariable"},type:"RemapFunctionArguments"},functionType:0,thumbnail:""},ColormapFunction:{name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp.",function:{type:"ColormapFunction",pixelType:"UNKNOWN",name:"Colormap",description:"Changes pixel values to display the raster data as either a grayscale or a red, green, blue (RGB) image, based on a colormap or a color ramp."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},ColormapName:{name:"ColormapName",isPublic:!1,isDataset:!1,value:"Gray",type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},type:"ColormapFunctionArguments"},functionType:0,thumbnail:""},ShadedReliefFunction:{name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image.",function:{type:"ShadedReliefFunction",pixelType:"UNKNOWN",name:"Shaded Relief",description:"Creates a multiband, color coded, 3D representation of the surface, with the sun's relative position taken into account for shading the image."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ColorSchemeType:{name:"ColorSchemeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ColorRamp:{name:"ColorRamp",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Colormap:{name:"Colormap",isPublic:!1,isDataset:!1,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"ShadedReliefFunctionArguments"},functionType:0,thumbnail:""},HillshadeFunction:{name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image",function:{type:"HillshadeFunction",pixelType:"UNKNOWN",name:"Hillshade",description:"Creates a 3D representation of the surface, with the sun's relative position taken into account for shading the image"},arguments:{DEM:{name:"DEM",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},HillshadeType:{name:"HillshadeType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},Azimuth:{name:"Azimuth",isPublic:!1,isDataset:!1,value:315,type:"RasterFunctionVariable"},Altitude:{name:"Altitude",isPublic:!1,isDataset:!1,value:45,type:"RasterFunctionVariable"},SlopeType:{name:"SlopeType",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},ZFactor:{name:"ZFactor",isPublic:!1,isDataset:!1,value:1,type:"RasterFunctionVariable"},PSPower:{name:"PSPower",isPublic:!1,isDataset:!1,value:.664,type:"RasterFunctionVariable"},PSZFactor:{name:"PSZFactor",isPublic:!1,isDataset:!1,value:.024,type:"RasterFunctionVariable"},RemoveEdgeEffect:{name:"RemoveEdgeEffect",isPublic:!1,isDataset:!1,value:!1,type:"RasterFunctionVariable"},type:"HillshadeFunctionArguments"},functionType:0,thumbnail:""},ResampleFunction:{name:"Resample",description:"Changes the cell size of a raster.",function:{type:"ResampleFunction",pixelType:"UNKNOWN",name:"Resample",description:"Changes the cell size of a raster."},arguments:{Raster:{name:"Raster",isPublic:!1,isDataset:!0,type:"RasterFunctionVariable"},ResamplingType:{name:"ResamplingType",isPublic:!1,isDataset:!1,value:0,type:"RasterFunctionVariable"},InputCellSize:{name:"InputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},OutputCellSize:{name:"OutputCellsize",isPublic:!1,isDataset:!1,value:{x:0,y:0},type:"RasterFunctionVariable"},type:"ResampleFunctionArguments"},functionType:0,thumbnail:""}};var P=i(67369),Z=i(70274),j=i(48940);const O=new Set(["u1","u2","u4","u8","s8","u16","s16"]),_={simple_scalar:"Simple Scalar",wind_barb:"Wind Barb",single_arrow:"Single Arrow",beaufort_kn:"Beaufort Wind (Knots)",beaufort_m:"Beaufort Wind (MetersPerSecond)",ocean_current_m:"Ocean Current (MetersPerSecond)",ocean_current_kn:"Ocean Current (Knots)"},V=new Set(["raster-stretch","unique-value","class-breaks","raster-shaded-relief","vector-field","raster-colormap"]);function q(e){return V.has(e.type)}function E(e,t){if(!e||!t)return(0,f.o8)(e||t);const i=(0,f.o8)(e);if(i.functionDefinition&&t.rasterFunctionDefinition){const e=t.rasterFunctionDefinition;(e.thumbnail||e.thumbnailEx)&&(e.thumbnail=e.thumbnailEx=void 0),J(i.functionDefinition.arguments,t),i.rasterFunctionDefinition=i.functionDefinition.toJSON()}else"none"!==t.functionName?.toLowerCase()&&(L(i.functionArguments).Raster=t);return i}function J(e,t){for(const i in e)"raster"===i.toLowerCase()&&("RasterFunctionVariable"===e[i].type?(e[i]=t.rasterFunctionDefinition,e[i].type="RasterFunctionTemplate"):"RasterFunctionTemplate"===e[i].type&&J(e[i].arguments,t))}function G(e){const t=(0,f.o8)(N[e.functionName+"Function"]),i=e.functionArguments;for(const e in i)"raster"===e.toLowerCase()?(t.arguments[e]=G(i[e]),t.arguments[e].type="RasterFunctionTemplate"):"colormap"===e.toLowerCase()?(t.arguments[e].value=Q(i[e]),t.arguments.ColorSchemeType.value=0):t.arguments[e].value=i[e];return t}function L(e){const t=e?.Raster??e?.raster;return t&&"esri.layers.support.RasterFunction"===t.declaredClass?L(t.functionArguments):e}const $={none:0,standardDeviation:3,histogramEqualization:4,minMax:5,percentClip:6,sigmoid:9};function z(e,t){const i=O.has(t)?(0,T.hP)(t):null;return i&&e.push([Math.floor(i[0]-1),0,0,0],[Math.ceil(i[1]+1),0,0,0]),e}function B(e){if(null==e)return;const{fields:t}=e,i=t?.find(e=>e?.name&&"value"===e.name.toLowerCase());return i?.name}function U(e){return"polygon-3d"===e.symbol?.type?e.symbol.symbolLayers?.find(e=>"fill"===e.type)?.material?.color:e.symbol?.color}function Q(e){const t=[],i=[];return e.forEach(e=>{t.push(e[0]),i.push((0,P.vL)([...e.slice(1),255]))}),{type:"RasterColormap",values:t,colors:i}}var k=i(85675),H=i(13868);let K=class extends A.o{constructor(){super(...arguments),this.layer=null,this.requestRawData=!1,this.compression=void 0,this.lercVersion=2}get adjustAspectRatio(){return this.layer.adjustAspectRatio}writeAdjustAspectRatio(e,t,i){this.layer.version<10.3||(t[i]=e)}get bandIds(){return this.layer.bandIds}get compressionQuality(){return this.layer.compressionQuality}writeCompressionQuality(e,t,i){this.format&&this.format.toLowerCase().includes("jpg")&&null!=e&&(t[i]=e)}get compressionTolerance(){return this.layer.compressionTolerance}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}get format(){return this.requestRawData||"vector-field"===this.layer.renderer?.type?"lerc":this.layer.format}get interpolation(){return this.layer.interpolation}get noData(){return this.layer.noData}get noDataInterpretation(){return this.layer.noDataInterpretation}get pixelType(){const{layer:e}=this;return e.pixelType!==e.serviceRasterInfo.pixelType?e.pixelType:void 0}writeLercVersion(e,t,i){"lerc"===this.format&&this.layer.version>=10.5&&(t[i]=e)}get version(){const e=this.layer;return e.commitProperty("bandIds"),e.commitProperty("format"),e.commitProperty("compressionQuality"),e.commitProperty("compressionTolerance"),e.commitProperty("interpolation"),e.commitProperty("noData"),e.commitProperty("noDataInterpretation"),e.commitProperty("mosaicRule"),e.commitProperty("rasterFunction"),e.commitProperty("adjustAspectRatio"),e.commitProperty("pixelFilter"),e.commitProperty("pixelType"),e.commitProperty("definitionExpression"),e.commitProperty("multidimensionalSubset"),(this._get("version")||0)+1}set version(e){this._set("version",e)}get mosaicRule(){const e=this.layer;let t=e.mosaicRule;const i=e.definitionExpression;return t?i&&i!==t.where&&(t=t.clone(),t.where=i):i&&(t=new k.A({where:i})),t}get rasterFunction(){const e=this.layer;let{rasterFunction:t}=e;const i=e.pixelFilter,r=!e.format||e.format.includes("jpg")||e.format.includes("png");this.requestRawData||(t=this._addResampleRasterFunction(t));const s=e.multidimensionalSubset?.areaOfInterest;return s&&(t=function(e,t){return E(new D.A({functionName:"Clip",functionArguments:{ClippingGeometry:t.toJSON(),ClippingType:1}}),e)}(t,s)),this.requestRawData||!r||i||"vector-field"===e.renderer?.type||(t=this.combineRendererWithRenderingRule(t)),t}combineRendererWithRenderingRule(e){const t=this.layer,{rasterInfo:i,renderer:r}=t;return e=e||t.rasterFunction,r&&q(r)?E(function(e,t){switch(t=t||{},e.type){case"raster-stretch":return function(e,t){const i=t.convertToRFT,r=new D.A;r.functionName="Stretch";const s=$[Z.u.toJSON(e.stretchType)],n="u8",o=e.customStatistics?.map(e=>[e.min,e.max,e.avg??0,e.stddev??1]),a={StretchType:s,Statistics:o,DRA:e.dynamicRangeAdjustment,UseGamma:e.useGamma,Gamma:e.gamma,ComputeGamma:e.computeGamma};if(null!=e.outputMin&&(a.Min=e.outputMin),null!=e.outputMax&&(a.Max=e.outputMax),s===$.standardDeviation?(a.NumberOfStandardDeviations=e.numberOfStandardDeviations,r.outputPixelType=n):s===$.percentClip?(a.MinPercent=e.minPercent,a.MaxPercent=e.maxPercent,r.outputPixelType=n):s===$.minMax?r.outputPixelType=n:s===$.sigmoid&&(a.SigmoidStrengthLevel=e.sigmoidStrengthLevel),r.functionArguments=a,r.variableName="Raster",e.colorRamp){const s=e.colorRamp,n=new D.A;if(i)n.functionArguments={ColorRamp:(0,P.hf)(s)};else{const i=(0,P.hs)(s,!0);if(i)n.functionArguments={colorRampName:i};else if(!t.convertColorRampToColormap||"algorithmic"!==s.type&&"multipart"!==s.type){const t=e.colorRamp.toJSON();"algorithmic"===t.type?t.algorithm=t.algorithm||"esriCIELabAlgorithm":"multipart"===t.type&&t.colorRamps?.length&&t.colorRamps.forEach(e=>e.algorithm=e.algorithm||"esriCIELabAlgorithm"),n.functionArguments={colorRamp:t}}else n.functionArguments={Colormap:(0,P.R8)(s)}}return n.variableName="Raster",n.functionName="Colormap",n.functionArguments.Raster=r,i?new D.A({rasterFunctionDefinition:G(n)}):n}return i?new D.A({rasterFunctionDefinition:G(r)}):r}(e,t);case"class-breaks":return function(e,t){const i=[],r=[],s=[],n=[],o=1e-4,{pixelType:a,rasterAttributeTable:l}=t,u=null==l?null:l.features,p=B(l);if(p&&u&&Array.isArray(u)&&e.classBreakInfos){e.classBreakInfos.forEach((t,i)=>{const r=t.symbol?.color;let s;r?.a&&null!=t.minValue&&null!=t.maxValue&&u.forEach(o=>{null!=t.minValue&&null!=t.maxValue&&(s=o.attributes[e.field],(s>=t.minValue&&s<t.maxValue||i===e.classBreakInfos.length-1&&s>=t.minValue)&&n.push([o.attributes[p],r.r,r.g,r.b]))})});const i=a?z(n,a):n,r=new D.A;return r.functionName="Colormap",r.functionArguments={},r.functionArguments.Colormap=i,r.variableName="Raster",t.convertToRFT?new D.A({rasterFunctionDefinition:G(r)}):r}e.classBreakInfos.forEach((e,t)=>{if(null==e.minValue||null==e.maxValue)return;const a=e.symbol&&e.symbol.color;a?.a?(0===t?i.push(e.minValue,e.maxValue+o):i.push(e.minValue+o,e.maxValue+o),r.push(t),n.push([t,a.r,a.g,a.b])):s.push(e.minValue,e.maxValue)});const c=a?z(n,a):n,m=new D.A;m.functionName="Remap",m.functionArguments={InputRanges:i,OutputValues:r,NoDataRanges:s},m.variableName="Raster";const d=new D.A;return d.functionName="Colormap",d.functionArguments={Colormap:c,Raster:m},t.convertToRFT?new D.A({rasterFunctionDefinition:G(d)}):d}(e,t);case"unique-value":return function(e,t){const i=[],{pixelType:r,rasterAttributeTable:s}=t,n=null==s?null:s.features,o=B(s),a=e.defaultSymbol?.color?.toRgb(),l=e.uniqueValueInfos;if(l)if(n){if(o){const t=new Map;l.forEach(e=>{const i=e.value,r=U(e);null!=i&&r?.a&&t.set(String(i),r.toRgb())});const r=e.field;r&&n.forEach(({attributes:e})=>{const s=String(e[r]),n=e[o],l=t.get(s);l?i.push([n,...l]):a&&i.push([n,...a])})}}else for(let e=0;e<l.length;e++){const t=l[e],r=U(t),s=+t.value;if(r?.a){if(isNaN(s))return null;i.push([s,r.r,r.g,r.b])}}const u=r?z(i,r):i,p=new D.A;return p.functionName="Colormap",p.functionArguments={},p.functionArguments.Colormap=u,p.variableName="Raster",t.convertToRFT?new D.A({rasterFunctionDefinition:G(p)}):p}(e,t);case"raster-colormap":return function(e,t){const i=e.extractColormap();if(!i||0===i.length)return null;const{pixelType:r}=t,s=r?z(i,r):i,n=new D.A;return n.functionName="Colormap",n.functionArguments={},n.functionArguments.Colormap=s,t.convertToRFT?new D.A({rasterFunctionDefinition:G(n)}):n}(e,t);case"vector-field":return function(e,t){const i=new D.A;i.functionName="VectorFieldRenderer";const{dataType:r,bandNames:s}=t,n="vector-uv"===r;let o,a;if(s&&2===s.length){const e=s.map(e=>e.toLowerCase());o=e.indexOf("magnitude"),a=e.indexOf("direction")}-1!==o&&null!==o||(o=0,a=1);const l="arithmetic"===e.rotationType?1:2,u="flow-from"===e.flowRepresentation?0:1,p=e.visualVariables?e.visualVariables.find(e=>"Magnitude"===e.field):new j.A,c={magnitudeBandID:o,directionBandID:a,isUVComponents:n,referenceSystem:l,massFlowAngleRepresentation:u,symbolTileSize:50,symbolTileSizeUnits:100,calculationMethod:"Vector Average",symbologyName:_[e.style.toLowerCase().replace("-","_")],minimumMagnitude:p.minDataValue,maximumMagnitude:p.maxDataValue,minimumSymbolSize:p.minSize,maximumSymbolSize:p.maxSize};i.functionArguments=c;const m=G(i);return t.convertToRFT?D.A.fromJSON({rasterFunctionDefinition:m}):i}(e,t);case"raster-shaded-relief":return function(e,t){const i=t.convertToRFT;if("elevation"!==t.dataType&&("generic"!==t.dataType||1!==t.bandCount||"s16"!==t.pixelType&&"s32"!==t.pixelType&&"f32"!==t.pixelType&&"f64"!==t.pixelType))return new D.A;const r=new D.A;r.functionName="Hillshade";const s="traditional"===e.hillshadeType?0:1,n="none"===e.scalingType?1:3,o={HillshadeType:s,SlopeType:n,ZFactor:e.zFactor};return 0===s&&(o.Azimuth=e.azimuth,o.Altitude=e.altitude),3===n&&(o.PSPower=e.pixelSizePower,o.PSZFactor=e.pixelSizeFactor),r.functionArguments=o,r.variableName="Raster",e.colorRamp&&(r.functionName="ShadedRelief",i?o.ColorRamp=(0,P.hf)(e.colorRamp):o.Colormap=(0,P.R8)(e.colorRamp)),i?new D.A({rasterFunctionDefinition:G(r)}):r}(e,t);case"flow":throw new Error("Unsupported rendering rule.")}}(r,{rasterAttributeTable:i.attributeTable,pixelType:i.pixelType,dataType:i.dataType,bandNames:i.bandInfos.map(({name:e})=>e),convertColorRampToColormap:t.version<10.6,convertToRFT:!!e?.rasterFunctionDefinition,bandCount:i.bandCount}),e):e}_addResampleRasterFunction(e){if("vector-field"!==this.layer.renderer?.type||"Resample"===e?.functionName)return e;const t="esriImageServiceDataTypeVector-UV"===this.layer.serviceDataType?7:10,i=this.layer.serviceRasterInfo.pixelSize;let r=new D.A({functionName:"Resample",functionArguments:{ResamplingType:t,InputCellSize:i}});return r=e?.rasterFunctionDefinition?new D.A({rasterFunctionDefinition:G(r)}):r,E(r,e)}};(0,r.Cg)([(0,p.MZ)()],K.prototype,"layer",void 0),(0,r.Cg)([(0,p.MZ)()],K.prototype,"requestRawData",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"adjustAspectRatio",null),(0,r.Cg)([(0,m.K)("adjustAspectRatio")],K.prototype,"writeAdjustAspectRatio",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"bandIds",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"compression",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"compressionQuality",null),(0,r.Cg)([(0,m.K)("compressionQuality")],K.prototype,"writeCompressionQuality",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"compressionTolerance",null),(0,r.Cg)([(0,m.K)("compressionTolerance")],K.prototype,"writeCompressionTolerance",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"format",null),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:{reader:H.SZ.read},write:{writer:H.SZ.write}}})],K.prototype,"interpolation",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"noData",null),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:{reader:H.hm.read},write:{writer:H.hm.write}}})],K.prototype,"noDataInterpretation",null),(0,r.Cg)([(0,p.MZ)({type:H.e8.apiValues,json:{read:H.e8.read,write:H.e8.write}})],K.prototype,"pixelType",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"lercVersion",void 0),(0,r.Cg)([(0,m.K)("lercVersion")],K.prototype,"writeLercVersion",null),(0,r.Cg)([(0,p.MZ)({type:Number})],K.prototype,"version",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],K.prototype,"mosaicRule",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0,name:"renderingRule"}})],K.prototype,"rasterFunction",null),K=(0,r.Cg)([(0,c.$)("esri.layers.support.ExportImageServiceParameters")],K);var W=i(20437),X=i(95466),Y=i(33446),ee=i(43577),te=i(14140),ie=i(74797),re=i(87186),se=i(77301),ne=i(51244),oe=i(28435),ae=i(14636),le=i(12711),ue=i(85676),pe=i(94359),ce=i(65864),me=i(17136),de=i(2272),he=i(86738);let ye=class extends((0,n.O)(A.o)){constructor(e){super(e),this.fromGeometry=null,this.toGeometry=null,this.objectIds=null,this.where=null,this.maxCount=null}};(0,r.Cg)([(0,p.MZ)({type:he.A,json:{read:!0}})],ye.prototype,"fromGeometry",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],ye.prototype,"toGeometry",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],ye.prototype,"objectIds",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ye.prototype,"where",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],ye.prototype,"maxCount",void 0),ye=(0,r.Cg)([(0,c.$)("esri.rest.support.FindImagesParameters")],ye);const ge=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.make=null,this.model=null,this.focalLength=null,this.pixelSize=null,this.rows=null,this.cols=null}};return(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"make",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"model",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"focalLength",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"pixelSize",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"rows",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],i.prototype,"cols",void 0),i=(0,r.Cg)([(0,c.$)("esri.rest.support.CameraInfoMixin")],i),i};let fe=class extends(ge(A.o)){constructor(){super(...arguments),this.id=null,this.referenceUri=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.perspectiveCenter=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],fe.prototype,"id",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"uri",write:!0}})],fe.prototype,"referenceUri",void 0),(0,r.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],fe.prototype,"acquisitionDate",void 0),(0,r.Cg)([(0,m.K)("acquisitionDate")],fe.prototype,"writeAcquisitionDate",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],fe.prototype,"cameraID",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],fe.prototype,"center",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],fe.prototype,"perspectiveCenter",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],fe.prototype,"orientation",void 0),fe=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageInspectionInfo")],fe);const we=fe;let ve=class extends A.o{constructor(){super(...arguments),this.images=null}};var Re;(0,r.Cg)([(0,p.MZ)({type:[we],json:{write:!0}})],ve.prototype,"images",void 0),ve=(0,r.Cg)([(0,c.$)("esri.rest.support.FindImagesResult")],ve);let Ce=Re=class extends A.o{constructor(e){super(e),this.angleNames=null,this.point=null,this.spatialReference=null,this.rasterId=null}clone(){return new Re((0,f.o8)({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};(0,r.Cg)([(0,p.MZ)({type:[String],json:{name:"angleName",write:!0}})],Ce.prototype,"angleNames",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],Ce.prototype,"point",void 0),(0,r.Cg)([(0,p.MZ)({type:I.A,json:{write:!0}})],Ce.prototype,"spatialReference",void 0),(0,r.Cg)([(0,p.MZ)({type:R.jz,json:{write:!0}})],Ce.prototype,"rasterId",void 0),Ce=Re=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageAngleParameters")],Ce);let be=class extends A.o{constructor(e){super(e),this.north=null,this.up=null,this.spatialReference=null}};(0,r.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],be.prototype,"north",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],be.prototype,"up",void 0),(0,r.Cg)([(0,p.MZ)({type:I.A,json:{write:!0}})],be.prototype,"spatialReference",void 0),be=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageAngleResult")],be);var Se=i(83047),Ie=i(50498),Fe=i(66552);const Me=new Fe.J({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D",esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});let xe=class extends A.o{constructor(){super(...arguments),this.value=null,this.displayValue=null,this.uncertainty=null}};(0,r.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],xe.prototype,"value",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],xe.prototype,"displayValue",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0}})],xe.prototype,"uncertainty",void 0),xe=(0,r.Cg)([(0,c.$)("esri.rest.support.imageMeasureUtils.BaseImageMeasureResultValue")],xe);let Ae=class extends xe{constructor(){super(...arguments),this.unit=null}};(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.Sk.read,write:Se.Sk.write}})],Ae.prototype,"unit",void 0),Ae=(0,r.Cg)([(0,c.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultLengthValue")],Ae);let De=class extends xe{constructor(){super(...arguments),this.unit=null}};(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.dk.read,write:Se.dk.write}})],De.prototype,"unit",void 0),De=(0,r.Cg)([(0,c.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultAreaValue")],De);let Te=class extends xe{constructor(){super(...arguments),this.unit=null}};(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.b$.read,write:Se.b$.write}})],Te.prototype,"unit",void 0),Te=(0,r.Cg)([(0,c.$)("esri.rest.support.imageMeasureUtils.ImageMeasureResultAngleValue")],Te);let Ne=class extends A.o{constructor(e){super(e),this.type=null,this.measureOperation=null,this.mosaicRule=null,this.pixelSize=null,this.raster=void 0}};var Pe;(0,r.Cg)([(0,p.MZ)()],Ne.prototype,"type",void 0),(0,r.Cg)([(0,p.MZ)({type:Me.apiValues,json:{read:Me.read,write:Me.write}})],Ne.prototype,"measureOperation",void 0),(0,r.Cg)([(0,p.MZ)({type:k.A,json:{write:!0}})],Ne.prototype,"mosaicRule",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],Ne.prototype,"pixelSize",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Ne.prototype,"raster",void 0),Ne=(0,r.Cg)([(0,c.$)("esri.rest.support.BaseImageMeasureParameters")],Ne);let Ze=Pe=class extends Ne{constructor(e){super(e),this.type="area-perimeter",this.geometry=null,this.is3D=!1,this.linearUnit="meters",this.areaUnit="square-meters"}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new Pe((0,f.o8)({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{name:"fromGeometry",read:!0,write:!0}})],Ze.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],Ze.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({type:Me.apiValues,json:{write:Me.write}})],Ze.prototype,"measureOperation",null),(0,r.Cg)([(0,p.MZ)({json:{read:!0}})],Ze.prototype,"is3D",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.Sk.read,write:Se.Sk.write}})],Ze.prototype,"linearUnit",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.dk.read,write:Se.dk.write}})],Ze.prototype,"areaUnit",void 0),Ze=Pe=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageAreaParameters")],Ze);let je=class extends A.o{constructor(e){super(e),this.name=null,this.sensorName=null}};(0,r.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"name",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:!0,write:!0}})],je.prototype,"sensorName",void 0),je=(0,r.Cg)([(0,c.$)("esri.rest.support.BaseImageMeasureResult")],je);let Oe=class extends je{constructor(){super(...arguments),this.area=null,this.perimeter=null}};(0,r.Cg)([(0,p.MZ)({type:De,json:{read:!0,write:!0}})],Oe.prototype,"area",void 0),(0,r.Cg)([(0,p.MZ)({type:Ae,json:{read:!0,write:!0}})],Oe.prototype,"perimeter",void 0),Oe=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageAreaResult")],Oe);let _e=class extends((0,n.O)(A.o)){constructor(e){super(e),this.outSpatialReference=null}};(0,r.Cg)([(0,p.MZ)({type:I.A,json:{name:"outSR",write:!0}})],_e.prototype,"outSpatialReference",void 0),_e=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageBoundaryParameters")],_e);let Ve=class extends A.o{constructor(){super(...arguments),this.area=null,this.geometry=null}readGeometry(e,t){return null==e?null:e.rings?S.A.fromJSON(e):b.A.fromJSON(e)}};var qe;(0,r.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ve.prototype,"area",void 0),(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{name:"shape",write:!0}})],Ve.prototype,"geometry",void 0),(0,r.Cg)([(0,C.w)("geometry")],Ve.prototype,"readGeometry",null),Ve=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageBoundaryResult")],Ve);let Ee=qe=class extends Ne{constructor(e){super(e),this.type="distance-angle",this.fromGeometry=null,this.toGeometry=null,this.is3D=!1,this.linearUnit="meters",this.angularUnit="degrees"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new qe((0,f.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],Ee.prototype,"fromGeometry",void 0),(0,r.Cg)([(0,m.K)("fromGeometry")],Ee.prototype,"writeFromGeometry",null),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],Ee.prototype,"toGeometry",void 0),(0,r.Cg)([(0,p.MZ)({type:Me.apiValues,json:{write:Me.write}})],Ee.prototype,"measureOperation",null),(0,r.Cg)([(0,p.MZ)({json:{read:!0}})],Ee.prototype,"is3D",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.Sk.read,write:Se.Sk.write}})],Ee.prototype,"linearUnit",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.b$.read,write:Se.b$.write}})],Ee.prototype,"angularUnit",void 0),Ee=qe=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageDistanceParameters")],Ee);let Je=class extends je{constructor(){super(...arguments),this.distance=null,this.azimuthAngle=null,this.elevationAngle=null}};(0,r.Cg)([(0,p.MZ)({type:Ae,json:{read:!0,write:!0}})],Je.prototype,"distance",void 0),(0,r.Cg)([(0,p.MZ)({type:Te,json:{read:!0,write:!0}})],Je.prototype,"azimuthAngle",void 0),(0,r.Cg)([(0,p.MZ)({type:Te,json:{read:!0,write:!0}})],Je.prototype,"elevationAngle",void 0),Je=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageDistanceResult")],Je);var Ge=i(93223),Le=i(58174),$e=i(64272);let ze=class extends((0,n.O)(A.o)){constructor(e){super(e),this.geometry=null,this.objectIds=null,this.spatialRelationship="intersects",this.timeExtent=null,this.where=null}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=JSON.stringify(e.toJSON()))}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{read:ce.rS,write:!0}})],ze.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],ze.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],ze.prototype,"objectIds",void 0),(0,r.Cg)([(0,Ge.e)(Le.x,{ignoreUnknown:!1,name:"spatialRel"})],ze.prototype,"spatialRelationship",void 0),(0,r.Cg)([(0,p.MZ)({type:$e.T,json:{name:"time",write:!0}})],ze.prototype,"timeExtent",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ze.prototype,"where",void 0),ze=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageGPSInfoParameters")],ze);let Be=class extends(ge(A.o)){constructor(){super(...arguments),this.id=null}};(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Be.prototype,"id",void 0),Be=(0,r.Cg)([(0,c.$)("esri.rest.support.CameraInfo")],Be);const Ue=Be;let Qe=class extends A.o{constructor(){super(...arguments),this.id=null,this.name=null,this.acquisitionDate=null,this.cameraID=null,this.center=null,this.gps=null,this.orientation=null}writeAcquisitionDate(e,t){t.acquisitionDate=e?.getTime()}};(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"id",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"name",void 0),(0,r.Cg)([(0,p.MZ)({type:Date,json:{write:!0}})],Qe.prototype,"acquisitionDate",void 0),(0,r.Cg)([(0,m.K)("acquisitionDate")],Qe.prototype,"writeAcquisitionDate",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"cameraID",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],Qe.prototype,"center",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"gps",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"orientation",void 0),Qe=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageGPSInfo")],Qe);const ke=Qe;let He=class extends A.o{constructor(){super(...arguments),this.images=null,this.cameras=null}};var Ke;(0,r.Cg)([(0,p.MZ)({type:[ke],json:{write:!0}})],He.prototype,"images",void 0),(0,r.Cg)([(0,p.MZ)({type:[Ue],json:{write:!0}})],He.prototype,"cameras",void 0),He=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageGPSInfoResult")],He);let We=Ke=class extends Ne{constructor(e){super(e),this.type="height",this.fromGeometry=null,this.toGeometry=null,this.operationType="base-and-top",this.linearUnit="meters"}writeFromGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){return this.operationType}clone(){return new Ke((0,f.o8)({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r.Cg)([(0,p.MZ)({type:he.A,json:{read:!0}})],We.prototype,"fromGeometry",void 0),(0,r.Cg)([(0,m.K)("fromGeometry")],We.prototype,"writeFromGeometry",null),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{read:!0,write:!0}})],We.prototype,"toGeometry",void 0),(0,r.Cg)([(0,p.MZ)({type:Me.apiValues,json:{write:Me.write}})],We.prototype,"measureOperation",null),(0,r.Cg)([(0,p.MZ)({json:{read:!0}})],We.prototype,"operationType",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{read:Se.Sk.read,write:Se.Sk.write}})],We.prototype,"linearUnit",void 0),We=Ke=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageHeightParameters")],We);let Xe=class extends je{constructor(){super(...arguments),this.height=null}};(0,r.Cg)([(0,p.MZ)({type:Ae,json:{read:!0,write:!0}})],Xe.prototype,"height",void 0),Xe=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageHeightResult")],Xe);var Ye,et=i(22048);let tt=Ye=class extends A.o{constructor(e){super(e),this.geometry=null,this.rasterFunctions=null,this.pixelSize=null,this.returnGeometry=!0,this.returnCatalogItems=!0,this.returnPixelValues=!0,this.maxItemCount=null,this.timeExtent=null,this.raster=void 0,this.viewId=void 0,this.processAsMultidimensional=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=JSON.stringify(e.toJSON()))}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=k.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}writeMosaicRule(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON()))}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=D.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}writeRasterFunction(e,t,i){null!=e&&(t[i]=JSON.stringify(e.toJSON())),e.rasterFunctionDefinition&&(t[i]=JSON.stringify(e.rasterFunctionDefinition))}writeRasterFunctions(e,t,i){null!=e&&(t[i]=JSON.stringify(e.map(e=>e.rasterFunctionDefinition||e.toJSON())))}writePixelSize(e,t,i){null!=e&&(t[i]=JSON.stringify(e))}writeTimeExtent(e,t,i){if(null!=e){const r=null!=e.start?e.start.getTime():null,s=null!=e.end?e.end.getTime():null;t[i]=null!=r?null!=s?`${r},${s}`:`${r}`:null}}clone(){return new Ye((0,f.o8)({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{write:!0}})],tt.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],tt.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({type:k.A,json:{write:!0}})],tt.prototype,"mosaicRule",null),(0,r.Cg)([(0,m.K)("mosaicRule")],tt.prototype,"writeMosaicRule",null),(0,r.Cg)([(0,p.MZ)({type:D.A,json:{write:!0,name:"renderingRule"}})],tt.prototype,"rasterFunction",null),(0,r.Cg)([(0,m.K)("rasterFunction")],tt.prototype,"writeRasterFunction",null),(0,r.Cg)([(0,p.MZ)({type:[D.A],json:{write:!0,name:"renderingRules"}})],tt.prototype,"rasterFunctions",void 0),(0,r.Cg)([(0,m.K)("rasterFunctions")],tt.prototype,"writeRasterFunctions",null),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],tt.prototype,"pixelSize",void 0),(0,r.Cg)([(0,m.K)("pixelSize")],tt.prototype,"writePixelSize",null),(0,r.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"returnCatalogItems",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"returnPixelValues",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],tt.prototype,"maxItemCount",void 0),(0,r.Cg)([(0,p.MZ)({type:$e.T,json:{write:{target:"time"}}})],tt.prototype,"timeExtent",void 0),(0,r.Cg)([(0,m.K)("timeExtent")],tt.prototype,"writeTimeExtent",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],tt.prototype,"raster",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],tt.prototype,"viewId",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],tt.prototype,"processAsMultidimensional",void 0),tt=Ye=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageIdentifyParameters")],tt);var it=i(22671);let rt=class extends A.o{constructor(){super(...arguments),this.catalogItemVisibilities=null,this.catalogItems=null,this.location=null,this.name=null,this.objectId=null,this.processedValues=null,this.properties=null,this.value=null}};var st;(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"catalogItemVisibilities",void 0),(0,r.Cg)([(0,p.MZ)({type:it.A,json:{write:!0}})],rt.prototype,"catalogItems",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],rt.prototype,"location",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"name",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"objectId",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"processedValues",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"properties",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],rt.prototype,"value",void 0),rt=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageIdentifyResult")],rt);let nt=st=class extends A.o{constructor(e){super(e),this.geometries=null,this.rasterId=null}writeGeometry(e,t,i){t.geometries={geometryType:"esriGeometryPoint",geometries:e.map(e=>e.toJSON())}}clone(){return new st({geometries:this.geometries?.map(e=>e.clone())??[],rasterId:this.rasterId})}};(0,r.Cg)([(0,p.MZ)({type:[he.A],json:{write:!0}})],nt.prototype,"geometries",void 0),(0,r.Cg)([(0,m.K)("geometries")],nt.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({type:R.jz,json:{write:!0}})],nt.prototype,"rasterId",void 0),nt=st=(0,r.Cg)([(0,c.$)("esri.rest.support.ImagePixelLocationParameters")],nt);let ot=class extends A.o{constructor(){super(...arguments),this.geometries=null}};var at;(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],ot.prototype,"geometries",void 0),ot=(0,r.Cg)([(0,c.$)("esri.rest.support.ImagePixelLocationResult")],ot);let lt=at=class extends Ne{constructor(e){super(e),this.type="point",this.geometry=null,this.is3D=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=e.toJSON())}get measureOperation(){const{is3D:e,geometry:t}=this;return"point"===t.type?e?"point-3D":"point":e?"centroid-3D":"centroid"}clone(){return new at((0,f.o8)({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{name:"fromGeometry",read:ce.rS}})],lt.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],lt.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({type:Me.apiValues,json:{read:Me.read,write:Me.write}})],lt.prototype,"measureOperation",null),(0,r.Cg)([(0,p.MZ)({json:{read:!0}})],lt.prototype,"is3D",void 0),lt=at=(0,r.Cg)([(0,c.$)("esri.rest.support.ImagePointParameters")],lt);let ut=class extends je{constructor(){super(...arguments),this.point=null}};(0,r.Cg)([(0,p.MZ)({type:he.A,json:{name:"point.value",read:!0,write:!0}})],ut.prototype,"point",void 0),ut=(0,r.Cg)([(0,c.$)("esri.rest.support.ImagePointResult")],ut);var pt=i(34606),ct=i(51508);let mt=class extends((0,n.O)(A.o)){constructor(e){super(e),this.geometries=[],this.rasterIds=null,this.outSpatialReference=null}writeGeometries(e,t,i){t.geometries=e?.length?{geometryType:(0,ce.$B)(e[0]),geometries:e.map(e=>({...e.toJSON(),spatialReference:void 0}))}:null}};(0,r.Cg)([(0,p.MZ)({types:[Ie.yR]})],mt.prototype,"geometries",void 0),(0,r.Cg)([(0,m.K)("geometries")],mt.prototype,"writeGeometries",null),(0,r.Cg)([(0,p.MZ)({type:[R.jz],json:{write:!0}})],mt.prototype,"rasterIds",void 0),(0,r.Cg)([(0,p.MZ)({type:I.A,json:{name:"outSR",write:!0}})],mt.prototype,"outSpatialReference",void 0),mt=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageToMapMultirayParameters")],mt);let dt=class extends((0,n.O)(A.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.outSpatialReference=null,this.depthOffset=0,this.adjust=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{read:ce.rS,write:!0}})],dt.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],dt.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],dt.prototype,"rasterId",void 0),(0,r.Cg)([(0,p.MZ)({type:I.A,json:{name:"outSR",write:!0}})],dt.prototype,"outSpatialReference",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"options.DOff",write:!0}})],dt.prototype,"depthOffset",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"options.Adjust",write:!0}})],dt.prototype,"adjust",void 0),dt=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageToMapParameters")],dt);let ht=class extends((0,n.O)(A.o)){constructor(e){super(e),this.referenceUri=null,this.rasterId=null}};(0,r.Cg)([(0,p.MZ)({type:String,json:{name:"uri",write:!0}})],ht.prototype,"referenceUri",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],ht.prototype,"rasterId",void 0),ht=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageUrlParameters")],ht);let yt=class extends A.o{constructor(){super(...arguments),this.url=null}};(0,r.Cg)([(0,p.MZ)({json:{name:"imageURL",write:!0}})],yt.prototype,"url",void 0),yt=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageUrlResult")],yt);const gt=new Fe.J({0:"constant",1:"plane",2:"minimum",3:"maximum",4:"average"},{useNumericKeys:!0});let ft=class extends((0,n.O)(A.o)){constructor(){super(...arguments),this.geometries=[],this.mosaicRule=null,this.pixelSize=null,this.constantZ=null,this.baseType="plane"}writeGeometries(e,t,i){e?.length&&(t.geometryType=(0,ce.$B)(e[0]),t.geometries=e.map(e=>e.toJSON()))}};(0,r.Cg)([(0,p.MZ)({types:[Ie.yR]})],ft.prototype,"geometries",void 0),(0,r.Cg)([(0,m.K)("geometries")],ft.prototype,"writeGeometries",null),(0,r.Cg)([(0,p.MZ)({type:k.A,json:{write:!0}})],ft.prototype,"mosaicRule",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{write:!0}})],ft.prototype,"pixelSize",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],ft.prototype,"constantZ",void 0),(0,r.Cg)([(0,p.MZ)({type:gt.apiValues,json:{read:gt.read,write:gt.write}})],ft.prototype,"baseType",void 0),ft=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageVolumeParameters")],ft);let wt=class extends A.o{constructor(){super(...arguments),this.area=null,this.cut=null,this.fill=null,this.maxZ=null,this.minZ=null,this.meanZ=null,this.cutCellCount=null,this.fillCellCount=null}};(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"area",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"cut",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"fill",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"maxz",write:!0}})],wt.prototype,"maxZ",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"minz",write:!0}})],wt.prototype,"minZ",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"meanz",write:!0}})],wt.prototype,"meanZ",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"cutCellCount",void 0),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],wt.prototype,"fillCellCount",void 0),wt=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageVolume")],wt);const vt=wt;let Rt=class extends A.o{constructor(){super(...arguments),this.volumes=[]}};(0,r.Cg)([(0,p.MZ)({type:[vt],json:{write:!0}})],Rt.prototype,"volumes",void 0),Rt=(0,r.Cg)([(0,c.$)("esri.rest.support.ImageVolumeResult")],Rt);let Ct=class extends((0,n.O)(A.o)){constructor(e){super(e),this.geometry=null,this.rasterId=null,this.visibleOnly=!1}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]=JSON.stringify(e))}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{read:ce.rS,write:!0}})],Ct.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],Ct.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],Ct.prototype,"rasterId",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"options.VisibleOnly",write:!0}})],Ct.prototype,"visibleOnly",void 0),Ct=(0,r.Cg)([(0,c.$)("esri.rest.support.MapToImageParameters")],Ct);let bt=class extends A.o{constructor(){super(...arguments),this.geometry=null,this.length=null,this.area=null,this.center=null}readCenter(e,t){return e.spatialReference||(e={...e,spatialReference:t.Shape.spatialReference}),he.A.fromJSON(e)}};var St;(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{name:"Shape",read:ce.rS,write:!0}})],bt.prototype,"geometry",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],bt.prototype,"length",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"Area",write:!0}})],bt.prototype,"area",void 0),(0,r.Cg)([(0,p.MZ)({type:he.A,json:{name:"Center",write:!0}})],bt.prototype,"center",void 0),(0,r.Cg)([(0,C.w)("center")],bt.prototype,"readCenter",null),bt=(0,r.Cg)([(0,c.$)("esri.rest.support.MeasureAreaFromImageResult")],bt);let It=St=class extends A.o{constructor(e){super(e),this.geometry=null,this.rasterId=void 0}writeGeometry(e,t,i){null!=e&&(t.geometryType=(0,ce.$B)(e),t[i]={...e.toJSON(),spatialReference:void 0})}clone(){const e=(0,f.o8)({geometry:this.geometry,rasterId:this.rasterId});return new St(e)}};(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{name:"fromGeometry",read:ce.rS,write:!0}})],It.prototype,"geometry",void 0),(0,r.Cg)([(0,m.K)("geometry")],It.prototype,"writeGeometry",null),(0,r.Cg)([(0,p.MZ)({json:{write:!0}})],It.prototype,"rasterId",void 0),It=St=(0,r.Cg)([(0,c.$)("esri.rest.support.MeasureFromImageParameters")],It);let Ft=class extends A.o{constructor(){super(...arguments),this.geometry=null,this.length=null}};function Mt(e){const t=e?.time;if(t&&(null!=t.start||null!=t.end)){const i=[];null!=t.start&&i.push(t.start),null==t.end||i.includes(t.end)||i.push(t.end),e.time=i.join(",")}}async function xt(e,t,i){t=(0,R.PZ)(et.A,t);const r=(0,de.Dl)(e),s=t.geometry?[t.geometry]:[],n=await(0,me.el)(s),o=t.toJSON();Mt(o);const a=n?.[0];null!=a&&(o.geometry=Nt(a));const l=(0,de.lF)({...r.query,f:"json",...o});return(0,de.jV)(l,i)}async function At(e,t,i){t=(0,R.PZ)(tt,t);const r=(0,de.Dl)(e),s=t.geometry?[t.geometry]:[];return(0,me.el)(s).then(e=>{const s=t.toJSON(),n=e?.[0];null!=n&&(s.geometry=JSON.stringify(Nt(n)));const o=(0,de.lF)({...r.query,f:"json",...s}),a=(0,de.jV)(o,i);return(0,y.A)(r.path+"/identify",a)}).then(e=>rt.fromJSON(e.data))}async function Dt(e,t,i,r){const s=(0,de.Dl)(e),n=await(0,me.el)(i),o=t.toJSON();null!=n[0]&&(o.fromGeometry=JSON.stringify(Nt(n[0]))),null!=n[1]&&(o.toGeometry=JSON.stringify(Nt(n[1])));const a=(0,de.lF)({...s.query,f:"json",...o}),l=(0,de.jV)(a,r),{data:u}=await(0,y.A)(s.path+"/measure",l);return u}async function Tt(e,t,i){t=(0,R.PZ)(It,t);const r=(0,de.Dl)(e),s=t.toJSON(),n=(0,de.lF)({...r.query,f:"json",...s}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(r.path+"/measureFromImage",o);return a}function Nt(e){const t=e.toJSON();return e.spatialReference?.imageCoordinateSystem&&(t.spatialReference=Pt(e.spatialReference)),t}function Pt(e){const{imageCoordinateSystem:t}=e;if(t){const{id:e,referenceServiceName:i}=t;return null!=e?i?{icsid:e,icsns:i}:{icsid:e}:{ics:t}}return e.toJSON()}function Zt(e,t){if(!e.imageCoordinateSystem)return(0,F.YX)(e);const i=Pt(e),{icsid:r,icsns:s}=i;return null==r||null!=s&&!t?.toLowerCase().includes("/"+s.toLowerCase()+"/")?JSON.stringify(i):`0:${r}`}(0,r.Cg)([(0,p.MZ)({types:Ie.yR,json:{name:"Shape",read:ce.rS,write:!0}})],Ft.prototype,"geometry",void 0),(0,r.Cg)([(0,p.MZ)({json:{name:"Length",write:!0}})],Ft.prototype,"length",void 0),Ft=(0,r.Cg)([(0,c.$)("esri.rest.support.MeasureLengthFromImageResult")],Ft);var jt=i(82371),Ot=i(20223),_t=i(20615),Vt=i(78286),qt=i(99199),Et=i(61956);const Jt=new Set(["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff"]),Gt=(0,R.Qp)(R.GB,{min:0,max:255}),Lt=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this._functionRasterInfos={},this._serviceSupportsMosaicRule=null,this.adjustAspectRatio=null,this.bandIds=void 0,this.capabilities=null,this.compressionQuality=void 0,this.compressionTolerance=.01,this.copyright=null,this.defaultMosaicRule=null,this.definitionExpression=null,this.exportImageServiceParameters=null,this.rasterInfo=null,this.fields=null,this.fullExtent=null,this.hasMultidimensions=!1,this.imageMaxHeight=4100,this.imageMaxWidth=4100,this.interpolation=void 0,this.minScale=0,this.maxScale=0,this.multidimensionalInfo=null,this.multidimensionalSubset=null,this.noData=null,this.noDataInterpretation=void 0,this.objectIdField=null,this.geometryType="polygon",this.typeIdField=null,this.types=[],this.pixelFilter=null,this.raster=void 0,this.sourceType=null,this.viewId=void 0,this.symbolizer=null,this.rasterFunctionInfos=null,this.serviceDataType=null,this.spatialReference=null,this.pixelType=null,this.serviceRasterInfo=null,this.sourceJSON=null,this.url=null,this.version=void 0}initialize(){this._set("exportImageServiceParameters",new K({layer:this}))}readServiceSupportsMosaicRule(e,t){return this._isMosaicRuleSupported(t)}get _rasterFunctionNamesIndex(){const e=new Map;return!this.rasterFunctionInfos||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.length<1||null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.forEach(t=>{e.set(t.name.toLowerCase().replaceAll(/ /gi,"_"),t.name)}),e}readBandIds(e,t){if(Array.isArray(e)&&e.length>0&&e.every(e=>"number"==typeof e))return e}readCapabilities(e,t){return this._readCapabilities(t)}writeCompressionQuality(e,t,i){null!=e&&"lerc"!==this.format&&(t[i]=e)}writeCompressionTolerance(e,t,i){"lerc"===this.format&&null!=e&&(t[i]=e)}readDefaultMosaicRule(e,t){return this._serviceSupportsMosaicRule?k.A.fromJSON(t):null}get fieldsIndex(){return this.fields?new X.A(this.fields):null}set format(e){e&&Jt.has(e.toLowerCase())&&this._set("format",e.toLowerCase())}readFormat(e,t){return"esriImageServiceDataTypeVector-UV"===t.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===t.serviceDataType||null!=this.pixelFilter?"lerc":"jpgpng"}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}set mosaicRule(e){let t=e;t?.mosaicMethod&&(t=k.A.fromJSON({...t.toJSON(),mosaicMethod:t.mosaicMethod,mosaicOperation:t.mosaicOperation})),this._set("mosaicRule",t)}readMosaicRule(e,t){const i=e||t.mosaicRule;return i?k.A.fromJSON(i):this._isMosaicRuleSupported(t)?k.A.fromJSON(t):null}writeMosaicRule(e,t,i){const{mosaicRule:r}=this;this._isValidCustomizedMosaicRule(r)&&(t[i]=r.toJSON())}writeNoData(e,t,i){null!=e&&"number"==typeof e&&(t[i]=Gt(e))}readObjectIdField(e,t){if(!e){const i=t.fields.find(e=>"esriFieldTypeOID"===e.type||"oid"===e.type);e=i?.name}return e}get parsedUrl(){return(0,v.An)(this.url)}readSourceType(e,t){return this._isMosaicDataset(t)?"mosaic-dataset":"raster-dataset"}get renderer(){const{activePresetRendererName:e,presetRenderers:t}=this;if(e){const i=t?.find(({name:t})=>t===e);return i?.renderer.clone()}return this.internalRenderer}set renderer(e){this.activePresetRendererName=null,this.internalRenderer=e}set internalRenderer(e){this.loaded&&(e=this._configRenderer(e)),this._set("internalRenderer",e)}readRenderer(e,t,i){const r=t?.layerDefinition?.drawingInfo?.renderer,s=(0,pe.LF)(r,i);return null==s?null:("vector-field"===s.type&&t.symbolTileSize&&!r.symbolTileSize&&(s.symbolTileSize=t.symbolTileSize),q(s)||a.A.getLogger(this).warn("ArcGISImageService","Imagery layer doesn't support given renderer type."),s)}writeRenderer(e,t,i){t.layerDefinition=t.layerDefinition||{},t.layerDefinition.drawingInfo=t.layerDefinition.drawingInfo||{},t.layerDefinition.drawingInfo.renderer=e.toJSON(),"vector-field"===e.type&&(t.symbolTileSize=e.symbolTileSize)}get rasterFields(){const e=this.fields?.map(e=>e.clone())??[];e.push((0,ie.rZ)()),"mosaic-dataset"===this.sourceType&&this.fields?.length&&e.push((0,ie.Nd)()),this.version>=10.4&&null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.some(({name:e})=>"none"===e.toLowerCase())&&e.push((0,ie.dy)()),null!=this.rasterFunctionInfos&&this.rasterFunctionInfos.filter(({name:e})=>"none"!==e.toLowerCase()).forEach(({name:t})=>e.push((0,ie.nq)(t)));const{rasterInfo:t}=this;if(this._isVectorDataSet()){const i=t?.multidimensionalInfo?.variables[0].unit?.trim(),r=(0,ie.DV)(i),s=(0,ie.y6)();e.push(r,s)}if(t?.multidimensionalInfo&&"raster-dataset"===this.sourceType){const i=(0,ie.AL)(t.multidimensionalInfo);e.push(...i)}const i=t?.attributeTable;if(null!=i){const t=(0,ie.jC)(i);e.push(...t)}return e}set rasterFunction(e){let t=e;t?.rasterFunction&&(t=D.A.fromJSON({...t.toJSON(),rasterFunction:t.rasterFunction,rasterFunctionArguments:t.rasterFunctionArguments})),this._set("rasterFunction",t)}readRasterFunction(e,t){const i=t.rasterFunctionInfos;return t.renderingRule||i?.length&&"None"!==i[0].name?this._isRFTJson(t.renderingRule)?D.A.fromJSON({rasterFunctionDefinition:t.renderingRule}):D.A.fromJSON(t.renderingRule||{rasterFunctionInfos:t.rasterFunctionInfos}):null}readSpatialReference(e,t){const i=e||t.extent.spatialReference;return i?I.A.fromJSON(i):null}writePixelType(e,t,i){null!=this.serviceRasterInfo&&this.pixelType===this.serviceRasterInfo.pixelType||(t[i]=H.e8.toJSON(e))}readVersion(e,t){let i=t.currentVersion;return i||(i=t.hasOwnProperty("fields")||t.hasOwnProperty("timeInfo")?10:9.3),i}applyFilter(e){let t=e;return this.pixelFilter&&(t=this._clonePixelData(e),this.pixelFilter(t)),t}async applyRenderer(e,t){let i=e,{renderer:r,symbolizer:s,pixelFilter:n}=this;const{isRawData:o}=e;if(o&&"lerc"!==this.format&&(r??=(0,le.PD)(this.rasterInfo,{bandIds:this.bandIds,variableName:this.rasterFunction?null:this.mosaicRule?.multidimensionalDefinition?.[0].variableName}),s||(this.symbolizer=new ue.A({rendererJSON:r.toJSON(),rasterInfo:this.rasterInfo}),s=this.symbolizer)),(o||!this._isPicture())&&r&&s&&!n){await this._updateSymbolizer(s,r);const{bandIds:n}=this;i=await this._symbolize({pixelData:e,bandIds:n,symbolizer:s},t)}return i}async highlightPixels(e,t){const i=e.highlightOptions.map(e=>{const t={...e},{bandId:i}=t;if(null==i)t.bandId=0;else{const e=this.bandIds?.length?this.bandIds.indexOf(i):i;if(e<0||e>2)return;t.bandId=e}return t}).filter(e=>null!=e),r=this._rasterJobHandler;r?await r.highlightPixels({...e,highlightOptions:i},t):(0,oe._F)(e.pixelBlock,e.renderedPixelBlock,i)}destroy(){this._shutdownJobHandler()}async calculateVolume(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsCalculateVolume)throw new o.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return e=(0,f.o8)(e),this.mosaicRule&&null==e.mosaicRule&&(e.mosaicRule=this.mosaicRule),async function(e,t,i){const r=(t=(0,R.PZ)(ft,t)).toJSON();r.geometries=JSON.stringify(r.geometries);const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(`${s.path}/calculateVolume`,o);return Rt.fromJSON({volumes:a.results})}(this.url,e,this._getRequestOptions(t))}async computeAngles(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeAngles)throw new o.A("imagery-layer:compute-angles","this operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(Ce,t)).toJSON();null!=r.angleName&&(r.angleName=r.angleName.join(",")),t?.point?.spatialReference?.imageCoordinateSystem&&(r.point.spatialReference=Pt(t.point.spatialReference)),t?.spatialReference?.imageCoordinateSystem&&(r.spatialReference=Zt(t.spatialReference));const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(`${s.path}/computeAngles`,o);return a.spatialReference=a.spatialReference?null!=a.spatialReference.geodataXform?new I.A({wkid:0,imageCoordinateSystem:a.spatialReference}):I.A.fromJSON(a.spatialReference):null,"NaN"===a.north&&(a.north=null),"NaN"===a.up&&(a.up=null),new be(a)}(this.url,e,this._getRequestOptions(t))}async computePixelSpaceLocations(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputePixelLocation)throw new o.A("imagery-layer:compute-pixel-space-locations","this operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(nt,t)).toJSON(),{geometries:s}=t;if(s)for(let e=0;e<s.length;e++)s[e].spatialReference?.imageCoordinateSystem&&(r.geometries.geometries[e].spatialReference=Pt(s[e].spatialReference));const n=(0,de.Dl)(e),o=(0,de.lF)({...n.query,f:"json",...r}),a=(0,de.jV)(o,i),{data:l}=await(0,y.A)(`${n.path}/computePixelLocation`,a);return ot.fromJSON(l)}(this.url,e,this._getRequestOptions(t))}async computeHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeHistograms)throw new o.A("imagery-layer:compute-histograms","this operation is not supported on the input image service");return e=(0,f.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await xt(e,t,i),s=(0,de.Dl)(e),{data:n}=await(0,y.A)(`${s.path}/computeHistograms`,r);return{histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async computeStatisticsHistograms(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsComputeStatisticsHistograms)throw new o.A("imagery-layer:compute-statistics-histograms","this operation is not supported on the input image service");return e=(0,f.o8)(e),this._applyMosaicAndRenderingRules(e),async function(e,t,i){const r=await xt(e,t,i),s=(0,de.Dl)(e),{data:n}=await(0,y.A)(`${s.path}/computeStatisticsHistograms`,r),{statistics:o}=n;return o?.length&&o.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:o,histograms:n.histograms}}(this.url,e,this._getRequestOptions(t))}async measureHeight(e,t){const i=await this._fetchCapabilities(t?.signal);if(!("base-and-top"===e.operationType?i.mensuration.supportsHeightFromBaseAndTop:"base-and-top-shadow"===e.operationType?i.mensuration.supportsHeightFromBaseAndTopShadow:i.mensuration.supportsHeightFromTopAndTopShadow))throw new o.A("imagery-layer:measure-height","this operation is not supported on the input image service");return e=(0,f.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,R.PZ)(We,t);const r=await Dt(e,t,[t.fromGeometry,t.toGeometry],i);return Xe.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaAndPerimeter(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsAreaAndPerimeter||e.is3D&&!i.mensuration.supports3D)throw new o.A("imagery-layer:measure-area-and-perimeter","this operation is not supported on the input image service");return e=(0,f.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,R.PZ)(Ze,t);const r=await Dt(e,t,[t.geometry],i);return Oe.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureDistanceAndAngle(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsDistanceAndAngle||e.is3D&&!i.mensuration.supports3D)throw new o.A("imagery-layer:measure-distance-and-angle","this operation is not supported on the input image service");return e=(0,f.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,R.PZ)(Ee,t);const r=await Dt(e,t,[t.fromGeometry,t.toGeometry],i);return Je.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measurePointOrCentroid(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i.mensuration.supportsPointOrCentroid||e.is3D&&!i.mensuration.supports3D)throw new o.A("imagery-layer:measure-point-or-centroid","this operation is not supported on the input image service");return e=(0,f.o8)(e),this._applyMosaicRule(e),async function(e,t,i){t=(0,R.PZ)(lt,t);const r=await Dt(e,t,[t.geometry],i);return ut.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureLengthFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new o.A("imagery-layer:measure-length-from-image","this operation is not supported on the input image service");if("polyline"!==e.geometry.type)throw new o.A("imagery-layer:measure-length-from-image","this input geometry must be a polyline");return async function(e,t,i){const r=await Tt(e,t,i);return Ft.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}async measureAreaFromImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMeasureFromImage)throw new o.A("imagery-layer:measure-area-from-image","this operation is not supported on the input image service");if("polygon"!==e.geometry.type)throw new o.A("imagery-layer:measure-area-from-image","this input geometry must be a polygon");return async function(e,t,i){const r=await Tt(e,t,i);return bt.fromJSON(r)}(this.url,e,this._getRequestOptions(t))}getField(e){const{fieldsIndex:t}=this;return null!=t?t.get(e):void 0}getFieldDomain(e,t){const i=this.getField(e);return i?i.domain:null}fetchImage(e,t,i,r={}){if((0,g.eO)(a.A.getLogger(this),"`ImageryLayer.fetchImage` is deprecated in favor of 'ImageryLayer.fetchPixels'.",{replacement:"ImageryLayer.fetchPixels",version:"4.33",warnOnce:!0}),null==e||null==t||null==i)throw new o.A("imagery-layer:fetch-image","Insufficient parameters for requesting an image. A valid extent, width and height values are required.");return this.internalFetchImage(e,t,i,r)}async internalFetchImage(e,t,i,r={}){await this._updateCurrentRasterInfo();const{exportImageServiceParameters:n}=this;let o=!1;r.requestRawData&&(await this._initJobHandler(),n.requestRawData||"lerc"===this.format||(o=!0,n.requestRawData=!0));const a=this.getExportImageServiceParameters(e,t,i,r.timeExtent);if(o&&(n.requestRawData=!1),null==a){if(r.requestAsImageElement&&this._canRequestImageElement(this.format)){const e=document.createElement("canvas");return e.width=t,e.height=i,r.returnImageBitmap?{imageBitmap:await(0,Y.m)(e,`${s(this.parsedUrl)}/exportImage`,r.signal)}:{imageOrCanvasElement:e}}const{bandIds:n,rasterInfo:o}=this,a=(n?.length||o.bandCount)??0,l=t*i,u=o.pixelType,p=[];for(let e=0;e<a;e++)p.push(te.A.createEmptyBand(u,l));return{pixelData:{pixelBlock:new te.A({width:t,height:i,pixels:p,mask:new Uint8Array(l),pixelType:u}),extent:e}}}const l=!!r.requestAsImageElement&&!this.pixelFilter,u=l&&!!r.returnImageBitmap,p={imageServiceParameters:a,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:l,returnImageBitmap:u,signal:r.signal};return this._requestArrayBuffer(p)}async fetchPixels(e,t,i,r={}){await this._initJobHandler(),r.applyRendering&&this._updateCurrentRasterInfo();const s=r.applyRendering?void 0:new K({layer:this,requestRawData:!0,interpolation:r.interpolation??"nearest",bandIds:r.bandIds??[]}),n=this.getExportImageServiceParameters(e,t,i,r.timeExtent,s);if(null==n)return{extent:e,pixelBlock:null};delete n.pixelType,delete n.bandIds,delete n.compressionQuality;const o={imageServiceParameters:n,imageProps:{extent:e,width:t,height:i,format:this.format},requestAsImageElement:!1,returnImageBitmap:!1,signal:r.signal},{pixelData:a}=await this._requestArrayBuffer(o);return a??{extent:e,pixelBlock:null}}fetchKeyProperties(e){return(0,y.A)(s(this.parsedUrl)+"/keyProperties",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>e.data)}fetchRasterAttributeTable(e){return this.version<10.1?Promise.reject(new o.A("#fetchRasterAttributeTable()","Failed to get rasterAttributeTable")):(0,y.A)(s(this.parsedUrl)+"/rasterAttributeTable",{query:this._getQueryParams({renderingRule:this.version>=10.3?e?.rasterFunction:null})}).then(e=>it.A.fromJSON(e.data))}getCatalogItemRasterInfo(e,t){const i={...t,query:this._getQueryParams()};return async function(e,t,i){const r=(0,de.Dl)(e),s=(0,de.lF)({...r?.query,f:"json"}),n=(0,de.jV)(s,i),o=`${r?.path}/${t}/info`,a=(0,y.A)(`${o}`,n),l=(0,y.A)(`${o}/keyProperties`,n),u=await Promise.allSettled([a,l]),p="fulfilled"===u[0].status?u[0].value.data:null,c="fulfilled"===u[1].status?u[1].value.data:null;let m=null;p.statistics?.length&&(m=p.statistics.map(e=>({min:e[0],max:e[1],avg:e[2],stddev:e[3]})));const d=b.A.fromJSON(p.extent),h=Math.ceil(d.width/p.pixelSizeX-.1),g=Math.ceil(d.height/p.pixelSizeY-.1),f=d.spatialReference,w=new he.A({x:p.pixelSizeX,y:p.pixelSizeY,spatialReference:f}),v=p.histograms?.length?p.histograms:null,R=new Ot.A({origin:p.origin,blockWidth:p.blockWidth,blockHeight:p.blockHeight,firstPyramidLevel:p.firstPyramidLevel,maximumPyramidLevel:p.maxPyramidLevel});return new re.A({width:h,height:g,bandCount:p.bandCount,extent:d,spatialReference:f,pixelSize:w,pixelType:p.pixelType.toLowerCase(),statistics:m,histograms:v,keyProperties:c,storageInfo:R})}(s(this.parsedUrl),e,i)}async getCatalogItemICSInfo(e,t){const{data:i}=await(0,y.A)(s(this.parsedUrl)+"/"+e+"/info/ics",{query:this._getQueryParams(),...t}),r=i?.ics;if(!r)return;let n=null;try{n=(await(0,y.A)(s(this.parsedUrl)+"/"+e+"/info",{query:this._getQueryParams(),...t})).data.extent}catch{}if(!n?.spatialReference)return{ics:r,icsToPixelTransform:null,icsExtent:null,northDirection:null};const o=this.version>=10.7?(0,y.A)(s(this.parsedUrl)+"/"+e+"/info/icstopixel",{query:this._getQueryParams(),...t}).then(e=>e.data).catch(()=>({})):{},a=n.spatialReference,l={geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),inSR:(0,F.YX)(a),outSR:"0:"+e},u=(0,y.A)(s(this.parsedUrl)+"/project",{query:this._getQueryParams(l),...t}).then(e=>e.data).catch(()=>({})),p=(n.xmin+n.xmax)/2,c=(n.ymax-n.ymin)/6,m=n.ymin+c,d=[];for(let e=0;e<5;e++)d.push({x:p,y:m+c*e});const h={geometries:JSON.stringify({geometryType:"esriGeometryPoint",geometries:d}),inSR:(0,F.YX)(a),outSR:"0:"+e},g=(0,y.A)(s(this.parsedUrl)+"/project",{query:this._getQueryParams(h),...t}).then(e=>e.data).catch(()=>({})),f=await Promise.all([o,u,g]);let w=f[0].ipxf;if(null==w){const e=r.geodataXform?.xf_0;"topup"===e?.name?.toLowerCase()&&6===e?.coefficients?.length&&(w={affine:{name:"ics [sensor: Frame] to pixel (column, row) transformation",coefficients:e.coefficients,cellsizeRatio:0,type:"GeometricXform"}})}const v=b.A.fromJSON(f[1]?.geometries?.[0]);v&&(v.spatialReference=new I.A({wkid:0,imageCoordinateSystem:r}));const R=f[2].geometries?f[2].geometries.filter(e=>null!=e?.x&&null!=e.y&&"NaN"!==e.x&&"NaN"!==e.y):[],C=R.length;if(C<3)return{ics:r,icsToPixelTransform:w,icsExtent:v,northDirection:null};let S=0,M=0,x=0,A=0;for(let e=0;e<C;e++)S+=R[e].x,M+=R[e].y,x+=R[e].x*R[e].x,A+=R[e].x*R[e].y;const D=(C*A-S*M)/(C*x-S*S);let T=0;const N=R[4].x>R[0].x,P=R[4].y>R[0].y;return D===1/0?T=P?90:270:0===D?T=N?0:180:D>0?T=N?180*Math.atan(D)/Math.PI:180*Math.atan(D)/Math.PI+180:D<0&&(T=P?180+180*Math.atan(D)/Math.PI:360+180*Math.atan(D)/Math.PI),{ics:r,icsToPixelTransform:w,icsExtent:v,northDirection:T}}async generateRasterInfo(e,t){e=(0,R.PZ)(D.A,e);const i={...t,query:this._getQueryParams()};if(!e||"none"===e.functionName?.toLowerCase()||this._isVectorFieldResampleFunction(e))return this.serviceRasterInfo??(0,jt.Tw)(s(this.parsedUrl),this.sourceJSON,i);const r=function(e){const t=JSON.stringify(e),i=t.includes('"rasterFunctionDefinition":{'),r=i?t.match(/"type":"(.*?FunctionArguments")/gi):t.match(/"rasterFunction":"(.*?")/gi),s=r?.map(e=>i?e.slice(8,-18):e.slice(18,-1));return s?s.join("/"):null}(e);if(!r)throw new o.A("imagery-layer:generate-raster-info","the rendering rule is not supported");if(this._functionRasterInfos[r])return this._functionRasterInfos[r];const n=(0,jt.X6)(s(this.parsedUrl),e,i);this._functionRasterInfos[r]=n;try{return await n}catch(e){throw this._functionRasterInfos[r]=null,e}}getExportImageServiceParameters(e,t,i,r,n){const o=Zt((e=e.clone().shiftCentralMeridian()).spatialReference,s(this.parsedUrl));n??=this.exportImageServiceParameters;const a=n.toJSON(),{bandIds:l,noData:u}=a;let{renderingRule:p}=a;const c=this.rasterFunction?.rasterFunctionDefinition,m=this.renderer?.type,d=!m||"raster-stretch"===m||"raster-colormap"===m||"unique-value"===m||"class-breaks"===m||"raster-shaded-relief"===m;if(l?.length&&this._hasRasterFunction(this.rasterFunction)&&!c&&d){const e={rasterFunction:"ExtractBand",rasterFunctionArguments:{BandIds:l}};if("Stretch"===p.rasterFunction)e.rasterFunctionArguments.Raster=p.rasterFunctionArguments.Raster,p.rasterFunctionArguments.Raster=e;else if("Colormap"===p.rasterFunction){const t=p.rasterFunctionArguments.Raster;"Stretch"===t?.rasterFunction?(e.rasterFunctionArguments.Raster=t.rasterFunctionArguments.Raster,t.rasterFunctionArguments.Raster=e):(e.rasterFunctionArguments.Raster=t,p.rasterFunctionArguments.Raster=e)}else e.rasterFunctionArguments.Raster=p,p=e;a.bandIds=void 0}else a.bandIds=l?.join(",");Array.isArray(u)&&u.length>0&&(a.noData=u.join(","));const h=this._processMultidimensionalIntersection(null,r,n.mosaicRule);if(h.isOutSide)return null;a.mosaicRule=null!=h.mosaicRule?JSON.stringify(h.mosaicRule):null,r=h.timeExtent,a.renderingRule=this._getRenderingRuleString(D.A.fromJSON(p));const y={};if(null!=r){const{start:e,end:t}=r.toJSON();e&&t&&e===t?y.time=""+e:null==e&&null==t||(y.time=`${e??"null"},${t??"null"}`)}return{bbox:e.xmin+","+e.ymin+","+e.xmax+","+e.ymax,bboxSR:o,imageSR:o,size:t+","+i,...a,...y}}async getSamples(e,t){const i=await this._fetchCapabilities(t?.signal);if(!i?.operations.supportsGetSamples)throw new o.A("imagery-layer:get-samples","getSamples operation is not supported on the input image service");e=(0,f.o8)(e);const{raster:r}=this;return r&&null==e.raster&&(e.raster=r),async function(e,t,i){const r=(t=(0,R.PZ)(pt.A,t)).toJSON();Mt(r),r.outFields?.length&&(r.outFields=r.outFields.join(","));const s=await(0,me.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=Nt(n));const o=(0,de.Dl)(e),a=(0,de.lF)({...o.query,f:"json",...r}),l=(0,de.jV)(a,i),{data:u}=await(0,y.A)(`${o.path}/getSamples`,l),p=u.samples.map(e=>{const t="NaN"===e.value||""===e.value?null:e.value.split(" ").map(e=>Number(e));return{...e,pixelValue:t}});return ct.A.fromJSON({samples:p})}(this.url,e,this._getRequestOptions(t))}async identify(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsIdentify)throw new o.A("imagery-layer:identify","identify operation is not supported on the input image service");e=(0,f.o8)(e),this.version<10.91&&"extent"===e.geometry?.type&&(e.geometry=S.A.fromExtent(e.geometry));const i=this._processMultidimensionalIntersection(e.geometry,e.timeExtent,e.mosaicRule||this.mosaicRule);if(i.isOutSide)throw new o.A("imagery-layer:identify","the request cannot be fulfilled when falling outside of the multidimensional subset");e.timeExtent=i.timeExtent,e.mosaicRule=i.mosaicRule;const{raster:r,rasterFunction:s}=this;return s&&null==e.rasterFunction&&(e.rasterFunction=s),r&&null==e.raster&&(e.raster=r),At(this.url,e,this._getRequestOptions(t))}async imageToMap(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMap)throw new o.A("imagery-layer:image-to-map","imageToMap operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(dt,t)).toJSON();t.geometry.spatialReference.imageCoordinateSystem&&(r.geometry=Nt(t.geometry)),t.depthOffset&&t.adjust||delete r.options;const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(`${s.path}/imageToMap`,o);return(0,ce.rS)(a)}(s(this.parsedUrl),e,this._getRequestOptions(t))}async imageToMapMultiray(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsImageToMapMultiray)throw new o.A("imagery-layer:image-to-map-multiray","imageToMapMultiray operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(mt,t)).toJSON();t.rasterIds?.length&&(r.rasterIds=t.rasterIds.join(","));const s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(`${s.path}/imageToMapMultiray`,o);return(0,ce.rS)(a)}(s(this.parsedUrl),e,this._getRequestOptions(t))}async mapToImage(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsMapToImage)throw new o.A("imagery-layer:map-to-image","mapToImage operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(Ct,t)).toJSON(),s=await(0,me.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=Nt(n)),t.visibleOnly||delete r.options;const o=n?.spatialReference??t.geometry?.spatialReference;o&&(r.inSR=Zt(o));const a=(0,de.Dl)(e),l=(0,de.lF)({...a.query,f:"json",...r}),u=(0,de.jV)(l,i),{data:p}=await(0,y.A)(`${a.path}/mapToImage`,u);return(0,ce.rS)(p)}(s(this.parsedUrl),e,this._getRequestOptions(t))}async findImages(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsFindImages)throw new o.A("imagery-layer:find-images","findImages operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(ye,t)).toJSON(),s=await(0,me.el)([t.fromGeometry,t.toGeometry]);null!=s[0]&&(r.fromGeometry=Nt(s[0]),s[0].spatialReference&&(r.inSR=Zt(s[0].spatialReference))),null!=s[1]&&(r.toGeometry=Nt(s[1])),t.objectIds?.length&&(r.objectIds=r.objectIds.join(","));const n=(0,de.Dl)(e),o=(0,de.lF)({...n.query,f:"json",...r}),a=(0,de.jV)(o,i),{data:l}=await(0,y.A)(`${n.path}/find`,a);return ve.fromJSON(l)}(s(this.parsedUrl),e,this._getRequestOptions(t))}async getImageUrl(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsGetImageUrl)throw new o.A("imagery-layer:get-image-url","getImageUrl operation is not supported on the input image service");return async function(e,t,i){const r=(t=(0,R.PZ)(ht,t)).toJSON(),s=(0,de.Dl)(e),n=(0,de.lF)({...s.query,f:"json",...r}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(`${s.path}/getImageUrl`,o);return yt.fromJSON(a)}(s(this.parsedUrl),e,this._getRequestOptions(t))}createQuery(){return new Et.A({outFields:["*"],returnGeometry:!0,where:this.definitionExpression||"1=1"})}async queryBoundary(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryBoundary)throw new o.A("imagery-layer:query-boundary","queryBoundary operation is not supported on the input image service");return e=e??{outSpatialReference:this.spatialReference},async function(e,t,i){t=(0,R.PZ)(_e,t);const r=(0,de.Dl)(e),s=t.toJSON();t.outSpatialReference&&(s.outSR=Zt(t.outSpatialReference));const n=(0,de.lF)({...r.query,f:"json",...s}),o=(0,de.jV)(n,i),{data:a}=await(0,y.A)(r.path+"/queryBoundary",o);return Ve.fromJSON(a)}(s(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasters(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,qt.s)(this.url,e,t)}async queryObjectIds(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,Vt.V)(this.url,e,t)}async queryGPSInfo(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQueryGPSInfo)throw new o.A("imagery-layer:query-gps-info","queryGPSInfo operation is not supported on the input image service");return e=e??{where:"1=1"},async function(e,t,i){const r=(t=(0,R.PZ)(ze,t)).toJSON();Mt(r),r.objectIds?.length&&(r.objectIds=r.objectIds.join(",")),r.geometry||r.objectIds||r.time||r.where||(r.where="1=1");const s=await(0,me.el)(t.geometry),n=s?.[0];null!=n&&(r.geometry=Nt(n));const o=n?.spatialReference??t.geometry?.spatialReference;o&&(r.inSR=Zt(o));const a=(0,de.Dl)(e),l=(0,de.lF)({...a.query,f:"json",...r}),u=(0,de.jV)(l,i),{data:p}=await(0,y.A)(`${a.path}/queryGPSInfo`,u);return He.fromJSON(p)}(s(this.parsedUrl),e,this._getRequestOptions(t))}async queryRasterCount(e,t){return({query:e,requestOptions:t}=await this._prepareForQuery(e,t)),(0,_t.I)(this.url,e,t)}async queryVisibleRasters(e,t){if(!e)throw new o.A("imagery-layer: query-visible-rasters","missing query parameter");await this.load();const{pixelSize:i,returnDomainValues:r,returnTopmostRaster:s,showNoDataRecords:n}=t||{pixelSize:null,returnDomainValues:!1,returnTopmostRaster:!1,showNoDataRecords:!1};let a=!1,l=null,u=null;const p=ie.F_.servicePixelValue.toLowerCase(),c=this._rasterFunctionNamesIndex;if(null!=e.outFields&&(a=e.outFields.some(e=>!e.toLowerCase().startsWith(p)),this.version>=10.4)){const t=e.outFields.filter(e=>e.toLowerCase().startsWith(p)&&e.length>p.length).map(e=>{const t=e.slice(p.length+1);return[this._updateRenderingRulesFunctionName(t,c),t]});l=t.map(e=>new D.A({functionName:e[0]})),u=t.map(e=>e[1]);const{rasterFunction:i}=this;0===l.length?i?.functionName?(l.push(i),u.push(i.functionName)):l=null:i?.functionName&&!l.some(e=>e.functionName===i.functionName)&&(l.push(i),u.push(i.functionName))}const m=null==e.outSpatialReference||e.outSpatialReference.equals(this.spatialReference),{multidimensionalSubset:d}=this;let h=e.timeExtent||this.timeExtent;if(d){const{isOutside:t,intersection:i}=(0,se.Rp)(d,{geometry:e.geometry,timeExtent:e.timeExtent,multidimensionalDefinition:this.exportImageServiceParameters.mosaicRule?.multidimensionalDefinition});if(t)throw new o.A("imagery-layer:query-visible-rasters","the request cannot be fulfilled when falling outside of the multidimensional subset");null!=i?.timeExtent&&(h=i.timeExtent)}const y=this._combineMosaicRuleWithTimeExtent(this.exportImageServiceParameters.mosaicRule,h);let g=e.geometry;this.version<10.91&&"extent"===g?.type&&(g=S.A.fromExtent(g));const f=this._getQueryParams({geometry:g,timeExtent:h,mosaicRule:y,rasterFunction:this.version<10.4?this.rasterFunction:null,rasterFunctions:l,pixelSize:i,returnCatalogItems:a,returnGeometry:m,raster:this.raster,maxItemCount:s?1:null});delete f.f;const w=new tt(f);try{await this._generateRasterInfo(this.rasterFunction);const i=await At(this.url,w,{signal:t?.signal,query:{...this.customParameters}}),s=e.outFields,o=null!=i.value&&i.value.toLowerCase().includes("nodata"),l=a&&!m&&i?.catalogItems?.features.length&&(n||!o),p=this.multidimensionalInfo&&"raster-dataset"===this.sourceType?(0,se.XU)({rasterInfo:this.rasterInfo,multidimensionalDefinition:y?.multidimensionalDefinition,timeExtent:h,multidimensionalSubset:this.multidimensionalSubset}):null;if(!l)return this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p});const c=this.objectIdField||"ObjectId",d=i.catalogItems?.features??[],g=d.map(e=>e.attributes?.[c]),f=new Et.A({objectIds:g,returnGeometry:!0,outSpatialReference:e.outSpatialReference,outFields:[c]}),v=await this.queryRasters(f);return v?.features?.length&&v.features.forEach(t=>{d.forEach(i=>{i.attributes[c]===t.attributes[c]&&t.geometry&&(i.geometry=t.geometry.clone(),null!=e.outSpatialReference&&(i.geometry.spatialReference=e.outSpatialReference))})}),this._processVisibleRastersResponse(i,{returnDomainValues:r,templateRRFunctionNames:u,showNoDataRecords:n,templateFields:s,effectiveMultidimensionalDefinition:p})}catch{throw new o.A("imagery-layer:query-visible-rasters","encountered error when querying visible rasters")}}async fetchVariableStatisticsHistograms(e,t){const i=(0,y.A)(s(this.parsedUrl)+"/statistics",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.statistics),r=(0,y.A)(s(this.parsedUrl)+"/histograms",{query:this._getQueryParams({variable:e}),signal:t}).then(e=>e.data?.histograms),n=await Promise.all([i,r]);return n[0]&&n[0].forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),{statistics:n[0]||null,histograms:n[1]||null}}getMultidimensionalSubsetVariables(e){const t=e??this.serviceRasterInfo.multidimensionalInfo;return(0,se.z2)(this.multidimensionalSubset,t)}async _fetchService(e){await this._fetchServiceInfo(e),this.rasterInfo||(this.rasterInfo=this.serviceRasterInfo);const t=this.sourceJSON,i=null!=this.serviceRasterInfo?Promise.resolve(this.serviceRasterInfo):(0,jt.Tw)(s(this.parsedUrl),t,{signal:e,query:this._getQueryParams()}).then(e=>(this._set("serviceRasterInfo",e),this._set("multidimensionalInfo",e.multidimensionalInfo),(0,jt.E9)(e,t),e)),r=this._hasRasterFunction(this.rasterFunction)?this._generateRasterInfo(this.rasterFunction,{signal:e}):null,n=this._getRasterFunctionInfos();return Promise.all([i,r,n]).then(e=>{e[1]?this._set("rasterInfo",e[1]):this._set("rasterInfo",e[0]),e[2]&&this._set("rasterFunctionInfos",e[2]),this.internalRenderer&&!this._isSupportedRenderer(this.internalRenderer)&&(this._set("internalRenderer",null),a.A.getLogger(this).warn("ArcGISImageService","Switching to the default renderer. Renderer applied is not valid for this Imagery Layer")),this._set("internalRenderer",this._configRenderer(this.renderer)),this.addHandles([(0,w.wB)(()=>this.rasterFunction,e=>{(this.renderer||this.symbolizer||this.popupEnabled&&this.popupTemplate)&&this._generateRasterInfo(e).then(e=>{e&&(this.rasterInfo=e)})})]);const{serviceRasterInfo:t}=this;null!=t.multidimensionalInfo&&this._updateMultidimensionalDefinition(t)})}_combineMosaicRuleWithTimeExtent(e,t){const i=this.timeInfo,{multidimensionalInfo:r}=this.serviceRasterInfo;if(null==e||null==r||null==t||null==i?.startField)return e;const{startField:s}=i,n=r.variables.some(e=>e.dimensions.some(e=>e.name===s))?s:"StdTime";if(e=e.clone(),"mosaic-dataset"===this.sourceType)return e.multidimensionalDefinition=e.multidimensionalDefinition?.filter(e=>e.dimensionName!==n),this._cleanupMultidimensionalDefinition(e);e.multidimensionalDefinition=e.multidimensionalDefinition||[];const o=e.multidimensionalDefinition.filter(e=>e.dimensionName===n),a=null!=t.start?t.start.getTime():null,l=null!=t.end?t.end.getTime():null,u=null==a||null==l||a===l,p=u?[a||l]:[[a,l]],c=this.version>=10.8;if(o.length)o.forEach(e=>{e.dimensionName===n&&(c?(e.dimensionName=null,e.isSlice=!1,e.values=[]):(e.isSlice=u,e.values=p))});else if(!c){const t=e.multidimensionalDefinition.filter(e=>null!=e.variableName&&null==e.dimensionName);t.length?t.forEach(e=>{e.dimensionName=n,e.isSlice=u,e.values=p}):e.multidimensionalDefinition.push(new x.A({variableName:"",dimensionName:n,isSlice:u,values:p}))}return this._cleanupMultidimensionalDefinition(e)}_cleanupMultidimensionalDefinition(e){return null==e?null:(e.multidimensionalDefinition&&(e.multidimensionalDefinition=e.multidimensionalDefinition.filter(e=>!(!e.variableName&&!e.dimensionName)),0===e.multidimensionalDefinition.length&&(e.multidimensionalDefinition=null)),"mosaic-dataset"!==this.sourceType&&null==e.multidimensionalDefinition?null:e)}async _prepareForQuery(e,t){if(!(await this._fetchCapabilities(t?.signal)).operations.supportsQuery)throw new o.A("imagery-layer:query-rasters","query operation is not supported on the input image service");return e=null!=e?(0,R.PZ)(Et.A,e):this.createQuery(),t=this._getRequestOptions(t),this.raster&&(t.query={...t.query,raster:this.raster}),{query:e,requestOptions:t}}_isSupportedRenderer(e){const{rasterInfo:t,rasterFunction:i}=this;return"unique-value"===e.type&&this._hasRasterFunction(i)&&1===t?.bandCount&&["u8","s8"].includes(t.pixelType)||null!=t&&null!=e&&(0,le.fp)(t).includes(e.type)}async _fetchCapabilities(e){return this.capabilities||await this._fetchServiceInfo(e),this.capabilities}async _fetchServiceInfo(e){let t=this.sourceJSON;if(!t){const{data:i,ssl:r}=await(0,y.A)(s(this.parsedUrl),{query:this._getQueryParams(),signal:e});t=i,this.sourceJSON=t,r&&(this.url=this.url.replace(/^http:/i,"https:"))}if(t.capabilities?.toLowerCase().split(",").map(e=>e.trim()).indexOf("tilesonly")>-1)throw new o.A("imagery-layer:fetch-service-info","use ImageryTileLayer to open tiles-only image services");this.read(t,{origin:"service",url:this.parsedUrl})}_isMosaicDataset(e){return e.serviceSourceType?"esriImageServiceSourceTypeMosaicDataset"===e.serviceSourceType:e.fields?.length>0}_isMosaicRuleSupported(e){if(!e)return!1;const t=this._isMosaicDataset(e),i=e.currentVersion>=10.71&&e.hasMultidimensions&&!(e.fields?.length>1);return t||i}_isVectorFieldResampleFunction(e){if(null==e)return!1;const{functionName:t,functionArguments:i}=e,r="resample"===t?.toLowerCase(),s=i?.ResampleType||i?.resampleType;return r&&(7===s||10===s)}_isPicture(){return!this.format||this.format.includes("jpg")||this.format.includes("png")}_configRenderer(e){const t=this._isPicture(),{rasterInfo:i}=this;if(!t&&!this.pixelFilter||this._isVectorDataSet()){const t=this.mosaicRule?.multidimensionalDefinition?.[0].variableName,r=(0,le.I8)({variableName:t,rasterFunctionName:this.rasterFunction?.functionName,presetRenderers:this.presetRenderers});if(!this.bandIds&&i.bandCount>=3){const e=r?.bandIds??(0,le.ci)(i);!e||3===i.bandCount&&0===e[0]&&1===e[1]&&2===e[2]||(this.bandIds=e)}e||(e=r?.renderer??(0,le.PD)(i,{bandIds:this.bandIds,variableName:this.rasterFunction?null:t}));const s=(0,le.$P)(e.toJSON());this.symbolizer?(this.symbolizer.rendererJSON=s,this.symbolizer.rasterInfo=i):this.symbolizer=new ue.A({rendererJSON:s,rasterInfo:i}),this.symbolizer.bind().success||(this.symbolizer=null)}return e}_clonePixelData(e){return null==e?e:{extent:e.extent&&e.extent.clone(),pixelBlock:null!=e.pixelBlock?e.pixelBlock.clone():null}}_getQueryParams(e){null!=e?.renderingRule&&"string"!=typeof e.renderingRule&&(e.renderingRule=this._getRenderingRuleString(e.renderingRule));const{raster:t,viewId:i}=this;return{raster:t,viewId:i,f:"json",...e,...this.customParameters}}_getRequestOptions(e){return{...e,query:{...e?.query,...this.customParameters}}}_decodePixelBlock(e,t,i){return this._rasterJobHandler?this._rasterJobHandler.decode({data:e,options:t}):(0,ne.D)(e,t,i)}async _getRasterFunctionInfos(e){const t=this.sourceJSON.rasterFunctionInfos;if(this.loaded)return t;if(t&&this.version>=10.3){if(1===t.length&&"none"===t[0].name.toLowerCase())return t;const i=await(0,y.A)(s(this.parsedUrl)+"/rasterFunctionInfos",{query:this._getQueryParams(),signal:e});return i.data?.rasterFunctionInfos}return null}_canRequestImageElement(e){return!this.pixelFilter&&(!e||e.includes("png"))}async _requestArrayBuffer(e){const{imageProps:t,requestAsImageElement:i,returnImageBitmap:r,signal:n}=e;if(i&&this._canRequestImageElement(t.format)){const i=`${s(this.parsedUrl)}/exportImage`,{data:o}=await(0,y.A)(i,{responseType:r?"blob":"image",query:this._getQueryParams({f:"image",...this.refreshParameters,...e.imageServiceParameters}),signal:n});return o instanceof Blob?{imageBitmap:await(0,Y.m)(o,i,n),params:t}:{imageOrCanvasElement:o,params:t}}const a=this._initJobHandler(),l=(0,y.A)(s(this.parsedUrl)+"/exportImage",{responseType:"array-buffer",query:this._getQueryParams({f:"image",...e.imageServiceParameters}),signal:n}),u=(await Promise.all([l,a]))[0].data,p=t.format||"jpgpng";let c=p;if("bsq"!==c&&"bip"!==c&&(c=(0,ne.g)(u)),!c)throw new o.A("imagery-layer:fetch-image","unsupported format signature "+String.fromCharCode.apply(null,new Uint8Array(u)));const m={signal:n},d="gif"===p||"bmp"===p||p.includes("png")&&("png"===c||"jpg"===c)?(0,ne.D)(u,{useCanvas:!0,...t},m):this._decodePixelBlock(u,{width:t.width,height:t.height,planes:null,pixelType:null,noDataValue:null,format:p},m);return{pixelData:{pixelBlock:await d,extent:t.extent},params:t}}_generateRasterInfo(e,t){return this.generateRasterInfo(e,t).catch(()=>null)}_isValidCustomizedMosaicRule(e){return e&&JSON.stringify(e.toJSON())!==JSON.stringify(this.defaultMosaicRule?.toJSON())}_updateMultidimensionalDefinition(e){if(this._isValidCustomizedMosaicRule(this.mosaicRule))return;let t=(0,se.fy)(e,{multidimensionalSubset:this.multidimensionalSubset});if(null!=t&&t.length>0){this.mosaicRule=this.mosaicRule||new k.A;const e=this.mosaicRule.multidimensionalDefinition;!this.sourceJSON.defaultVariableName&&this.rasterFunction&&"none"!==this.rasterFunction.functionName?.toLowerCase()&&t.forEach(e=>e.variableName=""),t=t.filter(({variableName:e,dimensionName:t})=>e&&"*"!==e||t),!e?.length&&t.length&&(this.mosaicRule.multidimensionalDefinition=t)}}_processVisibleRastersResponse(e,t){t=t||{};const i=e.value,{templateRRFunctionNames:r,showNoDataRecords:s,returnDomainValues:n,templateFields:o}=t,a=e.processedValues;let l=e.catalogItems?.features,u=e.properties?.Values?.map(e=>e.replaceAll(/ /gi,", "))||[];const p=this.objectIdField||"ObjectId",c="string"==typeof i&&i.toLowerCase().includes("nodata"),m=[];if(i&&!l&&(!c||s)){const e={};e[p]=0,u=[i],l=[new h.A({geometry:this.fullExtent,attributes:e})],this.multidimensionalInfo&&"raster-dataset"===this.sourceType&&(0,ie.eS)(this.rasterFields,e,t.effectiveMultidimensionalDefinition)}if(!l)return[];this._updateResponseFieldNames(l,o),c&&!s&&(l=[]);const{itemPixelValue:d,servicePixelValue:y}=ie.F_,g=this.rasterFields.some(e=>e.name===d);for(let e=0;e<l.length;e++){const t=l[e];if(null!=i){const n=u[e],o=this.rasterFunction&&a&&a.length>0&&r&&r.length>0&&r.includes(this.rasterFunction.functionName)?a[r.indexOf(this.rasterFunction.functionName)]:i;if("nodata"===n.toLowerCase()&&!s)continue;g&&(t.attributes[d]=n),t.attributes[y]=o,this._updateFeatureWithMagDirValues(t,n);const l=this.fields&&this.fields.length>0;let p=this.rasterFunction&&null!=this.serviceRasterInfo.attributeTable?l?n:i:o;this.rasterFunction||(p=l?n:i),this._updateFeatureWithRasterAttributeTableValues(t,p)}if(t.sourceLayer=t.layer=this,n&&this._updateFeatureWithDomainValues(t),r&&a&&r.length===a.length)for(let e=0;e<r.length;e++){const i=`${ie.F_.servicePixelValue}.${r[e]}`;t.attributes[i]=a[e]}m.push(l[e])}return m}_processMultidimensionalIntersection(e,t,i){const{multidimensionalSubset:r}=this;if(!r)return{isOutSide:!1,timeExtent:t,mosaicRule:i=this._combineMosaicRuleWithTimeExtent(i,t)};if(r){const{isOutside:i,intersection:s}=(0,se.Rp)(r,{geometry:e,timeExtent:t});if(i)return{isOutSide:!0,timeExtent:null,mosaicRule:null};null!=s?.timeExtent&&(t=s.timeExtent)}if(i=this._combineMosaicRuleWithTimeExtent(i,t),i?.multidimensionalDefinition){const{isOutside:e}=(0,se.Rp)(r,{multidimensionalDefinition:i.multidimensionalDefinition});if(e)return{isOutSide:!0,timeExtent:null,mosaicRule:null}}return{isOutSide:!1,timeExtent:t,mosaicRule:i}}_updateFeatureWithRasterAttributeTableValues(e,t){const i=this.rasterInfo.attributeTable||this.serviceRasterInfo.attributeTable;if(null==i)return;const{features:r,fields:s}=i,n=s.map(e=>e.name).find(e=>"value"===e.toLowerCase());if(!n)return;const o=r.filter(e=>e.attributes[n]===(null!=t?parseInt(t,10):null));o&&o[0]&&s.forEach(t=>{const i=ie.ER+t.name;e.attributes[i]=o[0].attributes[t.name]})}_updateFeatureWithMagDirValues(e,t){if(!this._isVectorDataSet())return;const i=t.split(/,\s*/).map(e=>parseFloat(e)),r=i.map(e=>[e]),s=i.map(e=>({minValue:e,maxValue:e,noDataValue:null})),n=new te.A({height:1,width:1,pixelType:"f32",pixels:r,statistics:s});null!=this.pixelFilter&&this.pixelFilter({pixelBlock:n,extent:new b.A(0,0,0,0,this.spatialReference)});const o="esriImageServiceDataTypeVector-MagDir"===this.serviceDataType?[n.pixels[0][0],n.pixels[1][0]]:(0,ae.Lu)([n.pixels[0][0],n.pixels[1][0]]);e.attributes[ie.F_.magnitude]=o[0],e.attributes[ie.F_.direction]=o[1]}_updateFeatureWithDomainValues(e){const t=this.fields&&this.fields.filter(e=>e.domain&&"coded-value"===e.domain.type);null!=t&&t.forEach(t=>{const i=e.attributes[t.name];if(null!=i){const r=t.domain.codedValues.find(e=>e.code===i);r&&(e.attributes[t.name]=r.name)}})}_updateResponseFieldNames(e,t){if(!t||t.length<1)return;const i=this.fieldsIndex;null!=i&&e.forEach(e=>{if(e?.attributes)for(const r of t){const t=i.get(r)?.name;t&&t!==r&&(e.attributes[r]=e.attributes[t],delete e.attributes[t])}})}_getRenderingRuleString(e){if(e){let t=e.toJSON();return t=t.rasterFunctionDefinition??t,(t.thumbnail||t.thumbnailEx)&&(t.thumbnail=t.thumbnailEx=null),JSON.stringify(t)}return null}_hasRasterFunction(e){return null!=e?.functionName&&"none"!==e.functionName.toLowerCase()}_updateRenderingRulesFunctionName(e,t){if(!e||e.length<1)return;if("Raw"===e)return e.replace("Raw","None");const i=e.toLowerCase().replaceAll(/ /gi,"_");return t.has(i)?t.get(i):e}_isRFTJson(e){return e?.name&&e.arguments&&e.function&&e.hasOwnProperty("functionType")}_isVectorDataSet(){return"esriImageServiceDataTypeVector-UV"===this.serviceDataType||"esriImageServiceDataTypeVector-MagDir"===this.serviceDataType}_applyMosaicAndRenderingRules(e){const{raster:t,mosaicRule:i,rasterFunction:r}=this;r&&null==e.rasterFunction&&(e.rasterFunction=r),i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}async _updateCurrentRasterInfo(e){if(this.renderer||this.symbolizer){const t=await this._generateRasterInfo(this.rasterFunction,{signal:e});t&&(this.rasterInfo=t)}}_applyMosaicRule(e){const{raster:t,mosaicRule:i}=this;i&&null==e.mosaicRule&&(e.mosaicRule=i),t&&null==e.raster&&(e.raster=t)}_readCapabilities(e){const t=e.capabilities?e.capabilities.toLowerCase().split(",").map(e=>e.trim()):["image","catalog"],{currentVersion:i,maxRecordCount:r}=e,s=t.includes("image"),n="esriImageServiceDataTypeElevation"===e.serviceDataType,o=!(!e.spatialReference&&!e.extent?.spatialReference),a=t.includes("edit"),l=t.includes("mensuration")&&o,u=null==e.mensurationCapabilities?[]:e.mensurationCapabilities.toLowerCase().split(",").map(e=>e.trim()),p=l&&u.includes("basic"),c=this._isMosaicDataset(e)&&t.includes("catalog"),m=t.includes("download"),d=i>=10.7&&n||i>=11.4&&(n||l&&u.includes("3d")),h=c&&e.fields&&e.fields.length>0,y=h&&e.supportsAdvancedQueries?e.advancedQueryCapabilities:void 0;return{data:{supportsAttachment:!1},operations:{supportsComputeHistograms:s,supportsExportImage:s,supportsIdentify:s,supportsImageToMap:i>=11.2&&c,supportsImageToMapMultiray:i>=11.2&&c,supportsMapToImage:i>=11.2&&c,supportsFindImages:i>=11.2&&c,supportsGetImageUrl:i>=11.3&&m,supportsMeasure:l,supportsMeasureFromImage:i>=11.2,supportsDownload:m,supportsQuery:h,supportsGetSamples:i>=10.2&&s,supportsProject:i>=10.3&&s,supportsComputeStatisticsHistograms:i>=10.4&&s,supportsQueryBoundary:i>=10.6&&s,supportsCalculateVolume:d,supportsComputePixelLocation:i>=10.7&&c,supportsComputeAngles:i>=10.91,supportsQueryGPSInfo:i>=11.2&&c,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsUpdate:a,supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsChangeTracking:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsExceedsLimitStatistics:!1,supportsQueryAnalytics:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:r,maxRecordCountFactor:void 0,maxUniqueIDCount:void 0,supportsStatistics:!!y?.supportsStatistics,supportsOrderBy:!!y?.supportsOrderBy,supportsDistinct:!!y?.supportsDistinct,supportsPagination:!!y?.supportsPagination,supportsPaginationOnAggregatedQueries:!!y?.supportsPaginationOnAggregatedQueries,supportsStandardizedQueriesOnly:!!y?.useStandardizedQueries,supportsPercentileStatistics:!!y?.supportsPercentileStatistics,supportsCentroid:!!y?.supportsReturningGeometryCentroid,supportsCentroidOnDegeneratedQuantizedGeometry:!1,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!!y?.supportsQueryWithDistance,supportsExtent:!!y?.supportsReturningQueryExtent,supportsGeometryProperties:!!y?.supportsReturningGeometryProperties,supportsHavingClause:!!y?.supportsHavingClause,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsMaxRecordCountFactor:!1,supportsSqlExpression:y?.supportsSqlExpression??!!y,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!1,supportsCacheHint:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!!y?.supportsDefaultSR,supportsFullTextSearch:!1,supportsCompactGeometry:!1,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},mensuration:{supportsDistanceAndAngle:p,supportsAreaAndPerimeter:p,supportsPointOrCentroid:p,supportsHeightFromBaseAndTop:l&&u.includes("base-top height"),supportsHeightFromBaseAndTopShadow:l&&u.includes("base-top shadow height"),supportsHeightFromTopAndTopShadow:l&&u.includes("top-top shadow height"),supports3D:l&&u.includes("3d")}}}};function s(e){return e?.path??""}return(0,r.Cg)([(0,p.MZ)({clonable:!1})],i.prototype,"_functionRasterInfos",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"_serviceSupportsMosaicRule",void 0),(0,r.Cg)([(0,C.w)("_serviceSupportsMosaicRule",["currentVersion","fields"])],i.prototype,"readServiceSupportsMosaicRule",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"_rasterFunctionNamesIndex",null),(0,r.Cg)([(0,p.MZ)()],i.prototype,"adjustAspectRatio",void 0),(0,r.Cg)([(0,p.MZ)({type:[R.jz],json:{write:!0}})],i.prototype,"bandIds",void 0),(0,r.Cg)([(0,C.w)("bandIds")],i.prototype,"readBandIds",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,C.w)("service","capabilities",["capabilities","currentVersion","serviceDataType"])],i.prototype,"readCapabilities",null),(0,r.Cg)([(0,p.MZ)({type:Number})],i.prototype,"compressionQuality",void 0),(0,r.Cg)([(0,m.K)("compressionQuality")],i.prototype,"writeCompressionQuality",null),(0,r.Cg)([(0,p.MZ)({type:Number})],i.prototype,"compressionTolerance",void 0),(0,r.Cg)([(0,m.K)("compressionTolerance")],i.prototype,"writeCompressionTolerance",null),(0,r.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0,dependsOn:["_serviceSupportsMosaicRule"]})],i.prototype,"defaultMosaicRule",void 0),(0,r.Cg)([(0,C.w)("defaultMosaicRule",["defaultMosaicMethod"])],i.prototype,"readDefaultMosaicRule",null),(0,r.Cg)([(0,p.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0,constructOnly:!0})],i.prototype,"exportImageServiceParameters",void 0),(0,r.Cg)([(0,p.MZ)()],i.prototype,"rasterInfo",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0,type:[W.A]})],i.prototype,"fields",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"fieldsIndex",null),(0,r.Cg)([(0,p.MZ)({type:["png","png8","png24","png32","jpg","bmp","gif","jpgpng","lerc","tiff","bip","bsq"],json:{write:!0}})],i.prototype,"format",null),(0,r.Cg)([(0,C.w)("service","format",["serviceDataType"])],i.prototype,"readFormat",null),(0,r.Cg)([(0,p.MZ)({type:b.A})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"hasMultidimensions",void 0),(0,r.Cg)([(0,p.MZ)({json:{read:{source:"maxImageHeight"}}})],i.prototype,"imageMaxHeight",void 0),(0,r.Cg)([(0,p.MZ)({json:{read:{source:"maxImageWidth"}}})],i.prototype,"imageMaxWidth",void 0),(0,r.Cg)([(0,p.MZ)({type:String,json:{type:H.SZ.jsonValues,read:H.SZ.read,write:H.SZ.write}})],i.prototype,"interpolation",void 0),(0,r.Cg)([(0,p.MZ)()],i.prototype,"minScale",void 0),(0,r.Cg)([(0,C.w)("service","minScale")],i.prototype,"readMinScale",null),(0,r.Cg)([(0,p.MZ)()],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,C.w)("service","maxScale")],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,p.MZ)({type:k.A})],i.prototype,"mosaicRule",null),(0,r.Cg)([(0,C.w)("mosaicRule",["mosaicRule","defaultMosaicMethod"])],i.prototype,"readMosaicRule",null),(0,r.Cg)([(0,m.K)("mosaicRule")],i.prototype,"writeMosaicRule",null),(0,r.Cg)([(0,p.MZ)()],i.prototype,"multidimensionalInfo",void 0),(0,r.Cg)([(0,p.MZ)({type:ee.A,json:{write:!0}})],i.prototype,"multidimensionalSubset",void 0),(0,r.Cg)([(0,p.MZ)({json:{type:R.jz}})],i.prototype,"noData",void 0),(0,r.Cg)([(0,m.K)("noData")],i.prototype,"writeNoData",null),(0,r.Cg)([(0,p.MZ)({type:String,json:{type:H.hm.jsonValues,read:H.hm.read,write:H.hm.write}})],i.prototype,"noDataInterpretation",void 0),(0,r.Cg)([(0,p.MZ)({type:String,readOnly:!0,json:{read:{source:["fields"]}}})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,C.w)("objectIdField")],i.prototype,"readObjectIdField",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,p.MZ)({})],i.prototype,"typeIdField",void 0),(0,r.Cg)([(0,p.MZ)({})],i.prototype,"types",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,p.MZ)({type:Function})],i.prototype,"pixelFilter",void 0),(0,r.Cg)([(0,p.MZ)()],i.prototype,"raster",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"sourceType",void 0),(0,r.Cg)([(0,C.w)("sourceType",["serviceSourceType","fields"])],i.prototype,"readSourceType",null),(0,r.Cg)([(0,p.MZ)()],i.prototype,"viewId",void 0),(0,r.Cg)([(0,p.MZ)()],i.prototype,"renderer",null),(0,r.Cg)([(0,p.MZ)({types:pe.uy,json:{name:"layerDefinition.drawingInfo.renderer",origins:{"web-scene":{types:pe.Gj,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:e=>({enabled:e&&"vector-field"!==e.type})}}}}})],i.prototype,"internalRenderer",null),(0,r.Cg)([(0,C.w)("internalRenderer")],i.prototype,"readRenderer",null),(0,r.Cg)([(0,m.K)("internalRenderer")],i.prototype,"writeRenderer",null),(0,r.Cg)([(0,p.MZ)({clonable:!1})],i.prototype,"symbolizer",void 0),(0,r.Cg)([(0,p.MZ)(M.ke)],i.prototype,"opacity",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"rasterFields",null),(0,r.Cg)([(0,p.MZ)({constructOnly:!0})],i.prototype,"rasterFunctionInfos",void 0),(0,r.Cg)([(0,p.MZ)({type:D.A,json:{name:"renderingRule"}})],i.prototype,"rasterFunction",null),(0,r.Cg)([(0,C.w)("rasterFunction",["renderingRule","rasterFunctionInfos"])],i.prototype,"readRasterFunction",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"serviceDataType",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0,type:I.A})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,C.w)("spatialReference",["spatialReference","extent"])],i.prototype,"readSpatialReference",null),(0,r.Cg)([(0,p.MZ)({type:H.e8.apiValues,json:{read:H.e8.read,type:H.e8.jsonValues}})],i.prototype,"pixelType",void 0),(0,r.Cg)([(0,m.K)("pixelType")],i.prototype,"writePixelType",null),(0,r.Cg)([(0,p.MZ)({constructOnly:!0,type:re.A})],i.prototype,"serviceRasterInfo",void 0),(0,r.Cg)([(0,p.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,p.MZ)(M.OZ)],i.prototype,"url",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],i.prototype,"version",void 0),(0,r.Cg)([(0,C.w)("version",["currentVersion","fields","timeInfo"])],i.prototype,"readVersion",null),i=(0,r.Cg)([(0,c.$)("esri.layers.mixins.ArcGISImageService")],i),i};var $t=i(18768),zt=i(63074),Bt=i(69208),Ut=i(16131),Qt=i(8303),kt=i(63660),Ht=i(56551),Kt=i(54310),Wt=i(25036),Xt=i(82935),Yt=i(91908),ei=i(24212),ti=i(30291),ii=i(88625);let ri=class extends((0,zt.dM)((0,Xt.e)((0,Wt.j)((0,Ut.q)((0,Qt.A)((0,Ht.H)(Lt((0,kt.G)((0,Kt.J)((0,Bt.d)((0,$t.b)((0,l.P)((0,n.O)(d.A)))))))))))))){constructor(...e){super(...e),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=(0,u.sg)(async(e,t,r)=>{const{save:s,saveAs:n}=await i.e(9838).then(i.bind(i,59838));switch(e){case 0:return s(this,t);case 1:return n(this,r,t)}})}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:["Image Service"]},e).catch(u.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,t,i){const r="vector-field"===this.renderer?.type;t[i]=r?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:t}=this,i=new Set,r=ie.F_.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,n=ie.Oo.toLowerCase(),o=`${ie.F_.servicePixelValue.toLowerCase()}.`;for(const e of t){const t=e.name.toLowerCase();t===r||t.startsWith(o)||s&&t.startsWith(n)||i.add(e.name)}const a=(0,ti.tn)({fields:t,title:this.title},{...e,visibleFieldNames:i}),{rasterInfo:l}=this;return a?.fieldInfos&&l&&(0,ie.h4)(a.fieldInfos,l),a}queryFeatures(e,t){return this.queryRasters(e,t).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e})}queryFeatureCount(e,t){return this.queryRasterCount(e,t)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,Yt.D)(this,e)}write(e,t){if(!this._isPreviewLayer)return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new o.A("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}_validateElevationInfo(){const e=this.elevationInfo;(0,ei.XF)(a.A.getLogger(this),(0,ei.$7)("Imagery layers","relative-to-scene",e)),(0,ei.XF)(a.A.getLogger(this),(0,ei.tW)("Imagery layers",e))}};(0,r.Cg)([(0,p.MZ)({type:ii.A,value:null,json:{name:"layerDefinition.elevationInfo",write:!0,origins:{"portal-item":{read:!1,write:!1},"web-map":{read:!1,write:!1}}}})],ri.prototype,"elevationInfo",null),(0,r.Cg)([(0,p.MZ)(M.fV)],ri.prototype,"legendEnabled",null),(0,r.Cg)([(0,p.MZ)({type:["show","hide"]})],ri.prototype,"listMode",null),(0,r.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ri.prototype,"isReference",void 0),(0,r.Cg)([(0,p.MZ)({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],ri.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,m.K)("web-map","operationalLayerType")],ri.prototype,"writeOperationalLayerType",null),(0,r.Cg)([(0,p.MZ)(M.M6)],ri.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:s.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],ri.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],ri.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],ri.prototype,"type",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],ri.prototype,"_isPreviewLayer",null),ri=(0,r.Cg)([(0,c.$)("esri.layers.ImageryLayer")],ri);const si=ri},58501:(e,t,i)=>{i.d(t,{q:()=>s});var r=i(62815);function s(e,t,i){if(!i?.features||!i.hasZ)return;const s=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(null!=s)for(const e of i.features)s(e.geometry)}},58512:(e,t,i)=>{i.d(t,{A:()=>r});class r{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},69397:(e,t,i)=>{i.d(t,{$B:()=>s,Qf:()=>u,Qh:()=>a,RS:()=>n,ez:()=>m,lM:()=>o,qK:()=>c});var r=i(34275);function s(e){return 32+e.length}const n=16;function o(e){if(!e)return 0;let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=l(e[i],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return p(e,8);let i=m;for(let r=0;r<t;r++)i+=l(e[r]);return i}(e);let t=c;for(const i in e)e.hasOwnProperty(i)&&(t+=l(e[i]));return t}function l(e,t=!0){switch(typeof e){case"object":return t?a(e):c;case"string":return s(e);case"number":return n;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,r.iu)(t)?t.byteLength+d:Array.isArray(t)?p(t,n):0:0),0)}function p(e,t){return m+e.length*t}const c=32,m=16,d=145},82371:(e,t,i)=>{i.d(t,{E9:()=>h,Tw:()=>m,X6:()=>d});var r=i(78888),s=i(5443),n=i(86738),o=i(16930),a=i(87186),l=i(20223),u=i(2272),p=i(22671);async function c(e,t,i){const c=(0,u.Dl)(e),{rasterFunction:m,sourceJSON:d}=t||{},h=m?JSON.stringify(m.rasterFunctionDefinition||m):null,y=(0,u.lF)({...c.query,renderingRule:h,f:"json"}),g=(0,u.jV)(y,i);e=c.path;const f=d||await(0,r.A)(e,g).then(e=>e.data),w=f.hasRasterAttributeTable?(0,r.A)(`${e}/rasterAttributeTable`,g):null,v=f.hasColormap?(0,r.A)(`${e}/colormap`,g):null,R=f.hasHistograms?(0,r.A)(`${e}/histograms`,g):null,C=f.currentVersion>=10.3?(0,r.A)(`${e}/keyProperties`,g):null,b=f.hasMultidimensions?(0,r.A)(`${e}/multidimensionalInfo`,g):null,S=await Promise.allSettled([w,v,R,C,b]);let I=null;if(f.minValues&&f.minValues.length===f.bandCount){I=[];for(let e=0;e<f.minValues.length;e++)I.push({min:f.minValues[e],max:f.maxValues[e],avg:f.meanValues[e],stddev:f.stdvValues[e]})}const F=s.A.fromJSON(f.extent),M=Math.ceil(F.width/f.pixelSizeX-.1),x=Math.ceil(F.height/f.pixelSizeY-.1),A=o.A.fromJSON(f.spatialReference||f.extent.spatialReference),D="fulfilled"===S[0].status?S[0].value?.data:null,T=D?.features?.length?p.A.fromJSON(D):null,N="fulfilled"===S[1].status?S[1].value?.data.colormap:null,P=N?.length?N:null,Z="fulfilled"===S[2].status?S[2].value?.data.histograms:null,j=Z?.[0]?.counts?.length?Z:null,O="fulfilled"===S[3].status?S[3].value?.data??{}:{},_="fulfilled"===S[4].status?S[4].value?.data.multidimensionalInfo:null,V=_?.variables?.length?_:null;V&&V.variables.forEach(e=>{e.statistics?.length&&e.statistics.forEach(e=>{e.avg=e.mean,e.stddev=e.standardDeviation}),e.dimensions?.forEach(e=>{"StdTime"!==e.name||e.recurring||e.unit||(e.unit="ISO8601")})});const{defaultVariable:q,serviceDataType:E}=f;q&&q!==O.DefaultVariable&&(O.DefaultVariable=q),E?.includes("esriImageServiceDataTypeVector")&&!E.includes(O.DataType)&&(O.DataType=E.replace("esriImageServiceDataType",""));let J=f.noDataValue;f.noDataValues?.length&&f.noDataValues.some(e=>e!==J)&&(J=f.noDataValues);const G=f.transposeInfo?new l.A({blockWidth:256,blockHeight:256,pyramidBlockWidth:256,pyramidBlockHeight:256,pyramidScalingFactor:2,compression:"lerc",origin:new n.A({x:f.extent.xmin,y:f.extent.ymax,spatialReference:A}),firstPyramidLevel:1,maximumPyramidLevel:Math.max(0,Math.round(Math.log(Math.max(M,x))/Math.LN2-8)),transposeInfo:f.transposeInfo}):void 0;return new a.A({width:M,height:x,bandCount:f.bandCount,extent:s.A.fromJSON(f.extent),spatialReference:A,pixelSize:new n.A({x:f.pixelSizeX,y:f.pixelSizeY,spatialReference:A}),pixelType:f.pixelType.toLowerCase(),statistics:I,attributeTable:T,colormap:P,histograms:j,keyProperties:O,noDataValue:J,multidimensionalInfo:V,storageInfo:G})}function m(e,t,i){return c(e,{sourceJSON:t},i)}function d(e,t,i){return c(e,{rasterFunction:t},i)}function h(e,t){e.attributeTable||(t.hasRasterAttributeTable=!1),e.histograms||(t.hasHistograms=!1),e.colormap||(t.hasColormap=!1),e.multidimensionalInfo||(t.hasMultidimensions=!1)}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const s=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}s.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},92722:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(69397);class s{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new s(e.lengths,e.coords)}static fromRect(e){const[t,i,r,n]=e,o=r-t,a=n-i;return new s([5],[t,i,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce((e,t)=>e+t)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}area(){let e=0,t=0;if(!this.lengths.length)return 0;for(let i=0;i<this.lengths.length;i++){const r=this.lengths[i];if(r<3)continue;let s=this.coords[2*t],n=this.coords[2*t+1];for(let i=1;i<r;i+=1){const r=this.coords[2*(i+t)],o=this.coords[2*(i+t)+1];e+=-.5*(r-s)*(o+n),s=r,n=o}t+=r}return e}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let i=0;i<this.lengths.length;i++){const r=this.lengths[i];for(let i=0;i<r;i++)e(this.coords[2*(i+t)],this.coords[2*(i+t)+1]);t+=r}}deltaDecode(){const e=this.clone(),{coords:t,lengths:i}=e;let r=0;for(const e of i){for(let i=1;i<e;i++)t[2*(r+i)]+=t[2*(r+i)-2],t[2*(r+i)+1]+=t[2*(r+i)-1];r+=e}return e}clone(e){if(0===this.lengths.length)return new s([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce((e,t)=>e+t)),i=this.coords.slice(0,t);return e?(e.set(i),new s(this.lengths,e)):new s(Array.from(this.lengths),Array.from(i))}}},95466:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(49186),s=i(53966),n=i(91869),o=i(3330),a=i(12195),l=i(30524),u=i(98623),p=i(56400),c=i(96285);const m=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],f(e))}static fromLayerJSON(e){return new d(e.fields??[],f(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 s=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(r,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.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,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.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?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):g.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$?c.mQ.utcInstance:(0,n.tE)(m,t,()=>c.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.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,a.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,l.rS)(e)?.toLowerCase()??""}const g=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:s}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,p.ZS)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??a:s.dateFieldsTimeReference?(0,p.ZS)(s.dateFieldsTimeReference):a??u.n$:null,c=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.timeReference?(0,p.ZS)(r.timeReference):a:null,m=new Map([[h(s?.creationDateField??""),l],[h(s?.editDateField??""),l],[h(n),c],[h(o),c]]);for(const{name:r,type:s}of e.fields)if(g.has(s))t.set(r,u.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(r,null);else if(i)t.set(r,u.L5);else{const e=m.get(h(r??""))??a;t.set(r,e)}return t}}}]);
|