@arcgis/core 4.28.2 → 4.28.3
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02e86a792dbe2fdec974.js +1 -0
- package/assets/esri/core/workers/chunks/{5386b166f2e5dc0d9143.js → 12797aa1d6a2b49abb3f.js} +1 -1
- package/assets/esri/core/workers/chunks/15852a47129b9e0d04c6.js +1 -0
- package/assets/esri/core/workers/chunks/1687431f7b233d950195.js +1 -0
- package/assets/esri/core/workers/chunks/{a1e16c33f1843dbdce26.js → 175bbe8a048f17dd482b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0119dff8771e749436a.js → 30d3b31df52d40e5b2e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{768271a12dc7e1781447.js → 32fbd4355a4a649623a7.js} +1 -1
- package/assets/esri/core/workers/chunks/3dbc399eedd347b0fbbb.js +1 -0
- package/assets/esri/core/workers/chunks/{6bc1f6f8a2408fa4bb6a.js → 423672fe765083e1a0ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{18e0c5bfeb1aa7213dfa.js → 4363f2cc3909c9258064.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5fec54e98c8622349a4.js → 46ddc52fe9cdd573a614.js} +1 -1
- package/assets/esri/core/workers/chunks/4747741429e8ff7112bb.js +1 -0
- package/assets/esri/core/workers/chunks/49d958631bcd93f6333a.js +1 -0
- package/assets/esri/core/workers/chunks/4ae8308e5b9c7772a11f.js +1 -0
- package/assets/esri/core/workers/chunks/{da124ccd18d2745195fe.js → 4bd342f13002888b6467.js} +1 -1
- package/assets/esri/core/workers/chunks/{7756ed853b4ba54cd081.js → 5247c00088303da7ef3b.js} +1 -1
- package/assets/esri/core/workers/chunks/534726130ef1698ec89e.js +1 -0
- package/assets/esri/core/workers/chunks/551bc697e3e17983c2bc.js +1 -0
- package/assets/esri/core/workers/chunks/{65d8135c89ffdd17a3c1.js → 59d3f4c0d1a43180aff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d92df1e3ba4f05e0510.js → 633b34a5817f1f719e22.js} +1 -1
- package/assets/esri/core/workers/chunks/{c7bd63103f101c09b1ea.js → 6996537249869c41e736.js} +1 -1
- package/assets/esri/core/workers/chunks/{41778f8c49febe1f9404.js → 6fa0cccd4f3e1fa71421.js} +1 -1
- package/assets/esri/core/workers/chunks/{78e49a70193e5adea17c.js → 77f557359a5033d7e429.js} +1 -1
- package/assets/esri/core/workers/chunks/{6334a8a7b671d4042108.js → 7beae29abdfae23b15cc.js} +1 -1
- package/assets/esri/core/workers/chunks/7cc56b132c46c5922dac.js +1 -0
- package/assets/esri/core/workers/chunks/80831e90fe1a52f8f982.js +1 -0
- package/assets/esri/core/workers/chunks/{ea9ae9d2aef01af90896.js → 80d9bb9f247ecdfa266f.js} +1 -1
- package/assets/esri/core/workers/chunks/846e5e51dc278bc3f80f.js +1 -0
- package/assets/esri/core/workers/chunks/{f73563b23fd8dc6cf2fe.js → 86df7357a2bac73c0ef4.js} +1 -1
- package/assets/esri/core/workers/chunks/8b541cbf82a5ba0317ee.js +1 -0
- package/assets/esri/core/workers/chunks/{08a98e85e86ce560d005.js → 8bd621693692050d76aa.js} +1 -1
- package/assets/esri/core/workers/chunks/{630b31a205d9db7147d0.js → 8cdece03397d01767593.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9a726f3bbad6fd4d65a.js → 8e91be2e38010391e351.js} +1 -1
- package/assets/esri/core/workers/chunks/{cbddfcf57f72428a6992.js → 90f96a2ddfb25d851d4d.js} +1 -1
- package/assets/esri/core/workers/chunks/91a3181071874525ed44.js +1 -0
- package/assets/esri/core/workers/chunks/{2304b7456ced997904f6.js → 97fd7b82eec26449977e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7c81a5bbcdd94b8a7f6.js → 9979ff59a144fe1df80b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0422c5160491fbcf01dc.js → 9d97a20f69047d0c47cc.js} +1 -1
- package/assets/esri/core/workers/chunks/9f0e8dd5c9bacfc0f03c.js +1 -0
- package/assets/esri/core/workers/chunks/{a8e4726c1db23324eb54.js → 9fc1206ad378f0829e0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{09e8babe75407c2e64c4.js → a351ab5082772b267895.js} +1 -1
- package/assets/esri/core/workers/chunks/{43575b9acf9819f195f9.js → a3bbf5da4f7830d2a2a1.js} +1 -1
- package/assets/esri/core/workers/chunks/{b03eaba5fa75d6ef834a.js → a47f74fc959b11f029a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb4b17f5cf96a9e36781.js → a8cf23c3a55c1834178c.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd55151bfac60b0deaac.js → ac4636e82a103e2c27ca.js} +1 -1
- package/assets/esri/core/workers/chunks/ae7ba94af6d4fd97dd8b.js +1 -0
- package/assets/esri/core/workers/chunks/{4adf3a8c6b49c381a633.js → b0653f63745e756f55fe.js} +1 -1
- package/assets/esri/core/workers/chunks/{e06cd10b6f8f363b5131.js → bdc751a752a7ff1387de.js} +1 -1
- package/assets/esri/core/workers/chunks/{70aa04b09143b7dd2ecb.js → c2199fb8f7a54a0ef18a.js} +1 -1
- package/assets/esri/core/workers/chunks/c3f462d11ed570482e7a.js +1 -0
- package/assets/esri/core/workers/chunks/{830d99e6c58a52a58973.js → c8cb5fe1d23145c4842b.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f87f22e00e3218661c6.js → ce53413dd3e2062e8378.js} +1 -1
- package/assets/esri/core/workers/chunks/de30ff1fcb6079178958.js +1 -0
- package/assets/esri/core/workers/chunks/e12090768e945091cc5d.js +1 -0
- package/assets/esri/core/workers/chunks/e3950975030412ff6e20.js +1 -0
- package/assets/esri/core/workers/chunks/e8b7d1c586aff229484c.js +1 -0
- package/assets/esri/core/workers/chunks/{710a6268de62003af825.js → e8d1f91dc97b42d0c4f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6747503826bfc94bc6c0.js → eb5213ffb83d83a4dd05.js} +1 -1
- package/assets/esri/core/workers/chunks/{020825b9c12f2b6386a7.js → f037e4f9877ea08ced9d.js} +1 -1
- package/assets/esri/core/workers/chunks/{abcfe3bda6f40318b092.js → f7ccc6c681fc9218555c.js} +1 -1
- package/assets/esri/core/workers/chunks/{eea0fb90cd5cc80de388.js → fa750885bb27bbb03e7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e67c4b7ad06d8404895a.js → fab4ee57b7c5376c9ccd.js} +1 -1
- package/interfaces.d.ts +4 -4
- package/kernel.js +1 -1
- package/layers/StreamLayer.js +1 -1
- package/layers/support/RangeDomain.js +1 -1
- package/layers/support/domainUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/labelFormatUtils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/support/dataUtils.js +5 -0
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/02d235849ba93541d7ad.js +0 -1
- package/assets/esri/core/workers/chunks/0a3da4b73beeaacd4667.js +0 -1
- package/assets/esri/core/workers/chunks/10dc578a90e1194c8720.js +0 -1
- package/assets/esri/core/workers/chunks/1eb5468c7cf653338d53.js +0 -1
- package/assets/esri/core/workers/chunks/1f30ea1a598ddd2e5df3.js +0 -1
- package/assets/esri/core/workers/chunks/366cf9bba6989342e447.js +0 -1
- package/assets/esri/core/workers/chunks/43f7d9366d06d69e7c50.js +0 -1
- package/assets/esri/core/workers/chunks/4672504d6fe649da19f2.js +0 -1
- package/assets/esri/core/workers/chunks/56a61a8bff08ae273de4.js +0 -1
- package/assets/esri/core/workers/chunks/580e7d3cbf6797a50ded.js +0 -1
- package/assets/esri/core/workers/chunks/6046be598e8c673eeb1f.js +0 -1
- package/assets/esri/core/workers/chunks/69c1c850af7ee33258e0.js +0 -1
- package/assets/esri/core/workers/chunks/8f7997e8e6ee9e56239f.js +0 -1
- package/assets/esri/core/workers/chunks/a160576f21ada91995ac.js +0 -1
- package/assets/esri/core/workers/chunks/a50ec5b647a160199cb2.js +0 -1
- package/assets/esri/core/workers/chunks/b138196d304883efd5f6.js +0 -1
- package/assets/esri/core/workers/chunks/b3f5e97b47e896c6008a.js +0 -1
- package/assets/esri/core/workers/chunks/c447f4bf0e5f012f8f9b.js +0 -1
- package/assets/esri/core/workers/chunks/c87e9280681c20d042b5.js +0 -1
- package/assets/esri/core/workers/chunks/cc86c8c88124d916e1b3.js +0 -1
- package/assets/esri/core/workers/chunks/d878bb6409df183ea0ce.js +0 -1
- package/assets/esri/core/workers/chunks/ef757269fb3fe0e74ef8.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4681],{21787:(e,t,n)=>{n.d(t,{a:()=>l,d:()=>a,f:()=>o,i:()=>d,m:()=>u,n:()=>c,s:()=>i,t:()=>s});var r=n(46851);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function i(e,t,n,r,o,i,s,a,l,u){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=s,e[6]=a,e[7]=l,e[8]=u,e}function s(e,t){if(e===t){const n=t[1],r=t[2],o=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=o}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function a(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],p=c*s-a*u,d=-c*i+a*l,f=u*i-s*l;let y=n*p+r*d+o*f;return y?(y=1/y,e[0]=p*y,e[1]=(-c*r+o*u)*y,e[2]=(a*r-o*s)*y,e[3]=d*y,e[4]=(c*n-o*l)*y,e[5]=(-a*n+o*i)*y,e[6]=f*y,e[7]=(-u*n+r*l)*y,e[8]=(s*n-r*i)*y,e):null}function l(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8];return e[0]=s*c-a*u,e[1]=o*u-r*c,e[2]=r*a-o*s,e[3]=a*l-i*c,e[4]=n*c-o*l,e[5]=o*i-n*a,e[6]=i*u-s*l,e[7]=r*l-n*u,e[8]=n*s-r*i,e}function u(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=n[0],f=n[1],y=n[2],h=n[3],m=n[4],b=n[5],g=n[6],w=n[7],v=n[8];return e[0]=d*r+f*s+y*u,e[1]=d*o+f*a+y*c,e[2]=d*i+f*l+y*p,e[3]=h*r+m*s+b*u,e[4]=h*o+m*a+b*c,e[5]=h*i+m*l+b*p,e[6]=g*r+w*s+v*u,e[7]=g*o+w*a+v*c,e[8]=g*i+w*l+v*p,e}function c(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],p=t[9],d=t[10],f=t[11],y=t[12],h=t[13],m=t[14],b=t[15],g=n*a-r*s,w=n*l-o*s,v=n*u-i*s,M=r*l-o*a,S=r*u-i*a,C=o*u-i*l,T=c*h-p*y,I=c*m-d*y,_=c*b-f*y,F=p*m-d*h,x=p*b-f*h,E=d*b-f*m;let A=g*E-w*x+v*F+M*_-S*I+C*T;return A?(A=1/A,e[0]=(a*E-l*x+u*F)*A,e[1]=(l*_-s*E-u*I)*A,e[2]=(s*x-a*_+u*T)*A,e[3]=(o*x-r*E-i*F)*A,e[4]=(n*E-o*_+i*I)*A,e[5]=(r*_-n*x-i*T)*A,e[6]=(h*C-m*S+b*M)*A,e[7]=(m*v-y*C-b*w)*A,e[8]=(y*S-h*v+b*g)*A,e):null}function p(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}function d(e){const t=(0,r.g)(),n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],p=e[8];return Math.abs(1-(n*n+s*s+u*u))<=t&&Math.abs(1-(o*o+a*a+c*c))<=t&&Math.abs(1-(i*i+l*l+p*p))<=t}const f=u,y=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},adjoint:l,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},determinant:function(e){const t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s=e[5],a=e[6],l=e[7],u=e[8];return t*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(e,t){const n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],p=e[8],d=t[0],f=t[1],y=t[2],h=t[3],m=t[4],b=t[5],g=t[6],w=t[7],v=t[8],M=(0,r.g)();return Math.abs(n-d)<=M*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-f)<=M*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(i-y)<=M*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(s-h)<=M*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(a-m)<=M*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-b)<=M*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(u-g)<=M*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-w)<=M*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(p-v)<=M*Math.max(1,Math.abs(p),Math.abs(v))},exactEquals:function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2)},fromMat2d:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},fromMat4:o,fromQuat:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,p=r*a,d=o*s,f=o*a,y=o*l,h=i*s,m=i*a,b=i*l;return e[0]=1-p-y,e[3]=c-b,e[6]=d+m,e[1]=c+b,e[4]=1-u-y,e[7]=f-h,e[2]=d-m,e[5]=f+h,e[8]=1-u-p,e},fromRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromTranslation:function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},invert:a,isOrthoNormal:d,mul:f,multiply:u,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},normalFromMat4:c,normalFromMat4Legacy:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[4],s=t[5],a=t[6],l=t[8],u=t[9],c=t[10],p=c*s-a*u,d=-c*i+a*l,f=u*i-s*l,y=n*p+r*d+o*f;if(!y)return null;const h=1/y;return e[0]=p*h,e[1]=(-c*r+o*u)*h,e[2]=(a*r-o*s)*h,e[3]=d*h,e[4]=(c*n-o*l)*h,e[5]=(-a*n+o*i)*h,e[6]=f*h,e[7]=(-u*n+r*l)*h,e[8]=(s*n-r*i)*h,e},projection:function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},rotate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=Math.sin(n),f=Math.cos(n);return e[0]=f*r+d*s,e[1]=f*o+d*a,e[2]=f*i+d*l,e[3]=f*s-d*r,e[4]=f*a-d*o,e[5]=f*l-d*i,e[6]=u,e[7]=c,e[8]=p,e},scale:function(e,t,n){const r=n[0],o=n[1],i=n[2];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e[6]=i*t[6],e[7]=i*t[7],e[8]=i*t[8],e},scaleByVec2:function(e,t,n){const r=n[0],o=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e},set:i,str:function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},sub:y,subtract:p,translate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=n[0],f=n[1];return e[0]=r,e[1]=o,e[2]=i,e[3]=s,e[4]=a,e[5]=l,e[6]=d*r+f*s+u,e[7]=d*o+f*a+c,e[8]=d*i+f*l+p,e},transpose:s},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,n)=>{n.d(t,{a:()=>f,c:()=>m,g:()=>c,j:()=>x,k:()=>h,m:()=>p,s:()=>u});var r=n(46521),o=n(94961),i=n(65617),s=n(46851),a=n(17896),l=n(98766);function u(e,t,n){n*=.5;const r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function c(e,t){const n=2*Math.acos(t[3]),r=Math.sin(n/2);return r>(0,s.g)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),n}function p(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=n[0],l=n[1],u=n[2],c=n[3];return e[0]=r*c+s*a+o*u-i*l,e[1]=o*c+s*l+i*a-r*u,e[2]=i*c+s*u+r*l-o*a,e[3]=s*c-r*a-o*l-i*u,e}function d(e,t,n,r){const o=t[0],i=t[1],a=t[2],l=t[3];let u,c,p,d,f,y=n[0],h=n[1],m=n[2],b=n[3];return c=o*y+i*h+a*m+l*b,c<0&&(c=-c,y=-y,h=-h,m=-m,b=-b),1-c>(0,s.g)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,f=Math.sin(r*u)/p):(d=1-r,f=r),e[0]=d*o+f*y,e[1]=d*i+f*h,e[2]=d*a+f*m,e[3]=d*l+f*b,e}function f(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const n=t[0]+t[4]+t[8];let r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let n=0;t[4]>t[0]&&(n=1),t[8]>t[3*n+n]&&(n=2);const o=(n+1)%3,i=(n+2)%3;r=Math.sqrt(t[3*n+n]-t[3*o+o]-t[3*i+i]+1),e[n]=.5*r,r=.5/r,e[3]=(t[3*o+i]-t[3*i+o])*r,e[o]=(t[3*o+n]+t[3*n+o])*r,e[i]=(t[3*i+n]+t[3*n+i])*r}return e}function h(e,t,n,r){const o=.5*Math.PI/180;t*=o,n*=o,r*=o;const i=Math.sin(t),s=Math.cos(t),a=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return e[0]=i*l*c-s*a*u,e[1]=s*a*c+i*l*u,e[2]=s*l*u-i*a*c,e[3]=s*l*c+i*a*u,e}const m=l.c,b=l.s,g=l.a,w=p,v=l.b,M=l.d,S=l.l,C=l.f,T=C,I=l.g,_=I,F=l.n,x=l.h,E=l.e,A=(0,i.c)(),U=(0,i.f)(1,0,0),N=(0,i.f)(0,1,0),O=(0,o.a)(),Z=(0,o.a)(),j=(0,r.a)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(e,t){const n=t[0],r=t[1],o=t[2];return e[0]=n,e[1]=r,e[2]=o,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),e},conjugate:f,copy:m,dot:M,equals:E,exactEquals:x,fromEuler:h,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=n*n+r*r+o*o+i*i,a=s?1/s:0;return e[0]=-n*a,e[1]=-r*a,e[2]=-o*a,e[3]=i*a,e},len:T,length:C,lerp:S,mul:w,multiply:p,normalize:F,random:function(e){const t=s.R,n=t(),r=t(),o=t(),i=Math.sqrt(1-n),a=Math.sqrt(n);return e[0]=i*Math.sin(2*Math.PI*r),e[1]=i*Math.cos(2*Math.PI*r),e[2]=a*Math.sin(2*Math.PI*o),e[3]=a*Math.cos(2*Math.PI*o),e},rotateX:function(e,t,n){n*=.5;const r=t[0],o=t[1],i=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l+s*a,e[1]=o*l+i*a,e[2]=i*l-o*a,e[3]=s*l-r*a,e},rotateY:function(e,t,n){n*=.5;const r=t[0],o=t[1],i=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l-i*a,e[1]=o*l+s*a,e[2]=i*l+r*a,e[3]=s*l-o*a,e},rotateZ:function(e,t,n){n*=.5;const r=t[0],o=t[1],i=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l+o*a,e[1]=o*l-r*a,e[2]=i*l+s*a,e[3]=s*l-i*a,e},rotationTo:function(e,t,n){const r=(0,a.j)(t,n);return r<-.999999?((0,a.b)(A,U,t),(0,a.k)(A)<1e-6&&(0,a.b)(A,N,t),(0,a.n)(A,A),u(e,A,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.b)(A,t,n),e[0]=A[0],e[1]=A[1],e[2]=A[2],e[3]=1+r,F(e,e))},scale:v,set:b,setAxes:function(e,t,n,r){const o=j;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-t[0],o[5]=-t[1],o[8]=-t[2],F(e,y(e,o))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,n,r,o,i){return d(O,t,o,i),d(Z,n,r,i),d(e,O,Z,2*i*(1-i)),e},sqrLen:_,squaredLength:I,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},22862:(e,t,n)=>{n.d(t,{Hg:()=>y,V7:()=>f,uD:()=>d});var r=n(92036),o=n(46791),i=n(1153);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.Z}function l(e){return e instanceof o.Z?Object.keys(e.items):a(e)?(0,i.vw)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.Z?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=l(e),o=l(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const i=o.filter((e=>!r.includes(e))),d=r.filter((e=>!o.includes(e))),f=r.filter((n=>o.includes(n)&&u(e,n)!==u(t,n))).concat(i,d).sort(),y=c(e);if(y&&s.has(y)&&f.length)return{type:"complete",oldValue:e,newValue:t};let h;const m=a(e)&&a(t);for(const r of f){const o=u(e,r),i=u(t,r);let s;if((m||"function"!=typeof o&&"function"!=typeof i)&&o!==i&&(null!=o||null!=i)){if(n&&n[r]&&"function"==typeof n[r])s=n[r]?.(o,i);else if(o instanceof Date&&i instanceof Date){if(o.getTime()===i.getTime())continue;s={type:"complete",oldValue:o,newValue:i}}else s="object"==typeof o&&"object"==typeof i&&c(o)===c(i)?p(o,i):{type:"complete",oldValue:o,newValue:i};null!=s&&(null!=h?h.diff[r]=s:h={type:"partial",diff:{[r]:s}})}}return h}function d(e,t){if(null==e)return!1;const n=t.split(".");let r=e;for(const e of n){if("complete"===r.type)return!0;if("partial"!==r.type)return!1;{const t=r.diff[e];if(!t)return!1;r=t}}return!0}function f(e,t){for(const n of t)if(d(e,n))return!0;return!1}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},83932:(e,t,n)=>{n.d(t,{B:()=>u});var r=n(22021),o=n(52138),i=n(65617);function s(e,t,n){const r=Math.sin(e),o=Math.cos(e),i=Math.sin(t),s=Math.cos(t),a=n;return a[0]=-r,a[4]=-i*o,a[8]=s*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=s*r,a[13]=0,a[2]=0,a[6]=s,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=n(29166),l=n(8744);function u(e,t,n,r){if(null==e||null==r)return!1;const i=(0,a.eT)(e,a.Jz),u=(0,a.eT)(r,a.sp);if(i===u&&!c(u)&&(i!==a.Ej.UNKNOWN||(0,l.fS)(e,r)))return(0,o.d)(n,t),!0;if(c(u)){const e=a.rf[i][a.Ej.LON_LAT],r=a.rf[a.Ej.LON_LAT][u];return null!=e&&null!=r&&(e(t,0,d,0),r(d,0,f,0),s(p*d[0],p*d[1],n),n[12]=f[0],n[13]=f[1],n[14]=f[2],!0)}if((u===a.Ej.WEB_MERCATOR||u===a.Ej.PLATE_CARREE)&&(i===a.Ej.WGS84||i===a.Ej.CGCS2000&&u===a.Ej.PLATE_CARREE||i===a.Ej.SPHERICAL_ECEF||i===a.Ej.WEB_MERCATOR)){const e=a.rf[i][a.Ej.LON_LAT],r=a.rf[a.Ej.LON_LAT][u];return null!=e&&null!=r&&(e(t,0,d,0),r(d,0,f,0),i===a.Ej.SPHERICAL_ECEF?function(e,t,n){s(e,t,n),(0,o.t)(n,n)}(p*d[0],p*d[1],n):(0,o.g)(n),n[12]=f[0],n[13]=f[1],n[14]=f[2],!0)}return!1}function c(e){return e===a.Ej.SPHERICAL_ECEF||e===a.Ej.SPHERICAL_MARS_PCPF||e===a.Ej.SPHERICAL_MOON_PCPF}const p=(0,r.Vl)(1),d=(0,i.c)(),f=(0,i.c)()},58995:(e,t,n)=>{n.d(t,{rS:()=>u});var r=n(2109),o=n(82971),i=n(8744);const s=new o.Z(r.kU),a=new o.Z(r.JL),l=new o.Z(r.mM);function u(e){return e&&((0,i.BZ)(e)||(0,i.fS)(e,a))?a:e&&((0,i.V2)(e)||(0,i.fS)(e,l))?l:s}new o.Z(r.pn)},60437:(e,t,n)=>{n.d(t,{G_:()=>g,HH:()=>s,JR:()=>y,TC:()=>a,Tn:()=>p,Ue:()=>o,al:()=>i,bZ:()=>h,cS:()=>f,dp:()=>u,fS:()=>b,is:()=>m,op:()=>c,pp:()=>l,t8:()=>d});var r=n(6570);function o(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,i,s,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=s,a}function s(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.Z(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?d(e,g):o(g)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function m(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!m(e)||!m(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(24470);const g=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];o()},1231:(e,t,n)=>{n.d(t,{Z:()=>m});var r,o=n(43697),i=n(35454),s=n(96674),a=n(5600),l=n(75215),u=(n(67676),n(80442),n(36030)),c=n(71715),p=n(52011),d=n(72729),f=n(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=r=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,o._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,o._)([(0,a.Cb)()],h.prototype,"description",void 0),(0,o._)([(0,c.r)("description")],h.prototype,"readDescription",null),(0,o._)([(0,a.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],h.prototype,"domain",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,o._)([(0,a.Cb)({type:l.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,o._)([(0,u.J)(f.v)],h.prototype,"type",void 0),(0,o._)([(0,a.Cb)()],h.prototype,"valueType",void 0),(0,o._)([(0,c.r)("valueType",["description"])],h.prototype,"readValueType",null),(0,o._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,o._)([(0,p.j)("esri.layers.support.Field")],h);const m=h},99514:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(20102),o=n(96674),i=n(92604),s=n(35671),a=n(25031);class l{static fromJSON(e){return new l(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new l(e.fields??[],d(e))}static fromLayerJSON(e){return new l(e.fields??[],d(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 n=[];for(const e of this.fields){const t=e?.name,r=c(t);if(t&&r){const o=u(t);this._fieldsMap.set(t,e),this._fieldsMap.set(o,e),this._normalizedFieldsMap.set(r,e),n.push(`${o}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,s.y2)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,s.H7)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,s.Dl)(e)||(0,s.Se)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,s.Dl)(e)||(0,s.Se)(e)||e.nullable||void 0!==(0,s.os)(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(u(e))??this._normalizedFieldsMap.get(c(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?(i.Z.getLogger("esri.layers.support.FieldsIndex").error(new r.Z("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),a.pt):p.has(t.type)?a._4:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,s.sX)(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,o.AK)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function u(e){return e.trim().toLowerCase()}function c(e){return(0,s.q6)(e)?.toLowerCase()??""}const p=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:o}=e,i=(r?"startField"in r?r.startField:r.startTimeField:"")??"",s=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.Jv)(e.dateFieldsTimeReference):null,c=o?function(e){return"timeZone"in e}(o)?o.timeZone??l:o.dateFieldsTimeReference?(0,a.Jv)(o.dateFieldsTimeReference):l??a.pt:null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,a.Jv)(r.timeReference):l:null,f=new Map([[u(o?.creationDateField??""),c],[u(o?.editDateField??""),c],[u(i),d],[u(s),d]]);for(const{name:r,type:o}of e.fields)if(p.has(o))t.set(r,a._4);else if("date"!==o&&"esriFieldTypeDate"!==o)t.set(r,null);else if(n)t.set(r,a._4);else{const e=f.get(u(r??""))??l;t.set(r,e)}return t}},51161:(e,t,n)=>{n.d(t,{H3:()=>b,QI:()=>p,U4:()=>l,Yh:()=>f});var r=n(43697),o=n(96674),i=n(5600),s=(n(75215),n(67676),n(80442),n(36030)),a=n(52011);let l=class extends o.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,r._)([(0,i.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,r._)([(0,i.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,r._)([(0,i.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,r._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let u=class extends o.wq{constructor(){super(...arguments),this.factor=1}};(0,r._)([(0,i.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,r._)([(0,i.Cb)({type:Number})],u.prototype,"factor",void 0),u=(0,r._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],u);let c=class extends o.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,r._)([(0,i.Cb)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,r._)([(0,i.Cb)({type:u})],c.prototype,"baseColorTexture",void 0),(0,r._)([(0,i.Cb)({type:u})],c.prototype,"metallicRoughnessTexture",void 0),(0,r._)([(0,i.Cb)({type:Number})],c.prototype,"metallicFactor",void 0),(0,r._)([(0,i.Cb)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,r._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let p=class extends o.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,r._)([(0,s.J)({opaque:"opaque",mask:"mask",blend:"blend"})],p.prototype,"alphaMode",void 0),(0,r._)([(0,i.Cb)({type:Number})],p.prototype,"alphaCutoff",void 0),(0,r._)([(0,i.Cb)({type:Boolean})],p.prototype,"doubleSided",void 0),(0,r._)([(0,s.J)({none:"none",back:"back",front:"front"})],p.prototype,"cullFace",void 0),(0,r._)([(0,i.Cb)({type:u})],p.prototype,"normalTexture",void 0),(0,r._)([(0,i.Cb)({type:u})],p.prototype,"occlusionTexture",void 0),(0,r._)([(0,i.Cb)({type:u})],p.prototype,"emissiveTexture",void 0),(0,r._)([(0,i.Cb)({type:[Number]})],p.prototype,"emissiveFactor",void 0),(0,r._)([(0,i.Cb)({type:c})],p.prototype,"pbrMetallicRoughness",void 0),p=(0,r._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],p);let d=class extends o.wq{};(0,r._)([(0,i.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,r._)([(0,s.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,r._)([(0,a.j)("esri.layer.support.I3STextureFormat")],d);let f=class extends o.wq{constructor(){super(...arguments),this.atlas=!1}};(0,r._)([(0,i.Cb)({type:[d]})],f.prototype,"formats",void 0),(0,r._)([(0,i.Cb)({type:Boolean})],f.prototype,"atlas",void 0),f=(0,r._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],f);let y=class extends o.wq{};(0,r._)([(0,s.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],y.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:Number})],y.prototype,"component",void 0),y=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],y);let h=class extends o.wq{};(0,r._)([(0,s.J)({draco:"draco"})],h.prototype,"encoding",void 0),(0,r._)([(0,i.Cb)({type:[String]})],h.prototype,"attributes",void 0),h=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],h);let m=class extends o.wq{constructor(){super(...arguments),this.offset=0}};(0,r._)([(0,i.Cb)({type:Number})],m.prototype,"offset",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"position",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"normal",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"uv0",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"color",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"uvRegion",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"featureId",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"faceRange",void 0),(0,r._)([(0,i.Cb)({type:h})],m.prototype,"compressedAttributes",void 0),m=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],m);let b=class extends o.wq{};(0,r._)([(0,s.J)({triangle:"triangle"})],b.prototype,"topology",void 0),(0,r._)([(0,i.Cb)()],b.prototype,"geometryBuffers",void 0),b=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],b)},56765:(e,t,n)=>{n.d(t,{Z:()=>c});var r,o=n(43697),i=n(46791),s=n(96674),a=n(5600),l=(n(75215),n(67676),n(80442),n(52011));let u=r=class extends s.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=r=(0,o._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],u);const c=u},15506:(e,t,n)=>{n.d(t,{C:()=>r});const r={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},72729:(e,t,n)=>{n.d(t,{im:()=>T,V5:()=>C}),n(80442);var r,o=n(43697),i=n(22974),s=n(5600),a=(n(75215),n(36030)),l=n(52011),u=n(96674);n(67676);let c=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],c);const p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,a.J)(p)],d.prototype,"type",void 0),d=(0,o._)([(0,l.j)("esri.layers.support.Domain")],d);const f=d;var y;let h=y=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,s.Cb)({type:[c],json:{write:!0}})],h.prototype,"codedValues",void 0),(0,o._)([(0,a.J)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=y=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],h);const m=h;var b;n(92604),n(20102);let g=b=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,o._)([(0,a.J)({inherited:"inherited"})],g.prototype,"type",void 0),g=b=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],g);const w=g;var v;let M=v=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],M.prototype,"maxValue",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],M.prototype,"minValue",void 0),(0,o._)([(0,a.J)({range:"range"})],M.prototype,"type",void 0),M=v=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],M);const S=M,C={key:"type",base:f,typeMap:{range:M,"coded-value":m,inherited:w}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=new(n(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},36405:(e,t,n)=>{function r(e,t){return t?.mode?t.mode:function(e){return e?u:c}(e).mode}function o(e,t){return r(null!=e&&e.hasZ,t)}function i(e,t,n){return n&&n.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,n){return n?.mode===t?`${e} do not support ${t} elevation mode`:null}function a(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}n.d(t,{LR:()=>l,Uy:()=>i,VW:()=>o,Wb:()=>s,kf:()=>a}),n(12541);const u={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}},58333:(e,t,n)=>{n.d(t,{ET:()=>i,I4:()=>o,eG:()=>l,lF:()=>s,lj:()=>c,qP:()=>a,wW:()=>u});const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},91891:(e,t,n)=>{n.d(t,{I_:()=>d,W7:()=>h,qM:()=>b});var r=n(20102),o=n(22974),i=n(92604),s=n(25683),a=n(35065);const l=i.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,n){let o="",i=0;for(;i<n;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function c(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,a=w[s];n.fields[i.property]=a(e,r),r+=g[s].BYTES_PER_ELEMENT}return n.byteCount=r,n}function p(e,t,n){const o=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(u(n,a,i-1)),0!==n[a+i-1])throw new r.Z("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function d(e,t){return new(0,g[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function f(e,t,n){const i=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],l=(0,o.d9)(t[n]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=a,l.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.Z("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.Z("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.Z("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=M(l.valueType);a+=a%e!=0?e-a%e:0,l.byteOffset=a,l.byteCount=e*l.valuesPerElement*l.count}}a+=l.byteCount??0,s.entries[n]=l}return s.byteCount=a-s.byteOffset,s}function y(e,t,n){if(t!==e&&l.error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.Z("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function h(e,t){const n=c(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:s},i=m[e]||"_"+e;o.vertexAttributes[i]=n,r+=M(n.valueType)*n.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:a};o.faces[e]=n,r+=M(n.valueType)*n.valuesPerElement*a}}const l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:l};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:M(n.valueType))*n.valuesPerElement*l}}return y(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const m={position:a.T.POSITION,normal:a.T.NORMAL,color:a.T.COLOR,uv0:a.T.UV0,region:a.T.UVREGION};function b(e,t,n){if("lepcc-rgb"===e.encoding)return(0,s.IT)(t);if("lepcc-intensity"===e.encoding)return(0,s.ti)(t);if(null!=e.encoding&&""!==e.encoding)throw new r.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l.warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l.warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const o=f(t,e,n);y(o.byteOffset+o.byteCount,t.byteLength,"attribute");const i=o.entries.attributeValues||o.entries.objectIds;if(i){if("String"===i.valueType){const e=o.entries.attributeByteCounts,n=d(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,i);return i.timeEncoding?function(e,t,n){return p(e,t,n).map((e=>{const t=e?Date.parse(e):null;return t&&!Number.isNaN(t)?t:null}))}(e.count,n,r):p(e.count,n,r)}return d(t,i)}throw new r.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const g={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function v(e){return g.hasOwnProperty(e)}function M(e){return v(e)?g[e].BYTES_PER_ELEMENT:0}},2358:(e,t,n)=>{n.d(t,{xe:()=>b});var r=n(3172),o=(n(67676),n(20102),n(80442),n(1533)),i=(n(21787),n(46521)),s=(n(52138),n(13598)),a=(n(51305),n(94961)),l=(n(17896),n(65617));n(2109),n(73615),n(82971),n(58995),n(83932),n(87360),(0,l.c)();var u=n(24470),c=(n(8744),n(14165),n(91891));n(22303);var p,d=n(88669);!function(e){e[e.INVISIBLE=0]="INVISIBLE",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.OPAQUE=2]="OPAQUE"}(p||(p={}));(0,d.f)(0,0,0,.2),p.OPAQUE;(0,d.f)(0,0,0,.2),p.OPAQUE,n(6206);var f,y,h=n(87951),m=n(51417);async function b(e,t,n,o,i){const s=[];for(const r of t)if(r&&i.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;s.push({url:t,storageInfo:r})}const a=await Promise.allSettled(s.map((e=>(0,r.Z)(e.url,{responseType:"array-buffer"}).then((t=>(0,c.qM)(e.storageInfo,t.data)))))),l=[];for(const e of o){const t={};for(let n=0;n<a.length;n++){const r=a[n];if("fulfilled"===r.status){const o=r.value;t[s[n].storageInfo.name]=v(o,e)}}l.push(t)}return l}(0,u.Ue)(),(y=f||(f={}))[y.OUTSIDE=0]="OUTSIDE",y[y.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",y[y.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",y[y.INSIDE=3]="INSIDE";const g=-32768,w=-(2**31);function v(e,t){if(!e)return null;const n=e[t];return(0,o.z3)(e)?n===g?null:n:(0,o.Hx)(e)?n===w?null:n:n!=n?null:n}const M=new Array(24);new m.U(M,3),(0,l.c)(),(0,l.c)(),(0,i.a)(),(0,s.a)(),(0,a.a)(),(0,u.Ue)(),(0,u.Ue)(),(0,h.Ue)(),(0,l.c)(),new Array(72),(0,s.a)()},25683:(e,t,n)=>{n.d(t,{Gi:()=>u,IT:()=>y,ti:()=>b});var r=n(20102);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function u(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=s(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(u>1)throw new r.Z("lepcc-decode-error","Unknown version");const p=l(t,n);if(n+=a.byteCount,p.sizeHi*2**32+p.sizeLo!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const d=new Float64Array(3*p.count),f=[],y=[],h=[],m=[];if(n=c(e,n,f),n=c(e,n,y),n=c(e,n,h),n=c(e,n,m),n!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad length");let b=0,g=0;for(let e=0;e<f.length;e++){g+=f[e];let t=0;for(let n=0;n<y[e];n++){t+=h[b];const e=m[b];d[3*b]=Math.min(p.maxX,p.minX+2*p.errorX*t),d[3*b+1]=Math.min(p.maxY,p.minY+2*p.errorY*g),d[3*b+2]=Math.min(p.maxZ,p.minZ+2*p.errorZ*e),b++}}return{errorX:p.errorX,errorY:p.errorY,errorZ:p.errorZ,result:d}}function c(e,t,n){const r=[];t=p(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=p(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function p(e,t,n){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,l=!!(32&s),u=(192&s)>>6;let c=0;if(0===u)c=i.getUint32(1,o),t+=5;else if(1===u)c=i.getUint16(1,o),t+=3;else{if(2!==u)throw new r.Z("lepcc-decode-error","Bad count type");c=i.getUint8(1),t+=2}if(l)throw new r.Z("lepcc-decode-error","LUT not implemented");const p=Math.ceil(c*a/8),d=new Uint8Array(e,t,p);let f=0,y=0,h=0;const m=-1>>>32-a;for(let e=0;e<c;e++){for(;y<a;)f|=d[h]<<y,y+=8,h+=1;n[e]=f&m,f>>>=a,y-=a,y+a>32&&(f|=d[h-1]>>8-y)}return t+h}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function f(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function y(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new r.Z("lepcc-decode-error","Unknown version");const l=f(t,n);if(n+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+n!==e.byteLength||l.colorMapCount>256)throw new r.Z("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*l.colorMapCount),o=new Uint8Array(e,n+3*l.colorMapCount,l.count),i=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+n!==e.byteLength||0!==l.colorMapCount)throw new r.Z("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(n+3!==e.byteLength||1!==l.colorMapCount)throw new r.Z("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),s=t.getUint8(n+2),a=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=s;return a}throw new r.Z("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const h={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(e,t){return{sizeLo:e.getUint32(t+h.sizeLo,o),sizeHi:e.getUint32(t+h.sizeHi,o),count:e.getUint32(t+h.count,o),scaleFactor:e.getUint16(t+h.scaleFactor,o),bitsPerPoint:e.getUint8(t+h.bitsPerPoint),reserved:e.getUint8(t+h.reserved)}}function b(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new r.Z("lepcc-decode-error","Unknown version");const l=m(t,n);if(n+=h.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const u=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else{const t=[];if(p(e,n,t)!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}return u}},6206:(e,t,n)=>{var r,o;n.d(t,{a9:()=>r}),n(22021),(o=r||(r={}))[o.Multiply=1]="Multiply",o[o.Ignore=2]="Ignore",o[o.Replace=3]="Replace",o[o.Tint=4]="Tint"},87951:(e,t,n)=>{n.d(t,{Ue:()=>c,gI:()=>p}),n(21787);var r=n(46521),o=n(51305),i=n(94961),s=n(17896),a=n(65617),l=(n(98766),n(88669)),u=(n(60437),n(62073),n(64822));function c(e=[0,0,0],t=[-1,-1,-1],n=(0,i.a)()){return{center:(0,a.g)(e),halfSize:(0,a.g)(t),quaternion:(0,i.b)(n)}}function p(e,t,n,r,i){if((0,o.c)(i.quaternion,e.quaternion),r===u.JY.Global){(0,o.a)(h,e.quaternion),(0,s.v)(d,e.center,h),(0,s.w)(f,d),(0,s.x)(y,f,e.halfSize),(0,s.u)(y,f,y);const r=(0,s.l)(y);(0,s.g)(y,f,e.halfSize);const a=(0,s.l)(y);if(r<n)(0,s.c)(i.center,e.center),(0,s.s)(d,n,n,n),(0,s.g)(i.halfSize,e.halfSize,d);else{const o=a>0?1+t/a:1,l=r>0?1+n/r:1,u=(l+o)/2,c=(l-o)/2;(0,s.i)(i.halfSize,f,c),(0,s.q)(i.halfSize,i.halfSize,e.halfSize,u),(0,s.i)(i.center,f,u),(0,s.q)(i.center,i.center,e.halfSize,c),(0,s.z)(d,d),(0,s.A)(i.center,i.center,d),(0,s.v)(i.center,i.center,i.quaternion)}}else{const r=(0,s.s)(d,0,0,1);(0,s.q)(i.center,e.center,r,(n+t)/2),(0,o.a)(h,e.quaternion),(0,s.v)(r,r,h),(0,s.w)(r,r),(0,s.q)(i.halfSize,e.halfSize,r,(n-t)/2)}return i}(0,i.a)(),(0,a.c)(),(0,a.c)(),(0,l.c)(),(0,r.a)(),(()=>{const e=new Int8Array(162);let t=0;const n=n=>{for(let r=0;r<n.length;r++)e[t+r]=n[r];t+=6};n([6,2,3,1,5,4]),n([0,2,3,1,5,4]),n([0,2,3,7,5,4]),n([0,1,3,2,6,4]),n([0,1,3,2,0,0]),n([0,1,5,7,3,2]),n([0,1,3,7,6,4]),n([0,1,3,7,6,2]),n([0,1,5,7,6,2]),n([0,1,5,4,6,2]),n([0,1,5,4,0,0]),n([0,1,3,7,5,4]),n([0,2,6,4,0,0]),n([0,0,0,0,0,0]),n([1,3,7,5,0,0]),n([2,3,7,6,4,0]),n([2,3,7,6,0,0]),n([2,3,1,5,7,6]),n([0,1,5,7,6,2]),n([0,1,5,7,6,4]),n([0,1,3,7,6,4]),n([4,5,7,6,2,0]),n([4,5,7,6,0,0]),n([4,5,1,3,7,6]),n([0,2,3,7,5,4]),n([6,2,3,7,5,4]),n([6,2,3,1,5,4])})();const d=(0,a.c)(),f=(0,a.c)(),y=(0,a.c)(),h=(0,i.a)()},51417:(e,t,n)=>{n.d(t,{U:()=>r,a:()=>o});class r{constructor(e,t,n=t){this.data=e,this.size=t,this.stride=n}}class o extends r{constructor(e,t,n,r=!1,o=n){super(e,n,o),this.indices=t,this.exclusive=r}}},64822:(e,t,n)=>{var r;n.d(t,{JY:()=>r}),function(e){e[e.Global=1]="Global",e[e.Local=2]="Local"}(r||(r={}))},19833:(e,t,n)=>{n.d(t,{V5:()=>i,e7:()=>o});var r=n(35671);async function o(e,t=e.popupTemplate){if(null==t)return[];const n=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:i,typeIdField:s,globalIdField:a,relationships:l}=e;if(n.includes("*"))return["*"];const u=o?(0,r.CH)(e):[],c=(0,r.Q0)(e.fieldsIndex,[...n,...u]);return s&&c.push(s),c&&i&&e.fieldsIndex?.has(i)&&!c.includes(i)&&c.push(i),c&&a&&e.fieldsIndex?.has(a)&&!c.includes(a)&&c.push(a),l&&l.forEach((t=>{const{keyField:n}=t;c&&n&&e.fieldsIndex?.has(n)&&!c.includes(n)&&c.push(n)})),c}function i(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4681],{21787:(e,t,n)=>{n.d(t,{a:()=>l,d:()=>a,f:()=>o,i:()=>d,m:()=>u,n:()=>c,s:()=>i,t:()=>s});var r=n(46851);function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function i(e,t,n,r,o,i,s,a,l,u){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i,e[5]=s,e[6]=a,e[7]=l,e[8]=u,e}function s(e,t){if(e===t){const n=t[1],r=t[2],o=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=r,e[7]=o}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function a(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],p=c*s-a*u,d=-c*i+a*l,f=u*i-s*l;let y=n*p+r*d+o*f;return y?(y=1/y,e[0]=p*y,e[1]=(-c*r+o*u)*y,e[2]=(a*r-o*s)*y,e[3]=d*y,e[4]=(c*n-o*l)*y,e[5]=(-a*n+o*i)*y,e[6]=f*y,e[7]=(-u*n+r*l)*y,e[8]=(s*n-r*i)*y,e):null}function l(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8];return e[0]=s*c-a*u,e[1]=o*u-r*c,e[2]=r*a-o*s,e[3]=a*l-i*c,e[4]=n*c-o*l,e[5]=o*i-n*a,e[6]=i*u-s*l,e[7]=r*l-n*u,e[8]=n*s-r*i,e}function u(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=n[0],f=n[1],y=n[2],h=n[3],m=n[4],b=n[5],g=n[6],w=n[7],v=n[8];return e[0]=d*r+f*s+y*u,e[1]=d*o+f*a+y*c,e[2]=d*i+f*l+y*p,e[3]=h*r+m*s+b*u,e[4]=h*o+m*a+b*c,e[5]=h*i+m*l+b*p,e[6]=g*r+w*s+v*u,e[7]=g*o+w*a+v*c,e[8]=g*i+w*l+v*p,e}function c(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],c=t[8],p=t[9],d=t[10],f=t[11],y=t[12],h=t[13],m=t[14],b=t[15],g=n*a-r*s,w=n*l-o*s,v=n*u-i*s,M=r*l-o*a,S=r*u-i*a,C=o*u-i*l,T=c*h-p*y,I=c*m-d*y,_=c*b-f*y,F=p*m-d*h,x=p*b-f*h,E=d*b-f*m;let A=g*E-w*x+v*F+M*_-S*I+C*T;return A?(A=1/A,e[0]=(a*E-l*x+u*F)*A,e[1]=(l*_-s*E-u*I)*A,e[2]=(s*x-a*_+u*T)*A,e[3]=(o*x-r*E-i*F)*A,e[4]=(n*E-o*_+i*I)*A,e[5]=(r*_-n*x-i*T)*A,e[6]=(h*C-m*S+b*M)*A,e[7]=(m*v-y*C-b*w)*A,e[8]=(y*S-h*v+b*g)*A,e):null}function p(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e}function d(e){const t=(0,r.g)(),n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],p=e[8];return Math.abs(1-(n*n+s*s+u*u))<=t&&Math.abs(1-(o*o+a*a+c*c))<=t&&Math.abs(1-(i*i+l*l+p*p))<=t}const f=u,y=p;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e},adjoint:l,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},determinant:function(e){const t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],s=e[5],a=e[6],l=e[7],u=e[8];return t*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(e,t){const n=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],p=e[8],d=t[0],f=t[1],y=t[2],h=t[3],m=t[4],b=t[5],g=t[6],w=t[7],v=t[8],M=(0,r.g)();return Math.abs(n-d)<=M*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-f)<=M*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(i-y)<=M*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(s-h)<=M*Math.max(1,Math.abs(s),Math.abs(h))&&Math.abs(a-m)<=M*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(l-b)<=M*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(u-g)<=M*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-w)<=M*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(p-v)<=M*Math.max(1,Math.abs(p),Math.abs(v))},exactEquals:function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2)},fromMat2d:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},fromMat4:o,fromQuat:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,p=r*a,d=o*s,f=o*a,y=o*l,h=i*s,m=i*a,b=i*l;return e[0]=1-p-y,e[3]=c-b,e[6]=d+m,e[1]=c+b,e[4]=1-u-y,e[7]=f-h,e[2]=d-m,e[5]=f+h,e[8]=1-u-p,e},fromRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},fromTranslation:function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},invert:a,isOrthoNormal:d,mul:f,multiply:u,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e},normalFromMat4:c,normalFromMat4Legacy:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[4],s=t[5],a=t[6],l=t[8],u=t[9],c=t[10],p=c*s-a*u,d=-c*i+a*l,f=u*i-s*l,y=n*p+r*d+o*f;if(!y)return null;const h=1/y;return e[0]=p*h,e[1]=(-c*r+o*u)*h,e[2]=(a*r-o*s)*h,e[3]=d*h,e[4]=(c*n-o*l)*h,e[5]=(-a*n+o*i)*h,e[6]=f*h,e[7]=(-u*n+r*l)*h,e[8]=(s*n-r*i)*h,e},projection:function(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},rotate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=Math.sin(n),f=Math.cos(n);return e[0]=f*r+d*s,e[1]=f*o+d*a,e[2]=f*i+d*l,e[3]=f*s-d*r,e[4]=f*a-d*o,e[5]=f*l-d*i,e[6]=u,e[7]=c,e[8]=p,e},scale:function(e,t,n){const r=n[0],o=n[1],i=n[2];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e[6]=i*t[6],e[7]=i*t[7],e[8]=i*t[8],e},scaleByVec2:function(e,t,n){const r=n[0],o=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=o*t[3],e[4]=o*t[4],e[5]=o*t[5],e},set:i,str:function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},sub:y,subtract:p,translate:function(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=n[0],f=n[1];return e[0]=r,e[1]=o,e[2]=i,e[3]=s,e[4]=a,e[5]=l,e[6]=d*r+f*s+u,e[7]=d*o+f*a+c,e[8]=d*i+f*l+p,e},transpose:s},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,n)=>{n.d(t,{a:()=>f,c:()=>m,g:()=>c,j:()=>x,k:()=>h,m:()=>p,s:()=>u});var r=n(46521),o=n(94961),i=n(65617),s=n(46851),a=n(17896),l=n(98766);function u(e,t,n){n*=.5;const r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function c(e,t){const n=2*Math.acos(t[3]),r=Math.sin(n/2);return r>(0,s.g)()?(e[0]=t[0]/r,e[1]=t[1]/r,e[2]=t[2]/r):(e[0]=1,e[1]=0,e[2]=0),n}function p(e,t,n){const r=t[0],o=t[1],i=t[2],s=t[3],a=n[0],l=n[1],u=n[2],c=n[3];return e[0]=r*c+s*a+o*u-i*l,e[1]=o*c+s*l+i*a-r*u,e[2]=i*c+s*u+r*l-o*a,e[3]=s*c-r*a-o*l-i*u,e}function d(e,t,n,r){const o=t[0],i=t[1],a=t[2],l=t[3];let u,c,p,d,f,y=n[0],h=n[1],m=n[2],b=n[3];return c=o*y+i*h+a*m+l*b,c<0&&(c=-c,y=-y,h=-h,m=-m,b=-b),1-c>(0,s.g)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-r)*u)/p,f=Math.sin(r*u)/p):(d=1-r,f=r),e[0]=d*o+f*y,e[1]=d*i+f*h,e[2]=d*a+f*m,e[3]=d*l+f*b,e}function f(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const n=t[0]+t[4]+t[8];let r;if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let n=0;t[4]>t[0]&&(n=1),t[8]>t[3*n+n]&&(n=2);const o=(n+1)%3,i=(n+2)%3;r=Math.sqrt(t[3*n+n]-t[3*o+o]-t[3*i+i]+1),e[n]=.5*r,r=.5/r,e[3]=(t[3*o+i]-t[3*i+o])*r,e[o]=(t[3*o+n]+t[3*n+o])*r,e[i]=(t[3*i+n]+t[3*n+i])*r}return e}function h(e,t,n,r){const o=.5*Math.PI/180;t*=o,n*=o,r*=o;const i=Math.sin(t),s=Math.cos(t),a=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return e[0]=i*l*c-s*a*u,e[1]=s*a*c+i*l*u,e[2]=s*l*u-i*a*c,e[3]=s*l*c+i*a*u,e}const m=l.c,b=l.s,g=l.a,w=p,v=l.b,M=l.d,S=l.l,C=l.f,T=C,I=l.g,_=I,F=l.n,x=l.h,E=l.e,A=(0,i.c)(),U=(0,i.f)(1,0,0),O=(0,i.f)(0,1,0),N=(0,o.a)(),Z=(0,o.a)(),j=(0,r.a)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(e,t){const n=t[0],r=t[1],o=t[2];return e[0]=n,e[1]=r,e[2]=o,e[3]=Math.sqrt(Math.abs(1-n*n-r*r-o*o)),e},conjugate:f,copy:m,dot:M,equals:E,exactEquals:x,fromEuler:h,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const n=t[0],r=t[1],o=t[2],i=t[3],s=n*n+r*r+o*o+i*i,a=s?1/s:0;return e[0]=-n*a,e[1]=-r*a,e[2]=-o*a,e[3]=i*a,e},len:T,length:C,lerp:S,mul:w,multiply:p,normalize:F,random:function(e){const t=s.R,n=t(),r=t(),o=t(),i=Math.sqrt(1-n),a=Math.sqrt(n);return e[0]=i*Math.sin(2*Math.PI*r),e[1]=i*Math.cos(2*Math.PI*r),e[2]=a*Math.sin(2*Math.PI*o),e[3]=a*Math.cos(2*Math.PI*o),e},rotateX:function(e,t,n){n*=.5;const r=t[0],o=t[1],i=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l+s*a,e[1]=o*l+i*a,e[2]=i*l-o*a,e[3]=s*l-r*a,e},rotateY:function(e,t,n){n*=.5;const r=t[0],o=t[1],i=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l-i*a,e[1]=o*l+s*a,e[2]=i*l+r*a,e[3]=s*l-o*a,e},rotateZ:function(e,t,n){n*=.5;const r=t[0],o=t[1],i=t[2],s=t[3],a=Math.sin(n),l=Math.cos(n);return e[0]=r*l+o*a,e[1]=o*l-r*a,e[2]=i*l+s*a,e[3]=s*l-i*a,e},rotationTo:function(e,t,n){const r=(0,a.j)(t,n);return r<-.999999?((0,a.b)(A,U,t),(0,a.k)(A)<1e-6&&(0,a.b)(A,O,t),(0,a.n)(A,A),u(e,A,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.b)(A,t,n),e[0]=A[0],e[1]=A[1],e[2]=A[2],e[3]=1+r,F(e,e))},scale:v,set:b,setAxes:function(e,t,n,r){const o=j;return o[0]=n[0],o[3]=n[1],o[6]=n[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-t[0],o[5]=-t[1],o[8]=-t[2],F(e,y(e,o))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,n,r,o,i){return d(N,t,o,i),d(Z,n,r,i),d(e,N,Z,2*i*(1-i)),e},sqrLen:_,squaredLength:I,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},22862:(e,t,n)=>{n.d(t,{Hg:()=>y,V7:()=>f,uD:()=>d});var r=n(92036),o=n(46791),i=n(1153);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.Z}function l(e){return e instanceof o.Z?Object.keys(e.items):a(e)?(0,i.vw)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.Z?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=l(e),o=l(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const i=o.filter((e=>!r.includes(e))),d=r.filter((e=>!o.includes(e))),f=r.filter((n=>o.includes(n)&&u(e,n)!==u(t,n))).concat(i,d).sort(),y=c(e);if(y&&s.has(y)&&f.length)return{type:"complete",oldValue:e,newValue:t};let h;const m=a(e)&&a(t);for(const r of f){const o=u(e,r),i=u(t,r);let s;if((m||"function"!=typeof o&&"function"!=typeof i)&&o!==i&&(null!=o||null!=i)){if(n&&n[r]&&"function"==typeof n[r])s=n[r]?.(o,i);else if(o instanceof Date&&i instanceof Date){if(o.getTime()===i.getTime())continue;s={type:"complete",oldValue:o,newValue:i}}else s="object"==typeof o&&"object"==typeof i&&c(o)===c(i)?p(o,i):{type:"complete",oldValue:o,newValue:i};null!=s&&(null!=h?h.diff[r]=s:h={type:"partial",diff:{[r]:s}})}}return h}function d(e,t){if(null==e)return!1;const n=t.split(".");let r=e;for(const e of n){if("complete"===r.type)return!0;if("partial"!==r.type)return!1;{const t=r.diff[e];if(!t)return!1;r=t}}return!0}function f(e,t){for(const n of t)if(d(e,n))return!0;return!1}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},83932:(e,t,n)=>{n.d(t,{B:()=>u});var r=n(22021),o=n(52138),i=n(65617);function s(e,t,n){const r=Math.sin(e),o=Math.cos(e),i=Math.sin(t),s=Math.cos(t),a=n;return a[0]=-r,a[4]=-i*o,a[8]=s*o,a[12]=0,a[1]=o,a[5]=-i*r,a[9]=s*r,a[13]=0,a[2]=0,a[6]=s,a[10]=i,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=n(29166),l=n(8744);function u(e,t,n,r){if(null==e||null==r)return!1;const i=(0,a.eT)(e,a.Jz),u=(0,a.eT)(r,a.sp);if(i===u&&!c(u)&&(i!==a.Ej.UNKNOWN||(0,l.fS)(e,r)))return(0,o.d)(n,t),!0;if(c(u)){const e=a.rf[i][a.Ej.LON_LAT],r=a.rf[a.Ej.LON_LAT][u];return null!=e&&null!=r&&(e(t,0,d,0),r(d,0,f,0),s(p*d[0],p*d[1],n),n[12]=f[0],n[13]=f[1],n[14]=f[2],!0)}if((u===a.Ej.WEB_MERCATOR||u===a.Ej.PLATE_CARREE)&&(i===a.Ej.WGS84||i===a.Ej.CGCS2000&&u===a.Ej.PLATE_CARREE||i===a.Ej.SPHERICAL_ECEF||i===a.Ej.WEB_MERCATOR)){const e=a.rf[i][a.Ej.LON_LAT],r=a.rf[a.Ej.LON_LAT][u];return null!=e&&null!=r&&(e(t,0,d,0),r(d,0,f,0),i===a.Ej.SPHERICAL_ECEF?function(e,t,n){s(e,t,n),(0,o.t)(n,n)}(p*d[0],p*d[1],n):(0,o.g)(n),n[12]=f[0],n[13]=f[1],n[14]=f[2],!0)}return!1}function c(e){return e===a.Ej.SPHERICAL_ECEF||e===a.Ej.SPHERICAL_MARS_PCPF||e===a.Ej.SPHERICAL_MOON_PCPF}const p=(0,r.Vl)(1),d=(0,i.c)(),f=(0,i.c)()},58995:(e,t,n)=>{n.d(t,{rS:()=>u});var r=n(2109),o=n(82971),i=n(8744);const s=new o.Z(r.kU),a=new o.Z(r.JL),l=new o.Z(r.mM);function u(e){return e&&((0,i.BZ)(e)||(0,i.fS)(e,a))?a:e&&((0,i.V2)(e)||(0,i.fS)(e,l))?l:s}new o.Z(r.pn)},60437:(e,t,n)=>{n.d(t,{G_:()=>g,HH:()=>s,JR:()=>y,TC:()=>a,Tn:()=>p,Ue:()=>o,al:()=>i,bZ:()=>h,cS:()=>f,dp:()=>u,fS:()=>b,is:()=>m,op:()=>c,pp:()=>l,t8:()=>d});var r=n(6570);function o(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function i(e,t,n,r,i,s,a=o()){return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i,a[5]=s,a}function s(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new r.Z(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function p(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?d(e,g):o(g)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function h(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=o,e[5]=Number.POSITIVE_INFINITY,e}function m(e){return 6===e.length}function b(e,t,n){if(null==e||null==t)return e===t;if(!m(e)||!m(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(24470);const g=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];o()},1231:(e,t,n)=>{n.d(t,{Z:()=>m});var r,o=n(43697),i=n(35454),s=n(96674),a=n(5600),l=n(75215),u=(n(67676),n(80442),n(36030)),c=n(71715),p=n(52011),d=n(72729),f=n(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=r=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,o._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,o._)([(0,a.Cb)()],h.prototype,"description",void 0),(0,o._)([(0,c.r)("description")],h.prototype,"readDescription",null),(0,o._)([(0,a.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],h.prototype,"domain",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,o._)([(0,a.Cb)({type:l.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,o._)([(0,u.J)(f.v)],h.prototype,"type",void 0),(0,o._)([(0,a.Cb)()],h.prototype,"valueType",void 0),(0,o._)([(0,c.r)("valueType",["description"])],h.prototype,"readValueType",null),(0,o._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,o._)([(0,p.j)("esri.layers.support.Field")],h);const m=h},99514:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(20102),o=n(96674),i=n(92604),s=n(69165),a=n(25031);class l{static fromJSON(e){return new l(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new l(e.fields??[],d(e))}static fromLayerJSON(e){return new l(e.fields??[],d(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 n=[];for(const e of this.fields){const t=e?.name,r=c(t);if(t&&r){const o=u(t);this._fieldsMap.set(t,e),this._fieldsMap.set(o,e),this._normalizedFieldsMap.set(r,e),n.push(`${o}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,s.y2)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,s.H7)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,s.Dl)(e)||(0,s.Se)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,s.Dl)(e)||(0,s.Se)(e)||e.nullable||void 0!==(0,s.os)(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(u(e))??this._normalizedFieldsMap.get(c(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?(i.Z.getLogger("esri.layers.support.FieldsIndex").error(new r.Z("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),a.pt):p.has(t.type)?a._4:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,s.sX)(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,o.AK)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function u(e){return e.trim().toLowerCase()}function c(e){return(0,s.q6)(e)?.toLowerCase()??""}const p=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:o}=e,i=(r?"startField"in r?r.startField:r.startTimeField:"")??"",s=(r?"endField"in r?r.endField:r.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,a.Jv)(e.dateFieldsTimeReference):null,c=o?function(e){return"timeZone"in e}(o)?o.timeZone??l:o.dateFieldsTimeReference?(0,a.Jv)(o.dateFieldsTimeReference):l??a.pt:null,d=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.timeReference?(0,a.Jv)(r.timeReference):l:null,f=new Map([[u(o?.creationDateField??""),c],[u(o?.editDateField??""),c],[u(i),d],[u(s),d]]);for(const{name:r,type:o}of e.fields)if(p.has(o))t.set(r,a._4);else if("date"!==o&&"esriFieldTypeDate"!==o)t.set(r,null);else if(n)t.set(r,a._4);else{const e=f.get(u(r??""))??l;t.set(r,e)}return t}},51161:(e,t,n)=>{n.d(t,{H3:()=>b,QI:()=>p,U4:()=>l,Yh:()=>f});var r=n(43697),o=n(96674),i=n(5600),s=(n(75215),n(67676),n(80442),n(36030)),a=n(52011);let l=class extends o.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,r._)([(0,i.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,r._)([(0,i.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,r._)([(0,i.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,r._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let u=class extends o.wq{constructor(){super(...arguments),this.factor=1}};(0,r._)([(0,i.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,r._)([(0,i.Cb)({type:Number})],u.prototype,"factor",void 0),u=(0,r._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],u);let c=class extends o.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,r._)([(0,i.Cb)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,r._)([(0,i.Cb)({type:u})],c.prototype,"baseColorTexture",void 0),(0,r._)([(0,i.Cb)({type:u})],c.prototype,"metallicRoughnessTexture",void 0),(0,r._)([(0,i.Cb)({type:Number})],c.prototype,"metallicFactor",void 0),(0,r._)([(0,i.Cb)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,r._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let p=class extends o.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,r._)([(0,s.J)({opaque:"opaque",mask:"mask",blend:"blend"})],p.prototype,"alphaMode",void 0),(0,r._)([(0,i.Cb)({type:Number})],p.prototype,"alphaCutoff",void 0),(0,r._)([(0,i.Cb)({type:Boolean})],p.prototype,"doubleSided",void 0),(0,r._)([(0,s.J)({none:"none",back:"back",front:"front"})],p.prototype,"cullFace",void 0),(0,r._)([(0,i.Cb)({type:u})],p.prototype,"normalTexture",void 0),(0,r._)([(0,i.Cb)({type:u})],p.prototype,"occlusionTexture",void 0),(0,r._)([(0,i.Cb)({type:u})],p.prototype,"emissiveTexture",void 0),(0,r._)([(0,i.Cb)({type:[Number]})],p.prototype,"emissiveFactor",void 0),(0,r._)([(0,i.Cb)({type:c})],p.prototype,"pbrMetallicRoughness",void 0),p=(0,r._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],p);let d=class extends o.wq{};(0,r._)([(0,i.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,r._)([(0,s.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,r._)([(0,a.j)("esri.layer.support.I3STextureFormat")],d);let f=class extends o.wq{constructor(){super(...arguments),this.atlas=!1}};(0,r._)([(0,i.Cb)({type:[d]})],f.prototype,"formats",void 0),(0,r._)([(0,i.Cb)({type:Boolean})],f.prototype,"atlas",void 0),f=(0,r._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],f);let y=class extends o.wq{};(0,r._)([(0,s.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],y.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:Number})],y.prototype,"component",void 0),y=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],y);let h=class extends o.wq{};(0,r._)([(0,s.J)({draco:"draco"})],h.prototype,"encoding",void 0),(0,r._)([(0,i.Cb)({type:[String]})],h.prototype,"attributes",void 0),h=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],h);let m=class extends o.wq{constructor(){super(...arguments),this.offset=0}};(0,r._)([(0,i.Cb)({type:Number})],m.prototype,"offset",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"position",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"normal",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"uv0",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"color",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"uvRegion",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"featureId",void 0),(0,r._)([(0,i.Cb)({type:y})],m.prototype,"faceRange",void 0),(0,r._)([(0,i.Cb)({type:h})],m.prototype,"compressedAttributes",void 0),m=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],m);let b=class extends o.wq{};(0,r._)([(0,s.J)({triangle:"triangle"})],b.prototype,"topology",void 0),(0,r._)([(0,i.Cb)()],b.prototype,"geometryBuffers",void 0),b=(0,r._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],b)},56765:(e,t,n)=>{n.d(t,{Z:()=>c});var r,o=n(43697),i=n(46791),s=n(96674),a=n(5600),l=(n(75215),n(67676),n(80442),n(52011));let u=r=class extends s.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=r=(0,o._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],u);const c=u},15506:(e,t,n)=>{n.d(t,{C:()=>r});const r={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},72729:(e,t,n)=>{n.d(t,{im:()=>T,V5:()=>C}),n(80442);var r,o=n(43697),i=n(22974),s=n(5600),a=(n(75215),n(36030)),l=n(52011),u=n(96674);n(67676);let c=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=r=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],c);const p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,a.J)(p)],d.prototype,"type",void 0),d=(0,o._)([(0,l.j)("esri.layers.support.Domain")],d);const f=d;var y;let h=y=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,s.Cb)({type:[c],json:{write:!0}})],h.prototype,"codedValues",void 0),(0,o._)([(0,a.J)({codedValue:"coded-value"})],h.prototype,"type",void 0),h=y=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],h);const m=h;var b;n(92604),n(20102);let g=b=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,o._)([(0,a.J)({inherited:"inherited"})],g.prototype,"type",void 0),g=b=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],g);const w=g;var v;let M=v=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],M.prototype,"maxValue",void 0),(0,o._)([(0,s.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],M.prototype,"minValue",void 0),(0,o._)([(0,a.J)({range:"range"})],M.prototype,"type",void 0),M=v=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],M);const S=M,C={key:"type",base:f,typeMap:{range:M,"coded-value":m,inherited:w}};function T(e){if(!e?.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return m.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=new(n(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},36405:(e,t,n)=>{function r(e,t){return t?.mode?t.mode:function(e){return e?u:c}(e).mode}function o(e,t){return r(null!=e&&e.hasZ,t)}function i(e,t,n){return n&&n.mode!==t?`${e} only support ${t} elevation mode`:null}function s(e,t,n){return n?.mode===t?`${e} do not support ${t} elevation mode`:null}function a(e,t){return null!=t?.featureExpressionInfo&&"0"!==t.featureExpressionInfo.expression?`${e} do not support featureExpressionInfo`:null}function l(e,t){t&&e.warn(".elevationInfo=",t)}n.d(t,{LR:()=>l,Uy:()=>i,VW:()=>o,Wb:()=>s,kf:()=>a}),n(12541);const u={mode:"absolute-height",offset:0},c={mode:"on-the-ground",offset:null}},58333:(e,t,n)=>{n.d(t,{ET:()=>i,I4:()=>o,eG:()=>l,lF:()=>s,lj:()=>c,qP:()=>a,wW:()=>u});const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},91891:(e,t,n)=>{n.d(t,{I_:()=>d,W7:()=>h,qM:()=>b});var r=n(20102),o=n(22974),i=n(92604),s=n(25683),a=n(35065);const l=i.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,n){let o="",i=0;for(;i<n;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(a),i+=2}else if(s>=224&&s<240){if(i+2>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(a),i+=3}else{if(!(s>=240&&s<248))throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);i+=4}}}return o}function c(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,a=w[s];n.fields[i.property]=a(e,r),r+=g[s].BYTES_PER_ELEMENT}return n.byteCount=r,n}function p(e,t,n){const o=[];let i,s,a=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(u(n,a,i-1)),0!==n[a+i-1])throw new r.Z("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=i}return o}function d(e,t){return new(0,g[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function f(e,t,n){const i=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let a=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],l=(0,o.d9)(t[n]);if(l.count=i.fields.count??0,"String"===l.valueType){if(l.byteOffset=a,l.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.Z("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.Z("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.Z("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=M(l.valueType);a+=a%e!=0?e-a%e:0,l.byteOffset=a,l.byteCount=e*l.valuesPerElement*l.count}}a+=l.byteCount??0,s.entries[n]=l}return s.byteCount=a-s.byteOffset,s}function y(e,t,n){if(t!==e&&l.error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.Z("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function h(e,t){const n=c(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:s},i=m[e]||"_"+e;o.vertexAttributes[i]=n,r+=M(n.valueType)*n.valuesPerElement*s}const a=i.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:a};o.faces[e]=n,r+=M(n.valueType)*n.valuesPerElement*a}}const l=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:l};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:M(n.valueType))*n.valuesPerElement*l}}return y(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const m={position:a.T.POSITION,normal:a.T.NORMAL,color:a.T.COLOR,uv0:a.T.UV0,region:a.T.UVREGION};function b(e,t,n){if("lepcc-rgb"===e.encoding)return(0,s.IT)(t);if("lepcc-intensity"===e.encoding)return(0,s.ti)(t);if(null!=e.encoding&&""!==e.encoding)throw new r.Z("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(l.warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(l.warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const o=f(t,e,n);y(o.byteOffset+o.byteCount,t.byteLength,"attribute");const i=o.entries.attributeValues||o.entries.objectIds;if(i){if("String"===i.valueType){const e=o.entries.attributeByteCounts,n=d(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,i);return i.timeEncoding?function(e,t,n){return p(e,t,n).map((e=>{const t=e?Date.parse(e):null;return t&&!Number.isNaN(t)?t:null}))}(e.count,n,r):p(e.count,n,r)}return d(t,i)}throw new r.Z("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const g={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function v(e){return g.hasOwnProperty(e)}function M(e){return v(e)?g[e].BYTES_PER_ELEMENT:0}},2358:(e,t,n)=>{n.d(t,{xe:()=>b});var r=n(3172),o=(n(67676),n(20102),n(80442),n(1533)),i=(n(21787),n(46521)),s=(n(52138),n(13598)),a=(n(51305),n(94961)),l=(n(17896),n(65617));n(2109),n(73615),n(82971),n(58995),n(83932),n(87360),(0,l.c)();var u=n(24470),c=(n(8744),n(14165),n(91891));n(22303);var p,d=n(88669);!function(e){e[e.INVISIBLE=0]="INVISIBLE",e[e.TRANSPARENT=1]="TRANSPARENT",e[e.OPAQUE=2]="OPAQUE"}(p||(p={}));(0,d.f)(0,0,0,.2),p.OPAQUE;(0,d.f)(0,0,0,.2),p.OPAQUE,n(6206);var f,y,h=n(87951),m=n(51417);async function b(e,t,n,o,i){const s=[];for(const r of t)if(r&&i.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;s.push({url:t,storageInfo:r})}const a=await Promise.allSettled(s.map((e=>(0,r.Z)(e.url,{responseType:"array-buffer"}).then((t=>(0,c.qM)(e.storageInfo,t.data)))))),l=[];for(const e of o){const t={};for(let n=0;n<a.length;n++){const r=a[n];if("fulfilled"===r.status){const o=r.value;t[s[n].storageInfo.name]=v(o,e)}}l.push(t)}return l}(0,u.Ue)(),(y=f||(f={}))[y.OUTSIDE=0]="OUTSIDE",y[y.INTERSECTS_CENTER_OUTSIDE=1]="INTERSECTS_CENTER_OUTSIDE",y[y.INTERSECTS_CENTER_INSIDE=2]="INTERSECTS_CENTER_INSIDE",y[y.INSIDE=3]="INSIDE";const g=-32768,w=-(2**31);function v(e,t){if(!e)return null;const n=e[t];return(0,o.z3)(e)?n===g?null:n:(0,o.Hx)(e)?n===w?null:n:n!=n?null:n}const M=new Array(24);new m.U(M,3),(0,l.c)(),(0,l.c)(),(0,i.a)(),(0,s.a)(),(0,a.a)(),(0,u.Ue)(),(0,u.Ue)(),(0,h.Ue)(),(0,l.c)(),new Array(72),(0,s.a)()},25683:(e,t,n)=>{n.d(t,{Gi:()=>u,IT:()=>y,ti:()=>b});var r=n(20102);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const a={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function l(e,t){return{sizeLo:e.getUint32(t+a.sizeLo,o),sizeHi:e.getUint32(t+a.sizeHi,o),minX:e.getFloat64(t+a.minX,o),minY:e.getFloat64(t+a.minY,o),minZ:e.getFloat64(t+a.minZ,o),maxX:e.getFloat64(t+a.maxX,o),maxY:e.getFloat64(t+a.maxY,o),maxZ:e.getFloat64(t+a.maxZ,o),errorX:e.getFloat64(t+a.errorX,o),errorY:e.getFloat64(t+a.errorY,o),errorZ:e.getFloat64(t+a.errorZ,o),count:e.getUint32(t+a.count,o),reserved:e.getUint32(t+a.reserved,o)}}function u(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=s(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(u>1)throw new r.Z("lepcc-decode-error","Unknown version");const p=l(t,n);if(n+=a.byteCount,p.sizeHi*2**32+p.sizeLo!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const d=new Float64Array(3*p.count),f=[],y=[],h=[],m=[];if(n=c(e,n,f),n=c(e,n,y),n=c(e,n,h),n=c(e,n,m),n!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad length");let b=0,g=0;for(let e=0;e<f.length;e++){g+=f[e];let t=0;for(let n=0;n<y[e];n++){t+=h[b];const e=m[b];d[3*b]=Math.min(p.maxX,p.minX+2*p.errorX*t),d[3*b+1]=Math.min(p.maxY,p.minY+2*p.errorY*g),d[3*b+2]=Math.min(p.maxZ,p.minZ+2*p.errorZ*e),b++}}return{errorX:p.errorX,errorY:p.errorY,errorZ:p.errorZ,result:d}}function c(e,t,n){const r=[];t=p(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=p(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function p(e,t,n){const i=new DataView(e,t),s=i.getUint8(0),a=31&s,l=!!(32&s),u=(192&s)>>6;let c=0;if(0===u)c=i.getUint32(1,o),t+=5;else if(1===u)c=i.getUint16(1,o),t+=3;else{if(2!==u)throw new r.Z("lepcc-decode-error","Bad count type");c=i.getUint8(1),t+=2}if(l)throw new r.Z("lepcc-decode-error","LUT not implemented");const p=Math.ceil(c*a/8),d=new Uint8Array(e,t,p);let f=0,y=0,h=0;const m=-1>>>32-a;for(let e=0;e<c;e++){for(;y<a;)f|=d[h]<<y,y+=8,h+=1;n[e]=f&m,f>>>=a,y-=a,y+a>32&&(f|=d[h-1]>>8-y)}return t+h}const d={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function f(e,t){return{sizeLo:e.getUint32(t+d.sizeLo,o),sizeHi:e.getUint32(t+d.sizeHi,o),count:e.getUint32(t+d.count,o),colorMapCount:e.getUint16(t+d.colorMapCount,o),lookupMethod:e.getUint8(t+d.lookupMethod),compressionMethod:e.getUint8(t+d.compressionMethod)}}function y(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new r.Z("lepcc-decode-error","Unknown version");const l=f(t,n);if(n+=d.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");if((2===l.lookupMethod||1===l.lookupMethod)&&0===l.compressionMethod){if(3*l.colorMapCount+l.count+n!==e.byteLength||l.colorMapCount>256)throw new r.Z("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*l.colorMapCount),o=new Uint8Array(e,n+3*l.colorMapCount,l.count),i=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===l.lookupMethod&&0===l.compressionMethod){if(3*l.count+n!==e.byteLength||0!==l.colorMapCount)throw new r.Z("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(l.lookupMethod<=2&&1===l.compressionMethod){if(n+3!==e.byteLength||1!==l.colorMapCount)throw new r.Z("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),s=t.getUint8(n+2),a=new Uint8Array(3*l.count);for(let e=0;e<l.count;e++)a[3*e]=o,a[3*e+1]=i,a[3*e+2]=s;return a}throw new r.Z("lepcc-decode-error","Bad method "+l.lookupMethod+","+l.compressionMethod)}const h={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function m(e,t){return{sizeLo:e.getUint32(t+h.sizeLo,o),sizeHi:e.getUint32(t+h.sizeHi,o),count:e.getUint32(t+h.count,o),scaleFactor:e.getUint16(t+h.scaleFactor,o),bitsPerPoint:e.getUint8(t+h.bitsPerPoint),reserved:e.getUint8(t+h.reserved)}}function b(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:a}=s(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new r.Z("lepcc-decode-error","Unknown version");const l=m(t,n);if(n+=h.byteCount,l.sizeHi*2**32+l.sizeLo!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const u=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,l.count);for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}else{const t=[];if(p(e,n,t)!==e.byteLength)throw new r.Z("lepcc-decode-error","Bad size");for(let e=0;e<l.count;e++)u[e]=t[e]*l.scaleFactor}return u}},6206:(e,t,n)=>{var r,o;n.d(t,{a9:()=>r}),n(22021),(o=r||(r={}))[o.Multiply=1]="Multiply",o[o.Ignore=2]="Ignore",o[o.Replace=3]="Replace",o[o.Tint=4]="Tint"},87951:(e,t,n)=>{n.d(t,{Ue:()=>c,gI:()=>p}),n(21787);var r=n(46521),o=n(51305),i=n(94961),s=n(17896),a=n(65617),l=(n(98766),n(88669)),u=(n(60437),n(62073),n(64822));function c(e=[0,0,0],t=[-1,-1,-1],n=(0,i.a)()){return{center:(0,a.g)(e),halfSize:(0,a.g)(t),quaternion:(0,i.b)(n)}}function p(e,t,n,r,i){if((0,o.c)(i.quaternion,e.quaternion),r===u.JY.Global){(0,o.a)(h,e.quaternion),(0,s.v)(d,e.center,h),(0,s.w)(f,d),(0,s.x)(y,f,e.halfSize),(0,s.u)(y,f,y);const r=(0,s.l)(y);(0,s.g)(y,f,e.halfSize);const a=(0,s.l)(y);if(r<n)(0,s.c)(i.center,e.center),(0,s.s)(d,n,n,n),(0,s.g)(i.halfSize,e.halfSize,d);else{const o=a>0?1+t/a:1,l=r>0?1+n/r:1,u=(l+o)/2,c=(l-o)/2;(0,s.i)(i.halfSize,f,c),(0,s.q)(i.halfSize,i.halfSize,e.halfSize,u),(0,s.i)(i.center,f,u),(0,s.q)(i.center,i.center,e.halfSize,c),(0,s.z)(d,d),(0,s.A)(i.center,i.center,d),(0,s.v)(i.center,i.center,i.quaternion)}}else{const r=(0,s.s)(d,0,0,1);(0,s.q)(i.center,e.center,r,(n+t)/2),(0,o.a)(h,e.quaternion),(0,s.v)(r,r,h),(0,s.w)(r,r),(0,s.q)(i.halfSize,e.halfSize,r,(n-t)/2)}return i}(0,i.a)(),(0,a.c)(),(0,a.c)(),(0,l.c)(),(0,r.a)(),(()=>{const e=new Int8Array(162);let t=0;const n=n=>{for(let r=0;r<n.length;r++)e[t+r]=n[r];t+=6};n([6,2,3,1,5,4]),n([0,2,3,1,5,4]),n([0,2,3,7,5,4]),n([0,1,3,2,6,4]),n([0,1,3,2,0,0]),n([0,1,5,7,3,2]),n([0,1,3,7,6,4]),n([0,1,3,7,6,2]),n([0,1,5,7,6,2]),n([0,1,5,4,6,2]),n([0,1,5,4,0,0]),n([0,1,3,7,5,4]),n([0,2,6,4,0,0]),n([0,0,0,0,0,0]),n([1,3,7,5,0,0]),n([2,3,7,6,4,0]),n([2,3,7,6,0,0]),n([2,3,1,5,7,6]),n([0,1,5,7,6,2]),n([0,1,5,7,6,4]),n([0,1,3,7,6,4]),n([4,5,7,6,2,0]),n([4,5,7,6,0,0]),n([4,5,1,3,7,6]),n([0,2,3,7,5,4]),n([6,2,3,7,5,4]),n([6,2,3,1,5,4])})();const d=(0,a.c)(),f=(0,a.c)(),y=(0,a.c)(),h=(0,i.a)()},51417:(e,t,n)=>{n.d(t,{U:()=>r,a:()=>o});class r{constructor(e,t,n=t){this.data=e,this.size=t,this.stride=n}}class o extends r{constructor(e,t,n,r=!1,o=n){super(e,n,o),this.indices=t,this.exclusive=r}}},64822:(e,t,n)=>{var r;n.d(t,{JY:()=>r}),function(e){e[e.Global=1]="Global",e[e.Local=2]="Local"}(r||(r={}))},19833:(e,t,n)=>{n.d(t,{V5:()=>i,e7:()=>o});var r=n(69165);async function o(e,t=e.popupTemplate){if(null==t)return[];const n=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:i,typeIdField:s,globalIdField:a,relationships:l}=e;if(n.includes("*"))return["*"];const u=o?(0,r.CH)(e):[],c=(0,r.Q0)(e.fieldsIndex,[...n,...u]);return s&&c.push(s),c&&i&&e.fieldsIndex?.has(i)&&!c.includes(i)&&c.push(i),c&&a&&e.fieldsIndex?.has(a)&&!c.includes(a)&&c.push(a),l&&l.forEach((t=>{const{keyField:n}=t;c&&n&&e.fieldsIndex?.has(n)&&!c.includes(n)&&c.push(n)})),c}function i(e,t){return e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&null!=e.defaultPopupTemplate?e.defaultPopupTemplate:null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6188],{13867:(t,e,s)=>{s.d(e,{z:()=>n});var i=s(69801);class n{constructor(t,e){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,s)=>{s.d(e,{WJ:()=>h,Xq:()=>o});var i,n,r=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,s,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,i.ALL);const h=1+Math.max(r,-3)- -3;this._db.set(e,{entry:s,size:n,lifetime:h,lives:h}),this._size+=n,t.size+=n,this._checkSizeLimits()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,s]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,s,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0},20188:(t,e,s)=>{function i(t){return null!=o(t)||null!=r(t)}function n(t){return o(t)??r(t)}function r(t){const e=new Date(t);return function(t,e){if(Number.isNaN(t.getTime()))return!1;let s=!0;if(l&&/\d+\W*$/.test(e)){const t=e.match(/[a-zA-Z]{2,}/);if(t){let e=!1,i=0;for(;!e&&i<=t.length;)e=!a.test(t[i]),i++;s=!e}}return s}(e,t)?Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset():null}function o(t){const e=h.exec(t);if(!e?.groups)return null;const s=e.groups,i=+s.year,n=+s.month-1,r=+s.day,o=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const u=s.ms??"0",c=u?+u.padEnd(3,"0").substring(0,3):0;let d;if(s.isUTC||!s.offsetSign)d=Date.UTC(i,n,r,o,a,l,c);else{const t=+s.offsetHours,e=+s.offsetMinutes;d=6e4*("+"===s.offsetSign?-1:1)*(60*t+e)+Date.UTC(i,n,r,o,a,l,c)}return Number.isNaN(d)?null:d}s.d(e,{o:()=>i,s:()=>n});const h=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,l=!Number.isNaN(new Date("technology 10").getTime())},24133:(t,e,s)=>{s.d(e,{Q:()=>o});var i=s(67676),n=s(44553),r=s(88764);class o{constructor(t=9,e){this._compareMinX=u,this._compareMinY=c,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),I.prune(),b.prune(),B.prune()}all(t){this._all(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(p(t,s))for(x.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;p(t,o)&&(s.leaf?e(r):g(t,o)?this._all(r,e):x.push(r))}s=x.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!p(t,e))return!1;for(x.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(p(t,r)){if(e.leaf||g(t,r))return!0;x.push(n)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new z([]),this}remove(t){if(!t)return this;let e,s=this._data,n=null,r=0,o=!1;const h=this._toBBox(t);for(b.clear(),B.clear();s||b.length>0;){if(s||(s=b.pop(),n=b.data[b.length-1],r=B.pop()??0,o=!0),s.leaf&&(e=(0,i.cq)(s.children,t,s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),b.push(s),this._condense(b),this;o||s.leaf||!g(s,h)?n?(r++,s=n.children[r],o=!1):s=null:(b.push(s),B.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let s=t;for(I.clear();s;){if(!0===s.leaf)for(const t of s.children)e(t);else I.pushArray(s.children);s=I.pop()??null}}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new z(t.slice(e,s+1));return h(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new M([]);o.height=i;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));y(t,e,s,l,this._compareMinX);for(let n=e;n<=s;n+=l){const e=Math.min(n+l-1,s);y(t,n,e,a,this._compareMinY);for(let s=n;s<=e;s+=a){const n=Math.min(s+a-1,e);o.children.push(this._build(t,s,n,i-1))}}return h(o,this._toBBox),o}_chooseSubtree(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=d(o),a=m(t,o)-h;a<n?(n=a,i=h<i?h:i,s=o):a===n&&h<i&&(i=h,s=o)}e=s||e.children[0]}return e}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);b.clear();const r=this._chooseSubtree(n,this._data,e,b);for(r.children.push(t),l(r,n);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(n,b,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),a=s.leaf?new z(o):new M(o);a.height=s.height,h(s,this._toBBox),h(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(s,a)}_splitRoot(t,e){this._data=new M([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=a(t,0,o,this._toBBox),h=a(t,o,s,this._toBBox),l=_(e,h),u=d(e)+d(h);l<i?(i=l,r=o,n=u<n?u:n):l===i&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:u,n=t.leaf?this._compareMinY:c;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=a(t,0,e,n),o=a(t,s-e,s,n);let h=f(r)+f(o);for(let i=e;i<s-e;i++){const e=t.children[i];l(r,t.leaf?n(e):e),h+=f(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];l(o,t.leaf?n(e):e),h+=f(o)}return h}_adjustParentBBoxes(t,e,s){for(let i=s;i>=0;i--)l(e.data[i],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.cq)(r,s,r.length,n.indexHint),1)}else this.clear();else h(s,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){a(t,0,t.children.length,e,t)}function a(t,e,s,i,n){n||(n=new z([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],l(n,t.leaf?i(r):r);return n}function l(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,s,i,n){const o=[e,s];for(;o.length;){const e=o.pop(),s=o.pop();if(e-s<=i)continue;const h=s+Math.ceil((e-s)/i/2)*i;(0,r.q)(t,h,s,e,n),o.push(s,h,h,e)}}const x=new n.Z,I=new n.Z,b=new n.Z,B=new n.Z({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class z extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class M extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,s)=>{s.d(e,{N1:()=>d,YP:()=>a,Z_:()=>_,gx:()=>l,nn:()=>g,on:()=>c,tX:()=>p}),s(66643),s(46791);var i=s(91460),n=s(50758),r=s(70586),o=s(95330),h=s(26258);function a(t,e,s={}){return u(t,e,s,f)}function l(t,e,s={}){return u(t,e,s,m)}function u(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.hw)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,h.aQ)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function c(t,e,s,o={}){let h=null,l=null,u=null;function c(){h&&l&&(l.remove(),o.onListenerRemove?.(h),h=null,l=null)}function d(t){o.once&&o.once&&(0,r.hw)(u),s(t)}const f=a(t,((t,s)=>{c(),(0,i.vT)(t)&&(h=t,l=(0,i.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return u=(0,n.kB)((()=>{f.remove(),c()})),u}function d(t,e){return function(t,e,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let h=null;function a(){h=(0,r.hw)(h)}return new Promise(((i,r)=>{h=(0,n.AL)([(0,o.fu)(s,(()=>{a(),r((0,o.zE)())})),u(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}s(87538);const _={sync:!0},g={initial:!0},p={sync:!0,initial:!0}},16306:(t,e,s)=>{s.d(e,{aX:()=>B});var i=s(68773),n=s(20102),r=s(92604),o=s(38913),h=s(58901),a=s(73913),l=s(8744),u=s(40488),c=(s(66577),s(3172)),d=s(33955),f=s(11282),m=s(17452);async function _(t,e,s){const i="string"==typeof t?(0,m.mN)(t):t,n=e[0].spatialReference,r=(0,d.Ji)(e[0]),o={...s,query:{...i.query,f:"json",sr:(0,l.B9)(n),geometries:JSON.stringify((a=e,{geometryType:(0,d.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}},{data:h}=await(0,c.Z)(i.path+"/simplify",o);var a;return function(t,e,s){const i=(0,d.q9)(e);return t.map((t=>{const e=i.fromJSON(t);return e.spatialReference=s,e}))}(h.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function y(t){return"polyline"===t[0].type}function x(t,e,s){if(e){const e=function(t,e){if(!(t instanceof h.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new n.Z(t)}const s=(0,a.x3)(t),i=[];for(const t of s){const s=[];i.push(s),s.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const n=t[i][0],r=t[i][1],o=t[i+1][0],h=t[i+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),l=(h-r)/a,u=(o-n)/a,c=a/e;if(c>1){for(let t=1;t<=c-1;t++){const i=t*e,o=u*i+n,h=l*i+r;s.push([o,h])}const t=(a+Math.floor(c-1)*e)/2,i=u*t+n,o=l*t+r;s.push([i,o])}s.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:i,spatialReference:t.spatialReference}):new h.Z({paths:i,spatialReference:t.spatialReference})}(t,1e6);t=(0,u.Sx)(e,!0)}return s&&(t=(0,a.Sy)(t,s)),t}function I(t,e,s){if(Array.isArray(t)){const i=t[0];if(i>e){const s=(0,a.XZ)(i,e);t[0]=i+s*(-2*e)}else if(i<s){const e=(0,a.XZ)(i,s);t[0]=i+e*(-2*s)}}else{const i=t.x;if(i>e){const s=(0,a.XZ)(i,e);t=t.clone().offset(s*(-2*e),0)}else if(i<s){const e=(0,a.XZ)(i,s);t=t.clone().offset(e*(-2*s),0)}}return t}function b(t,e){let s=-1;for(let i=0;i<e.cutIndexes.length;i++){const n=e.cutIndexes[i],r=e.geometries[i],o=(0,a.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const i=e[t][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,a.XZ)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(i,0))}return!0}}))}if(n===s){if(p(t))for(const e of(0,a.x3)(r))t[n]=t[n].addRing(e);else if(y(t))for(const e of(0,a.x3)(r))t[n]=t[n].addPath(e)}else s=n,t[n]=r}return t}async function B(t,e,s){if(!Array.isArray(t))return B([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??i.default.geometryServiceUrl;let r,m,p,y,v,S,z,M,w=0;const N=[],X=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,m=(0,l.C5)(r),p=r.isWebMercator,S=p?102100:4326,y=a.UZ[S].maxX,v=a.UZ[S].minX,z=a.UZ[S].plus180Line,M=a.UZ[S].minus180Line),m)if("mesh"===e.type)X.push(e);else if("point"===e.type)X.push(I(e.clone(),y,v));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>I(t,y,v))),X.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,m);X.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,s=(0,a.XZ)(t.xmin,v)*(2*y);let i=0===s?e.clone():(0,a.Sy)(e.clone(),s);t.offset(s,0),t.intersects(z)&&t.xmax!==y?(w=t.xmax>w?t.xmax:w,i=x(i,p),N.push(i),X.push("cut")):t.intersects(M)&&t.xmin!==v?(w=t.xmax*(2*y)>w?t.xmax*(2*y):w,i=x(i,p,360),N.push(i),X.push("cut")):X.push(i)}else X.push(e.clone());else X.push(e);else X.push(e);let Y=(0,a.XZ)(w,y),Z=-90;const R=Y,E=new h.Z;for(;Y>0;){const t=360*Y-180;E.addPath([[t,Z],[t,-1*Z]]),Z*=-1,Y--}if(N.length>0&&R>0){const e=b(N,await async function(t,e,s,i){const n=(0,f.en)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,l.B9)(r),target:JSON.stringify({geometryType:(0,d.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},h=await(0,c.Z)(n.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=h.data;return{cutIndexes:a,geometries:u.map((t=>{const e=(0,d.im)(t);return e.spatialReference=r,e}))}}(n,N,E,s)),i=[],r=[];for(let s=0;s<X.length;s++){const n=X[s];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(p?(0,u.$)(n):n)}}if(!i.length)return r;const o=await _(n,i,s),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(p?(0,u.$)(o.shift()):o.shift())}return h}const T=[];for(let t=0;t<X.length;t++){const e=X[t];if("cut"!==e)T.push(e);else{const t=N.shift();T.push(!0===p?(0,u.$)(t):t)}}return T}},73913:(t,e,s)=>{s.d(e,{Sy:()=>a,UZ:()=>o,XZ:()=>h,x3:()=>l});var i=s(58901),n=s(82971),r=s(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function a(t,e){const s=l(t);for(const t of s)for(const s of t)s[0]+=e;return t}function l(t){return(0,r.oU)(t)?t.rings:t.paths}},37549:(t,e,s)=>{s.d(e,{H:()=>h});var i=s(80442),n=s(24133),r=s(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,i.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((s,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},28972:(t,e,s)=>{s.d(e,{Z:()=>S});var i=s(67676),n=s(20102),r=s(32448),o=s(92604),h=s(60437),a=s(24470),l=s(98732),u=s(37549),c=s(42712);function d(t,e){return t?e?4:3:e?3:2}function f(t,e,s,i,n){if(!e?.lengths.length)return null;const r="upperLeft"===n?.originPosition?-1:1;t.lengths.length&&(t.lengths.length=0),t.coords.length&&(t.coords.length=0);const o=t.coords,h=[],a=s?[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:l,coords:u}=e,c=d(s,i);let f=0;for(const t of l){const e=m(a,u,f,t,s,i,r);e&&h.push(e),f+=t*c}if(h.sort(((t,e)=>{let i=r*t[2]-r*e[2];return 0===i&&s&&(i=t[4]-e[4]),i})),h.length){let t=6*h[0][2];o[0]=h[0][0]/t,o[1]=h[0][1]/t,s&&(t=6*h[0][4],o[2]=0!==t?h[0][3]/t:0),(o[0]<a[0]||o[0]>a[1]||o[1]<a[2]||o[1]>a[3]||s&&(o[2]<a[4]||o[2]>a[5]))&&(o.length=0)}if(!o.length){const t=e.lengths[0]?_(u,0,l[0],s,i):null;if(!t)return null;o[0]=t[0],o[1]=t[1],s&&t.length>2&&(o[2]=t[2])}return t}function m(t,e,s,i,n,r,o=1){const h=d(n,r);let a=s,l=s+h,u=0,c=0,f=0,m=0,_=0;for(let s=0,r=i-1;s<r;s++,a+=h,l+=h){const s=e[a],i=e[a+1],r=e[a+2],o=e[l],h=e[l+1],d=e[l+2];let g=s*h-o*i;m+=g,u+=(s+o)*g,c+=(i+h)*g,n&&(g=s*d-o*r,f+=(r+d)*g,_+=g),s<t[0]&&(t[0]=s),s>t[1]&&(t[1]=s),i<t[2]&&(t[2]=i),i>t[3]&&(t[3]=i),n&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(m*o>0&&(m*=-1),_*o>0&&(_*=-1),!m)return null;const g=[u,c,.5*m];return n&&(g[3]=f,g[4]=.5*_),g}function _(t,e,s,i,n){const r=d(i,n);let o=e,h=e+r,a=0,l=0,u=0,c=0;for(let e=0,n=s-1;e<n;e++,o+=r,h+=r){const e=t[o],s=t[o+1],n=t[o+2],r=t[h],d=t[h+1],f=t[h+2],m=i?p(e,s,n,r,d,f):g(e,s,r,d);if(m)if(a+=m,i){const t=x(e,s,n,r,d,f);l+=m*t[0],u+=m*t[1],c+=m*t[2]}else{const t=y(e,s,r,d);l+=m*t[0],u+=m*t[1]}}return a>0?i?[l/a,u/a,c/a]:[l/a,u/a]:s>0?i?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function g(t,e,s,i){const n=s-t,r=i-e;return Math.sqrt(n*n+r*r)}function p(t,e,s,i,n,r){const o=i-t,h=n-e,a=r-s;return Math.sqrt(o*o+h*h+a*a)}function y(t,e,s,i){return[t+.5*(s-t),e+.5*(i-e)]}function x(t,e,s,i,n,r){return[t+.5*(i-t),e+.5*(n-e),s+.5*(r-s)]}var I=s(70272),b=s(5428);const B={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new I.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=f(new b.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)},v=(0,h.Ue)();class S{constructor(t){this.geometryInfo=t,this._boundsStore=new u.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=B}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,c.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map((t=>this._upsert(t)));return this._emitChanged(),e.filter(i.pC)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,h.JR)(v,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,s)=>{this._markedIds.has(s)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let i;if(this._markedIds.add(e),s?(t.displayId=s.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,l.$)(null!=i?i:(0,a.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t)}_upsert(t){const e=t?.objectId;if(null==e)return o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const s=this._featuresById.get(e);if(!s)return this._add(t),t;this._markedIds.add(e);const{geometry:i,attributes:r}=t;for(const t in r)s.attributes[t]=r[t];return i&&(s.geometry=i,this._boundsStore.set(e,(0,l.$)((0,a.Ue)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},23095:(t,e,s)=>{s.d(e,{O0:()=>d,av:()=>a,b:()=>g,d1:()=>u,og:()=>_});var i=s(20188),n=s(8744),r=s(35671);class o{constructor(){this.code=null,this.description=null}}class h{constructor(t){this.error=new o,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=t}}function a(t){return new h(t)}class l{constructor(t){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=t}}function u(t){return new l(t)}const c=new Set;function d(t,e,s,i=!1){c.clear();for(const n in s){const o=t.get(n);if(!o)continue;const h=f(o,s[n]);if(c.add(o.name),o&&(i||o.editable)){const t=(0,r.Qc)(o,h);if(t)return a((0,r.vP)(t,o,h));e[o.name]=h}}for(const e of t?.requiredFields??[])if(!c.has(e.name))return a(`missing required field "${e.name}"`);return null}function f(t,e){let s=e;return(0,r.H7)(t)&&"string"==typeof e?s=parseFloat(e):(0,r.qN)(t)&&null!=e&&"string"!=typeof e?s=String(e):(0,r.y2)(t)&&"string"==typeof e&&(s=(0,i.s)(e)),(0,r.Pz)(s)}let m;function _(t,e){if(!t||!(0,n.JY)(e))return t;if("rings"in t||"paths"in t){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(e,t)}return t}async function g(t,e){!(0,n.JY)(t)||"esriGeometryPolygon"!==e&&"esriGeometryPolyline"!==e||await async function(){return null==m&&(m=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))),m}()}},11282:(t,e,s)=>{s.d(e,{cv:()=>h,en:()=>o,lA:()=>r}),s(68773),s(40330);var i=s(22974),n=s(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,n.mN)(t):(0,i.d9)(t)}function h(t,e,s){const i={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){i[n]=[];for(let t=0;t<r.length;t++)i[n][t]=h(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(s?.[n]);i[n]=e?t:JSON.stringify(t)}else i[n]=e?r:JSON.stringify(r);else i[n]=r}return i}s(71058)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6188],{13867:(t,e,s)=>{s.d(e,{z:()=>n});var i=s(69801);class n{constructor(t,e){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this),e&&this._storage.registerRemoveFunc("",e)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,s=1){this._storage.put(this,t,e,s,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},69801:(t,e,s)=>{s.d(e,{WJ:()=>h,Xq:()=>o});var i,n,r=s(44553);(n=i||(i={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(t,e,s){this.name=t,this._storage=e,this.id=a+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),s&&(this._storage.registerRemoveFunc(this.id,s),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(t,e,s,i=0){this._storage.put(this,t,e,s,i)}get(t){const e=this._storage.get(this,t);return void 0===e?++this._miss:++this._hit,e}peek(t){return this._storage.peek(this,t)}pop(t){const e=this._storage.pop(this,t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,s){this._storage.updateSize(this,t,e,s)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimits()}put(t,e,s,n,r){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==s&&this._notifyRemove(e,o.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(e,s,i.ALL);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${e}`),void this._notifyRemove(e,s,i.ALL);const h=1+Math.max(r,-3)- -3;this._db.set(e,{entry:s,size:n,lifetime:h,lives:h}),this._size+=n,t.size+=n,this._checkSizeLimits()}updateSize(t,e,s,n){e=t.id+e;const r=this._db.get(e);if(r&&r.entry===s){for(this._size-=r.size,t.size-=r.size;n>this._maxSize;){const t=this._notifyRemove(e,s,i.SOME);if(!(null!=t&&t>0))return void this._db.delete(e);n=t}r.size=n,this._size+=n,t.size+=n,this._checkSizeLimits()}}pop(t,e){e=t.id+e;const s=this._db.get(e);if(s)return this._size-=s.size,t.size-=s.size,this._db.delete(e),++this._hit,s.entry;++this._miss}get(t,e){e=t.id+e;const s=this._db.get(e);if(void 0!==s)return this._db.delete(e),s.lives=s.lifetime,this._db.set(e,s),++this._hit,s.entry;++this._miss}peek(t,e){const s=this._db.get(t.id+e);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},s=new Array;this._db.forEach(((t,i)=>{const n=t.lifetime;s[n]=(s[n]||0)+t.size,this._users.forAll((s=>{const{id:n,name:r}=s;if(i.startsWith(n)){const s=e[r]||0;e[r]=s+t.size}}))}));const i={};this._users.forAll((t=>{const s=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const n=e[s]||0;e[s]=n,i[s]=Math.round(100*t.hitRate)+"%"}else i[s]="0%"}));const n=Object.keys(e);n.sort(((t,s)=>e[s]-e[t])),n.forEach((s=>t[s]=Math.round(e[s]/2**20)+"MB / "+i[s]));for(let e=s.length-1;e>=0;--e){const i=s[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){const e=t.id;this._db.forEach(((t,s)=>{s.startsWith(e)&&(this._size-=t.size,this._db.delete(s),this._notifyRemove(s,t.entry,i.ALL))})),t.size=0}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._users.forEach((t=>t.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,s){let i;return this._removeFuncs.some((n=>{if(t.startsWith(n[0])){const t=n[1](e,s);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[t,e]of this._db)if(this._purgeItem(t,e),this._size<=.9*this.maxSize)return;this._users.forEach((t=>{if(t.maxSize>0&&t.size>t.maxSize)for(const[e,s]of this._db)if(e.startsWith(t.id)&&(this._purgeItem(e,s,t),t.size<=.9*t.maxSize))return}))}_purgeItem(t,e,s=this._users.find((e=>t.startsWith(e.id)))){if(this._db.delete(t),e.lives<=1){this._size-=e.size,s&&(s.size-=e.size);const n=this._notifyRemove(t,e.entry,i.SOME);null!=n&&n>0&&(this._size+=n,s&&(s.size+=n),e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}let a=0},20188:(t,e,s)=>{function i(t){return null!=o(t)||null!=r(t)}function n(t){return o(t)??r(t)}function r(t){const e=new Date(t);return function(t,e){if(Number.isNaN(t.getTime()))return!1;let s=!0;if(l&&/\d+\W*$/.test(e)){const t=e.match(/[a-zA-Z]{2,}/);if(t){let e=!1,i=0;for(;!e&&i<=t.length;)e=!a.test(t[i]),i++;s=!e}}return s}(e,t)?Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset():null}function o(t){const e=h.exec(t);if(!e?.groups)return null;const s=e.groups,i=+s.year,n=+s.month-1,r=+s.day,o=+(s.hours??"0"),a=+(s.minutes??"0"),l=+(s.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const u=s.ms??"0",c=u?+u.padEnd(3,"0").substring(0,3):0;let d;if(s.isUTC||!s.offsetSign)d=Date.UTC(i,n,r,o,a,l,c);else{const t=+s.offsetHours,e=+s.offsetMinutes;d=6e4*("+"===s.offsetSign?-1:1)*(60*t+e)+Date.UTC(i,n,r,o,a,l,c)}return Number.isNaN(d)?null:d}s.d(e,{o:()=>i,s:()=>n});const h=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,l=!Number.isNaN(new Date("technology 10").getTime())},24133:(t,e,s)=>{s.d(e,{Q:()=>o});var i=s(67676),n=s(44553),r=s(88764);class o{constructor(t=9,e){this._compareMinX=u,this._compareMinY=c,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),I.prune(),b.prune(),B.prune()}all(t){this._all(this._data,t)}search(t,e){let s=this._data;const i=this._toBBox;if(p(t,s))for(x.clear();s;){for(let n=0,r=s.children.length;n<r;n++){const r=s.children[n],o=s.leaf?i(r):r;p(t,o)&&(s.leaf?e(r):g(t,o)?this._all(r,e):x.push(r))}s=x.pop()}}collides(t){let e=this._data;const s=this._toBBox;if(!p(t,e))return!1;for(x.clear();e;){for(let i=0,n=e.children.length;i<n;i++){const n=e.children[i],r=e.leaf?s(n):n;if(p(t,r)){if(e.leaf||g(t,r))return!0;x.push(n)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,s=t.length;e<s;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new z([]),this}remove(t){if(!t)return this;let e,s=this._data,n=null,r=0,o=!1;const h=this._toBBox(t);for(b.clear(),B.clear();s||b.length>0;){if(s||(s=b.pop(),n=b.data[b.length-1],r=B.pop()??0,o=!0),s.leaf&&(e=(0,i.cq)(s.children,t,s.children.length,s.indexHint),-1!==e))return s.children.splice(e,1),b.push(s),this._condense(b),this;o||s.leaf||!g(s,h)?n?(r++,s=n.children[r],o=!1):s=null:(b.push(s),B.push(r),r=0,n=s,s=s.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let s=t;for(I.clear();s;){if(!0===s.leaf)for(const t of s.children)e(t);else I.pushArray(s.children);s=I.pop()??null}}_build(t,e,s,i){const n=s-e+1;let r=this._maxEntries;if(n<=r){const i=new z(t.slice(e,s+1));return h(i,this._toBBox),i}i||(i=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(i-1)));const o=new M([]);o.height=i;const a=Math.ceil(n/r),l=a*Math.ceil(Math.sqrt(r));y(t,e,s,l,this._compareMinX);for(let n=e;n<=s;n+=l){const e=Math.min(n+l-1,s);y(t,n,e,a,this._compareMinY);for(let s=n;s<=e;s+=a){const n=Math.min(s+a-1,e);o.children.push(this._build(t,s,n,i-1))}}return h(o,this._toBBox),o}_chooseSubtree(t,e,s,i){for(;i.push(e),!0!==e.leaf&&i.length-1!==s;){let s,i=1/0,n=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],h=d(o),a=m(t,o)-h;a<n?(n=a,i=h<i?h:i,s=o):a===n&&h<i&&(i=h,s=o)}e=s||e.children[0]}return e}_insert(t,e,s){const i=this._toBBox,n=s?t:i(t);b.clear();const r=this._chooseSubtree(n,this._data,e,b);for(r.children.push(t),l(r,n);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(n,b,e)}_split(t,e){const s=t.data[e],i=s.children.length,n=this._minEntries;this._chooseSplitAxis(s,n,i);const r=this._chooseSplitIndex(s,n,i);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=s.children.splice(r,s.children.length-r),a=s.leaf?new z(o):new M(o);a.height=s.height,h(s,this._toBBox),h(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(s,a)}_splitRoot(t,e){this._data=new M([t,e]),this._data.height=t.height+1,h(this._data,this._toBBox)}_chooseSplitIndex(t,e,s){let i,n,r;i=n=1/0;for(let o=e;o<=s-e;o++){const e=a(t,0,o,this._toBBox),h=a(t,o,s,this._toBBox),l=_(e,h),u=d(e)+d(h);l<i?(i=l,r=o,n=u<n?u:n):l===i&&u<n&&(n=u,r=o)}return r}_chooseSplitAxis(t,e,s){const i=t.leaf?this._compareMinX:u,n=t.leaf?this._compareMinY:c;this._allDistMargin(t,e,s,i)<this._allDistMargin(t,e,s,n)&&t.children.sort(i)}_allDistMargin(t,e,s,i){t.children.sort(i);const n=this._toBBox,r=a(t,0,e,n),o=a(t,s-e,s,n);let h=f(r)+f(o);for(let i=e;i<s-e;i++){const e=t.children[i];l(r,t.leaf?n(e):e),h+=f(r)}for(let i=s-e-1;i>=e;i--){const e=t.children[i];l(o,t.leaf?n(e):e),h+=f(o)}return h}_adjustParentBBoxes(t,e,s){for(let i=s;i>=0;i--)l(e.data[i],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const s=t.data[e];if(0===s.children.length)if(e>0){const n=t.data[e-1],r=n.children;r.splice((0,i.cq)(r,s,r.length,n.indexHint),1)}else this.clear();else h(s,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function h(t,e){a(t,0,t.children.length,e,t)}function a(t,e,s,i,n){n||(n=new z([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=e;o<s;o++)r=t.children[o],l(n,t.leaf?i(r):r);return n}function l(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){const s=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),n=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,n-s)*Math.max(0,r-i)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,s,i,n){const o=[e,s];for(;o.length;){const e=o.pop(),s=o.pop();if(e-s<=i)continue;const h=s+Math.ceil((e-s)/i/2)*i;(0,r.q)(t,h,s,e,n),o.push(s,h,h,e)}}const x=new n.Z,I=new n.Z,b=new n.Z,B=new n.Z({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class z extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class M extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,s)=>{s.d(e,{N1:()=>d,YP:()=>a,Z_:()=>_,gx:()=>l,nn:()=>g,on:()=>c,tX:()=>p}),s(66643),s(46791);var i=s(91460),n=s(50758),r=s(70586),o=s(95330),h=s(26258);function a(t,e,s={}){return u(t,e,s,f)}function l(t,e,s={}){return u(t,e,s,m)}function u(t,e,s={},i){let n=null;const o=s.once?(t,s)=>{i(t)&&((0,r.hw)(n),e(t,s))}:(t,s)=>{i(t)&&e(t,s)};if(n=(0,h.aQ)(t,o,s.sync,s.equals),s.initial){const e=t();o(e,e)}return n}function c(t,e,s,o={}){let h=null,l=null,u=null;function c(){h&&l&&(l.remove(),o.onListenerRemove?.(h),h=null,l=null)}function d(t){o.once&&o.once&&(0,r.hw)(u),s(t)}const f=a(t,((t,s)=>{c(),(0,i.vT)(t)&&(h=t,l=(0,i.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return u=(0,n.kB)((()=>{f.remove(),c()})),u}function d(t,e){return function(t,e,s){if((0,o.Hc)(s))return Promise.reject((0,o.zE)());const i=t();if(e?.(i))return Promise.resolve(i);let h=null;function a(){h=(0,r.hw)(h)}return new Promise(((i,r)=>{h=(0,n.AL)([(0,o.fu)(s,(()=>{a(),r((0,o.zE)())})),u(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}s(87538);const _={sync:!0},g={initial:!0},p={sync:!0,initial:!0}},16306:(t,e,s)=>{s.d(e,{aX:()=>B});var i=s(68773),n=s(20102),r=s(92604),o=s(38913),h=s(58901),a=s(73913),l=s(8744),u=s(40488),c=(s(66577),s(3172)),d=s(33955),f=s(11282),m=s(17452);async function _(t,e,s){const i="string"==typeof t?(0,m.mN)(t):t,n=e[0].spatialReference,r=(0,d.Ji)(e[0]),o={...s,query:{...i.query,f:"json",sr:(0,l.B9)(n),geometries:JSON.stringify((a=e,{geometryType:(0,d.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}},{data:h}=await(0,c.Z)(i.path+"/simplify",o);var a;return function(t,e,s){const i=(0,d.q9)(e);return t.map((t=>{const e=i.fromJSON(t);return e.spatialReference=s,e}))}(h.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function y(t){return"polyline"===t[0].type}function x(t,e,s){if(e){const e=function(t,e){if(!(t instanceof h.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new n.Z(t)}const s=(0,a.x3)(t),i=[];for(const t of s){const s=[];i.push(s),s.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const n=t[i][0],r=t[i][1],o=t[i+1][0],h=t[i+1][1],a=Math.sqrt((o-n)*(o-n)+(h-r)*(h-r)),l=(h-r)/a,u=(o-n)/a,c=a/e;if(c>1){for(let t=1;t<=c-1;t++){const i=t*e,o=u*i+n,h=l*i+r;s.push([o,h])}const t=(a+Math.floor(c-1)*e)/2,i=u*t+n,o=l*t+r;s.push([i,o])}s.push([o,h])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:i,spatialReference:t.spatialReference}):new h.Z({paths:i,spatialReference:t.spatialReference})}(t,1e6);t=(0,u.Sx)(e,!0)}return s&&(t=(0,a.Sy)(t,s)),t}function I(t,e,s){if(Array.isArray(t)){const i=t[0];if(i>e){const s=(0,a.XZ)(i,e);t[0]=i+s*(-2*e)}else if(i<s){const e=(0,a.XZ)(i,s);t[0]=i+e*(-2*s)}}else{const i=t.x;if(i>e){const s=(0,a.XZ)(i,e);t=t.clone().offset(s*(-2*e),0)}else if(i<s){const e=(0,a.XZ)(i,s);t=t.clone().offset(e*(-2*s),0)}}return t}function b(t,e){let s=-1;for(let i=0;i<e.cutIndexes.length;i++){const n=e.cutIndexes[i],r=e.geometries[i],o=(0,a.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((s=>{if(s[0]<180)return!0;{let s=0;for(let t=0;t<e.length;t++){const i=e[t][0];s=i>s?i:s}s=Number(s.toFixed(9));const i=-360*(0,a.XZ)(s,180);for(let s=0;s<e.length;s++){const e=r.getPoint(t,s);r.setPoint(t,s,e.clone().offset(i,0))}return!0}}))}if(n===s){if(p(t))for(const e of(0,a.x3)(r))t[n]=t[n].addRing(e);else if(y(t))for(const e of(0,a.x3)(r))t[n]=t[n].addPath(e)}else s=n,t[n]=r}return t}async function B(t,e,s){if(!Array.isArray(t))return B([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof e?e:e?.url??i.default.geometryServiceUrl;let r,m,p,y,v,S,z,M,w=0;const N=[],X=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,m=(0,l.C5)(r),p=r.isWebMercator,S=p?102100:4326,y=a.UZ[S].maxX,v=a.UZ[S].minX,z=a.UZ[S].plus180Line,M=a.UZ[S].minus180Line),m)if("mesh"===e.type)X.push(e);else if("point"===e.type)X.push(I(e.clone(),y,v));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>I(t,y,v))),X.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,m);X.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,s=(0,a.XZ)(t.xmin,v)*(2*y);let i=0===s?e.clone():(0,a.Sy)(e.clone(),s);t.offset(s,0),t.intersects(z)&&t.xmax!==y?(w=t.xmax>w?t.xmax:w,i=x(i,p),N.push(i),X.push("cut")):t.intersects(M)&&t.xmin!==v?(w=t.xmax*(2*y)>w?t.xmax*(2*y):w,i=x(i,p,360),N.push(i),X.push("cut")):X.push(i)}else X.push(e.clone());else X.push(e);else X.push(e);let Y=(0,a.XZ)(w,y),Z=-90;const R=Y,E=new h.Z;for(;Y>0;){const t=360*Y-180;E.addPath([[t,Z],[t,-1*Z]]),Z*=-1,Y--}if(N.length>0&&R>0){const e=b(N,await async function(t,e,s,i){const n=(0,f.en)(t),r=e[0].spatialReference,o={...i,responseType:"json",query:{...n.query,f:"json",sr:(0,l.B9)(r),target:JSON.stringify({geometryType:(0,d.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(s)}},h=await(0,c.Z)(n.path+"/cut",o),{cutIndexes:a,geometries:u=[]}=h.data;return{cutIndexes:a,geometries:u.map((t=>{const e=(0,d.im)(t);return e.spatialReference=r,e}))}}(n,N,E,s)),i=[],r=[];for(let s=0;s<X.length;s++){const n=X[s];if("cut"!==n)r.push(n);else{const n=e.shift(),o=t[s];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(i.push(n),r.push("simplify")):r.push(p?(0,u.$)(n):n)}}if(!i.length)return r;const o=await _(n,i,s),h=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?h.push(e):h.push(p?(0,u.$)(o.shift()):o.shift())}return h}const T=[];for(let t=0;t<X.length;t++){const e=X[t];if("cut"!==e)T.push(e);else{const t=N.shift();T.push(!0===p?(0,u.$)(t):t)}}return T}},73913:(t,e,s)=>{s.d(e,{Sy:()=>a,UZ:()=>o,XZ:()=>h,x3:()=>l});var i=s(58901),n=s(82971),r=s(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function a(t,e){const s=l(t);for(const t of s)for(const s of t)s[0]+=e;return t}function l(t){return(0,r.oU)(t)?t.rings:t.paths}},37549:(t,e,s)=>{s.d(e,{H:()=>h});var i=s(80442),n=s(24133),r=s(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class h{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,i.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((s,i)=>{t[e++]=i})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,s){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,s)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},28972:(t,e,s)=>{s.d(e,{Z:()=>S});var i=s(67676),n=s(20102),r=s(32448),o=s(92604),h=s(60437),a=s(24470),l=s(98732),u=s(37549),c=s(42712);function d(t,e){return t?e?4:3:e?3:2}function f(t,e,s,i,n){if(!e?.lengths.length)return null;const r="upperLeft"===n?.originPosition?-1:1;t.lengths.length&&(t.lengths.length=0),t.coords.length&&(t.coords.length=0);const o=t.coords,h=[],a=s?[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:l,coords:u}=e,c=d(s,i);let f=0;for(const t of l){const e=m(a,u,f,t,s,i,r);e&&h.push(e),f+=t*c}if(h.sort(((t,e)=>{let i=r*t[2]-r*e[2];return 0===i&&s&&(i=t[4]-e[4]),i})),h.length){let t=6*h[0][2];o[0]=h[0][0]/t,o[1]=h[0][1]/t,s&&(t=6*h[0][4],o[2]=0!==t?h[0][3]/t:0),(o[0]<a[0]||o[0]>a[1]||o[1]<a[2]||o[1]>a[3]||s&&(o[2]<a[4]||o[2]>a[5]))&&(o.length=0)}if(!o.length){const t=e.lengths[0]?_(u,0,l[0],s,i):null;if(!t)return null;o[0]=t[0],o[1]=t[1],s&&t.length>2&&(o[2]=t[2])}return t}function m(t,e,s,i,n,r,o=1){const h=d(n,r);let a=s,l=s+h,u=0,c=0,f=0,m=0,_=0;for(let s=0,r=i-1;s<r;s++,a+=h,l+=h){const s=e[a],i=e[a+1],r=e[a+2],o=e[l],h=e[l+1],d=e[l+2];let g=s*h-o*i;m+=g,u+=(s+o)*g,c+=(i+h)*g,n&&(g=s*d-o*r,f+=(r+d)*g,_+=g),s<t[0]&&(t[0]=s),s>t[1]&&(t[1]=s),i<t[2]&&(t[2]=i),i>t[3]&&(t[3]=i),n&&(r<t[4]&&(t[4]=r),r>t[5]&&(t[5]=r))}if(m*o>0&&(m*=-1),_*o>0&&(_*=-1),!m)return null;const g=[u,c,.5*m];return n&&(g[3]=f,g[4]=.5*_),g}function _(t,e,s,i,n){const r=d(i,n);let o=e,h=e+r,a=0,l=0,u=0,c=0;for(let e=0,n=s-1;e<n;e++,o+=r,h+=r){const e=t[o],s=t[o+1],n=t[o+2],r=t[h],d=t[h+1],f=t[h+2],m=i?p(e,s,n,r,d,f):g(e,s,r,d);if(m)if(a+=m,i){const t=x(e,s,n,r,d,f);l+=m*t[0],u+=m*t[1],c+=m*t[2]}else{const t=y(e,s,r,d);l+=m*t[0],u+=m*t[1]}}return a>0?i?[l/a,u/a,c/a]:[l/a,u/a]:s>0?i?[t[e],t[e+1],t[e+2]]:[t[e],t[e+1]]:null}function g(t,e,s,i){const n=s-t,r=i-e;return Math.sqrt(n*n+r*r)}function p(t,e,s,i,n,r){const o=i-t,h=n-e,a=r-s;return Math.sqrt(o*o+h*h+a*a)}function y(t,e,s,i){return[t+.5*(s-t),e+.5*(i-e)]}function x(t,e,s,i,n,r){return[t+.5*(i-t),e+.5*(n-e),s+.5*(r-s)]}var I=s(70272),b=s(5428);const B={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e)=>new I.u_(e,t.attributes,null,t.objectId),getGeometry:t=>t.geometry,getCentroid:(t,e)=>(null==t.centroid&&(t.centroid=f(new b.Z,t.geometry,e.hasZ,e.hasM)),t.centroid)},v=(0,h.Ue)();class S{constructor(t){this.geometryInfo=t,this._boundsStore=new u.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=B}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach((e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;const[e,s,i,n]=this.fullBounds;return{xmin:e,ymin:s,xmax:i,ymax:n,spatialReference:(0,c.S2)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(const e of t)this._add(e);this._emitChanged()}upsertMany(t){const e=t.map((t=>this._upsert(t)));return this._emitChanged(),e.filter(i.pC)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(t){const e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(const e of t){const t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(const s of t){const t=this._boundsStore.get(s.objectId);t&&e((0,h.JR)(v,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach((e=>t(e)))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,(t=>{e(this._featuresById.get(t))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let t=!1;this._featuresById.forEach(((e,s)=>{this._markedIds.has(s)||(t=!0,this._remove(e))})),this._markedIds.clear(),t&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;const e=t.objectId;if(null==e)return void o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:t}));const s=this._featuresById.get(e);let i;if(this._markedIds.add(e),s?(t.displayId=s.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e)):null!=this.onFeatureAdd&&this.onFeatureAdd(t),!t.geometry?.coords?.length)return this._boundsStore.set(e,null),void this._featuresById.set(e,t);i=(0,l.$)(null!=i?i:(0,a.Ue)(),t.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t)}_upsert(t){const e=t?.objectId;if(null==e)return o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:t})),null;const s=this._featuresById.get(e);if(!s)return this._add(t),t;this._markedIds.add(e);const{geometry:i,attributes:r}=t;for(const t in r)s.attributes[t]=r[t];return i&&(s.geometry=i,this._boundsStore.set(e,(0,l.$)((0,a.Ue)(),i,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),s}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);const e=t.objectId;return this._markedIds.delete(e),this._boundsStore.delete(e),this._featuresById.delete(e),t}}},23095:(t,e,s)=>{s.d(e,{O0:()=>d,av:()=>a,b:()=>g,d1:()=>u,og:()=>_});var i=s(20188),n=s(8744),r=s(69165);class o{constructor(){this.code=null,this.description=null}}class h{constructor(t){this.error=new o,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=t}}function a(t){return new h(t)}class l{constructor(t){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=t}}function u(t){return new l(t)}const c=new Set;function d(t,e,s,i=!1){c.clear();for(const n in s){const o=t.get(n);if(!o)continue;const h=f(o,s[n]);if(c.add(o.name),o&&(i||o.editable)){const t=(0,r.Qc)(o,h);if(t)return a((0,r.vP)(t,o,h));e[o.name]=h}}for(const e of t?.requiredFields??[])if(!c.has(e.name))return a(`missing required field "${e.name}"`);return null}function f(t,e){let s=e;return(0,r.H7)(t)&&"string"==typeof e?s=parseFloat(e):(0,r.qN)(t)&&null!=e&&"string"!=typeof e?s=String(e):(0,r.y2)(t)&&"string"==typeof e&&(s=(0,i.s)(e)),(0,r.Pz)(s)}let m;function _(t,e){if(!t||!(0,n.JY)(e))return t;if("rings"in t||"paths"in t){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(e,t)}return t}async function g(t,e){!(0,n.JY)(t)||"esriGeometryPolygon"!==e&&"esriGeometryPolyline"!==e||await async function(){return null==m&&(m=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))),m}()}},11282:(t,e,s)=>{s.d(e,{cv:()=>h,en:()=>o,lA:()=>r}),s(68773),s(40330);var i=s(22974),n=s(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,n.mN)(t):(0,i.d9)(t)}function h(t,e,s){const i={};for(const n in t){if("declaredClass"===n)continue;const r=t[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){i[n]=[];for(let t=0;t<r.length;t++)i[n][t]=h(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(s?.[n]);i[n]=e?t:JSON.stringify(t)}else i[n]=e?r:JSON.stringify(r);else i[n]=r}return i}s(71058)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3966],{22862:(e,t,n)=>{n.d(t,{Hg:()=>y,V7:()=>f,uD:()=>d});var o=n(92036),r=n(46791),i=n(1153);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof o.Z}function a(e){return e instanceof r.Z?Object.keys(e.items):l(e)?(0,i.vw)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.Z?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const o=a(e),r=a(t);if(0===o.length&&0===r.length)return;if(!o.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const i=r.filter((e=>!o.includes(e))),d=o.filter((e=>!r.includes(e))),f=o.filter((n=>r.includes(n)&&u(e,n)!==u(t,n))).concat(i,d).sort(),y=c(e);if(y&&s.has(y)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const g=l(e)&&l(t);for(const o of f){const r=u(e,o),i=u(t,o);let s;if((g||"function"!=typeof r&&"function"!=typeof i)&&r!==i&&(null!=r||null!=i)){if(n&&n[o]&&"function"==typeof n[o])s=n[o]?.(r,i);else if(r instanceof Date&&i instanceof Date){if(r.getTime()===i.getTime())continue;s={type:"complete",oldValue:r,newValue:i}}else s="object"==typeof r&&"object"==typeof i&&c(r)===c(i)?p(r,i):{type:"complete",oldValue:r,newValue:i};null!=s&&(null!=m?m.diff[o]=s:m={type:"partial",diff:{[o]:s}})}}return m}function d(e,t){if(null==e)return!1;const n=t.split(".");let o=e;for(const e of n){if("complete"===o.type)return!0;if("partial"!==o.type)return!1;{const t=o.diff[e];if(!t)return!1;o=t}}return!0}function f(e,t){for(const n of t)if(d(e,n))return!0;return!1}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},20188:(e,t,n)=>{function o(e){return null!=s(e)||null!=i(e)}function r(e){return s(e)??i(e)}function i(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(u&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,o=0;for(;!t&&o<=e.length;)t=!a.test(e[o]),o++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function s(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,o=+n.year,r=+n.month-1,i=+n.day,s=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(s>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",p=c?+c.padEnd(3,"0").substring(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(o,r,i,s,a,u,p);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(o,r,i,s,a,u,p)}return Number.isNaN(d)?null:d}n.d(t,{o:()=>o,s:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,u=!Number.isNaN(new Date("technology 10").getTime())},92722:(e,t,n)=>{n.d(t,{O3:()=>T,lG:()=>C,my:()=>F,q9:()=>c});var o=n(20188),r=n(20102),i=n(8744),s=n(70272),l=n(5428),a=n(35671);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function y(e){let t=0;for(let n=0;n<e.length;n++){const o=e[n],r=e[(n+1)%e.length];t+=o[0]*r[1]-r[0]*o[1]}return t<=0}function m(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function g(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return w(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const o of t.coordinates)w(e,o,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const o of t.coordinates){h(e,o[0],n);for(let t=1;t<o.length;t++)b(e,o[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return v(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const o=t.coordinates;h(e,o[0],n);for(let t=1;t<o.length;t++)b(e,o[t],n);return e}(e,t,n)}}function h(e,t,n){const o=m(t);!function(e){return!y(e)}(o)?w(e,o,n):S(e,o,n)}function b(e,t,n){const o=m(t);!function(e){return y(e)}(o)?w(e,o,n):S(e,o,n)}function w(e,t,n){for(const o of t)v(e,o,n);e.lengths.push(t.length)}function S(e,t,n){for(let o=t.length-1;o>=0;o--)v(e,t[o],n);e.lengths.push(t.length)}function v(e,t,n){const[o,r,i]=t;e.coords.push(o,r),n.hasZ&&e.coords.push(i||0)}function j(e){switch(typeof e){case"string":return(0,o.o)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function T(e,t=4326){if(!e)throw new r.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const o="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,s=(0,i.oR)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!o||!s.test(o))throw new r.Z("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function F(e,t={}){const n=[],o=new Set,r=new Set;let i,s=!1,l=null,u=!1,{geometryType:y=null}=t,m=!1;for(const t of p(e)){const{geometry:e,properties:p,id:g}=t;if((!e||(y||(y=c(e.type)),c(e.type)===y))&&(s||(s=f(d(e))),u||(u=null!=g,u&&(i=typeof g,p&&(l=Object.keys(p).filter((e=>p[e]===g))))),p&&l&&u&&null!=g&&(l.length>1?l=l.filter((e=>p[e]===g)):1===l.length&&(l=p[l[0]]===g?l:[])),!m&&p)){let e=!0;for(const t in p){if(o.has(t))continue;const i=p[t];if(null==i){e=!1,r.add(t);continue}const s=j(i);if("unknown"===s){r.add(t);continue}r.delete(t),o.add(t);const l=(0,a.q6)(t);l&&n.push({name:l,alias:t,type:s})}m=e}}const g=(0,a.q6)(1===l?.length&&l[0]||null)??void 0;if(g)for(const e of n)if(e.name===g&&(0,a.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:y,hasZ:s,objectIdFieldName:g,objectIdFieldType:i,unknownFields:Array.from(r)}}function C(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:o}=t;for(const r of e){const{geometry:e,properties:i,id:a}=r;if(e&&c(e.type)!==n)continue;const u=i||{};let p;o&&(p=u[o],null==a||p||(u[o]=p=a));const d=new s.u_(e?g(new l.Z,e,t):null,u,null,p??void 0);yield d}}(p(e),t))}},25278:(e,t,n)=>{n.d(t,{Dm:()=>c,Hq:()=>p,MS:()=>d,bU:()=>l});var o=n(80442),r=n(22974),i=n(61159),s=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,o.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${a.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const o=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new o}catch(n){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},16467:(e,t,n)=>{n.d(t,{$9:()=>b,G4:()=>v,Lu:()=>h,WW:()=>k,d:()=>F,eS:()=>T,gp:()=>j,j:()=>S,w9:()=>w,yN:()=>C}),n(66577);var o=n(3172),r=n(20102),i=n(92604),s=n(8744),l=n(40488),a=n(98732),u=n(44876),c=n(92722),p=n(25278),d=n(99514),f=n(86719),y=n(25031),m=n(82971);const g=i.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),h="http://www.opengis.net/def/crs/",b=`${h}OGC/1.3/CRS84`;async function w(e,t,n={},i=5){const{links:s}=e,l=x(s,"items","application/geo+json")||x(s,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if(null==l)throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:a}=await(0,o.Z)(l.href,{signal:n.signal,query:{limit:i,...n.customParameters,token:n.apiKey},headers:{accept:"application/geo+json"}});(0,c.O3)(a);const u=(0,c.my)(a,{geometryType:t.geometryType}),m=t.fields||u.fields||[],h=null!=t.hasZ?t.hasZ:u.hasZ,b=u.geometryType,w=t.objectIdField||u.objectIdFieldName||"OBJECTID";let S=t.timeInfo;const v=m.find((({name:e})=>e===w));if(v)v.editable=!1,v.nullable=!1;else{if(!u.objectIdFieldType)throw new r.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:w,alias:w,type:"number"===u.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if(w!==u.objectIdFieldName){const e=m.find((({name:e})=>e===u.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===u.fields&&u.unknownFields.length>0&&g.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:u.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new r.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!f.v.jsonValues.includes(e.type))throw new r.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(S){const e=new d.Z(m);if(S.startTimeField){const t=e.get(S.startTimeField);t?(S.startTimeField=t.name,t.type="esriFieldTypeDate"):S.startTimeField=null}if(S.endTimeField){const t=e.get(S.endTimeField);t?(S.endTimeField=t.name,t.type="esriFieldTypeDate"):S.endTimeField=null}if(S.trackIdField){const t=e.get(S.trackIdField);t?S.trackIdField=t.name:(S.trackIdField=null,g.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}S.timeReference||={timeZoneIANA:y.pt},S.startTimeField||S.endTimeField||(g.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}return{drawingInfo:b?(0,p.bU)(b):null,extent:Z(e),geometryType:b,fields:m,hasZ:!!h,objectIdField:w,timeInfo:S}}async function S(e,t={}){const{links:n}=e,i=x(n,"data","application/json")||x(n,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if(null==i)throw new r.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:s,customParameters:l,signal:a}=t,{data:u}=await(0,o.Z)(i.href,{signal:a,headers:{accept:"application/json"},query:{...l,token:s}});return u}async function v(e,t={}){const{links:n}=e,i=x(n,"conformance","application/json")||x(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if(null==i)throw new r.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:s,customParameters:l,signal:a}=t,{data:u}=await(0,o.Z)(i.href,{signal:a,headers:{accept:"application/json"},query:{...l,token:s}});return u}async function j(e,t={}){const{apiKey:n,customParameters:r,signal:i}=t,{data:s}=await(0,o.Z)(e,{signal:i,headers:{accept:"application/json"},query:{...r,token:n}});return s}async function T(e,t={}){const n="application/vnd.oai.openapi+json;version=3.0",r=x(e.links,"service-desc",n);if(null==r)return g.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:i,customParameters:s,signal:l}=t,{data:a}=await(0,o.Z)(r.href,{signal:l,headers:{accept:n},query:{...s,token:i}});return a}function F(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=t?.groups;if(!n)return null;const{authority:o,code:r}=n;switch(o.toLowerCase()){case"ogc":switch(r.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function C(e,t,n){const o=await k(e,t,n);return(0,a.cn)(o)}async function k(e,t,n){const{collection:i,layerDefinition:p,maxRecordCount:d,queryParameters:{apiKey:f,customParameters:y},spatialReference:g,supportedCrs:h}=e,{links:b}=i,w=x(b,"items","application/geo+json")||x(b,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if(null==w)throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:S,num:v,start:j,timeExtent:T,where:F}=t;if(t.objectIds)throw new r.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const C=m.Z.fromJSON(g),k=t.outSpatialReference??C,N=k.isWGS84?null:I(k,h),Z=V(S,h),O=function(e){if(null==e)return null;const{start:t,end:n}=e;return`${null!=t?t.toISOString():".."}/${null!=n?n.toISOString():".."}`}(T),P=null!=(A=F)&&A&&"1=1"!==A?A:null,D=v??(null!=j&&void 0!==j?10:d),{data:_}=await(0,o.Z)(w.href,{...n,query:{...y,...Z,crs:N,datetime:O,query:P,limit:D,startindex:j,token:f},headers:{accept:"application/geo+json"}});var A;let M=!1;_.links&&(M=!!_.links.find((e=>"next"===e.rel))),!M&&Number.isInteger(_.numberMatched)&&Number.isInteger(_.numberReturned)&&(M=_.numberReturned<_.numberMatched);const{fields:G,geometryType:$,hasZ:q,objectIdField:R}=p,L=(0,c.lG)(_,{geometryType:$,hasZ:q,objectIdField:R});if(!N&&k.isWebMercator)for(const e of L)if(null!=e.geometry&&null!=$){const t=(0,a.di)(e.geometry,$,q,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,a.GH)((0,l.iV)(t,k))}for(const e of L)e.objectId=e.attributes[R];const J=N||!N&&k.isWebMercator?k.toJSON():s.Zn,W=new u.Z;return W.exceededTransferLimit=M,W.features=L,W.fields=G,W.geometryType=$,W.hasZ=q,W.objectIdFieldName=R,W.spatialReference=J,W}function I(e,t){const{isWebMercator:n,wkid:o}=e;if(!o)return null;const r=n?t[3857]??t[102100]??t[102113]??t[900913]:t[e.wkid];return r?`${h}${r}`:null}function N(e){if(null==e)return"";const{xmin:t,ymin:n,xmax:o,ymax:r}=e;return`${t},${n},${o},${r}`}function V(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:N(e)};const o=I(n,t);return null!=o?{bbox:N(e),"bbox-crs":o}:n.isWebMercator?{bbox:N((0,l.iV)(e,m.Z.WGS84))}:null}function Z(e){const t=e.extent?.spatial;if(!t)return null;const n=t.bbox[0],o=4===n.length,r=n[0],i=n[1],s=o?void 0:n[2];return{xmin:r,ymin:i,xmax:o?n[2]:n[3],ymax:o?n[3]:n[4],zmin:s,zmax:o?void 0:n[5],spatialReference:m.Z.WGS84.toJSON()}}function x(e,t,n){return e.find((e=>e.rel===t&&e.type===n))||e.find((e=>e.rel===t&&!e.type))}},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var o,r=n(43697),i=n(35454),s=n(96674),l=n(5600),a=n(75215),u=(n(67676),n(80442),n(36030)),c=n(71715),p=n(52011),d=n(72729),f=n(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=o=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new o({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,l.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,l.Cb)({type:a.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,u.J)(f.v)],m.prototype,"type",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=o=(0,r._)([(0,p.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>F,V5:()=>T}),n(80442);var o,r=n(43697),i=n(22974),s=n(5600),l=(n(75215),n(36030)),a=n(52011),u=n(96674);n(67676);let c=o=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new o({name:this.name,code:this.code})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=o=(0,r._)([(0,a.j)("esri.layers.support.CodedValue")],c);const p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,l.J)(p)],d.prototype,"type",void 0),d=(0,r._)([(0,a.j)("esri.layers.support.Domain")],d);const f=d;var y;let m=y=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,s.Cb)({type:[c],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,r._)([(0,l.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,r._)([(0,a.j)("esri.layers.support.CodedValueDomain")],m);const g=m;var h;n(92604),n(20102);let b=h=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new h}};(0,r._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=h=(0,r._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const w=b;var S;let v=S=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],v.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],v.prototype,"minValue",void 0),(0,r._)([(0,l.J)({range:"range"})],v.prototype,"type",void 0),v=S=(0,r._)([(0,a.j)("esri.layers.support.RangeDomain")],v);const j=v,T={key:"type",base:f,typeMap:{range:v,"coded-value":g,inherited:w}};function F(e){if(!e?.type)return null;switch(e.type){case"range":return j.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},58333:(e,t,n)=>{n.d(t,{ET:()=>i,I4:()=>r,eG:()=>a,lF:()=>s,lj:()=>c,qP:()=>l,wW:()=>u});const o=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:o,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:o},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3966],{22862:(e,t,n)=>{n.d(t,{Hg:()=>y,V7:()=>f,uD:()=>d});var o=n(92036),r=n(46791),i=n(1153);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof o.Z}function a(e){return e instanceof r.Z?Object.keys(e.items):l(e)?(0,i.vw)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.Z?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const o=a(e),r=a(t);if(0===o.length&&0===r.length)return;if(!o.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const i=r.filter((e=>!o.includes(e))),d=o.filter((e=>!r.includes(e))),f=o.filter((n=>r.includes(n)&&u(e,n)!==u(t,n))).concat(i,d).sort(),y=c(e);if(y&&s.has(y)&&f.length)return{type:"complete",oldValue:e,newValue:t};let m;const g=l(e)&&l(t);for(const o of f){const r=u(e,o),i=u(t,o);let s;if((g||"function"!=typeof r&&"function"!=typeof i)&&r!==i&&(null!=r||null!=i)){if(n&&n[o]&&"function"==typeof n[o])s=n[o]?.(r,i);else if(r instanceof Date&&i instanceof Date){if(r.getTime()===i.getTime())continue;s={type:"complete",oldValue:r,newValue:i}}else s="object"==typeof r&&"object"==typeof i&&c(r)===c(i)?p(r,i):{type:"complete",oldValue:r,newValue:i};null!=s&&(null!=m?m.diff[o]=s:m={type:"partial",diff:{[o]:s}})}}return m}function d(e,t){if(null==e)return!1;const n=t.split(".");let o=e;for(const e of n){if("complete"===o.type)return!0;if("partial"!==o.type)return!1;{const t=o.diff[e];if(!t)return!1;o=t}}return!0}function f(e,t){for(const n of t)if(d(e,n))return!0;return!1}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},20188:(e,t,n)=>{function o(e){return null!=s(e)||null!=i(e)}function r(e){return s(e)??i(e)}function i(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(u&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,o=0;for(;!t&&o<=e.length;)t=!a.test(e[o]),o++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function s(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,o=+n.year,r=+n.month-1,i=+n.day,s=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(s>23)return null;if(a>59)return null;if(u>59)return null;const c=n.ms??"0",p=c?+c.padEnd(3,"0").substring(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(o,r,i,s,a,u,p);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(o,r,i,s,a,u,p)}return Number.isNaN(d)?null:d}n.d(t,{o:()=>o,s:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,a=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,u=!Number.isNaN(new Date("technology 10").getTime())},92722:(e,t,n)=>{n.d(t,{O3:()=>T,lG:()=>C,my:()=>F,q9:()=>c});var o=n(20188),r=n(20102),i=n(8744),s=n(70272),l=n(5428),a=n(69165);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function y(e){let t=0;for(let n=0;n<e.length;n++){const o=e[n],r=e[(n+1)%e.length];t+=o[0]*r[1]-r[0]*o[1]}return t<=0}function m(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function g(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return w(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const o of t.coordinates)w(e,o,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const o of t.coordinates){h(e,o[0],n);for(let t=1;t<o.length;t++)b(e,o[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return v(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const o=t.coordinates;h(e,o[0],n);for(let t=1;t<o.length;t++)b(e,o[t],n);return e}(e,t,n)}}function h(e,t,n){const o=m(t);!function(e){return!y(e)}(o)?w(e,o,n):S(e,o,n)}function b(e,t,n){const o=m(t);!function(e){return y(e)}(o)?w(e,o,n):S(e,o,n)}function w(e,t,n){for(const o of t)v(e,o,n);e.lengths.push(t.length)}function S(e,t,n){for(let o=t.length-1;o>=0;o--)v(e,t[o],n);e.lengths.push(t.length)}function v(e,t,n){const[o,r,i]=t;e.coords.push(o,r),n.hasZ&&e.coords.push(i||0)}function j(e){switch(typeof e){case"string":return(0,o.o)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function T(e,t=4326){if(!e)throw new r.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new r.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const o="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,s=(0,i.oR)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!o||!s.test(o))throw new r.Z("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function F(e,t={}){const n=[],o=new Set,r=new Set;let i,s=!1,l=null,u=!1,{geometryType:y=null}=t,m=!1;for(const t of p(e)){const{geometry:e,properties:p,id:g}=t;if((!e||(y||(y=c(e.type)),c(e.type)===y))&&(s||(s=f(d(e))),u||(u=null!=g,u&&(i=typeof g,p&&(l=Object.keys(p).filter((e=>p[e]===g))))),p&&l&&u&&null!=g&&(l.length>1?l=l.filter((e=>p[e]===g)):1===l.length&&(l=p[l[0]]===g?l:[])),!m&&p)){let e=!0;for(const t in p){if(o.has(t))continue;const i=p[t];if(null==i){e=!1,r.add(t);continue}const s=j(i);if("unknown"===s){r.add(t);continue}r.delete(t),o.add(t);const l=(0,a.q6)(t);l&&n.push({name:l,alias:t,type:s})}m=e}}const g=(0,a.q6)(1===l?.length&&l[0]||null)??void 0;if(g)for(const e of n)if(e.name===g&&(0,a.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:y,hasZ:s,objectIdFieldName:g,objectIdFieldType:i,unknownFields:Array.from(r)}}function C(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:o}=t;for(const r of e){const{geometry:e,properties:i,id:a}=r;if(e&&c(e.type)!==n)continue;const u=i||{};let p;o&&(p=u[o],null==a||p||(u[o]=p=a));const d=new s.u_(e?g(new l.Z,e,t):null,u,null,p??void 0);yield d}}(p(e),t))}},25278:(e,t,n)=>{n.d(t,{Dm:()=>c,Hq:()=>p,MS:()=>d,bU:()=>l});var o=n(80442),r=n(22974),i=n(61159),s=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,o.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${a.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const o=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new o}catch(n){return()=>({[t]:null,...e})}}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},16467:(e,t,n)=>{n.d(t,{$9:()=>b,G4:()=>v,Lu:()=>h,WW:()=>k,d:()=>F,eS:()=>T,gp:()=>j,j:()=>S,w9:()=>w,yN:()=>C}),n(66577);var o=n(3172),r=n(20102),i=n(92604),s=n(8744),l=n(40488),a=n(98732),u=n(44876),c=n(92722),p=n(25278),d=n(99514),f=n(86719),y=n(25031),m=n(82971);const g=i.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),h="http://www.opengis.net/def/crs/",b=`${h}OGC/1.3/CRS84`;async function w(e,t,n={},i=5){const{links:s}=e,l=x(s,"items","application/geo+json")||x(s,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if(null==l)throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:a}=await(0,o.Z)(l.href,{signal:n.signal,query:{limit:i,...n.customParameters,token:n.apiKey},headers:{accept:"application/geo+json"}});(0,c.O3)(a);const u=(0,c.my)(a,{geometryType:t.geometryType}),m=t.fields||u.fields||[],h=null!=t.hasZ?t.hasZ:u.hasZ,b=u.geometryType,w=t.objectIdField||u.objectIdFieldName||"OBJECTID";let S=t.timeInfo;const v=m.find((({name:e})=>e===w));if(v)v.editable=!1,v.nullable=!1;else{if(!u.objectIdFieldType)throw new r.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:w,alias:w,type:"number"===u.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if(w!==u.objectIdFieldName){const e=m.find((({name:e})=>e===u.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===u.fields&&u.unknownFields.length>0&&g.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:u.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new r.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!f.v.jsonValues.includes(e.type))throw new r.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(S){const e=new d.Z(m);if(S.startTimeField){const t=e.get(S.startTimeField);t?(S.startTimeField=t.name,t.type="esriFieldTypeDate"):S.startTimeField=null}if(S.endTimeField){const t=e.get(S.endTimeField);t?(S.endTimeField=t.name,t.type="esriFieldTypeDate"):S.endTimeField=null}if(S.trackIdField){const t=e.get(S.trackIdField);t?S.trackIdField=t.name:(S.trackIdField=null,g.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}S.timeReference||={timeZoneIANA:y.pt},S.startTimeField||S.endTimeField||(g.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}return{drawingInfo:b?(0,p.bU)(b):null,extent:Z(e),geometryType:b,fields:m,hasZ:!!h,objectIdField:w,timeInfo:S}}async function S(e,t={}){const{links:n}=e,i=x(n,"data","application/json")||x(n,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if(null==i)throw new r.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:s,customParameters:l,signal:a}=t,{data:u}=await(0,o.Z)(i.href,{signal:a,headers:{accept:"application/json"},query:{...l,token:s}});return u}async function v(e,t={}){const{links:n}=e,i=x(n,"conformance","application/json")||x(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if(null==i)throw new r.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:s,customParameters:l,signal:a}=t,{data:u}=await(0,o.Z)(i.href,{signal:a,headers:{accept:"application/json"},query:{...l,token:s}});return u}async function j(e,t={}){const{apiKey:n,customParameters:r,signal:i}=t,{data:s}=await(0,o.Z)(e,{signal:i,headers:{accept:"application/json"},query:{...r,token:n}});return s}async function T(e,t={}){const n="application/vnd.oai.openapi+json;version=3.0",r=x(e.links,"service-desc",n);if(null==r)return g.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:i,customParameters:s,signal:l}=t,{data:a}=await(0,o.Z)(r.href,{signal:l,headers:{accept:n},query:{...s,token:i}});return a}function F(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=t?.groups;if(!n)return null;const{authority:o,code:r}=n;switch(o.toLowerCase()){case"ogc":switch(r.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function C(e,t,n){const o=await k(e,t,n);return(0,a.cn)(o)}async function k(e,t,n){const{collection:i,layerDefinition:p,maxRecordCount:d,queryParameters:{apiKey:f,customParameters:y},spatialReference:g,supportedCrs:h}=e,{links:b}=i,w=x(b,"items","application/geo+json")||x(b,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if(null==w)throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:S,num:v,start:j,timeExtent:T,where:F}=t;if(t.objectIds)throw new r.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const C=m.Z.fromJSON(g),k=t.outSpatialReference??C,N=k.isWGS84?null:I(k,h),Z=V(S,h),O=function(e){if(null==e)return null;const{start:t,end:n}=e;return`${null!=t?t.toISOString():".."}/${null!=n?n.toISOString():".."}`}(T),P=null!=(A=F)&&A&&"1=1"!==A?A:null,D=v??(null!=j&&void 0!==j?10:d),{data:_}=await(0,o.Z)(w.href,{...n,query:{...y,...Z,crs:N,datetime:O,query:P,limit:D,startindex:j,token:f},headers:{accept:"application/geo+json"}});var A;let M=!1;_.links&&(M=!!_.links.find((e=>"next"===e.rel))),!M&&Number.isInteger(_.numberMatched)&&Number.isInteger(_.numberReturned)&&(M=_.numberReturned<_.numberMatched);const{fields:G,geometryType:$,hasZ:q,objectIdField:R}=p,L=(0,c.lG)(_,{geometryType:$,hasZ:q,objectIdField:R});if(!N&&k.isWebMercator)for(const e of L)if(null!=e.geometry&&null!=$){const t=(0,a.di)(e.geometry,$,q,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,a.GH)((0,l.iV)(t,k))}for(const e of L)e.objectId=e.attributes[R];const J=N||!N&&k.isWebMercator?k.toJSON():s.Zn,W=new u.Z;return W.exceededTransferLimit=M,W.features=L,W.fields=G,W.geometryType=$,W.hasZ=q,W.objectIdFieldName=R,W.spatialReference=J,W}function I(e,t){const{isWebMercator:n,wkid:o}=e;if(!o)return null;const r=n?t[3857]??t[102100]??t[102113]??t[900913]:t[e.wkid];return r?`${h}${r}`:null}function N(e){if(null==e)return"";const{xmin:t,ymin:n,xmax:o,ymax:r}=e;return`${t},${n},${o},${r}`}function V(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:N(e)};const o=I(n,t);return null!=o?{bbox:N(e),"bbox-crs":o}:n.isWebMercator?{bbox:N((0,l.iV)(e,m.Z.WGS84))}:null}function Z(e){const t=e.extent?.spatial;if(!t)return null;const n=t.bbox[0],o=4===n.length,r=n[0],i=n[1],s=o?void 0:n[2];return{xmin:r,ymin:i,xmax:o?n[2]:n[3],ymax:o?n[3]:n[4],zmin:s,zmax:o?void 0:n[5],spatialReference:m.Z.WGS84.toJSON()}}function x(e,t,n){return e.find((e=>e.rel===t&&e.type===n))||e.find((e=>e.rel===t&&!e.type))}},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var o,r=n(43697),i=n(35454),s=n(96674),l=n(5600),a=n(75215),u=(n(67676),n(80442),n(36030)),c=n(71715),p=n(52011),d=n(72729),f=n(86719);const y=new i.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=o=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?y.fromJSON(n.fieldValueType):null}clone(){return new o({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,l.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,l.Cb)({type:a.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,u.J)(f.v)],m.prototype,"type",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),(0,r._)([(0,l.Cb)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=o=(0,r._)([(0,p.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>F,V5:()=>T}),n(80442);var o,r=n(43697),i=n(22974),s=n(5600),l=(n(75215),n(36030)),a=n(52011),u=n(96674);n(67676);let c=o=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new o({name:this.name,code:this.code})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=o=(0,r._)([(0,a.j)("esri.layers.support.CodedValue")],c);const p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,l.J)(p)],d.prototype,"type",void 0),d=(0,r._)([(0,a.j)("esri.layers.support.Domain")],d);const f=d;var y;let m=y=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,s.Cb)({type:[c],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,r._)([(0,l.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,r._)([(0,a.j)("esri.layers.support.CodedValueDomain")],m);const g=m;var h;n(92604),n(20102);let b=h=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new h}};(0,r._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=h=(0,r._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const w=b;var S;let v=S=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,s.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],v.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],v.prototype,"minValue",void 0),(0,r._)([(0,l.J)({range:"range"})],v.prototype,"type",void 0),v=S=(0,r._)([(0,a.j)("esri.layers.support.RangeDomain")],v);const j=v,T={key:"type",base:f,typeMap:{range:v,"coded-value":g,inherited:w}};function F(e){if(!e?.type)return null;switch(e.type){case"range":return j.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},58333:(e,t,n)=>{n.d(t,{ET:()=>i,I4:()=>r,eG:()=>a,lF:()=>s,lj:()=>c,qP:()=>l,wW:()=>u});const o=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:o,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:o},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4475],{23670:(e,t,i)=>{i.d(t,{G:()=>o});var s=i(20102);let o=class{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}since(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new s.Z(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[i,r]=e.split("."),n=/^\s*\d+\s*$/;if(!i?.match||!n.test(i))throw new s.Z((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!r?.match||!n.test(r))throw new s.Z((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const l=parseInt(i,10),a=parseInt(r,10);return new o(l,a,t)}}},84475:(e,t,i)=>{i.r(t),i.d(t,{DictionaryLoader:()=>f});var s=i(22303),o=i(3172),r=i(20102),n=(i(80442),i(92604)),l=i(13867),a=i(95330),c=i(19153),h=i(23670),y=i(99514),m=i(59266),u=i(17386);const d="esri.renderers.support.DictionaryLoader",p={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class f{constructor(e,t,i){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new l.z(100),this._dictionaryVersion=null,this._fieldIndex=null,this._dictionaryPromise=null,this.url=e,this.config=t,this.fieldMap=i}getSymbolFields(){return this._symbolFields}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,a.D_)(e))return this._dictionaryPromise=null,null}const o=this._dictionaryVersion&&this._dictionaryVersion.since(4,0),r={};if(this.fieldMap)for(const t of this._symbolFields){const i=this._getFieldName(this.fieldMap[t]);if(i){const s=e.attributes[i];r[t]=o?s:null!=s?""+e.attributes[i]:""}else r[t]=""}let n=null;try{n=i?.(r,t)}catch(e){return null}if(!n||"string"!=typeof n)return null;const l=(0,c.hP)(n).toString(),h=this._symbolCache.get(l);if(h)return h.catch((()=>{this._symbolCache.pop(l)})),h;const y=n.split(";"),m=[],u=[];for(const e of y)if(e)if(e.includes("po:")){const t=e.substr(3).split("|");if(3===t.length){const e=t[0],i=t[1];let o=t[2];if("DashTemplate"===i)o=o.split(" ").map((e=>Number(e)));else if("Color"===i){const e=new s.Z(o).toRgba();o=[e[0],e[1],e[2],255*e[3]]}else o=Number(o);u.push({primitiveName:e,propertyName:i,value:o})}}else if(e.includes("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){m.push(t);break}}else this._itemNames.has(e)&&m.push(e);const d=null==e.geometry||!e.geometry.hasZ&&"point"===e.geometry.type,p=this._cimPartsToCIMSymbol(m,u,d,t);return this._symbolCache.put(l,p,1),p}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void n.Z.getLogger(d).error("no valid URL!");const t=(0,o.Z)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:null!=e?e.signal:null}),[{data:i}]=await Promise.all([t,(0,m.LC)()]);if(!i)throw this._dictionaryPromise=null,new r.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const{authoringInfo:s,dictionary_version:l,expression:a,itemsNames:c}=i,u=a;let p=!1;l&&(this._dictionaryVersion=h.G.parse(l),p=this._dictionaryVersion.since(4,0)),this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(c),this._symbolFields=s.symbol;const f={};if(this.config){const e=this.config;for(const t in e)f[t]=e[t]}if(s.configuration)for(const e of s.configuration)f.hasOwnProperty(e.name)||(f[e.name]=e.value);const b=[];if(e?.fields&&this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t],s=e.fields.filter((e=>e.name.toLowerCase()===i?.toLowerCase()));s.length>0&&b.push({...s[0],type:p?s[0].type:"esriFieldTypeString"})}b.length>0&&(this._fieldIndex=new y.Z(b));const g=(0,m.pp)(u,null!=e?e.spatialReference:null,b,f).then((e=>{const t={scale:0};return(i,s)=>{if(null==e)return null;const o=e.repurposeFeature({geometry:null,attributes:i});return t.scale=null!=s?s.scale??void 0:void 0,e.evaluate({$feature:o,$view:t},e.services)}})).catch((e=>(n.Z.getLogger(d).error("Creating dictinoary expression failed:",e),null)));return this._dictionaryPromise=g,g}async _cimPartsToCIMSymbol(e,t,i,s){const o=new Array(e.length);for(let t=0;t<e.length;t++)o[t]=this._getSymbolPart(e[t],s);const r=await Promise.all(o),n=this.fieldMap;if(n)for(const e of r)b(e,n);return new u.Z({data:this._combineSymbolParts(r,t,i)})}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const i=this._refSymbolUrlTemplate.replaceAll(/\{itemName\}/gi,e),s=(0,o.Z)(i,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,s);try{return(await s).data}catch(t){throw this._ongoingRequests.delete(e),t}}_combineSymbolParts(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.symbolLayers=[];for(const t of e){const e=t;s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=p),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}_getFieldName(e){if(null!==this._fieldIndex){const t=this._fieldIndex.get(e);return t?t.name:e}return e}}function b(e,t){if(!e)return;const i=e.symbolLayers;if(!i)return;let s=i.length;for(;s--;){const e=i[s];e&&!1!==e.enable&&"CIMVectorMarker"===e.type&&g(e,t)}}function g(e,t){const i=e.markerGraphics;if(i)for(const e of i){if(!e)continue;const i=e.symbol;if(i)switch(i.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":b(i,t);break;case"CIMTextSymbol":i.fieldMap=t}}}},17386:(e,t,i)=>{i.d(t,{Z:()=>p});var s,o=i(43697),r=i(22974),n=i(19153),l=i(5600),a=(i(75215),i(36030)),c=i(71715),h=i(52011),y=i(30556),m=i(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4475],{23670:(e,t,i)=>{i.d(t,{G:()=>o});var s=i(20102);let o=class{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}since(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new s.Z(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[i,r]=e.split("."),n=/^\s*\d+\s*$/;if(!i?.match||!n.test(i))throw new s.Z((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!r?.match||!n.test(r))throw new s.Z((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const l=parseInt(i,10),a=parseInt(r,10);return new o(l,a,t)}}},84475:(e,t,i)=>{i.r(t),i.d(t,{DictionaryLoader:()=>f});var s=i(22303),o=i(3172),r=i(20102),n=(i(80442),i(92604)),l=i(13867),a=i(95330),c=i(19153),h=i(23670),y=i(99514),m=i(59266),u=i(17386);const d="esri.renderers.support.DictionaryLoader",p={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class f{constructor(e,t,i){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new l.z(100),this._dictionaryVersion=null,this._fieldIndex=null,this._dictionaryPromise=null,this.url=e,this.config=t,this.fieldMap=i}getSymbolFields(){return this._symbolFields}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,a.D_)(e))return this._dictionaryPromise=null,null}const o=this._dictionaryVersion&&this._dictionaryVersion.since(4,0),r={};if(this.fieldMap)for(const t of this._symbolFields){const i=this._getFieldName(this.fieldMap[t]);if(i){const s=e.attributes[i];r[t]=o?s:null!=s?""+e.attributes[i]:""}else r[t]=""}let n=null;try{n=i?.(r,t)}catch(e){return null}if(!n||"string"!=typeof n)return null;const l=(0,c.hP)(n).toString(),h=this._symbolCache.get(l);if(h)return h.catch((()=>{this._symbolCache.pop(l)})),h;const y=n.split(";"),m=[],u=[];for(const e of y)if(e)if(e.includes("po:")){const t=e.substr(3).split("|");if(3===t.length){const e=t[0],i=t[1];let o=t[2];if("DashTemplate"===i)o=o.split(" ").map((e=>Number(e)));else if("Color"===i){const e=new s.Z(o).toRgba();o=[e[0],e[1],e[2],255*e[3]]}else o=Number(o);u.push({primitiveName:e,propertyName:i,value:o})}}else if(e.includes("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){m.push(t);break}}else this._itemNames.has(e)&&m.push(e);const d=null==e.geometry||!e.geometry.hasZ&&"point"===e.geometry.type,p=this._cimPartsToCIMSymbol(m,u,d,t);return this._symbolCache.put(l,p,1),p}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void n.Z.getLogger(d).error("no valid URL!");const t=(0,o.Z)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:null!=e?e.signal:null}),[{data:i}]=await Promise.all([t,(0,m.LC)()]);if(!i)throw this._dictionaryPromise=null,new r.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const{authoringInfo:s,dictionary_version:l,expression:a,itemsNames:c}=i,u=a;let p=!1;l&&(this._dictionaryVersion=h.G.parse(l),p=this._dictionaryVersion.since(4,0)),this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(c),this._symbolFields=s.symbol;const f={};if(this.config){const e=this.config;for(const t in e)f[t]=e[t]}if(s.configuration)for(const e of s.configuration)f.hasOwnProperty(e.name)||(f[e.name]=e.value);const b=[];if(e?.fields&&this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t],s=e.fields.filter((e=>e.name.toLowerCase()===i?.toLowerCase()));s.length>0&&b.push({...s[0],type:p?s[0].type:"esriFieldTypeString"})}b.length>0&&(this._fieldIndex=new y.Z(b));const g=(0,m.pp)(u,null!=e?e.spatialReference:null,b,f).then((e=>{const t={scale:0};return(i,s)=>{if(null==e)return null;const o=e.repurposeFeature({geometry:null,attributes:i});return t.scale=null!=s?s.scale??void 0:void 0,e.evaluate({$feature:o,$view:t},e.services)}})).catch((e=>(n.Z.getLogger(d).error("Creating dictinoary expression failed:",e),null)));return this._dictionaryPromise=g,g}async _cimPartsToCIMSymbol(e,t,i,s){const o=new Array(e.length);for(let t=0;t<e.length;t++)o[t]=this._getSymbolPart(e[t],s);const r=await Promise.all(o),n=this.fieldMap;if(n)for(const e of r)b(e,n);return new u.Z({data:this._combineSymbolParts(r,t,i)})}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const i=this._refSymbolUrlTemplate.replaceAll(/\{itemName\}/gi,e),s=(0,o.Z)(i,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,s);try{return(await s).data}catch(t){throw this._ongoingRequests.delete(e),t}}_combineSymbolParts(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.symbolLayers=[];for(const t of e){const e=t;s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=p),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}_getFieldName(e){if(null!==this._fieldIndex){const t=this._fieldIndex.get(e);return t?t.name:e}return e}}function b(e,t){if(!e)return;const i=e.symbolLayers;if(!i)return;let s=i.length;for(;s--;){const e=i[s];e&&!1!==e.enable&&"CIMVectorMarker"===e.type&&g(e,t)}}function g(e,t){const i=e.markerGraphics;if(i)for(const e of i){if(!e)continue;const i=e.symbol;if(i)switch(i.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":b(i,t);break;case"CIMTextSymbol":i.fieldMap=t}}}},17386:(e,t,i)=>{i.d(t,{Z:()=>p});var s,o=i(43697),r=i(22974),n=i(19153),l=i(5600),a=(i(75215),i(36030)),c=i(71715),h=i(52011),y=i(30556),m=i(69165),u=i(89164);let d=s=class extends u.Z{constructor(e){super(e),this.data=null,this.type="cim"}readData(e,t){return t}writeData(e,t){Object.assign(t,e)}async collectRequiredFields(e,t){if("CIMSymbolReference"===this.data?.type){const i=this.data.primitiveOverrides;if(i){const s=i.map((i=>{const s=i.valueExpressionInfo;return(0,m.io)(e,t,s.expression)}));await Promise.all(s)}}}clone(){return new s({data:(0,r.d9)(this.data)})}hash(){return(0,n.hP)(JSON.stringify(this.data)).toString()}};(0,o._)([(0,l.Cb)({json:{write:!1}})],d.prototype,"color",void 0),(0,o._)([(0,l.Cb)({json:{write:!0}})],d.prototype,"data",void 0),(0,o._)([(0,c.r)("data",["symbol"])],d.prototype,"readData",null),(0,o._)([(0,y.c)("data",{})],d.prototype,"writeData",null),(0,o._)([(0,a.J)({CIMSymbolReference:"cim"},{readOnly:!0})],d.prototype,"type",void 0),d=s=(0,o._)([(0,h.j)("esri.symbols.CIMSymbol")],d);const p=d},89164:(e,t,i)=>{i.d(t,{Z:()=>u});var s=i(43697),o=i(22303),r=i(35454),n=i(96674),l=i(5600),a=(i(75215),i(67676),i(80442),i(71715)),c=i(52011);const h=new r.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let y=0,m=class extends n.wq{constructor(e){super(e),this.id="sym"+y++,this.type=null,this.color=new o.Z([0,0,0,1])}readColor(e){return null!=e?.[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,s._)([(0,l.Cb)({type:h.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:h.write}}})],m.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:o.Z,json:{write:{allowNull:!0}}})],m.prototype,"color",void 0),(0,s._)([(0,a.r)("color")],m.prototype,"readColor",null),m=(0,s._)([(0,c.j)("esri.symbols.Symbol")],m);const u=m}}]);
|