@arcgis/core 4.27.0-rc.2 → 4.27.0-rc.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/{a8565d1c676f3bfbcebb.js → 002fe1ec63ea33e6972d.js} +1 -1
- package/assets/esri/core/workers/chunks/{0610691a0c0d9fbbd6d2.js → 013de5c2955801b329b3.js} +1 -1
- package/assets/esri/core/workers/chunks/07163dcbb871f927a580.js +1 -0
- package/assets/esri/core/workers/chunks/0e46687004392c493c06.js +1 -0
- package/assets/esri/core/workers/chunks/0e65e00173b66c7fec2e.js +1 -0
- package/assets/esri/core/workers/chunks/1aa8dd317ecd3c41e0ea.js +1 -0
- package/assets/esri/core/workers/chunks/21328f3dd26abe84a10d.js +1 -0
- package/assets/esri/core/workers/chunks/28c67c98039503b62e6e.js +1 -0
- package/assets/esri/core/workers/chunks/{da57eba2fe25495ea217.js → 2faa8f08f2fdaac3f4af.js} +1 -1
- package/assets/esri/core/workers/chunks/{0407bf97ad621c89a734.js → 3160af63b860b52db389.js} +1 -1
- package/assets/esri/core/workers/chunks/3767b9e7660873b018c2.js +1 -0
- package/assets/esri/core/workers/chunks/39ae4b9b766f674bc6f2.js +1 -0
- package/assets/esri/core/workers/chunks/45629ff775e77234b227.js +1 -0
- package/assets/esri/core/workers/chunks/4a4f14a3d8da270059c4.js +1 -0
- package/assets/esri/core/workers/chunks/{3e239bfad611985e50fb.js → 50f910797c17c3028521.js} +1 -1
- package/assets/esri/core/workers/chunks/642c5a93c0a454bdd115.js +1 -0
- package/assets/esri/core/workers/chunks/{14145959a3dab1437818.js → 6627f1bc9ee6b620e3aa.js} +1 -1
- package/assets/esri/core/workers/chunks/{170bdbdb4e21bf91a17f.js → 6eaa7a51efde2dd4a5a4.js} +1 -1
- package/assets/esri/core/workers/chunks/{2bdc63395c7466ce1641.js → 7053c2f5a958d4c8629b.js} +1 -1
- package/assets/esri/core/workers/chunks/{4c35c663528f710e8c78.js → 79cb672c85ea29e8484a.js} +1 -1
- package/assets/esri/core/workers/chunks/82939ead43848a13f765.js +1 -0
- package/assets/esri/core/workers/chunks/89001ee8d3f69fa03cc1.js +1 -0
- package/assets/esri/core/workers/chunks/8b6b963230df56850580.js +1 -0
- package/assets/esri/core/workers/chunks/9472184ef1432fc55d6b.js +1 -0
- package/assets/esri/core/workers/chunks/a6ddf80eb324c35076e1.js +1 -0
- package/assets/esri/core/workers/chunks/a80a6267d88246ede5d3.js +1 -0
- package/assets/esri/core/workers/chunks/{f505ebd4bd3bfb6c790d.js → b6a55fdfe16795ebf02c.js} +1 -1
- package/assets/esri/core/workers/chunks/bf9e1fde9f6b2b4f10c0.js +1 -0
- package/assets/esri/core/workers/chunks/cfa3b2b1e184681e9af4.js +1 -0
- package/assets/esri/core/workers/chunks/{1f69fb9687de9ebfcf90.js → d4ba894a2583f3930a4f.js} +1 -1
- package/assets/esri/core/workers/chunks/d5dfd3d693d5e393a542.js +1 -0
- package/assets/esri/core/workers/chunks/{74fd2059ddda9083cbcc.js → dc6c97a43d642eeaf477.js} +1 -1
- package/assets/esri/core/workers/chunks/{2154d395f405be3cd3ba.js → eca0c3d57b3a1e3a14ee.js} +1 -1
- package/assets/esri/core/workers/chunks/f36697f6aac782007d1a.js +1 -0
- package/assets/esri/core/workers/chunks/f52054f27619a98b7bb7.js +1 -0
- package/assets/esri/core/workers/chunks/fb7fe307a583b6a22218.js +1 -0
- package/assets/esri/core/workers/chunks/fbd3c78ee8e2219a6c7a.js +1 -0
- package/assets/esri/core/workers/chunks/ff42585e1b1d0c5497af.js +1 -0
- package/assets/esri/images/portal/livestreamvideolayer16.png +0 -0
- package/assets/esri/images/portal/{mediaservice16.png → videolayer16.png} +0 -0
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +19 -2
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/geometry/support/DoubleArray.js +1 -1
- package/interfaces.d.ts +84 -0
- package/kernel.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/support/editableLayers.js +1 -1
- package/layers/support/layerUtils.js +1 -1
- package/package.json +1 -1
- package/portal/PortalItem.js +1 -1
- package/request.js +1 -1
- package/support/requestUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/layers/i3s/I3SOverrides.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +2 -2
- package/webmap/initialViewPropertiesUtils.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/CreateWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflowData.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/RelationshipInput.js +1 -1
- package/widgets/FeatureForm/css.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
- package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +4 -0
- package/widgets/UtilityNetworkValidateTopology.d.ts +4 -0
- package/widgets/support/geolocationUtils.js +1 -1
- package/assets/esri/core/workers/chunks/0fcb8d408696075338e2.js +0 -1
- package/assets/esri/core/workers/chunks/16e459b16bdd6e1a821b.js +0 -1
- package/assets/esri/core/workers/chunks/1b8074269800b384ecf6.js +0 -1
- package/assets/esri/core/workers/chunks/2b55295590b4a0503749.js +0 -1
- package/assets/esri/core/workers/chunks/3ba2fcb9110230f8790c.js +0 -1
- package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +0 -1
- package/assets/esri/core/workers/chunks/5706edf45402dff279a6.js +0 -1
- package/assets/esri/core/workers/chunks/659b7bad7281c0e2aed3.js +0 -1
- package/assets/esri/core/workers/chunks/6cd248d065f6d1616294.js +0 -1
- package/assets/esri/core/workers/chunks/9326120c750799eb2d28.js +0 -1
- package/assets/esri/core/workers/chunks/99e0cec47e3ef72c1de4.js +0 -1
- package/assets/esri/core/workers/chunks/9c0e1e87790424f42d7e.js +0 -1
- package/assets/esri/core/workers/chunks/9e66af3b1c70cf25fb32.js +0 -1
- package/assets/esri/core/workers/chunks/a1c31bb8c12831539328.js +0 -1
- package/assets/esri/core/workers/chunks/b0cda39b53ecd6c44cd0.js +0 -1
- package/assets/esri/core/workers/chunks/c08e03165043df67c11b.js +0 -1
- package/assets/esri/core/workers/chunks/c26148d4bfab3b3dfab2.js +0 -1
- package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +0 -1
- package/assets/esri/core/workers/chunks/eeaf8010e38b65a101ac.js +0 -1
- package/assets/esri/core/workers/chunks/f235392c56063fbf89c6.js +0 -1
- package/assets/esri/core/workers/chunks/fdd0d3616c97e408b104.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9173,3172,5732,661,5234,9880],{99880:(t,e,n)=>{n.d(e,{V:()=>c});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),a=n(81271);const i=s.Z.getLogger("esri.assets");function c(t){if(!r.default.assetsPath)throw i.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(r.default.assetsPath,t)}},5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,s,a,i,c){return[t,e,n,r,o,s,a,i,c]}function s(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>s,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:s,fromValues:o},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>p,a:()=>c,d:()=>m,e:()=>d,f:()=>f,g:()=>b,h:()=>x,i:()=>a,j:()=>w,k:()=>u,m:()=>l,s:()=>s,t:()=>i,w:()=>h,y:()=>v,z:()=>_});var r=n(65617),o=n(46851);function s(t,e,n,r,o,s,a,i,c,l,h,u,d,f,m,p,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=a,t[6]=i,t[7]=c,t[8]=l,t[9]=h,t[10]=u,t[11]=d,t[12]=f,t[13]=m,t[14]=p,t[15]=g,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function i(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],a=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=a,t[14]=i}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],i=e[5],c=e[6],l=e[7],h=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],g=e[14],M=e[15],b=n*i-r*a,y=n*c-o*a,x=n*l-s*a,w=r*c-o*i,_=r*l-s*i,v=o*l-s*c,q=h*p-u*m,O=h*g-d*m,T=h*M-f*m,S=u*g-d*p,E=u*M-f*p,P=d*M-f*g;let B=b*P-y*E+x*S+w*T-_*O+v*q;return B?(B=1/B,t[0]=(i*P-c*E+l*S)*B,t[1]=(o*E-r*P-s*S)*B,t[2]=(p*v-g*_+M*w)*B,t[3]=(d*_-u*v-f*w)*B,t[4]=(c*T-a*P-l*O)*B,t[5]=(n*P-o*T+s*O)*B,t[6]=(g*x-m*v-M*y)*B,t[7]=(h*v-d*x+f*y)*B,t[8]=(a*E-i*T+l*q)*B,t[9]=(r*T-n*E-s*q)*B,t[10]=(m*_-p*x+M*b)*B,t[11]=(u*x-h*_-f*b)*B,t[12]=(i*O-a*S-c*q)*B,t[13]=(n*S-r*O+o*q)*B,t[14]=(p*y-m*w-g*b)*B,t[15]=(h*w-u*y+d*b)*B,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],a=e[3],i=e[4],c=e[5],l=e[6],h=e[7],u=e[8],d=e[9],f=e[10],m=e[11],p=e[12],g=e[13],M=e[14],b=e[15];let y=n[0],x=n[1],w=n[2],_=n[3];return t[0]=y*r+x*i+w*u+_*p,t[1]=y*o+x*c+w*d+_*g,t[2]=y*s+x*l+w*f+_*M,t[3]=y*a+x*h+w*m+_*b,y=n[4],x=n[5],w=n[6],_=n[7],t[4]=y*r+x*i+w*u+_*p,t[5]=y*o+x*c+w*d+_*g,t[6]=y*s+x*l+w*f+_*M,t[7]=y*a+x*h+w*m+_*b,y=n[8],x=n[9],w=n[10],_=n[11],t[8]=y*r+x*i+w*u+_*p,t[9]=y*o+x*c+w*d+_*g,t[10]=y*s+x*l+w*f+_*M,t[11]=y*a+x*h+w*m+_*b,y=n[12],x=n[13],w=n[14],_=n[15],t[12]=y*r+x*i+w*u+_*p,t[13]=y*o+x*c+w*d+_*g,t[14]=y*s+x*l+w*f+_*M,t[15]=y*a+x*h+w*m+_*b,t}function h(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],a=e[1],i=e[2],c=e[3],l=e[4],h=e[5],u=e[6],d=e[7],f=e[8],m=e[9],p=e[10],g=e[11];t[0]=n,t[1]=a,t[2]=i,t[3]=c,t[4]=l,t[5]=h,t[6]=u,t[7]=d,t[8]=f,t[9]=m,t[10]=p,t[11]=g,t[12]=n*r+l*o+f*s+e[12],t[13]=a*r+h*o+m*s+e[13],t[14]=i*r+u*o+p*s+e[14],t[15]=c*r+d*o+g*s+e[15]}return t}function u(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let s,a,i,c,l,h,u,d,f,m,p,g,M,b,y,x,w,_,v,q,O,T,S,E,P=r[0],B=r[1],k=r[2],C=Math.sqrt(P*P+B*B+k*k);return C<(0,o.g)()?null:(C=1/C,P*=C,B*=C,k*=C,s=Math.sin(n),a=Math.cos(n),i=1-a,c=e[0],l=e[1],h=e[2],u=e[3],d=e[4],f=e[5],m=e[6],p=e[7],g=e[8],M=e[9],b=e[10],y=e[11],x=P*P*i+a,w=B*P*i+k*s,_=k*P*i-B*s,v=P*B*i-k*s,q=B*B*i+a,O=k*B*i+P*s,T=P*k*i+B*s,S=B*k*i-P*s,E=k*k*i+a,t[0]=c*x+d*w+g*_,t[1]=l*x+f*w+M*_,t[2]=h*x+m*w+b*_,t[3]=u*x+p*w+y*_,t[4]=c*v+d*q+g*O,t[5]=l*v+f*q+M*O,t[6]=h*v+m*q+b*O,t[7]=u*v+p*q+y*O,t[8]=c*T+d*S+g*E,t[9]=l*T+f*S+M*E,t[10]=h*T+m*S+b*E,t[11]=u*T+p*S+y*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function f(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function m(t,e,n){if(0===e)return a(t);let r,s,i,c=n[0],l=n[1],h=n[2],u=Math.sqrt(c*c+l*l+h*h);return u<(0,o.g)()?null:(u=1/u,c*=u,l*=u,h*=u,r=Math.sin(e),s=Math.cos(e),i=1-s,t[0]=c*c*i+s,t[1]=l*c*i+h*r,t[2]=h*c*i-l*r,t[3]=0,t[4]=c*l*i-h*r,t[5]=l*l*i+s,t[6]=h*l*i+c*r,t[7]=0,t[8]=c*h*i+l*r,t[9]=l*h*i-c*r,t[10]=h*h*i+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function p(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n){const r=e[0],o=e[1],s=e[2],a=e[3],i=r+r,c=o+o,l=s+s,h=r*i,u=r*c,d=r*l,f=o*c,m=o*l,p=s*l,g=a*i,M=a*c,b=a*l;return t[0]=1-(f+p),t[1]=u+b,t[2]=d-M,t[3]=0,t[4]=u-b,t[5]=1-(h+p),t[6]=m+g,t[7]=0,t[8]=d+M,t[9]=m-g,t[10]=1-(h+f),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const M=(0,r.c)();function b(t,e,n,r){const o=e[0],s=e[1],a=e[2],i=e[3],c=o+o,l=s+s,h=a+a,u=o*c,d=o*l,f=o*h,m=s*l,p=s*h,g=a*h,M=i*c,b=i*l,y=i*h,x=r[0],w=r[1],_=r[2];return t[0]=(1-(m+g))*x,t[1]=(d+y)*x,t[2]=(f-b)*x,t[3]=0,t[4]=(d-y)*w,t[5]=(1-(u+g))*w,t[6]=(p+M)*w,t[7]=0,t[8]=(f+b)*_,t[9]=(p-M)*_,t[10]=(1-(u+m))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function x(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function w(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],a=t[3],i=t[4],c=t[5],l=t[6],h=t[7],u=t[8],d=t[9],f=t[10],m=t[11],p=t[12],g=t[13],M=t[14],b=t[15],y=e[0],x=e[1],w=e[2],_=e[3],v=e[4],q=e[5],O=e[6],T=e[7],S=e[8],E=e[9],P=e[10],B=e[11],k=e[12],C=e[13],A=e[14],Y=e[15],j=(0,o.g)();return Math.abs(n-y)<=j*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-x)<=j*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(s-w)<=j*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(a-_)<=j*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(i-v)<=j*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(c-q)<=j*Math.max(1,Math.abs(c),Math.abs(q))&&Math.abs(l-O)<=j*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(h-T)<=j*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(u-S)<=j*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(d-E)<=j*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(f-P)<=j*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(m-B)<=j*Math.max(1,Math.abs(m),Math.abs(B))&&Math.abs(p-k)<=j*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(g-C)<=j*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(M-A)<=j*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(b-Y)<=j*Math.max(1,Math.abs(b),Math.abs(Y))}function _(t){const e=(0,o.g)(),n=t[0],r=t[1],s=t[2],a=t[4],i=t[5],c=t[6],l=t[8],h=t[9],u=t[10];return Math.abs(1-(n*n+a*a+l*l))<=e&&Math.abs(1-(r*r+i*i+h*h))<=e&&Math.abs(1-(s*s+c*c+u*u))<=e}function v(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const q=l,O=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],i=e[5],c=e[6],l=e[7],h=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],g=e[14],M=e[15];return t[0]=i*(d*M-f*g)-u*(c*M-l*g)+p*(c*f-l*d),t[1]=-(r*(d*M-f*g)-u*(o*M-s*g)+p*(o*f-s*d)),t[2]=r*(c*M-l*g)-i*(o*M-s*g)+p*(o*l-s*c),t[3]=-(r*(c*f-l*d)-i*(o*f-s*d)+u*(o*l-s*c)),t[4]=-(a*(d*M-f*g)-h*(c*M-l*g)+m*(c*f-l*d)),t[5]=n*(d*M-f*g)-h*(o*M-s*g)+m*(o*f-s*d),t[6]=-(n*(c*M-l*g)-a*(o*M-s*g)+m*(o*l-s*c)),t[7]=n*(c*f-l*d)-a*(o*f-s*d)+h*(o*l-s*c),t[8]=a*(u*M-f*p)-h*(i*M-l*p)+m*(i*f-l*u),t[9]=-(n*(u*M-f*p)-h*(r*M-s*p)+m*(r*f-s*u)),t[10]=n*(i*M-l*p)-a*(r*M-s*p)+m*(r*l-s*i),t[11]=-(n*(i*f-l*u)-a*(r*f-s*u)+h*(r*l-s*i)),t[12]=-(a*(u*g-d*p)-h*(i*g-c*p)+m*(i*d-c*u)),t[13]=n*(u*g-d*p)-h*(r*g-o*p)+m*(r*d-o*u),t[14]=-(n*(i*g-c*p)-a*(r*g-o*p)+m*(r*c-o*i)),t[15]=n*(i*d-c*u)-a*(r*d-o*u)+h*(r*c-o*i),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],i=t[6],c=t[7],l=t[8],h=t[9],u=t[10],d=t[11],f=t[12],m=t[13],p=t[14],g=t[15];return(e*a-n*s)*(u*g-d*p)-(e*i-r*s)*(h*g-d*m)+(e*c-o*s)*(h*p-u*m)+(n*i-r*a)*(l*g-d*f)-(n*c-o*a)*(l*p-u*f)+(r*c-o*i)*(l*m-h*f)},equals:w,exactEquals:x,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],a=n+n,i=r+r,c=o+o,l=n*a,h=r*a,u=r*i,d=o*a,f=o*i,m=o*c,p=s*a,g=s*i,M=s*c;return t[0]=1-u-m,t[1]=h+M,t[2]=d-g,t[3]=0,t[4]=h-M,t[5]=1-l-m,t[6]=f+p,t[7]=0,t[8]=d+g,t[9]=f-p,t[10]=1-l-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=M,r=-e[0],o=-e[1],s=-e[2],a=e[3],i=e[4],c=e[5],l=e[6],h=e[7],u=r*r+o*o+s*s+a*a;return u>0?(n[0]=2*(i*a+h*r+c*s-l*o)/u,n[1]=2*(c*a+h*o+l*r-i*s)/u,n[2]=2*(l*a+h*s+i*o-c*r)/u):(n[0]=2*(i*a+h*r+c*s-l*o),n[1]=2*(c*a+h*o+l*r-i*s),n[2]=2*(l*a+h*s+i*o-c*r)),g(t,e,n),t},fromRotation:m,fromRotationTranslation:g,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,n,r,o){const s=e[0],a=e[1],i=e[2],c=e[3],l=s+s,h=a+a,u=i+i,d=s*l,f=s*h,m=s*u,p=a*h,g=a*u,M=i*u,b=c*l,y=c*h,x=c*u,w=r[0],_=r[1],v=r[2],q=o[0],O=o[1],T=o[2],S=(1-(p+M))*w,E=(f+x)*w,P=(m-y)*w,B=(f-x)*_,k=(1-(d+M))*_,C=(g+b)*_,A=(m+y)*v,Y=(g-b)*v,j=(1-(d+p))*v;return t[0]=S,t[1]=E,t[2]=P,t[3]=0,t[4]=B,t[5]=k,t[6]=C,t[7]=0,t[8]=A,t[9]=Y,t[10]=j,t[11]=0,t[12]=n[0]+q-(S*q+B*O+A*T),t[13]=n[1]+O-(E*q+k*O+Y*T),t[14]=n[2]+T-(P*q+C*O+j*T),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:f,fromXRotation:p,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,o,s,a){const i=1/(n-e),c=1/(o-r),l=1/(s-a);return t[0]=2*s*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*c,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*c,t[10]=(a+s)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*s*2*l,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],a=e[5],i=e[6],c=e[8],l=e[9],h=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+a*a+i*i),t[2]=Math.sqrt(c*c+l*l+h*h),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:v,identity:a,invert:c,invertOrIdentity:function(t,e){return c(t,e)||a(t),t},isOrthoNormal:_,lookAt:function(t,e,n,r){const s=e[0],i=e[1],c=e[2];let l=s-n[0],h=i-n[1],u=c-n[2];const d=(0,o.g)();if(Math.abs(l)<d&&Math.abs(h)<d&&Math.abs(u)<d)return void a(t);let f=1/Math.sqrt(l*l+h*h+u*u);l*=f,h*=f,u*=f;const m=r[0],p=r[1],g=r[2];let M=p*u-g*h,b=g*l-m*u,y=m*h-p*l;f=Math.sqrt(M*M+b*b+y*y),f?(f=1/f,M*=f,b*=f,y*=f):(M=0,b=0,y=0);let x=h*y-u*b,w=u*M-l*y,_=l*b-h*M;f=Math.sqrt(x*x+w*w+_*_),f?(f=1/f,x*=f,w*=f,_*=f):(x=0,w=0,_=0),t[0]=M,t[1]=x,t[2]=l,t[3]=0,t[4]=b,t[5]=w,t[6]=h,t[7]=0,t[8]=y,t[9]=_,t[10]=u,t[11]=0,t[12]=-(M*s+b*i+y*c),t[13]=-(x*s+w*i+_*c),t[14]=-(l*s+h*i+u*c),t[15]=1},mul:q,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,a){const i=1/(e-n),c=1/(r-o),l=1/(s-a);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*c,t[14]=(a+s)*l,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let a;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),c=2/(a+i),l=2/(o+s);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-i)*c*.5,t[9]=(o-s)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],a=e[5],i=e[6],c=e[7],l=e[8],h=e[9],u=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+l*r,t[5]=a*o+h*r,t[6]=i*o+u*r,t[7]=c*o+d*r,t[8]=l*o-s*r,t[9]=h*o-a*r,t[10]=u*o-i*r,t[11]=d*o-c*r,t},rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],a=e[1],i=e[2],c=e[3],l=e[8],h=e[9],u=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-l*r,t[1]=a*o-h*r,t[2]=i*o-u*r,t[3]=c*o-d*r,t[8]=s*r+l*o,t[9]=a*r+h*o,t[10]=i*r+u*o,t[11]=c*r+d*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],a=e[1],i=e[2],c=e[3],l=e[4],h=e[5],u=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+l*r,t[1]=a*o+h*r,t[2]=i*o+u*r,t[3]=c*o+d*r,t[4]=l*o-s*r,t[5]=h*o-a*r,t[6]=u*o-i*r,t[7]=d*o-c*r,t},scale:u,set:s,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:O,subtract:y,targetTo:function(t,e,n,r){const o=e[0],s=e[1],a=e[2],i=r[0],c=r[1],l=r[2];let h=o-n[0],u=s-n[1],d=a-n[2],f=h*h+u*u+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,u*=f,d*=f);let m=c*d-l*u,p=l*h-i*d,g=i*u-c*h;return f=m*m+p*p+g*g,f>0&&(f=1/Math.sqrt(f),m*=f,p*=f,g*=f),t[0]=m,t[1]=p,t[2]=g,t[3]=0,t[4]=u*g-d*p,t[5]=d*m-h*g,t[6]=h*p-u*m,t[7]=0,t[8]=h,t[9]=u,t[10]=d,t[11]=0,t[12]=o,t[13]=s,t[14]=a,t[15]=1,t},translate:h,transpose:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function s(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>a,a:()=>s,b:()=>o,c:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:s,fromValues:function(t,e,n,r,o,s,a,i,c,l,h,u,d,f,m,p){return[t,e,n,r,o,s,a,i,c,l,h,u,d,f,m,p]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}function s(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>a,a:()=>r,b:()=>o,c:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:s,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>c});var r,o,s,a=n(5732),i={exports:{}};r=i,o=function(){function t(n,r,o,s,a){for(;s>o;){if(s-o>600){var i=s-o+1,c=r-o+1,l=Math.log(i),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(i-h)/i)*(c-i/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-c*h/i+u)),Math.min(s,Math.floor(r+(i-c)*h/i+u)),a)}var d=n[r],f=o,m=s;for(e(n,o,r),a(n[s],d)>0&&e(n,o,s);f<m;){for(e(n,f,m),f++,m--;a(n[f],d)<0;)f++;for(;a(n[m],d)>0;)m--}0===a(n[o],d)?e(n,o,m):e(n,++m,s),m<=r&&(o=m+1),r<=m&&(s=m-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,s,a){t(e,r,o||0,s||e.length-1,a||n)}},void 0!==(s=o())&&(r.exports=s);const c=(0,a.g)(i.exports)},2368:(t,e,n)=>{n.d(e,{J:()=>h,j:()=>u});var r=n(43697),o=n(92036),s=(n(80442),n(22974)),a=(n(92604),n(70586)),i=n(31263),c=n(1153),l=n(52011);const h=t=>{let e=class extends t{clone(){const t=(0,a.s3)((0,c.vw)(this),"unable to clone instance of non-accessor class"),e=t.metadatas,n=t.store,r={},o=new Map;for(const t in e){const a=e[t],c=n?.originOf(t),l=a.clonable;if(a.readOnly||!1===l||c!==i.s3.USER&&c!==i.s3.DEFAULTS&&c!==i.s3.WEB_MAP&&c!==i.s3.WEB_SCENE)continue;const h=this[t];let u=null;u="function"==typeof l?l(h):"reference"===l?h:(0,s.Vo)(h),null!=h&&null==u||(c===i.s3.DEFAULTS?o.set(t,u):r[t]=u)}const l=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,c.vw)(l)?.store;if(t)for(const[e,n]of o)t.set(e,n,i.s3.DEFAULTS)}return l}};return e=(0,r._)([(0,l.j)("esri.core.Clonable")],e),e};let u=class extends(h(o.Z)){};u=(0,r._)([(0,l.j)("esri.core.Clonable")],u)},10661:(t,e,n)=>{n.d(e,{s:()=>o});var r=n(42100);class o extends r.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},24133:(t,e,n)=>{n.d(e,{Q:()=>i});var r=n(67676),o=n(70586),s=n(44553),a=n(88764);class i{constructor(t=9,e){this._compareMinX=u,this._compareMinY=d,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(),w.prune(),_.prune(),v.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(b(t,n))for(x.clear();n;){for(let o=0,s=n.children.length;o<s;o++){const s=n.children[o],a=n.leaf?r(s):s;b(t,a)&&(n.leaf?e(s):M(t,a)?this._all(s,e):x.push(s))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!b(t,e))return!1;for(x.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],s=e.leaf?n(o):o;if(b(t,s)){if(e.leaf||M(t,s))return!0;x.push(o)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;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 T([]),this}remove(t){if(!t)return this;let e,n=this._data,s=null,a=0,i=!1;const c=this._toBBox(t);for(_.clear(),v.clear();n||_.length>0;){if(n||(n=(0,o.j0)(_.pop()),s=_.data[_.length-1],a=v.pop()??0,i=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),_.push(n),this._condense(_),this;i||n.leaf||!M(n,c)?s?(a++,n=s.children[a],i=!1):n=null:(_.push(n),v.push(a),a=0,s=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(w.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else w.pushArray(n.children);n=w.pop()??null}}_build(t,e,n,r){const o=n-e+1;let s=this._maxEntries;if(o<=s){const r=new T(t.slice(e,n+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(r-1)));const a=new S([]);a.height=r;const i=Math.ceil(o/s),l=i*Math.ceil(Math.sqrt(s));y(t,e,n,l,this._compareMinX);for(let o=e;o<=n;o+=l){const e=Math.min(o+l-1,n);y(t,o,e,i,this._compareMinY);for(let n=o;n<=e;n+=i){const o=Math.min(n+i-1,e);a.children.push(this._build(t,n,o,r-1))}}return c(a,this._toBBox),a}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let s=0,a=e.children.length;s<a;s++){const a=e.children[s],i=f(a),c=p(t,a)-i;c<o?(o=c,r=i<r?i:r,n=a):c===o&&i<r&&(r=i,n=a)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);_.clear();const s=this._chooseSubtree(o,this._data,e,_);for(s.children.push(t),h(s,o);e>=0&&_.data[e].children.length>this._maxEntries;)this._split(_,e),e--;this._adjustParentBBoxes(o,_,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const s=this._chooseSplitIndex(n,o,r);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=n.children.splice(s,n.children.length-s),i=n.leaf?new T(a):new S(a);i.height=n.height,c(n,this._toBBox),c(i,this._toBBox),e?t.data[e-1].children.push(i):this._splitRoot(n,i)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,s;r=o=1/0;for(let a=e;a<=n-e;a++){const e=l(t,0,a,this._toBBox),i=l(t,a,n,this._toBBox),c=g(e,i),h=f(e)+f(i);c<r?(r=c,s=a,o=h<o?h:o):c===r&&h<o&&(o=h,s=a)}return s}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:u,o=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,s=l(t,0,e,o),a=l(t,n-e,n,o);let i=m(s)+m(a);for(let r=e;r<n-e;r++){const e=t.children[r];h(s,t.leaf?o(e):e),i+=m(s)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];h(a,t.leaf?o(e):e),i+=m(a)}return i}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)h(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],s=o.children;s.splice((0,r.cq)(s,n,s.length,o.indexHint),1)}else this.clear();else c(n,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 c(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,o){o||(o=new T([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let s,a=e;a<n;a++)s=t.children[a],h(o,t.leaf?r(s):s);return o}function h(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 d(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(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 g(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),s=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,s-r)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function y(t,e,n,r,s){const i=[e,n];for(;i.length;){const e=(0,o.j0)(i.pop()),n=(0,o.j0)(i.pop());if(e-n<=r)continue;const c=n+Math.ceil((e-n)/r/2)*r;(0,a.q)(t,c,n,e,s),i.push(n,c,c,e)}}const x=new s.Z,w=new s.Z,_=new s.Z,v=new s.Z({deallocator:void 0});class q{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class O extends q{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class T extends O{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends O{constructor(t){super(),this.children=t,this.leaf=!1}}},83025:(t,e,n)=>{n.d(e,{JK:()=>i,QZ:()=>s,Rq:()=>a,bg:()=>o,mB:()=>c});var r=n(1533);function o(t,e=!1){return t<=r.DB?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function s(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.DB?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function i(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},85872:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(43697),o=n(2368),s=n(96674),a=n(5600),i=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),l=n(65617),h=n(94139);let u=class extends((0,o.J)(s.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,l.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new h.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFormPoint({x:t,y:e,z:n}){this.origin=(0,l.f)(t,e,n??0)}};(0,r._)([(0,i.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],u);const d=u},50567:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(43697),o=n(2368),s=n(96674),a=(n(92604),n(75215),n(67676),n(80442),n(20102),n(36030)),i=n(52011);let c=class extends((0,o.J)(s.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,r._)([(0,a.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r._)([(0,i.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const l=c},84555:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(43697),o=n(2368),s=n(96674),a=n(5600),i=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),l=n(65617),h=n(94139);let u=class extends((0,o.J)(s.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,l.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new h.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFormPoint({x:t,y:e,z:n}){this.origin=(0,l.f)(t,e,n??0)}};(0,r._)([(0,i.J)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],u);const d=u},61787:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var r=n(80442),o=n(24133),s=n(66459);class a{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes||!t.vertexAttributes.position)return new o.Q;const r=this._createMeshData(t),s=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return this._createPooledRBush().fromJSON(s)}createIndexThread(t){const e=new Float64Array(t.position),n=this._createPooledRBush();return t.components?this._createIndexComponentsThread(n,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(n,e)}_createIndexAllThread(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=i(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}_createIndexComponentsThread(t,e,n){let r=0;for(const t of n)r+=t.length/3;const o=new Array(r);let s=0;for(const t of n)for(let n=0;n<t.length;n+=3)o[s++]=i(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(o),{result:t.toJSON()}}_createMeshData(t){const e=(t.vertexSpace.isRelative?(0,s.I5)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new o.Q(9,(0,r.Z)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function i(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},3172:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var r=n(68773),o=n(40330),s=n(20102),a=n(80442),i=n(22974),c=n(95330),l=n(81271),h=n(19745),u=n(71058),d=n(85958);async function f(t,e){t instanceof URL&&(t=t.toString()),e?.query instanceof URLSearchParams&&(e.query=(0,l.u0)(e.query.toString().replaceAll("+"," ")));const i=(0,l.HK)(t),h=(0,l.jc)(t);h||i||(t=(0,l.Fv)(t));const M={url:t,requestOptions:{...e}};let b=(0,l.oh)(t);if(b){const t=await async function(t,e){if(null!=t.responseData)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let n,r;try{r=await t.before(e)}catch(t){n=v("request:interceptor",t,e)}if((r instanceof Error||r instanceof s.Z)&&(n=v("request:interceptor",r,e)),n)throw t.error&&t.error(n),n;return r}}(b,M);if(null!=t)return{data:t,getHeader:x,httpStatus:200,requestOptions:M.requestOptions,url:M.url};b.after||b.error||(b=null)}if(t=M.url,"image"===(e=M.requestOptions).responseType&&((0,a.Z)("host-webworker")||(0,a.Z)("host-node")))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),M);if("head"===e.method){if(e.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),M);if(i||h)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),M)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(t,e);const y=new AbortController;(0,c.fu)(e,(()=>y.abort()));const w={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:M,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},_=await async function(t){let e,n;await async function(t){const e=t.params.url,n=t.params.requestOptions,s=t.controller.signal,a=n.body;let i=null,l=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?i=a:a instanceof HTMLFormElement&&(i=new FormData(a))),"string"==typeof a&&(l=a),t.fetchOptions={cache:n.cacheBust&&!("polyfill"in f._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:s},(i||l)&&(t.fetchOptions.body=i||l),"anonymous"===n.authMode&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||n.query?.token||i?.get("token")),!t.hasToken&&r.default.apiKey&&(0,u.r)(e)&&(n.query||(n.query={}),n.query.token=r.default.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!O(e)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await q(),r=await o.id.getCredential(e,{signal:s}),t.credential=r):"no-prompt"===n.authMode?(await q(),r=await o.id.getCredential(e,{prompt:!1,signal:s}).catch((()=>{})),t.credential=r):o.id&&(r=o.id.findCredential(e)),r&&(t.credentialToken=r.token,t.useSSL=!!r.ssl)}}(t);try{do{[e,n]=await T(t)}while(!await E(t,e,n))}catch(n){const r=v("request:server",n,t.params,e);throw r.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(r),r}const s=t.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!t.hasToken&&!t.credentialToken&&n.user?.username&&!(0,l.kl)(s)){const t=(0,l.P$)(s,!0);t&&p.trustedServers.push(t)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(n.authorizedCrossOriginNoCorsDomains)}const a=t.credential;if(a&&o.id){const t=o.id.findServerInfo(a.server);let e=t?.owningSystemUrl;if(e){e=e.replace(/\/?$/,"/sharing");const t=o.id.findCredential(e,a.userId);t&&-1===o.id._getIdenticalSvcIdx(e,t)&&t.resources.unshift(e)}}return{data:n,getHeader:e?t=>e?.headers.get(t):x,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}(w);return b?.after?.(_),_}let m;const p=r.default.request,g="FormData"in globalThis,M=[499,498,403,401],b=["COM_0056","COM_0057","SB_0008"],y=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],x=()=>null,w=Symbol();function _(t){const e=(0,l.P$)(t);return!e||e.endsWith(".arcgis.com")||f._corsServers.includes(e)||(0,l.kl)(e)}function v(t,e,n,r){let o="Error";const a={url:n.url,requestOptions:n.requestOptions,getHeader:x,ssl:!1};if(e instanceof s.Z)return e.details?(e.details=(0,i.d9)(e.details),e.details.url=n.url,e.details.requestOptions=n.requestOptions):e.details=a,e;if(e){const t=r&&(t=>r.headers.get(t)),n=r?.status,s=e.message;s&&(o=s),t&&(a.getHeader=t),a.httpStatus=(null!=e.httpCode?e.httpCode:e.code)||n||0,a.subCode=e.subcode,a.messageCode=e.messageCode,"string"==typeof e.details?a.messages=[e.details]:a.messages=e.details,a.raw=w in e?e[w]:e}return(0,c.D_)(e)?(0,c.zE)():new s.Z(t,o,a)}async function q(){o.id||await Promise.all([n.e(7126),n.e(6261),n.e(9255),n.e(1400),n.e(450)]).then(n.bind(n,73660))}function O(t){return y.some((e=>e.test(t)))}async function T(t){let e=t.params.url;const n=t.params.requestOptions,r=t.fetchOptions??{},s=(0,l.jc)(e)||(0,l.HK)(e),i=n.responseType||"json",u=s?0:null!=n.timeout?n.timeout:p.timeout;let m=!1;if(!s){t.useSSL&&(e=(0,l.hO)(e)),n.cacheBust&&"default"===r.cache&&(e=(0,l.ZN)(e,"request.preventCache",Date.now()));let s={...n.query};t.credentialToken&&(s.token=t.credentialToken);let i=(0,l.B7)(s);(0,a.Z)("esri-url-encodes-apostrophe")&&(i=i.replaceAll("'","%27"));const c=e.length+1+i.length;let u;m="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||c>p.maxUrlLength;const f=n.useProxy||!!(0,l.ed)(e);if(f){const t=(0,l.b7)(e);u=t.path,!m&&u.length+1+c>p.maxUrlLength&&(m=!0),t.query&&(s={...t.query,...s})}if("HEAD"===r.method&&(m||f)){if(m){if(c>p.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params)}if(f)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}if(m?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?e=(0,l.fl)(e,s):(r.body=(0,l.B7)(s),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):e=(0,l.fl)(e,s),f&&(t.useProxy=!0,e=`${u}?${e}`),s.token&&g&&r.body instanceof FormData&&!(0,h.P)(e)&&r.body.set("token",s.token),n.hasOwnProperty("withCredentials"))t.withCredentials=n.withCredentials;else if(!(0,l.D6)(e,(0,l.TI)()))if((0,l.kl)(e))t.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(e);n?.webTierAuth&&(t.withCredentials=!0)}t.withCredentials&&(r.credentials="include",(0,d.jH)(e)&&await(0,d.jz)(m?(0,l.fl)(e,s):e))}let M,b,y=0,x=!1;u>0&&(y=setTimeout((()=>{x=!0,t.controller.abort()}),u));try{if("native-request-init"===n.responseType)b=r,b.url=e;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||m||function(t){if(t)for(const e of Object.getOwnPropertyNames(t))if(t[e])return!0;return!1}(n.headers)||!s&&!t.useProxy&&p.proxyUrl&&!_(e)){if(M=await f._abortableFetch(e,r),t.useProxy||function(t){const e=(0,l.P$)(t);e&&!f._corsServers.includes(e)&&f._corsServers.push(e)}(e),"native"===n.responseType)b=M;else if("HEAD"!==r.method)if(M.ok){switch(i){case"array-buffer":b=await M.arrayBuffer();break;case"blob":case"image":b=await M.blob();break;default:b=await M.text()}if(y&&(clearTimeout(y),y=0),"json"===i||"xml"===i||"document"===i)if(b)switch(i){case"json":b=JSON.parse(b);break;case"xml":b=S(b,"application/xml");break;case"document":b=S(b,"text/html")}else b=null;if(b){if("array-buffer"===i||"blob"===i){const t=M.headers.get("Content-Type");if(t&&/application\/json|text\/plain/i.test(t)&&b["blob"===i?"size":"byteLength"]<=750)try{const t=await new Response(b).json();t.error&&(b=t)}catch{}}"image"===i&&b instanceof Blob&&(b=await P(URL.createObjectURL(b),t,!0))}}else{b=await M.text();try{b=JSON.parse(b)}catch{}}}else b=await P(e,t)}catch(r){if("AbortError"===r.name){if(x)throw(0,d.Tf)();throw(0,c.zE)("Request canceled")}if(!(!M&&r instanceof TypeError&&p.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||t.useProxy||_(e))throw r;t.redoRequest=!0,(0,l.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,l.P$)(e)??""})}finally{y&&clearTimeout(y)}return[M,b]}function S(t,e){let n;try{n=(new DOMParser).parseFromString(t,e)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function E(t,e,n){if(t.redoRequest)return t.redoRequest=!1,!1;const r=t.params.requestOptions;if(!e||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,a;if(n&&(n.error?s=n.error:"error"===n.status&&Array.isArray(n.messages)&&(s={...n},s[w]=n,s.details=n.messages)),!s&&!e.ok)throw s=new Error(`Unable to load ${e.url} status: ${e.status}`),s[w]=n,s;let i,c=null;s&&(a=Number(s.code),c=s.hasOwnProperty("subcode")?Number(s.subcode):null,i=s.messageCode,i=i?.toUpperCase());const l=r.authMode;if(403===a&&(4===c||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&("no-prompt"!==l||498===a)&&void 0!==a&&M.includes(a)&&!O(t.params.url)&&(403!==a||i&&!b.includes(i)&&(null==c||2===c&&t.credentialToken))){await q();try{const e=await o.id.getCredential(t.params.url,{error:v("request:server",s,t.params),prompt:"no-prompt"!==l,signal:t.controller.signal,token:t.credentialToken});return t.credential=e,t.credentialToken=e.token,t.useSSL=t.useSSL||e.ssl,!1}catch(e){if("no-prompt"===l)return t.credential=void 0,t.credentialToken=void 0,!1;s=e}}if(s)throw s;return!0}function P(t,e,n=!1){const r=e.controller.signal,o=new Image;return e.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=p.priority,o.src=t,(0,d.fY)(o,t,n,r)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(t,e,n)=>{n.d(e,{r:()=>s});var r=n(81271);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(t){const e=(0,r.P$)(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!o.includes(e)&&!t.endsWith("/sharing/rest/generateToken")}},85958:(t,e,n)=>{n.d(e,{Hu:()=>u,Tf:()=>h,fY:()=>i,jH:()=>d,jz:()=>f});var r=n(68773),o=n(80442),s=n(95330),a=n(81271);function i(t,e,n=!1,r){return new Promise(((a,i)=>{if((0,s.Hc)(r))return void i(c());let l=()=>{d(),i(new Error(`Unable to load ${e}`))},h=()=>{const e=t;d(),a(e)},u=()=>{if(!t)return;const e=t;d(),e.src="",i(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(t.removeEventListener("error",l),t.removeEventListener("load",h)),l=null,h=null,t=null,null!=r&&r.removeEventListener("abort",u),u=null,n&&URL.revokeObjectURL(e)};null!=r&&r.addEventListener("abort",u),(0,o.Z)("esri-image-decode")?t.decode().then(h,l):(t.addEventListener("error",l),t.addEventListener("load",h))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error;return t.name="AbortError",t}}const l="Timeout exceeded";function h(){return new Error(l)}function u(t){r.default.request.crossOriginNoCorsDomains||(r.default.request.crossOriginNoCorsDomains={});const e=r.default.request.crossOriginNoCorsDomains;for(let n of t)n=n.toLowerCase(),/^https?:\/\//.test(n)?e[(0,a.P$)(n)??""]=0:(e[(0,a.P$)("http://"+n)??""]=0,e[(0,a.P$)("https://"+n)??""]=0)}function d(t){const e=r.default.request.crossOriginNoCorsDomains;if(e){let n=(0,a.P$)(t);if(n)return n=n.toLowerCase(),!(0,a.D6)(n,(0,a.TI)())&&e[n]<Date.now()-36e5}return!1}async function f(t){const e=r.default.request.crossOriginNoCorsDomains,n=(0,a.P$)(t);e&&n&&(e[n.toLowerCase()]=Date.now());const o=(0,a.mN)(t);t=o.path,"json"===o.query?.f&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2906,661,5234,9880],{66748:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>I});var r=e(40330),a=e(77286),o=e(61363),i=e(71201),s=e(6570),u=e(9361),l=e(8667),c=e(65091),f=e(94139),d=e(38913),h=e(58901),m=e(33955),y=e(27535),g=e(33586),w=e(28228),p=e(26520),Z=e(67900),v=e(48522);function L(n){return 0===r.i8.indexOf("4.")?d.Z.fromExtent(n):new d.Z({spatialReference:n.spatialReference,rings:[[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]})}function D(n,t,e){if((0,o.C)(n,2,2,t,e),n[0]instanceof u.Z&&n[1]instanceof u.Z);else if(n[0]instanceof u.Z&&null===n[1]);else if(n[1]instanceof u.Z&&null===n[0]);else if(null!==n[0]||null!==n[1])throw new y.aV(t,y.rH.InvalidParameter,e)}async function A(n,t){if("polygon"!==n.type&&"polyline"!==n.type&&"extent"!==n.type)return 0;let e=1;(n.spatialReference.vcsWkid||n.spatialReference.latestVcsWkid)&&(e=(0,i._R)(n.spatialReference)/(0,Z.c9)(n.spatialReference));let r=0;if("polyline"===n.type)for(const t of n.paths)for(let n=1;n<t.length;n++)r+=(0,i.AW)(t[n],t[n-1],e);else if("polygon"===n.type)for(const t of n.rings){for(let n=1;n<t.length;n++)r+=(0,i.AW)(t[n],t[n-1],e);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],e))}else"extent"===n.type&&(r+=2*(0,i.AW)([n.xmin,n.ymin,0],[n.xmax,n.ymin,0],e),r+=2*(0,i.AW)([n.xmin,n.ymin,0],[n.xmin,n.ymax,0],e),r*=2,r+=4*Math.abs((0,o.D)(n.zmax,0)*e-(0,o.D)(n.zmin,0)*e));const a=new h.Z({hasZ:!1,hasM:!1,spatialReference:n.spatialReference,paths:[[0,0],[0,r]]});return(0,l.sz)(a,t)}function I(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null===a[0]||null===a[1]||(0,l.ED)(a[0],a[1]))))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null!==a[0]&&null!==a[1]&&(0,l.kK)(a[0],a[1]))))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null!==a[0]&&null!==a[1]&&(0,l.W4)(a[0],a[1]))))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null!==a[0]&&null!==a[1]&&(0,l.jU)(a[0],a[1]))))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null!==a[0]&&null!==a[1]&&(0,l.uh)(a[0],a[1]))))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null!==a[0]&&null!==a[1]&&(0,l.r3)(a[0],a[1]))))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null!==a[0]&&null!==a[1]&&(0,l.Nm)(a[0],a[1]))))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>((0,o.C)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof u.Z&&a[1]instanceof u.Z?(0,l.fS)(a[0],a[1]):!(!(0,o.k)(a[0])||!(0,o.k)(a[1]))&&a[0].equals(a[1])))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,3,3,t,e),a[0]instanceof u.Z&&a[1]instanceof u.Z)return(0,l.LV)(a[0],a[1],(0,o.j)(a[2]));if(a[0]instanceof u.Z&&null===a[1])return!1;if(a[1]instanceof u.Z&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new y.aV(t,y.rH.InvalidParameter,e)}))},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,o.L)(a),t,e),null===a[0]||null===a[1]?null:(0,l.wf)(a[0],a[1]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{const s=[];if(0===(i=(0,o.L)(i)).length)throw new y.aV(t,y.rH.WrongNumberOfParameters,e);if(1===i.length)if((0,o.m)(i[0])){const n=(0,o.L)(i[0]);for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);s.push(n[r])}}else{if(!(0,o.o)(i[0])){if(i[0]instanceof u.Z)return(0,o.y)((0,a.r1)(i[0]),t.spatialReference);if(null===i[0])return null;throw new y.aV(t,y.rH.InvalidParameter,e)}{const n=(0,o.L)(i[0].toArray());for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);s.push(n[r])}}}else for(let n=0;n<i.length;n++)if(null!==i[n]){if(!(i[n]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);s.push(i[n])}return 0===s.length?null:(0,l.G0)(s)}))},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(D(i=(0,o.L)(i),t,e),null!==i[0]&&null===i[1]?(0,a.r1)(i[0]):null===i[0]?null:(0,l.e5)(i[0],i[1]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>(D(i=(0,o.L)(i),t,e),null===i[0]&&null===i[1]?null:null===i[0]?(0,a.r1)(i[1]):null===i[1]?(0,a.r1)(i[0]):(0,l.Sp)(i[0],i[1]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,2,2,t,e),!(a[1]instanceof s.Z)&&null!==a[1])throw new y.aV(t,y.rH.InvalidParameter,e);if(null===a[0])return null;if(!(a[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return null===a[1]?null:(0,l.oq)(a[0],a[1])}))},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,2,t,e),!(i[1]instanceof h.Z)&&null!==i[1])throw new y.aV(t,y.rH.InvalidParameter,e);if(null===i[0])return[];if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return null===i[1]?[(0,a.r1)(i[0])]:(0,l.z7)(i[0],i[1])}))},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.C)(i,1,2,t,e),null===(i=(0,o.L)(i))[0])return 0;if((0,o.r)(i[0])){const n=await i[0].sumArea((0,a.EI)((0,o.D)(i[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new y.aV(t,y.rH.Cancelled,e);return n}if((0,o.m)(i[0])||(0,o.o)(i[0])){const n=(0,o.N)(i[0],t.spatialReference);return null===n?0:(0,l.CJ)(n,(0,a.EI)((0,o.D)(i[1],-1)))}if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.CJ)(i[0],(0,a.EI)((0,o.D)(i[1],-1)))}))},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.C)(i,1,2,t,e),null===(i=(0,o.L)(i))[0])return 0;if((0,o.r)(i[0])){const n=await i[0].sumArea((0,a.EI)((0,o.D)(i[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new y.aV(t,y.rH.Cancelled,e);return n}if((0,o.m)(i[0])||(0,o.o)(i[0])){const n=(0,o.N)(i[0],t.spatialReference);return null===n?0:(0,l.Y4)(n,(0,a.EI)((0,o.D)(i[1],-1)))}if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.Y4)(i[0],(0,a.EI)((0,o.D)(i[1],-1)))}))},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.C)(i,1,2,t,e),null===(i=(0,o.L)(i))[0])return 0;if((0,o.r)(i[0])){const n=await i[0].sumLength((0,a.Lz)((0,o.D)(i[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new y.aV(t,y.rH.Cancelled,e);return n}if((0,o.m)(i[0])||(0,o.o)(i[0])){const n=(0,o.M)(i[0],t.spatialReference);return null===n?0:(0,l.sz)(n,(0,a.Lz)((0,o.D)(i[1],-1)))}if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.sz)(i[0],(0,a.Lz)((0,o.D)(i[1],-1)))}))},n.functions.length3d=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if((0,o.C)(i,1,2,t,e),null===(i=(0,o.L)(i))[0])return 0;if((0,o.m)(i[0])||(0,o.o)(i[0])){const n=(0,o.M)(i[0],t.spatialReference);return null===n?0:!0===n.hasZ?A(n,(0,a.Lz)((0,o.D)(i[1],-1))):(0,l.sz)(n,(0,a.Lz)((0,o.D)(i[1],-1)))}if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return!0===i[0].hasZ?A(i[0],(0,a.Lz)((0,o.D)(i[1],-1))):(0,l.sz)(i[0],(0,a.Lz)((0,o.D)(i[1],-1)))}))},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{if((0,o.C)(i,1,2,t,e),null===(i=(0,o.L)(i))[0])return 0;if((0,o.r)(i[0])){const n=await i[0].sumLength((0,a.Lz)((0,o.D)(i[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new y.aV(t,y.rH.Cancelled,e);return n}if((0,o.m)(i[0])||(0,o.o)(i[0])){const n=(0,o.M)(i[0],t.spatialReference);return null===n?0:(0,l.kQ)(n,(0,a.Lz)((0,o.D)(i[1],-1)))}if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.kQ)(i[0],(0,a.Lz)((0,o.D)(i[1],-1)))}))},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{i=(0,o.L)(i),(0,o.C)(i,2,3,t,e);let s=i[0];((0,o.m)(i[0])||(0,o.o)(i[0]))&&(s=(0,o.O)(i[0],t.spatialReference));let c=i[1];if(((0,o.m)(i[1])||(0,o.o)(i[1]))&&(c=(0,o.O)(i[1],t.spatialReference)),!(s instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);if(!(c instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.TE)(s,c,(0,a.Lz)((0,o.D)(i[2],-1)))}))},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{i=(0,o.L)(i),(0,o.C)(i,2,3,t,e);const s=i[0],u=i[1];if(!(s instanceof f.Z))throw new y.aV(t,y.rH.InvalidParameter,e);if(!(u instanceof f.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const c=new h.Z({paths:[],spatialReference:s.spatialReference});return c.addPath([s,u]),(0,l.kQ)(c,(0,a.Lz)((0,o.D)(i[2],-1)))}))},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const c=(0,o.g)(i[1]);if(isNaN(c))throw new y.aV(t,y.rH.InvalidParameter,e);if(c<=0)throw new y.aV(t,y.rH.InvalidParameter,e);return i[0]instanceof d.Z||i[0]instanceof h.Z?(0,l.Cz)(i[0],c,(0,a.Lz)((0,o.D)(i[2],-1))):i[0]instanceof s.Z?(0,l.Cz)(L(i[0]),c,(0,a.Lz)((0,o.D)(i[2],-1))):i[0]}))},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const c=(0,o.g)(i[1]);if(isNaN(c))throw new y.aV(t,y.rH.InvalidParameter,e);if(c<=0)throw new y.aV(t,y.rH.InvalidParameter,e);return i[0]instanceof d.Z||i[0]instanceof h.Z?(0,l.j2)(i[0],c,(0,a.Lz)((0,o.D)(i[2],-1))):i[0]instanceof s.Z?(0,l.j2)(L(i[0]),c,(0,a.Lz)((0,o.D)(i[2],-1))):i[0]}))},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,4,t,e),null===i[0])return null;if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const s=(0,o.g)(i[1]);if(isNaN(s))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.D$)(i[0],s,(0,o.h)((0,o.D)(i[2],!0)),(0,a.Lz)((0,o.D)(i[3],-1)))}))},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const s=(0,o.g)(i[1]);if(isNaN(s))throw new y.aV(t,y.rH.InvalidParameter,e);return 0===s?(0,a.r1)(i[0]):(0,l.f3)(i[0],s,(0,a.Lz)((0,o.D)(i[2],-1)))}))},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,3,t,e),null===i[0])return null;if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const s=(0,o.g)(i[1]);if(isNaN(s))throw new y.aV(t,y.rH.InvalidParameter,e);return 0===s?(0,a.r1)(i[0]):(0,l.rd)(i[0],s,(0,a.Lz)((0,o.D)(i[2],-1)))}))},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,((n,r,i)=>{if(i=(0,o.L)(i),(0,o.C)(i,2,6,t,e),null===i[0])return null;if(!(i[0]instanceof d.Z||i[0]instanceof h.Z))throw new y.aV(t,y.rH.InvalidParameter,e);const s=(0,o.g)(i[1]);if(isNaN(s))throw new y.aV(t,y.rH.InvalidParameter,e);const u=(0,o.g)((0,o.D)(i[4],10));if(isNaN(u))throw new y.aV(t,y.rH.InvalidParameter,e);const c=(0,o.g)((0,o.D)(i[5],0));if(isNaN(c))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.cv)(i[0],s,(0,a.Lz)((0,o.D)(i[2],-1)),(0,o.j)((0,o.D)(i[3],"round")).toLowerCase(),u,c)}))},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,o.L)(a),(0,o.C)(a,2,3,t,e);let i=a[0];if(null===i)return null;if(!(i instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);i instanceof s.Z&&(i=d.Z.fromExtent(i));const c=(0,o.g)(a[1]);if(isNaN(c))throw new y.aV(t,y.rH.InvalidParameter,e);const h=(0,o.D)(a[2],null);if(null===h)return(0,l.U1)(i,c);if(h instanceof f.Z)return(0,l.U1)(i,c,h);throw new y.aV(t,y.rH.InvalidParameter,e)}))},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,((n,r,l)=>{if(l=(0,o.L)(l),(0,o.C)(l,1,1,t,e),null===l[0])return null;let m=l[0];if(((0,o.m)(l[0])||(0,o.o)(l[0]))&&(m=(0,o.O)(l[0],t.spatialReference)),null===m)return null;if(!(m instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return m instanceof f.Z?(0,o.y)((0,a.r1)(l[0]),t.spatialReference):m instanceof d.Z?m.centroid:m instanceof h.Z?(0,i.s9)(m):m instanceof c.Z?(0,i.Ay)(m):m instanceof s.Z?m.center:null}))},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,i)=>{i=(0,o.L)(i),(0,o.C)(i,1,1,t,e);const g=[];if(null===i[0])return null;if(!(i[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);if(i[0]instanceof f.Z)return[(0,o.y)((0,a.r1)(i[0]),t.spatialReference)];if(i[0]instanceof s.Z)return[(0,o.y)((0,a.r1)(i[0]),t.spatialReference)];const w=await(0,l.og)(i[0]);if(w instanceof d.Z){const n=[],t=[];for(let e=0;e<w.rings.length;e++)if(w.isClockwise(w.rings[e])){const t=(0,m.im)({rings:[w.rings[e]],hasZ:!0===w.hasZ,hazM:!0===w.hasM,spatialReference:w.spatialReference.toJSON()});n.push(t)}else t.push({ring:w.rings[e],pt:w.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(w instanceof h.Z){const n=[];for(let t=0;t<w.paths.length;t++){const e=(0,m.im)({paths:[w.paths[t]],hasZ:!0===w.hasZ,hazM:!0===w.hasM,spatialReference:w.spatialReference.toJSON()});n.push(e)}return n}if(i[0]instanceof c.Z){const n=(0,o.y)((0,a.r1)(i[0]),t.spatialReference);for(let t=0;t<n.points.length;t++)g.push(n.getPoint(t));return g}return null}))},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.Gg)(a[0])}))},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.og)(a[0])}))},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof u.Z))throw new y.aV(t,y.rH.InvalidParameter,e);return(0,l.JI)(a[0])}))},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{(0,o.C)(a,0,2,t,e);let i=(0,o.D)(a[1],""),s=!0===i;if(i=!0===i||!1===i?"":(0,o.j)(i),0===a.length||a[0]instanceof w.Z){let n=null;n=t.services&&t.services.portal?t.services.portal:v.Z.getDefault(),a.length>0&&(n=(0,p._)(a[0],n));const e=await(0,p.q)(n,i,s);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return g.Z.convertObjectToArcadeDictionary(n,(0,o.G)(t))}return null}let u=null;if((0,o.r)(a[0])&&(u=a[0]),u){if(s=!1,i)return null;await u.load();const n=await u.getOwningSystemUrl();if(!n){if(!i){const n=await u.getIdentityUser();return n?g.Z.convertObjectToArcadeDictionary({username:n},(0,o.G)(t)):null}return null}let e=null;e=t.services&&t.services.portal?t.services.portal:v.Z.getDefault(),e=(0,p._)(new w.Z(n),e);const r=await(0,p.q)(e,i,s);if(r){const n=JSON.parse(JSON.stringify(r));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return g.Z.convertObjectToArcadeDictionary(n,(0,o.G)(t))}return null}throw new y.aV(t,y.rH.InvalidParameter,e)}))}),n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,2,2,t,e),!(a[0]instanceof u.Z||null===a[0]))throw new y.aV(t,y.rH.InvalidParameter,e);if(!(a[1]instanceof f.Z||null===a[1]))throw new y.aV(t,y.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const i=await(0,l.FH)(a[0],a[1]);return null===i?null:g.Z.convertObjectToArcadeDictionary({coordinate:i.coordinate,distance:i.distance},(0,o.G)(t),!1,!0)}))},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,o.L)(a),(0,o.C)(a,2,2,t,e),!(a[0]instanceof u.Z||null===a[0]))throw new y.aV(t,y.rH.InvalidParameter,e);if(!(a[1]instanceof f.Z||null===a[1]))throw new y.aV(t,y.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const i=await(0,l._L)(a[0],a[1]);return null===i?null:g.Z.convertObjectToArcadeDictionary({coordinate:i.coordinate,distance:i.distance},(0,o.G)(t),!1,!0)}))}}},26520:(n,t,e)=>{e.d(t,{_:()=>i,q:()=>s});var r=e(40330),a=e(3172),o=e(48522);function i(n,t){return null===n?t:new o.Z({url:n.field("url")})}async function s(n,t,e){const o=r.id?.findCredential(n.restUrl);if(!o)return null;if("loaded"===n.loadStatus&&""===t&&n.user&&n.user.sourceJSON&&!1===e)return n.user.sourceJSON;if(""===t){const t=await(0,a.default)(n.restUrl+"/community/self",{responseType:"json",query:{f:"json",...!1===e?{}:{returnUserLicenseTypeExtensions:!0}}});if(t.data){const n=t.data;if(n&&n.username)return n}return null}const i=await(0,a.default)(n.restUrl+"/community/users/"+t,{responseType:"json",query:{f:"json"}});if(i.data){const n=i.data;return n.error?null:n}return null}},99880:(n,t,e)=>{e.d(t,{V:()=>u});var r=e(68773),a=(e(3172),e(20102)),o=e(92604),i=e(81271);const s=o.Z.getLogger("esri.assets");function u(n){if(!r.default.assetsPath)throw s.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new a.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.default.assetsPath,n)}},10661:(n,t,e)=>{e.d(t,{s:()=>a});var r=e(42100);class a extends r.s{notify(){const n=this._observers;if(n&&n.length>0){const t=n.slice();for(const n of t)n.onInvalidated(),n.onCommitted()}}}},8667:(n,t,e)=>{e.d(t,{CJ:()=>k,Cz:()=>O,D$:()=>R,ED:()=>v,FH:()=>b,G0:()=>S,Gg:()=>A,JI:()=>P,LV:()=>D,Nm:()=>L,Sp:()=>H,TE:()=>y,U1:()=>T,W4:()=>p,Y4:()=>E,_L:()=>x,cv:()=>F,e5:()=>V,f3:()=>z,fS:()=>g,j2:()=>M,jU:()=>m,kK:()=>w,kQ:()=>j,og:()=>I,oq:()=>f,r3:()=>h,rd:()=>N,sz:()=>_,uh:()=>Z,wf:()=>C,z7:()=>d}),e(66577);var r=e(78346),a=e(94139),o=e(33955);function i(n){return Array.isArray(n)?n[0]?.spatialReference:n?.spatialReference}function s(n){return n?Array.isArray(n)?n.map(s):n.toJSON?n.toJSON():n:n}function u(n){return Array.isArray(n)?n.map((n=>(0,o.im)(n))):(0,o.im)(n)}let l;async function c(n,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:n,parameters:s(t)})}async function f(n,t){return u(await c("clip",[i(n),n,t]))}async function d(n,t){return u(await c("cut",[i(n),n,t]))}function h(n,t){return c("contains",[i(n),n,t])}function m(n,t){return c("crosses",[i(n),n,t])}function y(n,t,e){return c("distance",[i(n),n,t,e])}function g(n,t){return c("equals",[i(n),n,t])}function w(n,t){return c("intersects",[i(n),n,t])}function p(n,t){return c("touches",[i(n),n,t])}function Z(n,t){return c("within",[i(n),n,t])}function v(n,t){return c("disjoint",[i(n),n,t])}function L(n,t){return c("overlaps",[i(n),n,t])}function D(n,t,e){return c("relate",[i(n),n,t,e])}function A(n){return c("isSimple",[i(n),n])}async function I(n){return u(await c("simplify",[i(n),n]))}async function P(n,t=!1){return u(await c("convexHull",[i(n),n,t]))}async function V(n,t){return u(await c("difference",[i(n),n,t]))}async function H(n,t){return u(await c("symmetricDifference",[i(n),n,t]))}async function C(n,t){return u(await c("intersect",[i(n),n,t]))}async function S(n,t=null){const e=function(n,t){let e;return Array.isArray(n)?e=n:(e=[],e.push(n),null!=t&&e.push(t)),e}(n,t);return u(await c("union",[i(e),e]))}async function F(n,t,e,r,a,o){return u(await c("offset",[i(n),n,t,e,r,a,o]))}async function z(n,t,e,r=!1){const a=[i(n),n,t,e,r];return u(await c("buffer",a))}async function N(n,t,e,r,a,o){const s=[i(n),n,t,e,r,a,o];return u(await c("geodesicBuffer",s))}async function b(n,t,e=!0){const r=await c("nearestCoordinate",[i(n),n,t,e]);return{...r,coordinate:a.Z.fromJSON(r.coordinate)}}async function x(n,t){const e=await c("nearestVertex",[i(n),n,t]);return{...e,coordinate:a.Z.fromJSON(e.coordinate)}}async function T(n,t,e){if(null==n)throw new J;const r=n.spatialReference;if(null==(e=e??function(n){return"xmin"in n?n.center:"x"in n?n:n.extent?.center}(n)))throw new J;const a=n.constructor.fromJSON(await c("rotate",[r,n,t,e]));return a.spatialReference=r,a}async function R(n,t,e,r){return u(await c("generalize",[i(n),n,t,e,r]))}async function O(n,t,e){return u(await c("densify",[i(n),n,t,e]))}async function M(n,t,e,r=0){return u(await c("geodesicDensify",[i(n),n,t,e,r]))}function k(n,t){return c("planarArea",[i(n),n,t])}function _(n,t){return c("planarLength",[i(n),n,t])}function E(n,t,e){return c("geodesicArea",[i(n),n,t,e])}function j(n,t,e){return c("geodesicLength",[i(n),n,t,e])}class J extends Error{constructor(){super("Illegal Argument Exception")}}},90344:(n,t,e)=>{e.d(t,{LJ:()=>I,Xr:()=>w,Ze:()=>L,cZ:()=>l,i$:()=>P,o8:()=>A,p6:()=>D});var r=e(35454),a=e(70171),o=e(17126);const i={year:void 0,month:void 0,day:void 0,weekday:void 0},s={hour:void 0,minute:void 0,second:void 0},u={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},l={timeZone:"Etc/UTC"},c={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},g={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...m,hour12:!1},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,...y,hour12:!1},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...m,hour12:!1},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,...y,hour12:!1},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...m},"long-month-day-year-short-time-24":{...f,...m,hour12:!1},"long-month-day-year-long-time":{...f,...y},"long-month-day-year-long-time-24":{...f,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...m,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":h,"long-date-short-time":{...h,...m},"long-date-short-time-24":{...h,...m,hour12:!1},"long-date-long-time":{...h,...y},"long-date-long-time-24":{...h,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},w=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p={ar:"ar-u-nu-latn-ca-gregory"};let Z=new WeakMap,v=g["short-date-short-time"];function L(n){return g[n]}function D(n,t){return function(n){const t=n||v;let e=Z.get(t);if(!e){const n=(0,a.Kd)(),r=p[n]||n;e=new Intl.DateTimeFormat(r,t),Z.set(t,e)}return e}(t).format(n)}function A(n,t=g["short-date"]){return D(new Date(n),{...t,...l,...s})}function I(n,t=g["short-time"]){return D(new Date(`1970-01-01T${n}Z`),{...t,...l,...i})}function P(n,t=g["short-date-short-time"]){const e=o.ou.fromISO(n,{setZone:!0}),r=(0,a.Kd)(),i=p[r]??r;return e.toLocaleString({...u,...t},{locale:i})}(0,a.Ze)((()=>{Z=new WeakMap,v=g["short-date-short-time"]}))},94443:(n,t,e)=>{e.d(t,{ME:()=>h,Su:()=>m,tz:()=>d});var r=e(20102),a=e(95330),o=e(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,s={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function u(n){return n in s}Object.keys(s);const l=[],c=new Map;function f(n){for(const t of c.keys())y(n.pattern,t)&&c.delete(t)}function d(n){return l.includes(n)||(f(n),l.unshift(n)),{remove(){const t=l.indexOf(n);t>-1&&(l.splice(t,1),f(n))}}}async function h(n){const t=(0,o.Kd)();c.has(n)||c.set(n,async function(n,t){const e=[];for(const r of l)if(y(r.pattern,n))try{return await r.fetchMessageBundle(n,t)}catch(n){e.push(n)}if(e.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${n}"`,{errors:e});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${n}"`)}(n,t));const e=c.get(n);return e&&await g.add(e),e}function m(n){if(!i.test(n))return null;const t=i.exec(n);if(null===t)return null;const[,e,r]=t,a=e+(r?"-"+r.toUpperCase():"");return u(a)?a:u(e)?e:null}function y(n,t){return"string"==typeof n?t.startsWith(n):n.test(t)}(0,o.Ze)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(n){return this._increase(),n.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,a.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(n,t,e)=>{e.d(t,{sh:()=>u,uf:()=>l});var r=e(70586),a=e(70171);const o={ar:"ar-u-nu-latn"};let i=new WeakMap,s={};function u(n={}){const t={};return null!=n.digitSeparator&&(t.useGrouping=n.digitSeparator),null!=n.places&&(t.minimumFractionDigits=t.maximumFractionDigits=n.places),t}function l(n,t){return Object.is(n,-0)&&(n=0),function(n){const t=n||s;if(!i.has(t)){const e=(0,a.Kd)(),r=o[(0,a.Kd)()]||e;i.set(t,new Intl.NumberFormat(r,n))}return(0,r.j0)(i.get(t))}(t).format(n)}(0,a.Ze)((()=>{i=new WeakMap,s={}}))}}]);
|