@arcgis/core 4.25.0-next.20221020 → 4.25.0-next.20221021
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/WebMap.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0b0f3e93f658a012d5f0.js +1 -0
- package/assets/esri/core/workers/chunks/2ebba71cbbfa62ddf46a.js +1 -0
- package/assets/esri/core/workers/chunks/6dfb2ddfd72009564a34.js +1 -0
- package/assets/esri/core/workers/chunks/883cfe319b15ebabf71e.js +1 -0
- package/assets/esri/core/workers/chunks/925f53f4ef097c5ce204.js +1 -0
- package/assets/esri/core/workers/chunks/9d410721f42259efe666.js +1 -0
- package/assets/esri/core/workers/chunks/b5e6a868256c5aae6d5e.js +1 -0
- package/assets/esri/core/workers/chunks/{a9b77bea0b8d7a2e5f65.js → c8c0f091aab41e4effa5.js} +1 -1
- package/assets/esri/core/workers/chunks/d573ec98401fbae26383.js +1 -0
- package/layers/MapNotesLayer.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Slice/SliceTool.js +1 -1
- package/views/3d/analysis/Slice/SliceVisualization.js +1 -1
- package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
- package/views/3d/environment/ChapmanAtmosphere.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/manipulatorUtils.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/drawSurfaces.js +1 -1
- package/views/interactive/dragEventPipeline.js +1 -1
- package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
- package/views/interactive/snapping/SnappingOperation.js +1 -1
- package/assets/esri/core/workers/chunks/09255015e57bdfa5337f.js +0 -1
- package/assets/esri/core/workers/chunks/24ffd7180bb947bc8aec.js +0 -1
- package/assets/esri/core/workers/chunks/5f1c474a0e2dd8da6f2f.js +0 -1
- package/assets/esri/core/workers/chunks/6a2358861b3d3007ad26.js +0 -1
- package/assets/esri/core/workers/chunks/bf248b08e18a50878f38.js +0 -1
- package/assets/esri/core/workers/chunks/c9399a106dc167368a39.js +0 -1
- package/assets/esri/core/workers/chunks/cdfa8b788bde5334672a.js +0 -1
- package/assets/esri/core/workers/chunks/dbf72099949febfae5a1.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9324,3172,9880,661],{22303:(e,t,r)=>{r.d(t,{Z:()=>f});var n,o,s=r(35270),i=r(22021),a=r(70586),l=r(75215);function u(e){return(0,i.uZ)((0,l.vU)(e),0,255)}function c(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class d{constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}static blendColors(e,t,r,n=new d){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),d.fromArray(r,t)}return d.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return d.fromArray((0,s.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new d){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,n=(1<<r)-1;let o=Number("0x"+e.substr(1));return isNaN(o)?null:(["b","g","r"].forEach((e=>{const s=o&n;o>>=r,t[e]=4===r?17*s:s})),t.a=1,t)}static fromArray(e,t=new d){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.St)(e)?(0,s.h$)(e):null;return r&&d.fromArray(r,t)||d.fromRgb(e,t)||d.fromHex(e,t)}static fromJSON(e){return e&&new d([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return(0,a.pC)(e)?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?d.fromString(e,this):Array.isArray(e)?d.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof d||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=d.AlphaMode.ALWAYS){const t=u(this.r),r=u(this.g),n=u(this.b);return e===d.AlphaMode.ALWAYS||1!==this.a?[t,r,n,u(255*this.a)]:[t,r,n]}clone(){return new d(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return(0,a.pC)(e)&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(c(this.r,0,255)),this.g=Math.round(c(this.g,0,255)),this.b=Math.round(c(this.b,0,255)),this.a=c(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}d.prototype.declaredClass="esri.Color",n=d||(d={}),(o=n.AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const f=d},99880:(e,t,r)=>{r.d(t,{V:()=>l});var n=r(68773),o=(r(3172),r(20102)),s=r(92604),i=r(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw a.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,i.v_)(n.Z.assetsPath,e)}},46521:(e,t,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function o(e,t){return new Float64Array(e,t,9)}r.d(t,{a:()=>o,c:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,create:n,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},fromValues:function(e,t,r,n,o,s,i,a,l){return[e,t,r,n,o,s,i,a,l]},createView:o},Symbol.toStringTag,{value:"Module"}))},52138:(e,t,r)=>{r.d(t,{a:()=>l,d:()=>p,e:()=>f,f:()=>h,g:()=>g,h:()=>v,i:()=>i,j:()=>M,k:()=>d,m:()=>u,s:()=>s,t:()=>a,v:()=>c,x:()=>C,y:()=>m});var n=r(65617),o=r(46851);function s(e,t,r,n,o,s,i,a,l,u,c,d,f,h,p,m,b){return e[0]=t,e[1]=r,e[2]=n,e[3]=o,e[4]=s,e[5]=i,e[6]=a,e[7]=l,e[8]=u,e[9]=c,e[10]=d,e[11]=f,e[12]=h,e[13]=p,e[14]=m,e[15]=b,e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function a(e,t){if(e===t){const r=t[1],n=t[2],o=t[3],s=t[6],i=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=s,e[11]=t[14],e[12]=o,e[13]=i,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],l=t[6],u=t[7],c=t[8],d=t[9],f=t[10],h=t[11],p=t[12],m=t[13],b=t[14],y=t[15],g=r*a-n*i,w=r*l-o*i,M=r*u-s*i,v=n*l-o*a,C=n*u-s*a,T=o*u-s*l,S=c*m-d*p,O=c*b-f*p,A=c*y-h*p,U=d*b-f*m,I=d*y-h*m,E=f*y-h*b;let q=g*E-w*I+M*U+v*A-C*O+T*S;return q?(q=1/q,e[0]=(a*E-l*I+u*U)*q,e[1]=(o*I-n*E-s*U)*q,e[2]=(m*T-b*C+y*v)*q,e[3]=(f*C-d*T-h*v)*q,e[4]=(l*A-i*E-u*O)*q,e[5]=(r*E-o*A+s*O)*q,e[6]=(b*M-p*T-y*w)*q,e[7]=(c*T-f*M+h*w)*q,e[8]=(i*I-a*A+u*S)*q,e[9]=(n*A-r*I-s*S)*q,e[10]=(p*C-m*M+y*g)*q,e[11]=(d*M-c*C-h*g)*q,e[12]=(a*O-i*U-l*S)*q,e[13]=(r*U-n*O+o*S)*q,e[14]=(m*w-p*v-b*g)*q,e[15]=(c*v-d*w+f*g)*q,e):null}function u(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=t[4],l=t[5],u=t[6],c=t[7],d=t[8],f=t[9],h=t[10],p=t[11],m=t[12],b=t[13],y=t[14],g=t[15];let w=r[0],M=r[1],v=r[2],C=r[3];return e[0]=w*n+M*a+v*d+C*m,e[1]=w*o+M*l+v*f+C*b,e[2]=w*s+M*u+v*h+C*y,e[3]=w*i+M*c+v*p+C*g,w=r[4],M=r[5],v=r[6],C=r[7],e[4]=w*n+M*a+v*d+C*m,e[5]=w*o+M*l+v*f+C*b,e[6]=w*s+M*u+v*h+C*y,e[7]=w*i+M*c+v*p+C*g,w=r[8],M=r[9],v=r[10],C=r[11],e[8]=w*n+M*a+v*d+C*m,e[9]=w*o+M*l+v*f+C*b,e[10]=w*s+M*u+v*h+C*y,e[11]=w*i+M*c+v*p+C*g,w=r[12],M=r[13],v=r[14],C=r[15],e[12]=w*n+M*a+v*d+C*m,e[13]=w*o+M*l+v*f+C*b,e[14]=w*s+M*u+v*h+C*y,e[15]=w*i+M*c+v*p+C*g,e}function c(e,t,r){const n=r[0],o=r[1],s=r[2];if(t===e)e[12]=t[0]*n+t[4]*o+t[8]*s+t[12],e[13]=t[1]*n+t[5]*o+t[9]*s+t[13],e[14]=t[2]*n+t[6]*o+t[10]*s+t[14],e[15]=t[3]*n+t[7]*o+t[11]*s+t[15];else{const r=t[0],i=t[1],a=t[2],l=t[3],u=t[4],c=t[5],d=t[6],f=t[7],h=t[8],p=t[9],m=t[10],b=t[11];e[0]=r,e[1]=i,e[2]=a,e[3]=l,e[4]=u,e[5]=c,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=m,e[11]=b,e[12]=r*n+u*o+h*s+t[12],e[13]=i*n+c*o+p*s+t[13],e[14]=a*n+d*o+m*s+t[14],e[15]=l*n+f*o+b*s+t[15]}return e}function d(e,t,r){const n=r[0],o=r[1],s=r[2];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]*o,e[5]=t[5]*o,e[6]=t[6]*o,e[7]=t[7]*o,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function f(e,t,r,n){let s,i,a,l,u,c,d,f,h,p,m,b,y,g,w,M,v,C,T,S,O,A,U,I,E=n[0],q=n[1],k=n[2],_=Math.sqrt(E*E+q*q+k*k);return _<(0,o.g)()?null:(_=1/_,E*=_,q*=_,k*=_,s=Math.sin(r),i=Math.cos(r),a=1-i,l=t[0],u=t[1],c=t[2],d=t[3],f=t[4],h=t[5],p=t[6],m=t[7],b=t[8],y=t[9],g=t[10],w=t[11],M=E*E*a+i,v=q*E*a+k*s,C=k*E*a-q*s,T=E*q*a-k*s,S=q*q*a+i,O=k*q*a+E*s,A=E*k*a+q*s,U=q*k*a-E*s,I=k*k*a+i,e[0]=l*M+f*v+b*C,e[1]=u*M+h*v+y*C,e[2]=c*M+p*v+g*C,e[3]=d*M+m*v+w*C,e[4]=l*T+f*S+b*O,e[5]=u*T+h*S+y*O,e[6]=c*T+p*S+g*O,e[7]=d*T+m*S+w*O,e[8]=l*A+f*U+b*I,e[9]=u*A+h*U+y*I,e[10]=c*A+p*U+g*I,e[11]=d*A+m*U+w*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function h(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function p(e,t,r){if(0===t)return i(e);let n,s,a,l=r[0],u=r[1],c=r[2],d=Math.sqrt(l*l+u*u+c*c);return d<(0,o.g)()?null:(d=1/d,l*=d,u*=d,c*=d,n=Math.sin(t),s=Math.cos(t),a=1-s,e[0]=l*l*a+s,e[1]=u*l*a+c*n,e[2]=c*l*a-u*n,e[3]=0,e[4]=l*u*a-c*n,e[5]=u*u*a+s,e[6]=c*u*a+l*n,e[7]=0,e[8]=l*c*a+u*n,e[9]=u*c*a-l*n,e[10]=c*c*a+s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function m(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=n+n,l=o+o,u=s+s,c=n*a,d=n*l,f=n*u,h=o*l,p=o*u,m=s*u,b=i*a,y=i*l,g=i*u;return e[0]=1-(h+m),e[1]=d+g,e[2]=f-y,e[3]=0,e[4]=d-g,e[5]=1-(c+m),e[6]=p+b,e[7]=0,e[8]=f+y,e[9]=p-b,e[10]=1-(c+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const y=(0,n.c)();function g(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=t[3],l=o+o,u=s+s,c=i+i,d=o*l,f=o*u,h=o*c,p=s*u,m=s*c,b=i*c,y=a*l,g=a*u,w=a*c,M=n[0],v=n[1],C=n[2];return e[0]=(1-(p+b))*M,e[1]=(f+w)*M,e[2]=(h-g)*M,e[3]=0,e[4]=(f-w)*v,e[5]=(1-(d+b))*v,e[6]=(m+y)*v,e[7]=0,e[8]=(h+g)*C,e[9]=(m-y)*C,e[10]=(1-(d+p))*C,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function M(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[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function v(e,t){if(e===t)return!0;const r=e[0],n=e[1],s=e[2],i=e[3],a=e[4],l=e[5],u=e[6],c=e[7],d=e[8],f=e[9],h=e[10],p=e[11],m=e[12],b=e[13],y=e[14],g=e[15],w=t[0],M=t[1],v=t[2],C=t[3],T=t[4],S=t[5],O=t[6],A=t[7],U=t[8],I=t[9],E=t[10],q=t[11],k=t[12],_=t[13],x=t[14],R=t[15],P=(0,o.g)();return Math.abs(r-w)<=P*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(n-M)<=P*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(s-v)<=P*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(i-C)<=P*Math.max(1,Math.abs(i),Math.abs(C))&&Math.abs(a-T)<=P*Math.max(1,Math.abs(a),Math.abs(T))&&Math.abs(l-S)<=P*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-O)<=P*Math.max(1,Math.abs(u),Math.abs(O))&&Math.abs(c-A)<=P*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(d-U)<=P*Math.max(1,Math.abs(d),Math.abs(U))&&Math.abs(f-I)<=P*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(h-E)<=P*Math.max(1,Math.abs(h),Math.abs(E))&&Math.abs(p-q)<=P*Math.max(1,Math.abs(p),Math.abs(q))&&Math.abs(m-k)<=P*Math.max(1,Math.abs(m),Math.abs(k))&&Math.abs(b-_)<=P*Math.max(1,Math.abs(b),Math.abs(_))&&Math.abs(y-x)<=P*Math.max(1,Math.abs(y),Math.abs(x))&&Math.abs(g-R)<=P*Math.max(1,Math.abs(g),Math.abs(R))}function C(e){const t=(0,o.g)(),r=e[0],n=e[1],s=e[2],i=e[4],a=e[5],l=e[6],u=e[8],c=e[9],d=e[10];return Math.abs(1-(r*r+i*i+u*u))<=t&&Math.abs(1-(n*n+a*a+c*c))<=t&&Math.abs(1-(s*s+l*l+d*d))<=t}const T=u,S=w;Object.freeze(Object.defineProperty({__proto__:null,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[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:s,identity:i,transpose:a,invert:l,adjoint:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=t[4],a=t[5],l=t[6],u=t[7],c=t[8],d=t[9],f=t[10],h=t[11],p=t[12],m=t[13],b=t[14],y=t[15];return e[0]=a*(f*y-h*b)-d*(l*y-u*b)+m*(l*h-u*f),e[1]=-(n*(f*y-h*b)-d*(o*y-s*b)+m*(o*h-s*f)),e[2]=n*(l*y-u*b)-a*(o*y-s*b)+m*(o*u-s*l),e[3]=-(n*(l*h-u*f)-a*(o*h-s*f)+d*(o*u-s*l)),e[4]=-(i*(f*y-h*b)-c*(l*y-u*b)+p*(l*h-u*f)),e[5]=r*(f*y-h*b)-c*(o*y-s*b)+p*(o*h-s*f),e[6]=-(r*(l*y-u*b)-i*(o*y-s*b)+p*(o*u-s*l)),e[7]=r*(l*h-u*f)-i*(o*h-s*f)+c*(o*u-s*l),e[8]=i*(d*y-h*m)-c*(a*y-u*m)+p*(a*h-u*d),e[9]=-(r*(d*y-h*m)-c*(n*y-s*m)+p*(n*h-s*d)),e[10]=r*(a*y-u*m)-i*(n*y-s*m)+p*(n*u-s*a),e[11]=-(r*(a*h-u*d)-i*(n*h-s*d)+c*(n*u-s*a)),e[12]=-(i*(d*b-f*m)-c*(a*b-l*m)+p*(a*f-l*d)),e[13]=r*(d*b-f*m)-c*(n*b-o*m)+p*(n*f-o*d),e[14]=-(r*(a*b-l*m)-i*(n*b-o*m)+p*(n*l-o*a)),e[15]=r*(a*f-l*d)-i*(n*f-o*d)+c*(n*l-o*a),e},determinant:function(e){const t=e[0],r=e[1],n=e[2],o=e[3],s=e[4],i=e[5],a=e[6],l=e[7],u=e[8],c=e[9],d=e[10],f=e[11],h=e[12],p=e[13],m=e[14],b=e[15];return(t*i-r*s)*(d*b-f*m)-(t*a-n*s)*(c*b-f*p)+(t*l-o*s)*(c*m-d*p)+(r*a-n*i)*(u*b-f*h)-(r*l-o*i)*(u*m-d*h)+(n*l-o*a)*(u*p-c*h)},multiply:u,translate:c,scale:d,rotate:f,rotateX:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[4],i=t[5],a=t[6],l=t[7],u=t[8],c=t[9],d=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*o+u*n,e[5]=i*o+c*n,e[6]=a*o+d*n,e[7]=l*o+f*n,e[8]=u*o-s*n,e[9]=c*o-i*n,e[10]=d*o-a*n,e[11]=f*o-l*n,e},rotateY:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],l=t[3],u=t[8],c=t[9],d=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o-u*n,e[1]=i*o-c*n,e[2]=a*o-d*n,e[3]=l*o-f*n,e[8]=s*n+u*o,e[9]=i*n+c*o,e[10]=a*n+d*o,e[11]=l*n+f*o,e},rotateZ:function(e,t,r){const n=Math.sin(r),o=Math.cos(r),s=t[0],i=t[1],a=t[2],l=t[3],u=t[4],c=t[5],d=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*o+u*n,e[1]=i*o+c*n,e[2]=a*o+d*n,e[3]=l*o+f*n,e[4]=u*o-s*n,e[5]=c*o-i*n,e[6]=d*o-a*n,e[7]=f*o-l*n,e},fromTranslation:h,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotation:p,fromXRotation:m,fromYRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:b,fromQuat2:function(e,t){const r=y,n=-t[0],o=-t[1],s=-t[2],i=t[3],a=t[4],l=t[5],u=t[6],c=t[7],d=n*n+o*o+s*s+i*i;return d>0?(r[0]=2*(a*i+c*n+l*s-u*o)/d,r[1]=2*(l*i+c*o+u*n-a*s)/d,r[2]=2*(u*i+c*s+a*o-l*n)/d):(r[0]=2*(a*i+c*n+l*s-u*o),r[1]=2*(l*i+c*o+u*n-a*s),r[2]=2*(u*i+c*s+a*o-l*n)),b(e,t,r),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[4],i=t[5],a=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+o*o),e[1]=Math.sqrt(s*s+i*i+a*a),e[2]=Math.sqrt(l*l+u*u+c*c),e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e},fromRotationTranslationScale:g,fromRotationTranslationScaleOrigin:function(e,t,r,n,o){const s=t[0],i=t[1],a=t[2],l=t[3],u=s+s,c=i+i,d=a+a,f=s*u,h=s*c,p=s*d,m=i*c,b=i*d,y=a*d,g=l*u,w=l*c,M=l*d,v=n[0],C=n[1],T=n[2],S=o[0],O=o[1],A=o[2],U=(1-(m+y))*v,I=(h+M)*v,E=(p-w)*v,q=(h-M)*C,k=(1-(f+y))*C,_=(b+g)*C,x=(p+w)*T,R=(b-g)*T,P=(1-(f+m))*T;return e[0]=U,e[1]=I,e[2]=E,e[3]=0,e[4]=q,e[5]=k,e[6]=_,e[7]=0,e[8]=x,e[9]=R,e[10]=P,e[11]=0,e[12]=r[0]+S-(U*S+q*O+x*A),e[13]=r[1]+O-(I*S+k*O+R*A),e[14]=r[2]+A-(E*S+_*O+P*A),e[15]=1,e},fromQuat:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=r+r,a=n+n,l=o+o,u=r*i,c=n*i,d=n*a,f=o*i,h=o*a,p=o*l,m=s*i,b=s*a,y=s*l;return e[0]=1-d-p,e[1]=c+y,e[2]=f-b,e[3]=0,e[4]=c-y,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=f+b,e[9]=h-m,e[10]=1-u-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,r,n,o,s,i){const a=1/(r-t),l=1/(o-n),u=1/(s-i);return e[0]=2*s*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*s*l,e[6]=0,e[7]=0,e[8]=(r+t)*a,e[9]=(o+n)*l,e[10]=(i+s)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*s*2*u,e[15]=0,e},perspective:function(e,t,r,n,o){const s=1/Math.tan(t/2);let i;return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=o&&o!==1/0?(i=1/(n-o),e[10]=(o+n)*i,e[14]=2*o*n*i):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){const o=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),i=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(i+a),u=2/(o+s);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(i-a)*l*.5,e[9]=(o-s)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},ortho:function(e,t,r,n,o,s,i){const a=1/(t-r),l=1/(n-o),u=1/(s-i);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*a,e[13]=(o+n)*l,e[14]=(i+s)*u,e[15]=1,e},lookAt:function(e,t,r,n){let s,a,l,u,c,d,f,h,p,m;const b=t[0],y=t[1],g=t[2],w=n[0],M=n[1],v=n[2],C=r[0],T=r[1],S=r[2],O=(0,o.g)();return Math.abs(b-C)<O&&Math.abs(y-T)<O&&Math.abs(g-S)<O?i(e):(f=b-C,h=y-T,p=g-S,m=1/Math.sqrt(f*f+h*h+p*p),f*=m,h*=m,p*=m,s=M*p-v*h,a=v*f-w*p,l=w*h-M*f,m=Math.sqrt(s*s+a*a+l*l),m?(m=1/m,s*=m,a*=m,l*=m):(s=0,a=0,l=0),u=h*l-p*a,c=p*s-f*l,d=f*a-h*s,m=Math.sqrt(u*u+c*c+d*d),m?(m=1/m,u*=m,c*=m,d*=m):(u=0,c=0,d=0),e[0]=s,e[1]=u,e[2]=f,e[3]=0,e[4]=a,e[5]=c,e[6]=h,e[7]=0,e[8]=l,e[9]=d,e[10]=p,e[11]=0,e[12]=-(s*b+a*y+l*g),e[13]=-(u*b+c*y+d*g),e[14]=-(f*b+h*y+p*g),e[15]=1,e)},targetTo:function(e,t,r,n){const o=t[0],s=t[1],i=t[2],a=n[0],l=n[1],u=n[2];let c=o-r[0],d=s-r[1],f=i-r[2],h=c*c+d*d+f*f;h>0&&(h=1/Math.sqrt(h),c*=h,d*=h,f*=h);let p=l*f-u*d,m=u*c-a*f,b=a*d-l*c;return h=p*p+m*m+b*b,h>0&&(h=1/Math.sqrt(h),p*=h,m*=h,b*=h),e[0]=p,e[1]=m,e[2]=b,e[3]=0,e[4]=d*b-f*m,e[5]=f*p-c*b,e[6]=c*m-d*p,e[7]=0,e[8]=c,e[9]=d,e[10]=f,e[11]=0,e[12]=o,e[13]=s,e[14]=i,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},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+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},subtract:w,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},exactEquals:M,equals:v,isOrthoNormal:C,mul:T,sub:S},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,r)=>{r.d(t,{c:()=>h,g:()=>c,j:()=>I,k:()=>m,m:()=>d,s:()=>u});var n=r(46521),o=r(94961),s=r(65617),i=r(46851),a=r(17896),l=r(98766);function u(e,t,r){r*=.5;const n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),n=Math.sin(r/2);return n>(0,i.g)()?(e[0]=t[0]/n,e[1]=t[1]/n,e[2]=t[2]/n):(e[0]=1,e[1]=0,e[2]=0),r}function d(e,t,r){const n=t[0],o=t[1],s=t[2],i=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*c+i*a+o*u-s*l,e[1]=o*c+i*l+s*a-n*u,e[2]=s*c+i*u+n*l-o*a,e[3]=i*c-n*a-o*l-s*u,e}function f(e,t,r,n){const o=t[0],s=t[1],a=t[2],l=t[3];let u,c,d,f,h,p=r[0],m=r[1],b=r[2],y=r[3];return c=o*p+s*m+a*b+l*y,c<0&&(c=-c,p=-p,m=-m,b=-b,y=-y),1-c>(0,i.g)()?(u=Math.acos(c),d=Math.sin(u),f=Math.sin((1-n)*u)/d,h=Math.sin(n*u)/d):(f=1-n,h=n),e[0]=f*o+h*p,e[1]=f*s+h*m,e[2]=f*a+h*b,e[3]=f*l+h*y,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function p(e,t){const r=t[0]+t[4]+t[8];let n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const o=(r+1)%3,s=(r+2)%3;n=Math.sqrt(t[3*r+r]-t[3*o+o]-t[3*s+s]+1),e[r]=.5*n,n=.5/n,e[3]=(t[3*o+s]-t[3*s+o])*n,e[o]=(t[3*o+r]+t[3*r+o])*n,e[s]=(t[3*s+r]+t[3*r+s])*n}return e}function m(e,t,r,n){const o=.5*Math.PI/180;t*=o,r*=o,n*=o;const s=Math.sin(t),i=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(n),c=Math.cos(n);return e[0]=s*l*c-i*a*u,e[1]=i*a*c+s*l*u,e[2]=i*l*u-s*a*c,e[3]=i*l*c+s*a*u,e}const b=l.c,y=l.s,g=l.a,w=d,M=l.b,v=l.d,C=l.l,T=l.e,S=T,O=l.f,A=O,U=l.n,I=l.g,E=l.h,q=(0,s.c)(),k=(0,s.f)(1,0,0),_=(0,s.f)(0,1,0),x=(0,o.a)(),R=(0,o.a)(),P=(0,n.c)();Object.freeze(Object.defineProperty({__proto__:null,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},setAxisAngle:u,getAxisAngle:c,multiply:d,rotateX:function(e,t,r){r*=.5;const n=t[0],o=t[1],s=t[2],i=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*a,e[1]=o*l+s*a,e[2]=s*l-o*a,e[3]=i*l-n*a,e},rotateY:function(e,t,r){r*=.5;const n=t[0],o=t[1],s=t[2],i=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l-s*a,e[1]=o*l+i*a,e[2]=s*l+n*a,e[3]=i*l-o*a,e},rotateZ:function(e,t,r){r*=.5;const n=t[0],o=t[1],s=t[2],i=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*a,e[1]=o*l-n*a,e[2]=s*l+i*a,e[3]=i*l-s*a,e},calculateW:function(e,t){const r=t[0],n=t[1],o=t[2];return e[0]=r,e[1]=n,e[2]=o,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-o*o)),e},slerp:f,random:function(e){const t=i.R,r=t(),n=t(),o=t(),s=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=s*Math.sin(2*Math.PI*n),e[1]=s*Math.cos(2*Math.PI*n),e[2]=a*Math.sin(2*Math.PI*o),e[3]=a*Math.cos(2*Math.PI*o),e},invert:function(e,t){const r=t[0],n=t[1],o=t[2],s=t[3],i=r*r+n*n+o*o+s*s,a=i?1/i:0;return e[0]=-r*a,e[1]=-n*a,e[2]=-o*a,e[3]=s*a,e},conjugate:h,fromMat3:p,fromEuler:m,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},copy:b,set:y,add:g,mul:w,scale:M,dot:v,lerp:C,length:T,len:S,squaredLength:O,sqrLen:A,normalize:U,exactEquals:I,equals:E,rotationTo:function(e,t,r){const n=(0,a.e)(t,r);return n<-.999999?((0,a.f)(q,k,t),(0,a.u)(q)<1e-6&&(0,a.f)(q,_,t),(0,a.n)(q,q),u(e,q,Math.PI),e):n>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.f)(q,t,r),e[0]=q[0],e[1]=q[1],e[2]=q[2],e[3]=1+n,U(e,e))},sqlerp:function(e,t,r,n,o,s){return f(x,t,o,s),f(R,r,n,s),f(e,x,R,2*s*(1-s)),e},setAxes:function(e,t,r,n){const o=P;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=n[0],o[4]=n[1],o[7]=n[2],o[2]=-t[0],o[5]=-t[1],o[8]=-t[2],U(e,p(e,o))}},Symbol.toStringTag,{value:"Module"}))},37140:(e,t,r)=>{function n(){const e=new Float32Array(4);return e[3]=1,e}function o(e){const t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}r.d(t,{b:()=>o,c:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,create:n,clone:o,fromValues:function(e,t,r,n){const o=new Float32Array(4);return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o},createView:function(e,t){return new Float32Array(e,t,4)}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,r)=>{function n(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}function s(e,t){return new Float64Array(e,t,4)}r.d(t,{I:()=>i,a:()=>n,b:()=>o,c:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,create:n,clone:o,fromValues:function(e,t,r,n){return[e,t,r,n]},createView:s,IDENTITY:i},Symbol.toStringTag,{value:"Module"}))},72119:(e,t,r)=>{function n(){return new Float32Array(3)}function o(e){const t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(e,t,r){const n=new Float32Array(3);return n[0]=e,n[1]=t,n[2]=r,n}function i(){return n()}function a(){return s(1,1,1)}function l(){return s(1,0,0)}function u(){return s(0,1,0)}function c(){return s(0,0,1)}r.d(t,{b:()=>o,c:()=>n,f:()=>s});const d=i(),f=a(),h=l(),p=u(),m=c();Object.freeze(Object.defineProperty({__proto__:null,create:n,clone:o,fromValues:s,createView:function(e,t){return new Float32Array(e,t,3)},zeros:i,ones:a,unitX:l,unitY:u,unitZ:c,ZEROS:d,ONES:f,UNIT_X:h,UNIT_Y:p,UNIT_Z:m},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>o,VL:()=>i,h$:()=>s,rW:()=>u});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(e){return n[e]||n[e.toLowerCase()]}function s(e){return n[e]??n[e.toLowerCase()]}function i(e){return[...s(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){const o=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,i=2*r-s;return[Math.round(255*a(i,s,o+1/3)),Math.round(255*a(i,s,o)),Math.round(255*a(i,s,o-1/3)),n]}function u(e){const t=e.length>5,r=t?8:4,n=(1<<r)-1,o=t?1:17,s=t?9===e.length:5===e.length;let i=Number("0x"+e.substr(1));if(isNaN(i))return null;const a=[0,0,0,1];let l;return s&&(l=i&n,i>>=r,a[3]=o*l/255),l=i&n,i>>=r,a[2]=o*l,l=i&n,i>>=r,a[1]=o*l,l=i&n,i>>=r,a[0]=o*l,a}},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),o=r(5600);function s(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),s={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(s.readOnly=!!t.readOnly),void 0!==t?.default&&(s.json.default=t.default),void 0!==t?.name&&(s.json.name=t.name),(0,o.Cb)(s)}},10661:(e,t,r)=>{r.d(t,{s:()=>o});var n=r(39020);class o{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new n.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const r=e[t];r.onInvalidated(),r.onCommitted()}}}},67900:(e,t,r)=>{r.d(t,{$C:()=>S,En:()=>C,Jo:()=>N,_R:()=>O,c9:()=>U,cM:()=>A,gV:()=>P,hd:()=>u,qE:()=>q,ty:()=>T}),r(80442);var n=r(35454),o=r(70586),s=r(24678),i=r(68441),a=r(8744),l=r(58116);const u=39.37,c=i.sv.radius*Math.PI/200,d=/UNIT\[([^\]]+)\]\]$/i,f=l.Z,h=/UNIT\[([^\]]+)\]/i,p=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),m=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),b=e=>e*e,y=e=>e*e*e,g={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:b(.001)},"square-centimeters":{inBaseUnits:b(.01)},"square-decimeters":{inBaseUnits:b(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:b(1e3)},"square-inches":{inBaseUnits:b(.0254)},"square-feet":{inBaseUnits:b(.3048)},"square-yards":{inBaseUnits:b(.9144)},"square-miles":{inBaseUnits:b(1609.344)},"square-us-feet":{inBaseUnits:b(1200/3937)},acres:{inBaseUnits:.0015625*b(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*y(.001)},"cubic-centimeters":{inBaseUnits:1e3*y(.01)},"cubic-decimeters":{inBaseUnits:1e3*y(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*y(1e3)},"cubic-inches":{inBaseUnits:1e3*y(.0254)},"cubic-feet":{inBaseUnits:1e3*y(.3048)},"cubic-yards":{inBaseUnits:1e3*y(.9144)},"cubic-miles":{inBaseUnits:1e3*y(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=(()=>{const e={};for(const t in g)for(const r in g[t].units)e[r]=t;return e})();function M(e){const t=w[e];if(!t)throw new Error("unknown type");return t}function v(e,t=null){return t=t||M(e),g[t].baseUnit===e}function C(e,t,r){if(t===r)return e;const n=M(t);if(n!==M(r))throw new Error("incompatible units");const o=v(t,n)?e:function(e,t,r){return e*g[r].units[t].inBaseUnits}(e,t,n);return v(r,n)?o:function(e,t,r){return e/g[r].units[t].inBaseUnits}(o,r,n)}function T(e,t,r){return C(e,t,"meters")/(r*Math.PI/180)}function S(e){return m.fromJSON(e.toLowerCase())||null}function O(e){if((0,o.pC)(e)&&!(0,a.N$)(e))return 1;const t=U(e);return t>1e5?1:t}function A(e){return U(e)>=(0,s.Iu)(e).metersPerDegree?"meters":q(e)}function U(e,t=i.sv.metersPerDegree){return(0,o.Pt)(function(e,t=!1){const r=(0,o.pC)(e)?e.wkid:null,n=(0,o.pC)(e)?e.wkt:null;let s=null;if(r){if((0,a.o$)(r))return i.yr.metersPerDegree;if((0,a.ME)(r))return i.Z1.metersPerDegree;s=f.values[f[r]],!s&&t&&p.has(r)&&(s=c)}else n&&(_(n)?s=I(d.exec(n),s):k(n)&&(s=I(h.exec(n),s)));return s}(e,!0),t)}function I(e,t){return e&&e[1]?E(e[1]):t}function E(e){return parseFloat(e.split(",")[1])}function q(e){const t=(0,o.pC)(e)?e.wkid:null,r=(0,o.pC)(e)?e.wkt:null;let n=null;if(t)n=f.units[f[t]];else if(r){const e=_(r)?d:k(r)?h:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!f.units.includes(r)){const t=E(e);r=null;const n=f.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=f.units[e];break}}return r}(t[1]))}}return(0,o.pC)(n)?S(n):null}function k(e){return/^GEOCCS/i.test(e)}function _(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const x={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},R={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,n.w)()(x),N=(0,n.w)()(R);(0,n.w)()({...x,...R})},24678:(e,t,r)=>{r.d(t,{GG:()=>l,HQ:()=>u,Iu:()=>h,VY:()=>c,e8:()=>p,rS:()=>f,wY:()=>d});var n=r(70586),o=r(82971),s=r(68441),i=r(8744);function a(e){return new o.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=a(s.sv),u=a(s.yr),c=a(s.Z1),d=new o.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${s.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function f(e){return e&&((0,i.BZ)(e)||e===u)?u:e&&((0,i.V2)(e)||e===c)?c:l}function h(e){return(0,n.pC)(e)&&((0,i.BZ)(e)||e===u)?s.yr:(0,n.pC)(e)&&((0,i.V2)(e)||e===c)?s.Z1:s.sv}function p(e){return(0,i.o$)(e)?s.yr:(0,i.ME)(e)?s.Z1:s.sv}},24470:(e,t,r)=>{r.d(t,{Gv:()=>g,HH:()=>u,SO:()=>d,Ue:()=>s,al:()=>a,cS:()=>m,fS:()=>y,jE:()=>f,jn:()=>c,kK:()=>h,oJ:()=>l,r3:()=>p}),r(80442),r(22021);var n=r(70586),o=r(6570);function s(e=w){return[e[0],e[1],e[2],e[3]]}function i(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function a(e,t,r,n,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o}function l(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new o.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,r){if((0,n.Wi)(t))i(r,e);else if("length"in t)b(t)?(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[0]),r[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(e[0],t.xmin),r[1]=Math.min(e[1],t.ymin),r[2]=Math.max(e[2],t.xmax),r[3]=Math.max(e[3],t.ymax);break;case"point":r[0]=Math.min(e[0],t.x),r[1]=Math.min(e[1],t.y),r[2]=Math.max(e[2],t.x),r[3]=Math.max(e[3],t.y)}}function d(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function f(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function h(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function p(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function m(e){return e?i(e,g):s(g)}function b(e){return null!=e&&4===e.length}function y(e,t){return b(e)&&b(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const g=[1/0,1/0,-1/0,-1/0],w=[0,0,0,0]},69285:(e,t,r)=>{r.d(t,{k:()=>i});var n=r(70586),o=r(67900),s=r(8744);function i(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const i=(0,o._R)(t)/(0,o._R)(r);if(1===i)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return null}}},23030:(e,t,r)=>{r.d(t,{Z:()=>g});var n,o=r(43697),s=r(22974),i=r(5600),a=r(75215),l=r(36030),u=r(52011),c=r(25848),d=r(66338),f=r(22303),h=r(96674);let p=n=class extends h.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new n({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.d9)(this.color)})}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],p.prototype,"minValue",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],p.prototype,"maxValue",void 0),(0,o._)([(0,i.Cb)({type:f.Z,json:{type:[a.z8],write:!0}})],p.prototype,"color",void 0),p=n=(0,o._)([(0,u.j)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],p);const m=p;var b;let y=b=class extends c.Z{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new b({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.d9)(this.colorClassBreakInfos),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,o._)([(0,l.J)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],y.prototype,"type",void 0),(0,o._)([(0,i.Cb)({json:{write:!0},type:String})],y.prototype,"field",void 0),(0,o._)([(0,i.Cb)({type:d.I,json:{write:!0}})],y.prototype,"legendOptions",void 0),(0,o._)([(0,i.Cb)({type:c.Z.fieldTransformTypeKebabDict.apiValues,json:{type:c.Z.fieldTransformTypeKebabDict.jsonValues,read:c.Z.fieldTransformTypeKebabDict.read,write:c.Z.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,o._)([(0,i.Cb)({type:[m],json:{write:!0}})],y.prototype,"colorClassBreakInfos",void 0),y=b=(0,o._)([(0,u.j)("esri.renderers.PointCloudClassBreaksRenderer")],y);const g=y},25848:(e,t,r)=>{r.d(t,{Z:()=>S});var n,o=r(43697),s=r(35454),i=r(96674),a=r(22974),l=r(5600),u=(r(75215),r(52011));r(67676);let c=n=class extends i.wq{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new n({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,o._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],c.prototype,"minValue",void 0),(0,o._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],c.prototype,"maxValue",void 0),c=n=(0,o._)([(0,u.j)("esri.renderers.support.pointCloud.ColorModulation")],c);const d=c,f=new s.X({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let h=class extends i.wq{};(0,o._)([(0,l.Cb)({type:f.apiValues,readOnly:!0,nonNullable:!0,json:{type:f.jsonValues,read:!1,write:f.write}})],h.prototype,"type",void 0),h=(0,o._)([(0,u.j)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],h);const p=h;var m,b=r(36030);let y=m=class extends p{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new m({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,o._)([(0,b.J)({pointCloudFixedSizeAlgorithm:"fixed-size"})],y.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],y.prototype,"size",void 0),(0,o._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"useRealWorldSymbolSizes",void 0),y=m=(0,o._)([(0,u.j)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],y);const g=y;var w;let M=w=class extends p{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new w({scaleFactor:this.scaleFactor})}};(0,o._)([(0,b.J)({pointCloudSplatAlgorithm:"splat"})],M.prototype,"type",void 0),(0,o._)([(0,l.Cb)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],M.prototype,"scaleFactor",void 0),M=w=(0,o._)([(0,u.j)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],M);const v={key:"type",base:p,typeMap:{"fixed-size":g,splat:M}},C=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let T=class extends i.wq{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,a.d9)(this.pointSizeAlgorithm),colorModulation:(0,a.d9)(this.colorModulation),pointsPerInch:(0,a.d9)(this.pointsPerInch)}}};(0,o._)([(0,l.Cb)({type:C.apiValues,readOnly:!0,nonNullable:!0,json:{type:C.jsonValues,read:!1,write:C.write}})],T.prototype,"type",void 0),(0,o._)([(0,l.Cb)({types:v,json:{write:!0}})],T.prototype,"pointSizeAlgorithm",void 0),(0,o._)([(0,l.Cb)({type:d,json:{write:!0}})],T.prototype,"colorModulation",void 0),(0,o._)([(0,l.Cb)({json:{write:!0},nonNullable:!0,type:Number})],T.prototype,"pointsPerInch",void 0),T=(0,o._)([(0,u.j)("esri.renderers.PointCloudRenderer")],T),(T||(T={})).fieldTransformTypeKebabDict=new s.X({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const S=T},14008:(e,t,r)=>{r.d(t,{Z:()=>h});var n,o=r(43697),s=r(22974),i=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(25848),c=r(66338),d=r(21849);let f=n=class extends u.Z{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new n({...this.cloneProperties(),field:(0,s.d9)(this.field),fieldTransformType:(0,s.d9)(this.fieldTransformType),stops:(0,s.d9)(this.stops),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,o._)([(0,a.J)({pointCloudStretchRenderer:"point-cloud-stretch"})],f.prototype,"type",void 0),(0,o._)([(0,i.Cb)({json:{write:!0},type:String})],f.prototype,"field",void 0),(0,o._)([(0,i.Cb)({type:c.I,json:{write:!0}})],f.prototype,"legendOptions",void 0),(0,o._)([(0,i.Cb)({type:u.Z.fieldTransformTypeKebabDict.apiValues,json:{type:u.Z.fieldTransformTypeKebabDict.jsonValues,read:u.Z.fieldTransformTypeKebabDict.read,write:u.Z.fieldTransformTypeKebabDict.write}})],f.prototype,"fieldTransformType",void 0),(0,o._)([(0,i.Cb)({type:[d.Z],json:{write:!0}})],f.prototype,"stops",void 0),f=n=(0,o._)([(0,l.j)("esri.renderers.PointCloudStretchRenderer")],f);const h=f},46329:(e,t,r)=>{r.d(t,{Z:()=>g});var n,o=r(43697),s=r(22974),i=r(5600),a=r(75215),l=r(36030),u=r(52011),c=r(25848),d=r(66338),f=r(22303),h=r(96674);let p=n=class extends h.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new n({description:this.description,label:this.label,values:(0,s.d9)(this.values),color:(0,s.d9)(this.color)})}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,o._)([(0,i.Cb)({type:[String],json:{write:!0}})],p.prototype,"values",void 0),(0,o._)([(0,i.Cb)({type:f.Z,json:{type:[a.z8],write:!0}})],p.prototype,"color",void 0),p=n=(0,o._)([(0,u.j)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],p);const m=p;var b;let y=b=class extends c.Z{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new b({...this.cloneProperties(),field:(0,s.d9)(this.field),fieldTransformType:(0,s.d9)(this.fieldTransformType),colorUniqueValueInfos:(0,s.d9)(this.colorUniqueValueInfos),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,o._)([(0,l.J)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],y.prototype,"type",void 0),(0,o._)([(0,i.Cb)({json:{write:!0},type:String})],y.prototype,"field",void 0),(0,o._)([(0,i.Cb)({type:c.Z.fieldTransformTypeKebabDict.apiValues,json:{type:c.Z.fieldTransformTypeKebabDict.jsonValues,read:c.Z.fieldTransformTypeKebabDict.read,write:c.Z.fieldTransformTypeKebabDict.write}})],y.prototype,"fieldTransformType",void 0),(0,o._)([(0,i.Cb)({type:[m],json:{write:!0}})],y.prototype,"colorUniqueValueInfos",void 0),(0,o._)([(0,i.Cb)({type:d.I,json:{write:!0}})],y.prototype,"legendOptions",void 0),y=b=(0,o._)([(0,u.j)("esri.renderers.PointCloudUniqueValueRenderer")],y);const g=y},66338:(e,t,r)=>{r.d(t,{I:()=>l});var n,o=r(43697),s=r(96674),i=r(5600),a=(r(67676),r(75215),r(52011));let l=n=class extends s.wq{constructor(){super(...arguments),this.title=null}clone(){return new n({title:this.title})}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),l=n=(0,o._)([(0,a.j)("esri.renderers.support.LegendOptions")],l)},21849:(e,t,r)=>{r.d(t,{Z:()=>f});var n,o=r(43697),s=r(22303),i=r(96674),a=r(5600),l=(r(67676),r(75215)),u=r(52011),c=r(30556);let d=n=class extends i.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new n({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,o._)([(0,a.Cb)({type:s.Z,json:{type:[l.z8],write:!0}})],d.prototype,"color",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,o._)([(0,a.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"value",void 0),(0,o._)([(0,c.c)("value")],d.prototype,"writeValue",null),d=n=(0,o._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],d);const f=d},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n=r(68773),o=r(40330),s=r(20102),i=r(80442),a=r(22974),l=r(70586),u=r(95330),c=r(17452),d=r(71058),f=r(85958);async function h(e,t){const a=(0,c.HK)(e),y=(0,c.jc)(e);y||a||(e=(0,c.Fv)(e));const g={url:e,requestOptions:{...(0,l.Wg)(t)}};let w=(0,c.oh)(e);if(w){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=T("request:interceptor",e,t)}if((n instanceof Error||n instanceof s.Z)&&(r=T("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(w,g);if(null!=e)return{data:e,getHeader:M,requestOptions:g.requestOptions,url:g.url};w.after||w.error||(w=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g)}else if(a)throw T("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),g);if("head"===t.method){if(t.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(a||y)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,i.Z)("host-webworker")?p||(p=await r.e(9884).then(r.bind(r,29884))):h._abortableFetch||(h._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const v=new AbortController;(0,u.fu)(t,(()=>v.abort()));const C={controller:v,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,params:g,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},U=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,s=e.controller.signal,i=r.body;let a=null,l=null;if(b&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(l=i),e.fetchOptions={cache:r.cacheBust&&!h._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:m.priority,redirect:"follow",signal:s},(a||l)&&(e.fetchOptions.body=a||l),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&n.Z.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,u.Hc)(s)){let n;"immediate"===r.authMode?(await S(),n=await o.id.getCredential(t,{signal:s}),e.credential=n):"no-prompt"===r.authMode?(await S(),n=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=n):o.id&&(n=o.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await A(e)}while(!await I(e,t,r))}catch(r){const n=T("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const s=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,c.kl)(s)){const e=(0,c.P$)(s,!0);e&&m.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,f.Hu)(r.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):M,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(C);return w?.after?.(U),U}let p;const m=n.Z.request,b="FormData"in globalThis,y=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],M=()=>null,v=Symbol();function C(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||h._corsServers.includes(t)||(0,c.kl)(t)}function T(e,t,r,n){let o="Error";const i={url:r.url,requestOptions:r.requestOptions,getHeader:M,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=i,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=v in t?t[v]:t}return(0,u.D_)(t)?(0,u.zE)():new s.Z(e,o,i)}async function S(){o.id||await Promise.all([r.e(6261),r.e(1400),r.e(1761)]).then(r.bind(r,55142))}function O(e){return w.some((t=>t.test(e)))}async function A(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},s=(0,c.jc)(t)||(0,c.HK)(t),a=r.responseType||"json",l=s?0:null!=r.timeout?r.timeout:m.timeout;let d=!1;if(!s){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let s={...r.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,c.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let u;d="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const h=r.useProxy||!!(0,c.ed)(t);if(h){const e=(0,c.b7)(t);u=e.path,!d&&u.length+1+l>m.maxUrlLength&&(d=!0),e.query&&(s={...e.query,...s})}if("HEAD"===n.method&&(d||h)){if(d){if(l>m.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(h)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(d?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,s):(n.body=(0,c.B7)(s),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,s),h&&(e.useProxy=!0,t=`${u}?${t}`),s.token&&b&&n.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&n.body.set("token",s.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,f.jH)(t)&&await(0,f.jz)(d?(0,c.fl)(t,s):t))}let p,y,g=0,w=!1;l>0&&(g=setTimeout((()=>{w=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)y=n,y.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||d||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!s&&!e.useProxy&&m.proxyUrl&&!C(t)){if(p=await h._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!h._corsServers.includes(t)&&h._corsServers.push(t)}(t),"native"===r.responseType)y=p;else if("HEAD"!==n.method)if(p.ok){switch(a){case"array-buffer":y=await p.arrayBuffer();break;case"blob":case"image":y=await p.blob();break;default:y=await p.text()}if(g&&(clearTimeout(g),g=0),"json"===a||"xml"===a||"document"===a)if(y)switch(a){case"json":y=JSON.parse(y);break;case"xml":y=U(y,"application/xml");break;case"document":y=U(y,"text/html")}else y=null;if(y){if("array-buffer"===a||"blob"===a){const e=p.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&y["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(y).json();e.error&&(y=e)}catch{}}"image"===a&&y instanceof Blob&&(y=await E(URL.createObjectURL(y),e,!0))}}else y=await p.text()}else y=await E(t,e)}catch(n){if("AbortError"===n.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!p&&n instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||C(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{g&&clearTimeout(g)}return[p,y]}function U(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function I(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let s,i;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[v]=r,s;r&&(r.error?s=r.error:"error"===r.status&&Array.isArray(r.messages)&&(s={...r},s[v]=r,s.details=r.messages));let a,l=null;s&&(i=Number(s.code),l=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a&&a.toUpperCase());const u=n.authMode;if(403===i&&(4===l||s.message&&s.message.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===i)&&void 0!==i&&y.includes(i)&&!O(e.params.url)&&(403!==i||a&&!g.includes(a)&&(null==l||2===l&&e.credentialToken))){await S();try{const t=await o.id.getCredential(e.params.url,{error:T("request:server",s,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function E(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=m.priority,o.src=e,(0,f.fY)(o,e,r,n)}h._abortableFetch=null,h._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>s});var n=r(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>c,fY:()=>l,jH:()=>d,jz:()=>f});var n=r(68773),o=r(80442),s=r(70586),i=r(95330),a=r(17452);function l(e,t,r=!1,n){return new Promise(((a,l)=>{if((0,i.Hc)(n))return void l(u());let c=()=>{h(),l(new Error(`Unable to load ${t}`))},d=()=>{const t=e;h(),a(t)},f=()=>{if(!e)return;const t=e;h(),t.src="",l(u())};const h=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",d)),c=null,d=null,e=null,(0,s.pC)(n)&&n.removeEventListener("abort",f),f=null,r&&URL.revokeObjectURL(t)};(0,s.pC)(n)&&n.addEventListener("abort",f),(0,o.Z)("esri-image-decode")?e.decode().then(d,c):(e.addEventListener("error",c),e.addEventListener("load",d))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){n.Z.request.crossOriginNoCorsDomains||(n.Z.request.crossOriginNoCorsDomains={});const t=n.Z.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,a.P$)(r)??""]=0:(t[(0,a.P$)("http://"+r)??""]=0,t[(0,a.P$)("https://"+r)??""]=0)}function d(e){const t=n.Z.request.crossOriginNoCorsDomains;if(t){let r=(0,a.P$)(e);if(r)return r=r.toLowerCase(),!(0,a.D6)(r,(0,a.TI)())&&t[r]<Date.now()-36e5}return!1}async function f(e){const t=n.Z.request.crossOriginNoCorsDomains,r=(0,a.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const o=(0,a.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}},90447:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var n=r(70586),o=r(1533),s=r(51305),i=r(37140),a=r(17896),l=r(72119),u=r(44547),c=r(82971),d=r(23030),f=r(14008),h=r(46329),p=r(91891),m=r(25683);function b(e,t,r,n){const{rendererJSON:o,isRGBRenderer:s}=e;let i=null,a=null;if(t&&s)i=t;else if(t&&"pointCloudUniqueValueRenderer"===o.type){a=h.Z.fromJSON(o);const e=a.colorUniqueValueInfos;i=new Uint8Array(3*n);const r=g(a.fieldTransformType);for(let o=0;o<n;o++){const n=(r?r(t[o]):t[o])+"";for(let t=0;t<e.length;t++)if(e[t].values.includes(n)){i[3*o]=e[t].color.r,i[3*o+1]=e[t].color.g,i[3*o+2]=e[t].color.b;break}}}else if(t&&"pointCloudStretchRenderer"===o.type){a=f.Z.fromJSON(o);const e=a.stops;i=new Uint8Array(3*n);const r=g(a.fieldTransformType);for(let o=0;o<n;o++){const n=r?r(t[o]):t[o],s=e.length-1;if(n<e[0].value)i[3*o]=e[0].color.r,i[3*o+1]=e[0].color.g,i[3*o+2]=e[0].color.b;else if(n>=e[s].value)i[3*o]=e[s].color.r,i[3*o+1]=e[s].color.g,i[3*o+2]=e[s].color.b;else for(let t=1;t<e.length;t++)if(n<e[t].value){const r=(n-e[t-1].value)/(e[t].value-e[t-1].value);i[3*o]=e[t].color.r*r+e[t-1].color.r*(1-r),i[3*o+1]=e[t].color.g*r+e[t-1].color.g*(1-r),i[3*o+2]=e[t].color.b*r+e[t-1].color.b*(1-r);break}}}else if(t&&"pointCloudClassBreaksRenderer"===o.type){a=d.Z.fromJSON(o);const e=a.colorClassBreakInfos;i=new Uint8Array(3*n);const r=g(a.fieldTransformType);for(let o=0;o<n;o++){const n=r?r(t[o]):t[o];for(let t=0;t<e.length;t++)if(n>=e[t].minValue&&n<=e[t].maxValue){i[3*o]=e[t].color.r,i[3*o+1]=e[t].color.g,i[3*o+2]=e[t].color.b;break}}}else{i=new Uint8Array(3*n);for(let e=0;e<i.length;e++)i[e]=255}if(r&&a&&a.colorModulation){const e=a.colorModulation.minValue,t=a.colorModulation.maxValue,o=.3;for(let s=0;s<n;s++){const n=r[s],a=n>=t?1:n<=e?o:o+(1-o)*(n-e)/(t-e);i[3*s]=a*i[3*s],i[3*s+1]=a*i[3*s+1],i[3*s+2]=a*i[3*s+2]}}return i}function y(e,t,r){return(0,n.pC)(e)&&e.attributeInfo.useElevation?function(e,t){const r=new Float64Array(t);for(let n=0;n<t;n++)r[n]=e[3*n+2];return r}(t,r):(0,n.pC)(e)?(0,p.qM)(e.attributeInfo.storageInfo,e.buffer,r):null}function g(e){return null==e||"none"===e?null:"low-four-bit"===e?e=>15&e:"high-four-bit"===e?e=>(240&e)>>4:"absolute-value"===e?e=>Math.abs(e):"modulo-ten"===e?e=>e%10:null}function w(e){let t=0;for(const r of e||[])t|=1<<r;return t}class M{transform(e){const t=this._transform(e),r=[t.points.buffer,t.rgb.buffer];(0,n.pC)(t.pointIdFilterMap)&&r.push(t.pointIdFilterMap.buffer);for(const e of t.attributes)"buffer"in e.values&&(0,o.eP)(e.values.buffer)&&e.values.buffer!==t.rgb.buffer&&r.push(e.values.buffer);return Promise.resolve({result:t,transferList:r})}_transform(e){const t=function(e,t){if(null==e.encoding||""===e.encoding){const r=(0,p.W7)(t,e);if((0,n.Wi)(r.vertexAttributes.position))return;const o=(0,p.I_)(t,r.vertexAttributes.position),s=r.header.fields,i=[s.offsetX,s.offsetY,s.offsetZ],a=[s.scaleX,s.scaleY,s.scaleZ],l=o.length/3,u=new Float64Array(3*l);for(let e=0;e<l;e++)u[3*e]=o[3*e]*a[0]+i[0],u[3*e+1]=o[3*e+1]*a[1]+i[1],u[3*e+2]=o[3*e+2]*a[2]+i[2];return u}if("lepcc-xyz"===e.encoding)return(0,m.Gi)(t).result}(e.schema,e.geometryBuffer);let r=t.length/3,o=null;const s=[],i=y(e.primaryAttributeData,t,r);(0,n.pC)(e.primaryAttributeData)&&i&&s.push({attributeInfo:e.primaryAttributeData.attributeInfo,values:i});const a=y(e.modulationAttributeData,t,r);(0,n.pC)(e.modulationAttributeData)&&a&&s.push({attributeInfo:e.modulationAttributeData.attributeInfo,values:a});let l=b(e.rendererInfo,i,a,r);if(e.filterInfo&&e.filterInfo.length>0&&(0,n.pC)(e.filterAttributesData)){const n=e.filterAttributesData.map((e=>{const n=y(e,t,r),o={attributeInfo:e.attributeInfo,values:n};return s.push(o),o}));o=new Uint32Array(r),r=function(e,t,r,n,o){const s=e.length/3;let i=0;for(let a=0;a<s;a++){let s=!0;for(let e=0;e<n.length&&s;e++){const{filterJSON:t}=n[e],r=o[e].values[a];switch(t.type){case"pointCloudValueFilter":{const e="exclude"===t.mode;t.values.includes(r)===e&&(s=!1);break}case"pointCloudBitfieldFilter":{const e=w(t.requiredSetBits),n=w(t.requiredClearBits);(r&e)===e&&0==(r&n)||(s=!1);break}case"pointCloudReturnFilter":{const e=15&r,n=r>>>4&15,o=n>1,i=1===e,a=e===n;let l=!1;for(const e of t.includedReturns)if("last"===e&&a||"firstOfMany"===e&&i&&o||"lastOfMany"===e&&a&&o||"single"===e&&!o){l=!0;break}l||(s=!1);break}}}s&&(r[i]=a,e[3*i]=e[3*a],e[3*i+1]=e[3*a+1],e[3*i+2]=e[3*a+2],t[3*i]=t[3*a],t[3*i+1]=t[3*a+1],t[3*i+2]=t[3*a+2],i++)}return i}(t,l,o,e.filterInfo,n)}for(const n of e.userAttributesData){const e=y(n,t,r);s.push({attributeInfo:n.attributeInfo,values:e})}3*r<l.length&&(l=new Uint8Array(l.buffer.slice(0,3*r))),this._applyElevationOffsetInPlace(t,r,e.elevationOffset);const u=this._transformCoordinates(t,r,e.obb,c.Z.fromJSON(e.inSR),c.Z.fromJSON(e.outSR));return{obb:e.obb,points:u,rgb:l,attributes:s,pointIdFilterMap:o}}_transformCoordinates(e,t,r,n,o){if(!(0,u.CM)(e,n,0,e,o,0,t))throw new Error("Can't reproject");const i=(0,l.f)(r.center[0],r.center[1],r.center[2]),c=(0,l.c)(),d=(0,l.c)();(0,s.c)(v,r.quaternion);const f=new Float32Array(3*t);for(let n=0;n<t;n++)c[0]=e[3*n]-i[0],c[1]=e[3*n+1]-i[1],c[2]=e[3*n+2]-i[2],(0,a.q)(d,c,v),r.halfSize[0]=Math.max(r.halfSize[0],Math.abs(d[0])),r.halfSize[1]=Math.max(r.halfSize[1],Math.abs(d[1])),r.halfSize[2]=Math.max(r.halfSize[2],Math.abs(d[2])),f[3*n]=c[0],f[3*n+1]=c[1],f[3*n+2]=c[2];return f}_applyElevationOffsetInPlace(e,t,r){if(0!==r)for(let n=0;n<t;n++)e[3*n+2]+=r}}const v=(0,i.c)();function C(){return new M}},91891:(e,t,r)=>{r.d(t,{I_:()=>f,W7:()=>m,qM:()=>y});var n=r(20102),o=r(22974),s=r(92604),i=r(25683),a=r(35065);const l=s.Z.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function u(e,t,r){let o="",s=0;for(;s<r;){const i=e[t+s];if(i<128)o+=String.fromCharCode(i),s++;else if(i>=192&&i<224){if(s+1>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const a=(31&i)<<6|63&e[t+s+1];o+=String.fromCharCode(a),s+=2}else if(i>=224&&i<240){if(s+2>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(15&i)<<12|(63&e[t+s+1])<<6|63&e[t+s+2];o+=String.fromCharCode(a),s+=3}else{if(!(i>=240&&i<248))throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(s+3>=r)throw new n.Z("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const a=(7&i)<<18|(63&e[t+s+1])<<12|(63&e[t+s+2])<<6|63&e[t+s+3];if(a>=65536){const e=55296+(a-65536>>10),t=56320+(1023&a);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(a);s+=4}}}return o}function c(e,t){const r={byteOffset:0,byteCount:0,fields:Object.create(null)};let n=0;for(let o=0;o<t.length;o++){const s=t[o],i=s.valueType||s.type,a=w[i];r.fields[s.property]=a(e,n),n+=g[i].BYTES_PER_ELEMENT}return r.byteCount=n,r}function d(e,t,r){const o=[];let s,i,a=0;for(i=0;i<e;i+=1){if(s=t[i],s>0){if(o.push(u(r,a,s-1)),0!==r[a+s-1])throw new n.Z("string-array-error","Invalid string array: missing null termination.")}else o.push(null);a+=s}return o}function f(e,t){return new(0,g[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function h(e,t,r){const s=null!=t.header?c(e,t.header):{byteOffset:0,byteCount:0,fields:{count:r}},i={header:s,byteOffset:s.byteCount,byteCount:0,entries:Object.create(null)};let a=s.byteCount;for(let e=0;e<t.ordering.length;e++){const r=t.ordering[e],l=(0,o.d9)(t[r]);if(l.count=s.fields.count,"String"===l.valueType){if(l.byteOffset=a,l.byteCount=s.fields[r+"ByteCount"],"UTF-8"!==l.encoding)throw new n.Z("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding})}else{if(!M(l.valueType))throw new n.Z("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{const e=v(l.valueType);a+=a%e!=0?e-a%e:0,l.byteOffset=a,l.byteCount=e*l.valuesPerElement*l.count}}a+=l.byteCount,i.entries[r]=l}return i.byteCount=a-i.byteOffset,i}function p(e,t,r){if(t!==e&&l.error(`Invalid ${r} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new n.Z("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function m(e,t){const r=c(e,t&&t.header);let n=r.byteCount;const o={isDraco:!1,header:r,byteOffset:r.byteCount,byteCount:0,vertexAttributes:{}},s=r.fields,i=null!=s.vertexCount?s.vertexCount:s.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const r={...t.vertexAttributes[e],byteOffset:n,count:i},s=b[e]?b[e]:"_"+e;o.vertexAttributes[s]=r,n+=v(r.valueType)*r.valuesPerElement*i}const a=s.faceCount;if(t.faces&&a){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const r={...t.faces[e],byteOffset:n,count:a};o.faces[e]=r,n+=v(r.valueType)*r.valuesPerElement*a}}const l=s.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&l){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const r={...t.featureAttributes[e],byteOffset:n,count:l};o.featureAttributes[e]=r,n+=("UInt64"===r.valueType?8:v(r.valueType))*r.valuesPerElement*l}}return p(n,e.byteLength,"geometry"),o.byteCount=n-o.byteOffset,o}const b={position:a.T.POSITION,normal:a.T.NORMAL,color:a.T.COLOR,uv0:a.T.UV0,region:a.T.UVREGION};function y(e,t,r){if("lepcc-rgb"===e.encoding)return(0,i.IT)(t);if("lepcc-intensity"===e.encoding)return(0,i.ti)(t);if(null!=e.encoding&&""!==e.encoding)throw new n.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=h(t,e,r);p(o.byteOffset+o.byteCount,t.byteLength,"attribute");const s=o.entries.attributeValues||o.entries.objectIds;if(s){if("String"===s.valueType){const e=o.entries.attributeByteCounts,r=f(t,e),n=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,s);return d(e.count,r,n)}return f(t,s)}throw new n.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 M(e){return g.hasOwnProperty(e)}function v(e){return M(e)?g[e].BYTES_PER_ELEMENT:0}},25683:(e,t,r)=>{r.d(t,{Gi:()=>a,IT:()=>d,ti:()=>h});var n=r(20102);const o=!0;function s(e,t,r){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,r+0,10)),version:t.getUint16(r+10,o),checksum:t.getUint32(r+12,o)}}function i(e,t){return{sizeLo:e.getUint32(t+0,o),sizeHi:e.getUint32(t+4,o),minX:e.getFloat64(t+8,o),minY:e.getFloat64(t+16,o),minZ:e.getFloat64(t+24,o),maxX:e.getFloat64(t+32,o),maxY:e.getFloat64(t+40,o),maxZ:e.getFloat64(t+48,o),errorX:e.getFloat64(t+56,o),errorY:e.getFloat64(t+64,o),errorZ:e.getFloat64(t+72,o),count:e.getUint32(t+80,o),reserved:e.getUint32(t+84,o)}}function a(e){const t=new DataView(e,0);let r=0;const{identifier:o,version:a}=s(e,t,r);if(r+=16,"LEPCC "!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(a>1)throw new n.Z("lepcc-decode-error","Unknown version");const u=i(t,r);if(r+=88,u.sizeHi*2**32+u.sizeLo!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const c=new Float64Array(3*u.count),d=[],f=[],h=[],p=[];if(r=l(e,r,d),r=l(e,r,f),r=l(e,r,h),r=l(e,r,p),r!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad length");let m=0,b=0;for(let e=0;e<d.length;e++){b+=d[e];let t=0;for(let r=0;r<f[e];r++){t+=h[m];const e=p[m];c[3*m]=Math.min(u.maxX,u.minX+2*u.errorX*t),c[3*m+1]=Math.min(u.maxY,u.minY+2*u.errorY*b),c[3*m+2]=Math.min(u.maxZ,u.minZ+2*u.errorZ*e),m++}}return{errorX:u.errorX,errorY:u.errorY,errorZ:u.errorZ,result:c}}function l(e,t,r){const n=[];t=u(e,t,n);const o=[];for(let s=0;s<n.length;s++){o.length=0,t=u(e,t,o);for(let e=0;e<o.length;e++)r.push(o[e]+n[s])}return t}function u(e,t,r){const s=new DataView(e,t),i=s.getUint8(0),a=31&i,l=!!(32&i),u=(192&i)>>6;let c=0;if(0===u)c=s.getUint32(1,o),t+=5;else if(1===u)c=s.getUint16(1,o),t+=3;else{if(2!==u)throw new n.Z("lepcc-decode-error","Bad count type");c=s.getUint8(1),t+=2}if(l)throw new n.Z("lepcc-decode-error","LUT not implemented");const d=Math.ceil(c*a/8),f=new Uint8Array(e,t,d);let h=0,p=0,m=0;const b=-1>>>32-a;for(let e=0;e<c;e++){for(;p<a;)h|=f[m]<<p,p+=8,m+=1;r[e]=h&b,h>>>=a,p-=a,p+a>32&&(h|=f[m-1]>>8-p)}return t+m}function c(e,t){return{sizeLo:e.getUint32(t+0,o),sizeHi:e.getUint32(t+4,o),count:e.getUint32(t+8,o),colorMapCount:e.getUint16(t+12,o),lookupMethod:e.getUint8(t+14),compressionMethod:e.getUint8(t+15)}}function d(e){const t=new DataView(e,0);let r=0;const{identifier:o,version:i}=s(e,t,r);if(r+=16,"ClusterRGB"!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(i>1)throw new n.Z("lepcc-decode-error","Unknown version");const a=c(t,r);if(r+=16,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");if((2===a.lookupMethod||1===a.lookupMethod)&&0===a.compressionMethod){if(3*a.colorMapCount+a.count+r!==e.byteLength||a.colorMapCount>256)throw new n.Z("lepcc-decode-error","Bad count");const t=new Uint8Array(e,r,3*a.colorMapCount),o=new Uint8Array(e,r+3*a.colorMapCount,a.count),s=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++){const r=o[e];s[3*e]=t[3*r],s[3*e+1]=t[3*r+1],s[3*e+2]=t[3*r+2]}return s}if(0===a.lookupMethod&&0===a.compressionMethod){if(3*a.count+r!==e.byteLength||0!==a.colorMapCount)throw new n.Z("lepcc-decode-error","Bad count");return new Uint8Array(e,r).slice()}if(a.lookupMethod<=2&&1===a.compressionMethod){if(r+3!==e.byteLength||1!==a.colorMapCount)throw new n.Z("lepcc-decode-error","Bad count");const o=t.getUint8(r),s=t.getUint8(r+1),i=t.getUint8(r+2),l=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++)l[3*e]=o,l[3*e+1]=s,l[3*e+2]=i;return l}throw new n.Z("lepcc-decode-error","Bad method "+a.lookupMethod+","+a.compressionMethod)}function f(e,t){return{sizeLo:e.getUint32(t+0,o),sizeHi:e.getUint32(t+4,o),count:e.getUint32(t+8,o),scaleFactor:e.getUint16(t+12,o),bitsPerPoint:e.getUint8(t+14),reserved:e.getUint8(t+15)}}function h(e){const t=new DataView(e,0);let r=0;const{identifier:o,version:i}=s(e,t,r);if(r+=16,"Intensity "!==o)throw new n.Z("lepcc-decode-error","Bad identifier");if(i>1)throw new n.Z("lepcc-decode-error","Unknown version");const a=f(t,r);if(r+=16,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const l=new Uint16Array(a.count);if(8===a.bitsPerPoint){if(a.count+r!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const t=new Uint8Array(e,r,a.count);for(let e=0;e<a.count;e++)l[e]=t[e]*a.scaleFactor}else if(16===a.bitsPerPoint){if(2*a.count+r!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");const t=new Uint16Array(e,r,a.count);for(let e=0;e<a.count;e++)l[e]=t[e]*a.scaleFactor}else{const t=[];if(u(e,r,t)!==e.byteLength)throw new n.Z("lepcc-decode-error","Bad size");for(let e=0;e<a.count;e++)l[e]=t[e]*a.scaleFactor}return l}},35065:(e,t,r)=>{var n;r.d(t,{T:()=>n}),function(e){e.POSITION="position",e.NORMAL="normal",e.UV0="uv0",e.AUXPOS1="auxpos1",e.AUXPOS2="auxpos2",e.MAPPOS="mapPos",e.COLOR="color",e.SYMBOLCOLOR="symbolColor",e.SIZE="size",e.TANGENT="tangent",e.OFFSET="offset",e.SUBDIVISIONFACTOR="subdivisionFactor",e.COLORFEATUREATTRIBUTE="colorFeatureAttribute",e.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",e.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",e.DISTANCETOSTART="distanceToStart",e.UVMAPSPACE="uvMapSpace",e.BOUNDINGRECT="boundingRect",e.UVREGION="uvRegion",e.NORMALCOMPRESSED="normalCompressed",e.PROFILERIGHT="profileRight",e.PROFILEUP="profileUp",e.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",e.FEATUREVALUE="featureValue",e.MODELORIGINHI="modelOriginHi",e.MODELORIGINLO="modelOriginLo",e.MODEL="model",e.MODELNORMAL="modelNormal",e.INSTANCECOLOR="instanceColor",e.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",e.LOCALTRANSFORM="localTransform",e.GLOBALTRANSFORM="globalTransform",e.BOUNDINGSPHERE="boundingSphere",e.MODELORIGIN="modelOrigin",e.MODELSCALEFACTORS="modelScaleFactors",e.FEATUREATTRIBUTE="featureAttribute",e.STATE="state",e.LODLEVEL="lodLevel",e.POSITION0="position0",e.POSITION1="position1",e.NORMALA="normalA",e.NORMALB="normalB",e.COMPONENTINDEX="componentIndex",e.VARIANTOFFSET="variantOffset",e.VARIANTSTROKE="variantStroke",e.VARIANTEXTENSION="variantExtension",e.U8PADDING="u8padding",e.U16PADDING="u16padding",e.SIDENESS="sideness",e.START="start",e.END="end",e.UP="up",e.EXTRUDE="extrude",e.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",e.OBJECTANDLAYERIDCOLOR_INSTANCED="objectAndLayerIdColor_instanced"}(n||(n={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9777,3172,9880],{99880:(e,t,s)=>{s.d(t,{V:()=>l});var i=s(68773),r=(s(3172),s(20102)),n=s(92604),a=s(17452);const o=n.Z.getLogger("esri.assets");function l(e){if(!i.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(i.Z.assetsPath,e)}},74669:(e,t,s)=>{s.d(t,{Z:()=>r});var i=s(69801);class r{constructor(e,t){this._storage=new i.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},37455:(e,t,s)=>{s.d(t,{N:()=>i});const i={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const i=new r(e.getPointX(t),e.getPointY(t),s),n=e.hasZ(t),a=e.hasM(t);return n&&(i.z=e.getPointZ(t)),a&&(i.m=e.getPointM(t)),i},exportPolygon:function(e,t,s){return new n(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const i=e.hasZ(t),r=e.hasM(t),n=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(i){const s=e.getZExtent(t);n.zmin=s.vmin,n.zmax=s.vmax}if(r){const s=e.getMExtent(t);n.mmin=s.vmin,n.mmax=s.vmax}return n}};class r{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class n{constructor(e,t,s,i){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class a{constructor(e,t,s,i){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class o{constructor(e,t,s,i){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),i&&(this.hasM=i)}}class l{constructor(e,t,s,i,r){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=i,this.spatialReference=r,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},24470:(e,t,s)=>{s.d(t,{Gv:()=>x,HH:()=>u,SO:()=>h,Ue:()=>n,al:()=>o,cS:()=>p,fS:()=>y,jE:()=>d,jn:()=>c,kK:()=>f,oJ:()=>l,r3:()=>m}),s(80442),s(22021);var i=s(70586),r=s(6570);function n(e=w){return[e[0],e[1],e[2],e[3]]}function a(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function o(e,t,s,i,r=n()){return r[0]=e,r[1]=t,r[2]=s,r[3]=i,r}function l(e,t=n()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new r.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,s){if((0,i.Wi)(t))a(s,e);else if("length"in t)g(t)?(s[0]=Math.min(e[0],t[0]),s[1]=Math.min(e[1],t[1]),s[2]=Math.max(e[2],t[2]),s[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(s[0]=Math.min(e[0],t[0]),s[1]=Math.min(e[1],t[1]),s[2]=Math.max(e[2],t[0]),s[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":s[0]=Math.min(e[0],t.xmin),s[1]=Math.min(e[1],t.ymin),s[2]=Math.max(e[2],t.xmax),s[3]=Math.max(e[3],t.ymax);break;case"point":s[0]=Math.min(e[0],t.x),s[1]=Math.min(e[1],t.y),s[2]=Math.max(e[2],t.x),s[3]=Math.max(e[3],t.y)}}function h(e){return function(e){return(0,i.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function d(e,t,s){return t>=e[0]&&s>=e[1]&&t<=e[2]&&s<=e[3]}function f(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function m(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function p(e){return e?a(e,x):n(x)}function g(e){return null!=e&&4===e.length}function y(e,t){return g(e)&&g(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const x=[1/0,1/0,-1/0,-1/0],w=[0,0,0,0]},69285:(e,t,s)=>{s.d(t,{k:()=>a});var i=s(70586),r=s(67900),n=s(8744);function a(e,t,s){if((0,i.Wi)(t)||(0,i.Wi)(s)||s.vcsWkid||(0,n.fS)(t,s))return null;const a=(0,r._R)(t)/(0,r._R)(s);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const s of e.paths)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const s of e.rings)for(const e of s)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const s of e.points)s.length>2&&(s[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},26993:(e,t,s)=>{s.d(t,{y:()=>w,r:()=>m});var i=s(70586),r=s(35308),n=s(49600),a=s(82397),o=s(8744),l=s(62432),u=s(24452);class c{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=s,this.featureAdapter=t;const i=e.outFields;if(i&&!i.includes("*")){this.outFields=i;let e=0;for(const t of i){const i=(0,l.hr)(t),r=this.fieldsIndex.get(i),n=r?null:(0,l.Jc)(i,s),a=r?r.name:(0,l.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const i=s?s.name:t;let r=null;return this._fieldDataCache.has(i)?r=this._fieldDataCache.get(i).clause:s||(r=(0,l.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(i,{alias:i,clause:r})),s?this.featureAdapter.getAttribute(e,i):r.calculateValue(e,this.featureAdapter)}getDataValue(e,t){const s=t.normalizationType,i=t.normalizationTotal;let r=this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2&&(r=`${(0,u.wk)(r)}${t.fieldDelimiter}${(0,u.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,u.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)),s&&Number.isFinite(r)){const n=this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField));r=(0,u.fk)(r,s,n,i)}return r}getExpressionValue(e,t,s,i){const r={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},n=i.createExecContext(r,s);return i.executeFunction(t,n)}getExpressionValues(e,t,s,i){const r={fields:this.fieldsIndex.fields};return e.map((e=>{const n={attributes:this.featureAdapter.getAttributes(e),layer:r},a=i.createExecContext(n,s);return i.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testFeature(e,this.featureAdapter)}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t).clause.testSet(e,this.featureAdapter)}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const i of t){const{alias:t,clause:r}=this._fieldDataCache.get(i);s[t]=r?r.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if((0,i.Wi)(e)||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const i of t){const{alias:t}=this._fieldDataCache.get(i);s.push(e[t])}else for(const t in e)s.push(e[t]);const r=`${(t||["*"]).join(",")}=${s.join(",")}`;let n=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++n),n>1?null:e}}var h=s(37427);function d(e,t,s){return{objectId:e,target:t,distance:s,type:"vertex"}}function f(e,t,s,i,r,n=!1){return{objectId:e,target:t,distance:s,type:"edge",start:i,end:r,draped:n}}var m,p,g=s(11490),y=s(35671),x=s(59266);class w{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new c(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:i}=this.query,r=t?.length;if(!r)return 1;const n=new Map,a=new Map,o=new Set;for(const r of i){const{statisticType:i}=r,l="exceedslimit"!==i?r.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const i of t){const t=this._getAttributeValues(e,i,n);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:i,items:r}=u[t],n=i.join(",");s&&!e.validateItems(r,s)||o.add(n)}}return o.size}async createQueryResponse(){let e;return e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry&&((0,o.JY)(this.query.outSR)&&!(0,o.fS)(this.query.geometry.spatialReference,this.query.outSR)?e.queryGeometry=(0,g.S2)({spatialReference:this.query.outSR,...(0,h.iV)(this.query.geometry,this.query.geometry.spatialReference,this.query.outSR)}):e.queryGeometry=(0,g.S2)({spatialReference:this.query.outSR,...this.query.geometry})),e}createSnappingResponse(e,t){const s=this.featureAdapter,r=function(e,t){return e?t?4:3:t?3:2}(this.hasZ,this.hasM),{point:n}=e,a="number"==typeof e.distance?e.distance:e.distance.x,o="number"==typeof e.distance?e.distance:e.distance.y,l={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=null!=n.z,h=null!=n.m,p=this._getPointCreator(n,c,h,this.spatialReference,t),g=new b(null,0),y=new b(null,0),x={x:0,y:0,z:0};for(const t of this.items){const c=s.getGeometry(t);if((0,i.Wi)(c))continue;const{coords:h,lengths:w}=c;if(g.coords=h,y.coords=h,e.types&m.EDGE){let e=0;for(let i=0;i<w.length;i++){const u=w[i];for(let i=0;i<u;i++,e+=r){const c=g;if(c.coordsIndex=e,i!==u-1){const i=y;i.coordsIndex=e+r;const u=x;v(x,n,c,i);const h=(n.x-u.x)/a,d=(n.y-u.y)/o,m=h*h+d*d;m<=1&&l.candidates.push(f(s.getObjectId(t),p(u),Math.sqrt(m),p(c),p(i)))}}}}if(e.types&m.VERTEX){const e=u?h.length-r:h.length;for(let i=0;i<e;i+=r){const e=g;e.coordsIndex=i;const r=(n.x-e.x)/a,u=(n.y-e.y)/o,c=r*r+u*u;c<=1&&l.candidates.push(d(s.getObjectId(t),p(e),Math.sqrt(c)))}}}return l.candidates.sort(((e,t)=>e.distance-t.distance)),l}_getPointCreator(e,t,s,r,n){const a=(0,i.pC)(n)&&!(0,o.fS)(r,n)?e=>(0,h.iV)(e,r,n):e=>e,{hasZ:l}=this,u=e.m;return t&&s?l?({x:e,y:t,z:s})=>a({x:e,y:t,z:s,m:u}):({x:e,y:t})=>a({x:e,y:t,z:0,m:u}):t?l?({x:e,y:t,z:s})=>a({x:e,y:t,z:s}):({x:e,y:t})=>a({x:e,y:t,z:0}):s?({x:e,y:t})=>a({x:e,y:t,m:u}):({x:e,y:t})=>a({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,minValue:a,maxValue:o,scale:l}=e,c=this.fieldsIndex.isDateField(t),h=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:l}),d=(0,u.S5)({normalizationType:r,normalizationField:i,minValue:a,maxValue:o}),f=this.fieldsIndex.get(t),m={value:.5,fieldType:f?.type},p=(0,y.qN)(f)?(0,u.H0)({values:h,supportsNullCount:d,percentileParams:m}):(0,u.i5)({values:h,minValue:a,maxValue:o,useSampleStdDev:!r,supportsNullCount:d,percentileParams:m});return(0,u.F_)(p,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domains:i,returnAllCodedValues:r,scale:n}=e,a=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:s,scale:n}),o=(0,u.eT)(a);return(0,u.Qm)(o,i,r,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h,scale:d}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:d}),m=(0,u.G2)(f,{field:t,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numClasses:h});return(0,u.DL)(m,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h,scale:d}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:i,normalizationType:r,normalizationTotal:n,scale:d});return(0,u.oF)(f,{field:t,normalizationField:i,normalizationType:r,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:c,numBins:h})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const i of t.reverse()){const t=i.split(" "),r=t[0],n=this.fieldsIndex.get(r),a=t[1]&&"desc"===t[1].toLowerCase(),o=(0,u.Lq)(n?.type,a);e.sort(((e,t)=>{const i=s(e,r,n),a=s(t,r,n);return o(i,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:i,hasZ:r,objectIdField:n,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:h,resultOffset:d,returnZ:f,returnM:m}=e,p=null!=h&&t.length>(d||0)+h,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:p,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:i&&m,hasZ:r&&f,objectIdFieldName:n,spatialReference:(0,g.S2)(u||o),transform:c&&(0,a.vY)(c)||null}}_createFeatures(e,t){const s=new c(e,this.featureAdapter,this.fieldsIndex),{hasM:i,hasZ:r}=this,{orderByFields:n,quantizationParameters:o,returnGeometry:l,returnCentroid:u,maxAllowableOffset:h,resultOffset:d,resultRecordCount:f,returnZ:m=!1,returnM:p=!1}=e,y=r&&m,x=i&&p;let w=[],v=0;const b=[...t];if(this._sortFeatures(b,n,((e,t,i)=>s.getFieldValue(e,t,i))),l||u){const e=(0,a.vY)(o);if(l&&!u)for(const t of b)w[v++]={attributes:s.getAttributes(t),geometry:(0,g.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,x)};else if(!l&&u)for(const t of b)w[v++]={attributes:s.getAttributes(t),centroid:(0,g.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of b)w[v++]={attributes:s.getAttributes(t),centroid:(0,g.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,g.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),h,e,y,x)}}else for(const e of b){const t=s.getAttributes(e);t&&(w[v++]={attributes:t})}const S=d||0;if(null!=f){const e=S+f;w=w.slice(S,Math.min(w.length,e))}return w}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const t of e.outStatistics)if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,r=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>r)t=!0;else{const e=this.hasZ?this.hasM?4:3:this.hasM?3:2,s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const r=s.getGeometry(t);return e+((0,i.pC)(r)&&r.coords.length||0)}),0)/e>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],i=new Map,r=new Map,n=new Map,a=new Map,o=new c(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:u,having:h,orderByFields:d}=e,f=u&&u.length,m=!!f,p=m&&u[0],g=m&&!this.fieldsIndex.get(p);for(const e of l){const{outStatisticFieldName:l,statisticType:c}=e,d=e,y="exceedslimit"!==c?e.onStatisticField:void 0,x="percentile_disc"===c||"percentile_cont"===c,w="EnvelopeAggregate"===c||"CentroidAggregate"===c||"ConvexHullAggregate"===c,v=m&&1===f&&(y===p||g)&&"count"===c;if(m){if(!n.has(y)){const e=[];for(const t of u){const s=this._getAttributeValues(o,t,i);e.push(s)}n.set(y,this._calculateUniqueValues(e,o.returnDistinctValues))}const e=n.get(y);for(const t in e){const{count:s,data:r,items:n,itemPositions:c}=e[t],f=r.join(",");if(!h||o.validateItems(n,h)){const e=a.get(f)||{attributes:{}};if(w){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(d,n);e.aggregateGeometries[s]=t}else{let t=null;if(v)t=s;else{const e=this._getAttributeValues(o,y,i),s=c.map((t=>e[t]));t=x&&"statisticParameters"in d?this._getPercentileValue(d,s):this._getStatisticValue(d,s,null,o.returnDistinctValues)}e.attributes[l]=t}u.forEach(((t,s)=>e.attributes[this.fieldsIndex.get(t)?t:`EXPR_${s+1}`]=r[s])),a.set(f,e)}}}else if(w){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(d,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,i);t.attributes[l]=x&&"statisticParameters"in d?this._getPercentileValue(d,e):this._getStatisticValue(d,e,r,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=m?Array.from(a.values()):[t];return this._sortFeatures(y,d,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const i=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:h,hasM:d}=this,f=t.map((e=>(0,g.Op)(c,h,d,l.getGeometry(e)))),m=i.convexHull(u,f,!0)[0],p={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=m?(0,n._w)(m):(0,n.aO)(i.union(u,f));p.aggregateGeometries={...e,spatialReference:u},p.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=m?(0,r.tO)(m):(0,r.$G)((0,n.aO)(i.union(u,f)));p.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},p.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(p.aggregateGeometries=m,p.outStatisticFieldName=o||"convexHull");return p}_getStatisticValue(e,t,s,i){const{onStatisticField:r,statisticType:n}=e;let a=null;return a=s?.has(r)?s.get(r):(0,y.qN)(this.fieldsIndex.get(r))?(0,u.H0)({values:t,returnDistinct:i}):(0,u.i5)({values:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(r,a),a["var"===n?"variance":n]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:i,statisticType:r}=e,{value:n,orderBy:a}=i,o=this.fieldsIndex.get(s);return(0,u.XL)(t,{value:n,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===r})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const i=this.fieldsIndex.get(t),r=this.items.map((s=>e.getFieldValue(s,t,i)));return s.set(t,r),r}_getAttributeDataValues(e,t){return this.items.map((s=>e.getDataValue(s,{field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,normalizationField:t.normalizationField,normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:i}=await(0,x.LC)(),r=i.createFunction(t),n=s&&i.getViewInfo(s);return e.getExpressionValues(this.items,r,n,i)}_calculateUniqueValues(e,t){const s={},i=this.items,r=i.length;for(let n=0;n<r;n++){const r=i[n],a=[];for(const t of e)a.push(t[n]);const o=a.join(",");t?null==s[o]&&(s[o]={count:1,data:a,items:[r],itemPositions:[n]}):null==s[o]?s[o]={count:1,data:a,items:[r],itemPositions:[n]}:(s[o].count++,s[o].items.push(r),s[o].itemPositions.push(n))}return s}async _getDataValues(e){const t=new c(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:i,normalizationField:r,normalizationType:n,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeDataValues(t,{field:i,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:r,normalizationType:n,normalizationTotal:a})}}function v(e,t,s,i){const r=i.x-s.x,n=i.y-s.y,a=r*r+n*n,o=(t.x-s.x)*r+(t.y-s.y)*n,l=Math.min(1,Math.max(0,o/a));e.x=s.x+r*l,e.y=s.y+n*l}(p=m||(m={}))[p.NONE=0]="NONE",p[p.EDGE=1]="EDGE",p[p.VERTEX=2]="VERTEX";class b{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}},62432:(e,t,s)=>{s.d(t,{nu:()=>p,hr:()=>m,Jc:()=>d,G3:()=>g,Of:()=>f,z4:()=>h,hO:()=>c});var i=s(20102),r=s(74669),n=s(41534);const a=new class{constructor(e,t){this._cache=new r.Z(e),this._invalidCache=new r.Z(t)}get(e,t){const s=`${t.uid}:${e}`,i=this._cache.get(s);if(i)return i;if(void 0!==this._invalidCache.get(s))return null;try{const i=n.WhereClause.create(e,t);return this._cache.put(s,i),i}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"where clause is not standard",{where:t});return f(e,s.fieldNames,"where clause contains missing fields"),!0}function h(e,t,s){if(!t)return!0;const r=a.get(t,e);if(!r)throw new i.Z(o,"invalid SQL expression",{having:t});if(!r.isAggregate)throw new i.Z(o,"having does not contain a valid aggregate function",{having:t});const n=r.fieldNames;if(f(e,n,"having contains missing fields"),!r.getExpressions().every((t=>{const{aggregateType:i,field:r}=t,n=e.has(r)&&e.get(r).name;return s.some((t=>{const{onStatisticField:s,statisticType:r}=t;return(e.has(s)&&e.get(s).name)===n&&r.toLowerCase().trim()===i}))})))throw new i.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function d(e,t){return e?a.get(e,t):null}function f(e,t,s,r=!0){const n=[];for(const s of t)if("*"!==s&&!e.has(s))if(r){const t=m(s);try{const s=d(t,e);if(!s)throw new i.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new i.Z(o,"expression is not standard",{clause:s});f(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e&&e.details;if(t&&(t.clause||t.where))throw e;t&&t.missingFields?n.push(...t.missingFields):n.push(s)}}else n.push(s);if(n.length)throw new i.Z(o,s,{missingFields:n})}function m(e){return e.split(l)[0]}function p(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>d,iV:()=>p,oj:()=>y});var i=s(70586),r=s(44547),n=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:h(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const s=[];for(const i of e)s.push(h(i,t));return s}function h(e,t){const s=[];for(const i of e){const e=t(i[0],i[1],[0,0]);s.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return s}async function d(e,t){if(!e||!t)return;const s=Array.isArray(e)?e.map((e=>(0,i.pC)(e.geometry)?e.geometry.spatialReference:null)).filter(i.pC):[e];await(0,r.iQ)(s.map((e=>({source:e,dest:t}))))}const f=u.bind(null,o.hG),m=u.bind(null,o.R6);function p(e,t,s,i){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?f(e):m(e);return t.spatialReference=s,t}return(0,r.oj)(n.N,[e],t,s,null,i)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const i={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(i),new Promise((e=>{i.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:i,resolve:l}=e;(0,o.Q8)(s,i)?(0,a.sS)(i)?l(t.map(f)):l(t.map(m)):l((0,r.oj)(n.N,t,s,i,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>v,Op:()=>b,S2:()=>F,Up:()=>S,j6:()=>T,vF:()=>p});var i=s(35454),r=s(70586),n=s(67900),a=s(44547),o=s(49600),l=s(33955),u=s(82526),c=s(8744),h=s(98732),d=s(5428),f=s(37427);const m=new i.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),p=Object.freeze({}),g=new d.Z,y=new d.Z,x=new d.Z,w={esriGeometryPoint:h.fQ,esriGeometryPolyline:h.J6,esriGeometryPolygon:h.eG,esriGeometryMultipoint:h.Iv};function v(e,t,s,i=e.hasZ,n=e.hasM){if((0,r.Wi)(t))return null;const a=e.hasZ&&i,o=e.hasM&&n;if(s){const r=(0,h.Nh)(x,t,e.hasZ,e.hasM,"esriGeometryPoint",s,i,n);return(0,h.fQ)(r,a,o)}return(0,h.fQ)(t,a,o)}function b(e,t,s,i,n,a,o=t,l=s){const u=t&&o,c=s&&l,d=(0,r.pC)(i)?"coords"in i?i:i.geometry:null;if((0,r.Wi)(d))return null;if(n){let i=(0,h.zj)(y,d,t,s,e,n,o,l);return a&&(i=(0,h.Nh)(x,i,u,c,e,a)),w[e]?.(i,u,c)??null}if(a){const i=(0,h.Nh)(x,d,t,s,e,a,o,l);return w[e]?.(i,u,c)??null}return(0,h.hY)(g,d,t,s,o,l),w[e]?.(g,u,c)??null}async function S(e,t,s){const{outFields:i,orderByFields:r,groupByFieldsForStatistics:n,outStatistics:a}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),T(e,t,s)}async function T(e,t,i){if(!e)return null;let{where:a}=e;if(e.where=a=a&&a.trim(),(!a||/^1 *= *1$/.test(a)||t&&t===a)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{distance:t,units:i}=e,r=e.geometry;if(null==t||"vertexAttributes"in r)return r;const a=r.spatialReference,o=i?m.fromJSON(i):(0,n.qE)(a),l=a&&((0,c.sT)(a)||(0,c.sS)(a))?r:await(0,f._W)(a,c.Zn).then((()=>(0,f.iV)(r,c.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,t,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,o.aO)(h),h.spatialReference=t}if(h){await(0,f._W)(h.spatialReference,i),h=function(e,t){const s=e.spatialReference;return _(e,t)&&(0,l.YX)(e)?{spatialReference:s,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(h,i);const t=(await(0,u.aX)((0,l.im)(h)))[0];if((0,r.Wi)(t))throw p;const s="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=s&&_(h,i)?{densificationStep:8*s}:void 0,a=t.toJSON(),o=await(0,f.iV)(a,a.spatialReference,i,n);if(!o)throw p;o.spatialReference=i,e.geometry=o}return e}function _(e,t){if(!e)return!1;const s=e.spatialReference;return((0,l.YX)(e)||(0,l.oU)(e)||(0,l.l9)(e))&&!(0,c.fS)(s,t)&&!(0,a.Up)(s,t)}function F(e){return e&&I in e?JSON.parse(JSON.stringify(e,M)):e}const I="_geVersion",M=(e,t)=>e!==I?t:void 0},3172:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var i=s(68773),r=s(40330),n=s(20102),a=s(80442),o=s(22974),l=s(70586),u=s(95330),c=s(17452),h=s(71058),d=s(85958);async function f(e,t){const o=(0,c.HK)(e),y=(0,c.jc)(e);y||o||(e=(0,c.Fv)(e));const x={url:e,requestOptions:{...(0,l.Wg)(t)}};let w=(0,c.oh)(e);if(w){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let s,i;try{i=await e.before(t)}catch(e){s=T("request:interceptor",e,t)}if((i instanceof Error||i instanceof n.Z)&&(s=T("request:interceptor",i,t)),s)throw e.error&&e.error(s),s;return i}}(w,x);if(null!=e)return{data:e,getHeader:v,requestOptions:x.requestOptions,url:x.url};w.after||w.error||(w=null)}if(e=x.url,"image"===(t=x.requestOptions).responseType){if((0,a.Z)("host-webworker")||(0,a.Z)("host-node"))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),x)}else if(o)throw T("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),x);if("head"===t.method){if(t.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),x);if(o||y)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),x)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await s.e(9884).then(s.bind(s,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const b=new AbortController;(0,u.fu)(t,(()=>b.abort()));const S={controller:b,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,params:x,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},M=await async function(e){let t,s;await async function(e){const t=e.params.url,s=e.params.requestOptions,n=e.controller.signal,a=s.body;let o=null,l=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?o=a:a instanceof HTMLFormElement&&(o=new FormData(a))),"string"==typeof a&&(l=a),e.fetchOptions={cache:s.cacheBust&&!f._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:s.headers||{},method:"head"===s.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:n},(o||l)&&(e.fetchOptions.body=o||l),"anonymous"===s.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||s.query?.token||o?.get("token")),!e.hasToken&&i.Z.apiKey&&(0,h.r)(t)&&(s.query||(s.query={}),s.query.token=i.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!F(t)&&!(0,u.Hc)(n)){let i;"immediate"===s.authMode?(await _(),i=await r.id.getCredential(t,{signal:n}),e.credential=i):"no-prompt"===s.authMode?(await _(),i=await r.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=i):r.id&&(i=r.id.findCredential(t)),i&&(e.credentialToken=i.token,e.useSSL=!!i.ssl)}}(e);try{do{[t,s]=await I(e)}while(!await C(e,t,s))}catch(s){const i=T("request:server",s,e.params,t);throw i.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(i),i}const n=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!(0,c.kl)(n)){const e=(0,c.P$)(n,!0);e&&p.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&(0,d.Hu)(s.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&r.id){const e=r.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=r.id.findCredential(t,a.userId);e&&-1===r.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getHeader:t?e=>t?.headers.get(e):v,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(S);return w?.after?.(M),M}let m;const p=i.Z.request,g="FormData"in globalThis,y=[499,498,403,401],x=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],v=()=>null,b=Symbol();function S(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||f._corsServers.includes(t)||(0,c.kl)(t)}function T(e,t,s,i){let r="Error";const a={url:s.url,requestOptions:s.requestOptions,getHeader:v,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=s.url,t.details.requestOptions=s.requestOptions):t.details=a,t;if(t){const e=i&&(e=>i.headers.get(e)),s=i&&i.status,n=t.message;n&&(r=n),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=b in t?t[b]:t}return(0,u.D_)(t)?(0,u.zE)():new n.Z(e,r,a)}async function _(){r.id||await Promise.all([s.e(6261),s.e(1400),s.e(1761)]).then(s.bind(s,55142))}function F(e){return w.some((t=>t.test(e)))}async function I(e){let t=e.params.url;const s=e.params.requestOptions,i=e.fetchOptions??{},n=(0,c.jc)(t)||(0,c.HK)(t),o=s.responseType||"json",l=n?0:null!=s.timeout?s.timeout:p.timeout;let h=!1;if(!n){e.useSSL&&(t=(0,c.hO)(t)),s.cacheBust&&"default"===i.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let o=(0,c.B7)(n);(0,a.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=t.length+1+o.length;let u;h="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||l>p.maxUrlLength;const f=s.useProxy||!!(0,c.ed)(t);if(f){const e=(0,c.b7)(t);u=e.path,!h&&u.length+1+l>p.maxUrlLength&&(h=!0),e.query&&(n={...e.query,...n})}if("HEAD"===i.method&&(h||f)){if(h){if(l>p.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(h?(i.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=(0,c.fl)(t,n):(i.body=(0,c.B7)(n),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,n),f&&(e.useProxy=!0,t=`${u}?${t}`),n.token&&g&&i.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&i.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(r.id){const s=r.id.findServerInfo(t);s&&s.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",(0,d.jH)(t)&&await(0,d.jz)(h?(0,c.fl)(t,n):t))}let m,y,x=0,w=!1;l>0&&(x=setTimeout((()=>{w=!0,e.controller.abort()}),l));try{if("native-request-init"===s.responseType)y=i,y.url=t;else if("image"!==s.responseType||"default"!==i.cache||"GET"!==i.method||h||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(s.headers)||!n&&!e.useProxy&&p.proxyUrl&&!S(t)){if(m=await f._abortableFetch(t,i),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!f._corsServers.includes(t)&&f._corsServers.push(t)}(t),"native"===s.responseType)y=m;else if("HEAD"!==i.method)if(m.ok){switch(o){case"array-buffer":y=await m.arrayBuffer();break;case"blob":case"image":y=await m.blob();break;default:y=await m.text()}if(x&&(clearTimeout(x),x=0),"json"===o||"xml"===o||"document"===o)if(y)switch(o){case"json":y=JSON.parse(y);break;case"xml":y=M(y,"application/xml");break;case"document":y=M(y,"text/html")}else y=null;if(y){if("array-buffer"===o||"blob"===o){const e=m.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&y["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(y).json();e.error&&(y=e)}catch{}}"image"===o&&y instanceof Blob&&(y=await q(URL.createObjectURL(y),e,!0))}}else y=await m.text()}else y=await q(t,e)}catch(i){if("AbortError"===i.name){if(w)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!m&&i instanceof TypeError&&p.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||S(t))throw i;e.redoRequest=!0,(0,c.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{x&&clearTimeout(x)}return[m,y]}function M(e,t){let s;try{s=(new DOMParser).parseFromString(e,t)}catch{}if(!s||s.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return s}async function C(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const i=e.params.requestOptions;if(!t||"native"===i.responseType||"native-request-init"===i.responseType)return!0;let n,a;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[b]=s,n;s&&(s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[b]=s,n.details=s.messages));let o,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,o=n.messageCode,o=o&&o.toUpperCase());const u=i.authMode;if(403===a&&(4===l||n.message&&n.message.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&y.includes(a)&&!F(e.params.url)&&(403!==a||o&&!x.includes(o)&&(null==l||2===l&&e.credentialToken))){await _();try{const t=await r.id.getCredential(e.params.url,{error:T("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function q(e,t,s=!1){const i=t.controller.signal,r=new Image;return t.withCredentials?r.crossOrigin="use-credentials":r.crossOrigin="anonymous",r.alt="",r.fetchPriority=p.priority,r.src=e,(0,d.fY)(r,e,s,i)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,s)=>{s.d(t,{r:()=>n});var i=s(17452);const r=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,i.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!r.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,s)=>{s.d(t,{Hu:()=>c,fY:()=>l,jH:()=>h,jz:()=>d});var i=s(68773),r=s(80442),n=s(70586),a=s(95330),o=s(17452);function l(e,t,s=!1,i){return new Promise(((o,l)=>{if((0,a.Hc)(i))return void l(u());let c=()=>{f(),l(new Error(`Unable to load ${t}`))},h=()=>{const t=e;f(),o(t)},d=()=>{if(!e)return;const t=e;f(),t.src="",l(u())};const f=()=>{(0,r.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",h)),c=null,h=null,e=null,(0,n.pC)(i)&&i.removeEventListener("abort",d),d=null,s&&URL.revokeObjectURL(t)};(0,n.pC)(i)&&i.addEventListener("abort",d),(0,r.Z)("esri-image-decode")?e.decode().then(h,c):(e.addEventListener("error",c),e.addEventListener("load",h))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){i.Z.request.crossOriginNoCorsDomains||(i.Z.request.crossOriginNoCorsDomains={});const t=i.Z.request.crossOriginNoCorsDomains;for(let s of e)s=s.toLowerCase(),/^https?:\/\//.test(s)?t[(0,o.P$)(s)??""]=0:(t[(0,o.P$)("http://"+s)??""]=0,t[(0,o.P$)("https://"+s)??""]=0)}function h(e){const t=i.Z.request.crossOriginNoCorsDomains;if(t){let s=(0,o.P$)(e);if(s)return s=s.toLowerCase(),!(0,o.D6)(s,(0,o.TI)())&&t[s]<Date.now()-36e5}return!1}async function d(e){const t=i.Z.request.crossOriginNoCorsDomains,s=(0,o.P$)(e);t&&s&&(t[s.toLowerCase()]=Date.now());const r=(0,o.mN)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[802],{36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),s={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(s.readOnly=!!t.readOnly),void 0!==t?.default&&(s.json.default=t.default),void 0!==t?.name&&(s.json.name=t.name),(0,i.Cb)(s)}},43090:(e,t,r)=>{function n(e){return 32+e.length}function i(e){if(!e)return 0;let t=l;for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];switch(typeof i){case"string":t+=n(i);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function s(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let r=u;for(let n=0;n<t;n++)r+=o(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=o(e[r]));return t}function o(e){switch(typeof e){case"object":return s(e);case"string":return n(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(e,t){return u+e.length*t}r.d(t,{Ul:()=>s,Y8:()=>c,do:()=>a,f2:()=>i});const l=32,u=32;var c;!function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(c||(c={}))},74085:(e,t,r)=>{function n(e){}r.d(t,{Bg:()=>n}),r(80442)},45091:(e,t,r)=>{r.d(t,{Z:()=>c});var n,i,s=r(80442),o=r(71143);(i=n||(n={}))[i.varint=0]="varint",i[i.fixed64=1]="fixed64",i[i.delimited=2]="delimited",i[i.fixed32=5]="fixed32",i[i.unknown=99]="unknown";const a=4294967296,l=new TextDecoder("utf-8"),u=(0,s.Z)("safari")||(0,s.Z)("ios")?6:(0,s.Z)("ff")?12:32;class c{constructor(e,t,r=0,i=(e?e.byteLength:0)){this._tag=0,this._dataType=n.unknown,this._init(e,t,r,i)}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){const i=this.getMessage(),s=e(i,t,r,n);return i.release(),s}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case n.varint:this._decodeVarint();break;case n.fixed64:this._skip(8);break;case n.delimited:this._skip(this._getLength());break;case n.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,n=0;if(this._end-t>=10)do{if(n=e[t++],r|=127&n,0==(128&n))break;if(n=e[t++],r|=(127&n)<<7,0==(128&n))break;if(n=e[t++],r|=(127&n)<<14,0==(128&n))break;if(n=e[t++],r|=(127&n)<<21,0==(128&n))break;if(n=e[t++],r+=268435456*(127&n),0==(128&n))break;if(n=e[t++],r+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t=this._pos,r=0,n=0;const i=1&e[t];if(this._end-t>=10)do{if(n=e[t++],r|=127&n,0==(128&n))break;if(n=e[t++],r|=(127&n)<<7,0==(128&n))break;if(n=e[t++],r|=(127&n)<<14,0==(128&n))break;if(n=e[t++],r|=(127&n)<<21,0==(128&n))break;if(n=e[t++],r+=268435456*(127&n),0==(128&n))break;if(n=e[t++],r+=34359738368*(127&n),0==(128&n))break;if(n=e[t++],r+=4398046511104*(127&n),0==(128&n))break;if(n=e[t++],r+=562949953421312*(127&n),0==(128&n))break;if(n=e[t++],r+=72057594037927940*(127&n),0==(128&n))break;if(n=e[t++],r+=0x8000000000000000*(127&n),0==(128&n))break;throw new Error("Varint too long!")}while(0);else{let i=1;for(;t!==this._end&&(n=e[t],0!=(128&n));)++t,r+=(127&n)*i,i*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=n*i}return this._pos=t,i?-(r+1)/2:r/2}_getLength(){if(this._dataType!==n.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>u){const n=e.subarray(t,r);return l.decode(n)}let n="",i="";for(let s=t;s<r;++s){const t=e[s];128&t?i+="%"+t.toString(16):(n+=decodeURIComponent(i)+String.fromCharCode(t),i="")}return i.length&&(n+=decodeURIComponent(i)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}}c.pool=new o.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},60437:(e,t,r)=>{r.d(t,{Gv:()=>_,HH:()=>a,JR:()=>y,TC:()=>l,Tn:()=>d,Ue:()=>s,al:()=>o,cS:()=>f,dp:()=>c,fS:()=>m,op:()=>h,pp:()=>u,t8:()=>p});var n=r(70586),i=r(6570);function s(e=b){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,i,o,a=s()){return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a[4]=i,a[5]=o,a}function a(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.Z(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function 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[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function u(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 c(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function d(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function p(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?p(e,_):s(_)}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 g(e){return 6===e.length}function m(e,t,r){if((0,n.Wi)(e)||(0,n.Wi)(t))return e===t;if(!g(e)||!g(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(24470);const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],b=[0,0,0,0,0,0];s()},24470:(e,t,r)=>{r.d(t,{Gv:()=>_,HH:()=>u,SO:()=>h,Ue:()=>s,al:()=>a,cS:()=>y,fS:()=>m,jE:()=>d,jn:()=>c,kK:()=>p,oJ:()=>l,r3:()=>f}),r(80442),r(22021);var n=r(70586),i=r(6570);function s(e=b){return[e[0],e[1],e[2],e[3]]}function o(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function a(e,t,r,n,i=s()){return i[0]=e,i[1]=t,i[2]=r,i[3]=n,i}function l(e,t=s()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new i.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function c(e,t,r){if((0,n.Wi)(t))o(r,e);else if("length"in t)g(t)?(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[0]),r[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(e[0],t.xmin),r[1]=Math.min(e[1],t.ymin),r[2]=Math.max(e[2],t.xmax),r[3]=Math.max(e[3],t.ymax);break;case"point":r[0]=Math.min(e[0],t.x),r[1]=Math.min(e[1],t.y),r[2]=Math.max(e[2],t.x),r[3]=Math.max(e[3],t.y)}}function h(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function d(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function p(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function f(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function y(e){return e?o(e,_):s(_)}function g(e){return null!=e&&4===e.length}function m(e,t){return g(e)&&g(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const _=[1/0,1/0,-1/0,-1/0],b=[0,0,0,0]},33955:(e,t,r)=>{r.d(t,{Ji:()=>g,YX:()=>c,aW:()=>h,im:()=>y,l9:()=>p,oU:()=>f,q9:()=>_,wp:()=>d});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),a=r(94139),l=r(38913),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function h(e){return void 0!==e.points}function d(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function y(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:d(e)?a.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):f(e)?l.Z.fromJSON(e):h(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function g(e){return e?d(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":h(e)?"esriGeometryMultipoint":null:null}const m={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function _(e){return e&&m[e]||null}},82397:(e,t,r)=>{r.d(t,{G6:()=>g,Ie:()=>y,J9:()=>p,RF:()=>d,U1:()=>f,vY:()=>a});var n=r(70586);r(33955);const i=(e,t,r)=>[t,r],s=(e,t,r)=>[t,r,e[2]],o=(e,t,r)=>[t,r,e[2],e[3]];function a(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:(0,n.pC)(e.extent)?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function l({scale:e,translate:t},r){return r*e[0]+t[0]}function u({scale:e,translate:t},r){return t[1]-r*e[1]}function c(e,t,r){const n=new Array(r.length);if(!r.length)return n;const[i,s]=e.scale;let o=l(e,r[0][0]),a=u(e,r[0][1]);n[0]=t(r[0],o,a);for(let e=1;e<r.length;e++){const l=r[e];o+=l[0]*i,a-=l[1]*s,n[e]=t(l,o,a)}return n}function h(e,t,r){const n=new Array(r.length);for(let i=0;i<r.length;i++)n[i]=c(e,t,r[i]);return n}function d(e,t,r,n,i){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(n&&(t.z=r.z),i&&(t.m=r.m)),t}function p(e,t,r,a,l){return(0,n.pC)(r)&&(t.points=function(e,t,r,n){return c(e,r?n?o:s:n?s:i,t)}(e,r.points,a,l)),t}function f(e,t,r,i,s){return(0,n.Wi)(r)||(t.x=l(e,r.x),t.y=u(e,r.y),t!==r&&(i&&(t.z=r.z),s&&(t.m=r.m))),t}function y(e,t,r,a,l){return(0,n.pC)(r)&&(t.rings=function(e,t,r,n){return h(e,r?n?o:s:n?s:i,t)}(e,r.rings,a,l)),t}function g(e,t,r,a,l){return(0,n.pC)(r)&&(t.paths=function(e,t,r,n){return h(e,r?n?o:s:n?s:i,t)}(e,r.paths,a,l)),t}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},69285:(e,t,r)=>{r.d(t,{k:()=>o});var n=r(70586),i=r(67900),s=r(8744);function o(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,s.fS)(t,r))return null;const o=(0,i._R)(t)/(0,i._R)(r);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,o);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},24335:(e,t,r)=>{r.d(t,{Wh:()=>s,Pj:()=>o}),r(43090),r(80442),r(82971);var n=r(60437),i=r(24470);r(82397),r(86973),r(1231),r(8744);class s{constructor(e,t,r){this.uid=e,this.geometry=t,this.attributes=r,this.visible=!0,this.objectId=null,this.centroid=null}}class o{constructor(){this.exceededTransferLimit=!1,this.features=[],this.fields=[],this.hasM=!1,this.hasZ=!1,this.geometryType=null,this.objectIdFieldName=null,this.globalIdFieldName=null,this.geometryProperties=null,this.geohashFieldName=null,this.spatialReference=null,this.transform=null}}(0,n.Ue)(),(0,i.Ue)()},1231:(e,t,r)=>{r.d(t,{Z:()=>g});var n,i=r(43697),s=r(35454),o=r(96674),a=r(5600),l=(r(67676),r(75215)),u=r(36030),c=r(71715),h=r(52011),d=r(72729),p=r(86719);const f=new s.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 y=n=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new n({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,i._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i._)([(0,a.Cb)()],y.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],y.prototype,"readDescription",null),(0,i._)([(0,a.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],y.prototype,"domain",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"length",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i._)([(0,u.J)(p.v)],y.prototype,"type",void 0),(0,i._)([(0,a.Cb)()],y.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],y.prototype,"readValueType",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,i._)([(0,h.j)("esri.layers.support.Field")],y);const g=y},72729:(e,t,r)=>{r.d(t,{im:()=>v,V5:()=>T}),r(80442);var n,i=r(43697),s=r(22974),o=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let c=n=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,i._)([(0,l.j)("esri.layers.support.CodedValue")],c);const h=new(r(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,i._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,i._)([(0,a.J)(h)],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.support.Domain")],d);const p=d;var f;let y=f=class extends p{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,o.Cb)({type:[c],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,a.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=f=(0,i._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var m;r(92604),r(20102);let _=m=class extends p{constructor(e){super(e),this.type="inherited"}clone(){return new m}};(0,i._)([(0,a.J)({inherited:"inherited"})],_.prototype,"type",void 0),_=m=(0,i._)([(0,l.j)("esri.layers.support.InheritedDomain")],_);const b=_;var k;let w=k=class extends p{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new k({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,i._)([(0,a.J)({range:"range"})],w.prototype,"type",void 0),w=k=(0,i._)([(0,l.j)("esri.layers.support.RangeDomain")],w);const x=w,T={key:"type",base:p,typeMap:{range:w,"coded-value":g,inherited:b}};function v(e){if(!e||!e.type)return null;switch(e.type){case"range":return x.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>n});const n=new(r(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"})},77863:(e,t,r)=>{r.d(t,{G$:()=>v,K9:()=>F,O7:()=>h});var n=r(20102),i=r(70586),s=r(45091),o=r(5428),a=r(78760);const l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML"],u=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],c=["upperLeft","lowerLeft"];function h(e){return e>=l.length?null:l[e]}function d(e){return e>=u.length?null:u[e]}function p(e){return e>=c.length?null:c[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function y(e,t,r){const n=e.asUnsafe(),i=t.createPointGeometry(r);for(;n.next();)switch(n.tag()){case 3:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addCoordinatePoint(i,n.getSInt64(),s++);break}default:n.skip()}return i}function g(e,t,r){const n=e.asUnsafe(),i=t.createGeometry(r),s=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;n.next();)switch(n.tag()){case 2:{const e=n.getUInt32(),r=n.pos()+e;let s=0;for(;n.pos()<r;)t.addLength(i,n.getUInt32(),s++);break}case 3:{const e=n.getUInt32(),r=n.pos()+e;let o=0;for(t.allocateCoordinates(i);n.pos()<r;)t.addCoordinate(i,n.getSInt64(),o),o++,o===s&&(o=0);break}default:n.skip()}return i}function m(e){const t=e.asUnsafe(),r=new o.Z;let n="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),n=t.pos()+e;for(;t.pos()<n;)r.coords.push(t.getSInt64());break}case 1:n=a.A[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:n}}function _(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function b(e){const t=e.asUnsafe(),r={type:h(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=h(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function k(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,n){const i=t.createFeature(r);let s=0;for(;e.next();)switch(e.tag()){case 1:{const t=n[s++].name;i.attributes[t]=e.processMessage(_);break}case 2:i.geometry=e.processMessageWithArgs(g,t,r);break;case 4:i.centroid=e.processMessageWithArgs(y,t,r);break;default:e.skip()}return i}function x(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function T(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function v(e){const t={originPosition:p(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=p(r.getEnum());break;case 2:t.scale=r.processMessage(x);break;case 3:t.translate=r.processMessage(T);break;default:r.skip()}return t}function M(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function S(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function G(e,t){const r=t.createFeatureResult(),n=e.asUnsafe();r.geometryType=f(t,0);let i=!1;for(;n.next();)switch(n.tag()){case 1:r.objectIdFieldName=n.getString();break;case 3:r.globalIdFieldName=n.getString();break;case 4:r.geohashFieldName=n.getString();break;case 5:r.geometryProperties=n.processMessage(M);break;case 7:r.geometryType=f(t,n.getEnum());break;case 8:r.spatialReference=n.processMessageWithArgs(S,t);break;case 10:r.hasZ=n.getBool();break;case 11:r.hasM=n.getBool();break;case 12:r.transform=n.processMessage(v);break;case 9:{const e=n.getBool();r.exceededTransferLimit=e;break}case 13:t.addField(r,n.processMessage(b));break;case 15:i||(t.prepareFeatures(r),i=!0),t.addFeature(r,n.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=n.processMessage(k);break;default:n.skip()}return t.finishFeatureResult(r),r}function I(e,t){const r={};let n=null;for(;e.next();)switch(e.tag()){case 4:n=e.processMessageWithArgs(m);break;case 1:r.featureResult=e.processMessageWithArgs(G,t);break;default:e.skip()}return(0,i.pC)(n)&&r.featureResult&&t.addQueryGeometry(r,n),r}function F(e,t){try{const r=2,n=new s.Z(new Uint8Array(e),new DataView(e)),i={};for(;n.next();)n.tag()===r?i.queryResult=n.processMessageWithArgs(I,t):n.skip();return i}catch(e){throw new n.Z("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},78760:(e,t,r)=>{r.d(t,{A:()=>l,J:()=>u});var n=r(67900),i=r(8744),s=r(70272),o=r(44876),a=r(5428);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.Z}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e||!e.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,i.fS)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,n._R)(this._options.sourceSpatialReference)/(0,n._R)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,s.S6)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new s.u_}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.Z}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce(((e,t)=>e+t),0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.Z}}},45178:(e,t,r)=>{r.d(t,{C:()=>i});var n=r(77863);function i(e,t){const r=(0,n.K9)(e,t),i=r.queryResult.featureResult,s=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(i&&i.features&&i.features.length&&i.objectIdFieldName){const e=i.objectIdFieldName;for(const t of i.features)t.attributes&&(t.objectId=t.attributes[e])}return i&&(i.queryGeometry=s,i.queryGeometryType=o),i}},10802:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var n=r(74085),i=r(70586),s=r(99001),o=r(82971),a=r(69285),l=r(24335),u=r(98732),c=r(1231);function h(e,t){return t}function d(e,t,r,n){switch(r){case 0:return g(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?g(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function p(e,t,r,n){return 2===r?g(e,t,2):d(e,t,r,n)}function f(e,t,r,n){return 2===r?g(e,t,3):d(e,t,r,n)}function y(e,t,r,n){return 3===r?g(e,t,3):p(e,t,r,n)}function g({translate:e,scale:t},r,n){return e[n]+r*t[n]}class m{constructor(e){this._options=e,this.geometryTypes=["point","multipoint","polyline","polygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=h,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return new l.Pj}finishFeatureResult(e){if(this._options.applyTransform&&(e.transform=null),this._attributesConstructor=class{},this._coordinateBuffer=null,this._lengths.length=0,!e.hasZ)return;const t=(0,a.k)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(!(0,i.Wi)(t))for(const r of e.features)t(r.geometry)}createSpatialReference(){return new o.Z}addField(e,t){e.fields.push(c.Z.fromJSON(t));const r=e.fields.map((e=>e.name));this._attributesConstructor=function(){for(const e of r)this[e]=null}}addFeature(e,t){const r=this._options.maxStringAttributeLength?this._options.maxStringAttributeLength:0;if(r>0)for(const e in t.attributes){const n=t.attributes[e];"string"==typeof n&&n.length>r&&(t.attributes[e]="")}e.features.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,i=(0,u.$g)(r.clone(),r,!1,!1,this._transform),s=(0,u.di)(i,n,!1,!1);let o=null;switch(n){case"esriGeometryPoint":o="point";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryMultipoint":o="multipoint"}s.type=o,e.queryGeometryType=n,e.queryGeometry=s}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++,e.geometryType){case"point":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"polygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"polyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"multipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e);break;case"mesh":case"extent":break;default:(0,n.Bg)(e.geometryType)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,new l.Wh((0,s.D)(),null,new this._attributesConstructor)}allocateCoordinates(){const e=this._lengths.reduce(((e,t)=>e+t),0);this._coordinateBuffer=new Float64Array(e*this._vertexDimension),this._coordinateBufferPtr=0}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}createPointGeometry(e){const t={type:"point",x:0,y:0,spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM};return t.hasZ&&(t.z=0),t.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){switch(t=this._applyTransform(this._transform,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:e.hasZ?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;return t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e),this._applyTransform(this._transform,e,t,r)}_addCoordinatePolyline(e,t,r){this._dehydratedAddPointsCoordinate(e.paths,t,r)}_addCoordinatePolygon(e,t,r){this._dehydratedAddPointsCoordinate(e.rings,t,r)}_addCoordinateMultipoint(e,t,r){0===r&&e.points.push([]);const n=this._transformPathLikeValue(t,r);e.points[e.points.length-1].push(n)}_createPolygonGeometry(e){return{type:"polygon",rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{type:"polyline",paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{type:"multipoint",points:[],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_dehydratedAddPointsCoordinate(e,t,r){0===r&&0==this._toAddInCurrentPath--&&(e.push([]),this._toAddInCurrentPath=this._lengths[++this._currentLengthIndex]-1,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0);const n=this._transformPathLikeValue(t,r),i=e[e.length-1];0===r&&i.push(new Float64Array(this._coordinateBuffer.buffer,this._coordinateBufferPtr*Float64Array.BYTES_PER_ELEMENT,this._vertexDimension)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?y:t?p:r?f:d}}var _=r(45178);class b{_parseFeatureQuery(e){const t=(0,_.C)(e.buffer,new m(e.options)),r={...t,spatialReference:t.spatialReference.toJSON(),fields:t.fields?t.fields.map((e=>e.toJSON())):void 0};return Promise.resolve(r)}}function k(){return new b}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9956,4202,8694,3492],{3920:(e,t,r)=>{r.d(t,{p:()=>p,r:()=>u});var n=r(43697),i=r(15923),o=r(61247),s=r(5600),l=r(52011),a=r(72762);const p=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new o.Z}get updatingHandles(){return this._get("updatingHandles")||new a.t}};return(0,n._)([(0,s.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,n._)([(0,s.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,n._)([(0,l.j)("esri.core.HandleOwner")],t),t};let u=class extends(p(i.Z)){};u=(0,n._)([(0,l.j)("esri.core.HandleOwner")],u)},17445:(e,t,r)=>{r.d(t,{N1:()=>c,YP:()=>a,Z_:()=>f,gx:()=>p,nn:()=>m,on:()=>y,tX:()=>g});var n=r(91460),i=r(50758),o=r(70586),s=r(95330),l=r(26258);function a(e,t,r={}){return u(e,t,r,d)}function p(e,t,r={}){return u(e,t,r,h)}function u(e,t,r={},n){let i=null;const s=r.once?(e,r)=>{n(e)&&((0,o.hw)(i),t(e,r))}:(e,r)=>{n(e)&&t(e,r)};if(i=(0,l.aQ)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return i}function y(e,t,r,s={}){let l=null,p=null,u=null;function y(){l&&p&&(p.remove(),s.onListenerRemove?.(l),l=null,p=null)}function c(e){s.once&&s.once&&(0,o.hw)(u),r(e)}const d=a(e,((e,r)=>{y(),(0,n.vT)(e)&&(l=e,p=(0,n.on)(e,t,c),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return u=(0,i.kB)((()=>{d.remove(),y()})),u}function c(e,t){return function(e,t,r){if((0,s.Hc)(r))return Promise.reject((0,s.zE)());const n=e();if(t?.(n))return Promise.resolve(n);let l=null;function a(){l=(0,o.hw)(l)}return new Promise(((n,o)=>{l=(0,i.AL)([(0,s.fu)(r,(()=>{a(),o((0,s.zE)())})),u(e,(e=>{a(),n(e)}),{sync:!1,once:!0},t??d)])}))}(e,h,t)}function d(e){return!0}function h(e){return!!e}r(87538);const f={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},42033:(e,t,r)=>{r.d(t,{E:()=>i,_:()=>o});var n=r(70586);async function i(e,t){const{WhereClause:n}=await r.e(1534).then(r.bind(r,41534));return n.create(e,t)}function o(e,t){return(0,n.pC)(e)?(0,n.pC)(t)?`(${e}) AND (${t})`:e:t}},72762:(e,t,r)=>{r.d(t,{t:()=>y});var n=r(43697),i=r(15923),o=r(61247),s=r(70586),l=r(17445),a=r(1654),p=r(5600),u=r(52011);let y=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new o.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,r={}){return this._installWatch(e,t,r,l.YP)}addWhen(e,t,r={}){return this._installWatch(e,t,r,l.gx)}addOnCollectionChange(e,t,{initial:r=!1,final:n=!1}={}){const i=++this._handleId;return this._handles.add([(0,l.on)(e,"after-changes",this._createSyncUpdatingCallback(),l.Z_),(0,l.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:n?e=>t({added:[],removed:e.toArray()}):void 0})],i),{remove:()=>this._handles.remove(i)}}addPromise(e){if((0,s.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(c)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const r=()=>this._handles.remove(t);return e.then(r,r),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,r={},n){const i=++this._handleId;r.sync||this._installSyncUpdatingWatch(e,i);const o=n(e,t,r);return this._handles.add(o,i),{remove:()=>this._handles.remove(i)}}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),n=(0,l.YP)(e,r,{sync:!0,equals:()=>!1});return this._handles.add(n,t),n}_createSyncUpdatingCallback(){return()=>{this._handles.remove(c),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,a.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(c))})),c)}}};(0,n._)([(0,p.Cb)({readOnly:!0})],y.prototype,"updating",void 0),y=(0,n._)([(0,u.j)("esri.core.support.WatchUpdatingTracking")],y);const c=-42},82526:(e,t,r)=>{r.d(t,{aX:()=>T});var n=r(68773),i=r(20102),o=r(92604),s=r(70586),l=r(38913),a=r(58901),p=r(82971),u=r(33955);const y={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new a.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:p.Z.WebMercator}),minus180Line:new a.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:p.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new a.Z({paths:[[[180,-180],[180,180]]],spatialReference:p.Z.WGS84}),minus180Line:new a.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:p.Z.WGS84})}};function c(e,t){return Math.ceil((e-t)/(2*t))}function d(e,t){const r=h(e);for(const e of r)for(const r of e)r[0]+=t;return e}function h(e){return(0,u.oU)(e)?e.rings:e.paths}var f=r(8744),m=r(40488),g=(r(66577),r(3172)),S=r(17452);function _(e){return{geometryType:(0,u.Ji)(e[0]),geometries:e.map((e=>e.toJSON()))}}const b=o.Z.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function v(e){return"polyline"===e[0].type}function C(e,t,r){if(t){const t=function(e,t){if(!(e instanceof a.Z||e instanceof l.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw b.error(e),new i.Z(e)}const r=h(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const i=e[n][0],o=e[n][1],s=e[n+1][0],l=e[n+1][1],a=Math.sqrt((s-i)*(s-i)+(l-o)*(l-o)),p=(l-o)/a,u=(s-i)/a,y=a/t;if(y>1){for(let e=1;e<=y-1;e++){const n=e*t,s=u*n+i,l=p*n+o;r.push([s,l])}const e=(a+Math.floor(y-1)*t)/2,n=u*e+i,s=p*e+o;r.push([n,s])}r.push([s,l])}}return function(e){return"polygon"===e.type}(e)?new l.Z({rings:n,spatialReference:e.spatialReference}):new a.Z({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,m.Sx)(t,!0)}return r&&(e=d(e,r)),e}function x(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=c(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=c(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=c(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=c(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function O(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const i=t.cutIndexes[n],o=t.geometries[n],s=h(o);for(let e=0;e<s.length;e++){const t=s[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*c(r,180);for(let r=0;r<t.length;r++){const t=o.getPoint(e,r);o.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(i===r){if(w(e))for(const t of h(o))e[i]=e[i].addRing(t);else if(v(e))for(const t of h(o))e[i]=e[i].addPath(t)}else r=i,e[i]=o}return e}async function T(e,t,r){if(!Array.isArray(e))return T([e],t);t&&"string"!=typeof t&&b.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const i="string"==typeof t?t:t?.url??n.Z.geometryServiceUrl;let o,p,h,w,v,L,N,Z,I=0;const M=[],j=[];for(const t of e)if((0,s.Wi)(t))j.push(t);else if(o||(o=t.spatialReference,p=(0,f.C5)(o),h=o.isWebMercator,L=h?102100:4326,w=y[L].maxX,v=y[L].minX,N=y[L].plus180Line,Z=y[L].minus180Line),p)if("mesh"===t.type)j.push(t);else if("point"===t.type)j.push(x(t.clone(),w,v));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>x(e,w,v))),j.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,p);j.push(e.rings?new l.Z(e):e)}else if(t.extent){const e=t.extent,r=c(e.xmin,v)*(2*w);let n=0===r?t.clone():d(t.clone(),r);e.offset(r,0),e.intersects(N)&&e.xmax!==w?(I=e.xmax>I?e.xmax:I,n=C(n,h),M.push(n),j.push("cut")):e.intersects(Z)&&e.xmin!==v?(I=e.xmax*(2*w)>I?e.xmax*(2*w):I,n=C(n,h,360),M.push(n),j.push("cut")):j.push(n)}else j.push(t.clone());else j.push(t);let J=c(I,w),R=-90;const E=J,A=new a.Z;for(;J>0;){const e=360*J-180;A.addPath([[e,R],[e,-1*R]]),R*=-1,J--}if(M.length>0&&E>0){const t=O(M,await async function(e,t,r,n){const i="string"==typeof e?(0,S.mN)(e):e,o=t[0].spatialReference,s={...n,query:{...i.query,f:"json",sr:JSON.stringify(o),target:JSON.stringify({geometryType:(0,u.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},l=await(0,g.default)(i.path+"/cut",s),{cutIndexes:a,geometries:p=[]}=l.data;return{cutIndexes:a,geometries:p.map((e=>{const t=(0,u.im)(e);return t.spatialReference=o,t}))}}(i,M,A,r)),n=[],o=[];for(let r=0;r<j.length;r++){const i=j[r];if("cut"!==i)o.push(i);else{const i=t.shift(),l=e[r];(0,s.pC)(l)&&"polygon"===l.type&&l.rings&&l.rings.length>1&&i.rings.length>=l.rings.length?(n.push(i),o.push("simplify")):o.push(h?(0,m.$)(i):i)}}if(!n.length)return o;const l=await async function(e,t,r){const n="string"==typeof e?(0,S.mN)(e):e,i=t[0].spatialReference,o=(0,u.Ji)(t[0]),s={...r,query:{...n.query,f:"json",sr:i.wkid?i.wkid:JSON.stringify(i),geometries:JSON.stringify(_(t))}};return function(e,t,r){const n=(0,u.q9)(t);return e.map((e=>{const t=n.fromJSON(e);return t.spatialReference=r,t}))}((await(0,g.default)(n.path+"/simplify",s)).data,o,i)}(i,n,r),a=[];for(let e=0;e<o.length;e++){const t=o[e];"simplify"!==t?a.push(t):a.push(h?(0,m.$)(l.shift()):l.shift())}return a}const F=[];for(let e=0;e<j.length;e++){const t=j[e];if("cut"!==t)F.push(t);else{const e=M.shift();F.push(!0===h?(0,m.$)(e):e)}}return F}},69285:(e,t,r)=>{r.d(t,{k:()=>s});var n=r(70586),i=r(67900),o=r(8744);function s(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,o.fS)(t,r))return null;const s=(0,i._R)(t)/(0,i._R)(r);if(1===s)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,s);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return null}}},62128:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Q});var n=r(43697),i=(r(66577),r(38171)),o=(r(9790),r(46791)),s=r(20102),l=r(22974),a=r(70586),p=r(16453),u=r(78286),y=r(20941),c=r(5600),d=r(75215),h=r(71715),f=r(52011),m=r(30556),g=r(44547),S=r(24470),_=r(82526),b=r(8744),w=r(19238),v=(r(67676),r(70921)),C=r(3920);r(80442),r(92604);let x=class extends((0,C.p)(o.Z)){constructor(e){super(e),this.handles.add([this.on("before-add",(e=>{(0,a.Wi)(e.item)&&e.preventDefault()})),this.on("after-add",(e=>this._own(e.item))),this.on("after-remove",(e=>this._release(e.item)))])}get owner(){return this._get("owner")}set owner(e){e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(o.Z.ofType(this.itemType.Type))(e):new o.Z(e)}};(0,n._)([(0,c.Cb)()],x.prototype,"owner",null),x=(0,n._)([(0,f.j)("esri.core.support.OwningCollection")],x);var O=r(87085),T=r(71612),L=r(72965),N=r(52421);let Z=class extends x{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,n._)([(0,N.c)({Type:i.Z,ensureType:(0,d.se)(i.Z)})],Z.prototype,"itemType",void 0),Z=(0,n._)([(0,f.j)("esri.support.GraphicsCollection")],Z);var I=r(86787);let M=class extends((0,T.h)((0,L.M)(O.Z))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new Z,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}on(e,t){return super.on(e,t)}graphicChanged(e){this.emit("graphic-update",e)}};var j,J;(0,n._)([(0,c.Cb)({type:I.Z})],M.prototype,"elevationInfo",void 0),(0,n._)([(0,c.Cb)((j=Z,J="graphics",{type:j,cast:v.R,set(e){const t=(0,v.Z)(e,this._get(J),j);t.owner=this,this._set(J,t)}}))],M.prototype,"graphics",void 0),(0,n._)([(0,c.Cb)({type:["show","hide"]})],M.prototype,"listMode",void 0),(0,n._)([(0,c.Cb)()],M.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],M.prototype,"type",void 0),(0,n._)([(0,c.Cb)({constructOnly:!0})],M.prototype,"internal",void 0),M=(0,n._)([(0,f.j)("esri.layers.GraphicsLayer")],M);const R=M;var E=r(92908),A=r(38009),F=r(16859),P=r(1231),z=r(20256),W=r(4095),k=r(77987),D=r(78724),G=r(82971),U=r(6570);function H(e){return"markup"===e.featureCollectionType||e.layers.some((e=>null!=e.layerDefinition.visibilityField||!q(e)))}function q({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return $.find((t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type))}function X(){return new U.Z({xmin:-180,ymin:-90,xmax:180,ymax:90})}const K=new P.Z({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),B=new P.Z({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0});let V=class extends R{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",(e=>{e.item.sourceLayer=this.layer})),this.graphics.on("after-remove",(e=>{e.item.sourceLayer=null}))}get fullExtent(){const e=this.layer.spatialReference,t=this.fullBounds;return(0,a.Wi)(t)?(0,g.dz)(X(),e).geometry:(0,S.HH)(t,e)}get fullBounds(){const e=this.layer.spatialReference,t=(0,S.cS)();return this.graphics.forEach((r=>{const n=(0,a.pC)(r.geometry)?(0,g.dz)(r.geometry,e).geometry:null;(0,a.pC)(n)&&(0,S.jn)(t,"point"===n.type?n:n.extent,t)})),(0,S.fS)(t,S.Gv)?null:t}get sublayers(){return this.graphics}};(0,n._)([(0,c.Cb)({readOnly:!0})],V.prototype,"fullExtent",null),(0,n._)([(0,c.Cb)({readOnly:!0})],V.prototype,"fullBounds",null),(0,n._)([(0,c.Cb)({readOnly:!0})],V.prototype,"sublayers",null),(0,n._)([(0,c.Cb)()],V.prototype,"layer",void 0),(0,n._)([(0,c.Cb)()],V.prototype,"layerId",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],V.prototype,"visibilityMode",void 0),V=(0,n._)([(0,f.j)("esri.layers.MapNotesLayer.MapNotesSublayer")],V);const $=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new z.Z).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new W.Z).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new k.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new k.Z).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new D.Z).toJSON()}];let Y=class extends((0,T.h)((0,L.M)((0,A.q)((0,F.I)((0,p.R)(O.Z)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=G.Z.WGS84,this.sublayers=new o.Z($.map((e=>new V({id:e.id,layerId:e.layerId,title:e.title,layer:this})))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!H(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!H(t))return null;const n=t.layers.map((e=>{const t=new w.default;return t.read(e,r),t}));return new o.Z({items:n})}readLegacyfeatureCollectionJSON(e,t){return H(t)?(0,l.d9)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,S.cS)();return(0,a.pC)(this.sublayers)?this.sublayers.forEach((({fullBounds:e})=>(0,a.pC)(e)?(0,S.jn)(t,e,t):t),t):this.featureCollectionJSON?.layers.some((e=>e.layerDefinition.extent))&&this.featureCollectionJSON.layers.forEach((r=>{const n=(0,g.dz)(r.layerDefinition.extent,e).geometry;(0,a.pC)(n)&&(0,S.jn)(t,n,t)})),(0,S.fS)(t,S.Gv)?(0,g.dz)(X(),e).geometry:(0,S.HH)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?G.Z.fromJSON(t.layers[0].layerDefinition.spatialReference):G.Z.WGS84}readSublayers(e,t,r){if(H(t))return null;const n=[];let s=t.layers.reduce(((e,t)=>Math.max(e,t.layerDefinition.id??-1)),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,o=t.id??s++,l=q(e);if((0,a.pC)(l)){const e=new V({id:l.id,title:t.name,layerId:o,layer:this,graphics:r.features.map((({geometry:e,symbol:t,attributes:r,popupInfo:n})=>i.Z.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:n})))});n.push(e)}}return new o.Z(n)}writeSublayers(e,t,r,n){const{minScale:i,maxScale:o}=this;if((0,a.Wi)(e))return;const l=e.some((e=>e.graphics.length>0));if(!this.capabilities.operations.supportsMapNotesEditing)return void(l&&n?.messages?.push(new s.Z("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const p=[];let y=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if((0,a.pC)(e.geometry)){y=e.geometry.spatialReference.toJSON();break e}for(const t of $){const r=e.find((e=>t.id===e.id));this._writeMapNoteSublayer(p,r,t,i,o,y,n)}(0,u.RB)("featureCollection.layers",p,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,l.d9)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if((0,a.Wi)(this.sublayers))return;let e=null;const t=[];for(const r of this.sublayers)for(const n of r.graphics)if((0,a.pC)(n.geometry)){const r=n.geometry;e?(0,b.fS)(r.spatialReference,e)||((0,g.Up)(r.spatialReference,e)||(0,g.kR)()||await(0,g.zD)(),n.geometry=(0,g.iV)(r,e)):e=r.spatialReference,t.push(n)}const r=await(0,_.aX)(t.map((e=>e.geometry)));t.forEach(((e,t)=>e.geometry=r[t]))}_findSublayer(e){return(0,a.Wi)(this.sublayers)?null:this.sublayers?.find((t=>t.id===e))??null}_writeMapNoteSublayer(e,t,r,n,i,o,s){const p=[];if(!(0,a.Wi)(t)){for(const e of t.graphics)this._writeMapNote(p,e,r.geometryType,s);this._normalizeObjectIds(p,K),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,l.d9)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:n,maxScale:i,objectIdField:"OBJECTID",fields:[K.toJSON(),B.toJSON()],spatialReference:o},featureSet:{features:p,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,n){if((0,a.Wi)(t))return;const{geometry:i,symbol:o,popupTemplate:s}=t;if((0,a.Wi)(i))return;if(i.type!==r)return void n?.messages?.push(new y.Z("map-notes-layer:invalid-geometry-type",`Geometry "${i.type}" cannot be saved in "${r}" layer`,{graphic:t}));if((0,a.Wi)(o))return void n?.messages?.push(new y.Z("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const l={attributes:{...t.attributes},geometry:i.toJSON(),symbol:o.toJSON()};(0,a.pC)(s)&&(l.popupInfo=s.toJSON()),e.push(l)}_normalizeObjectIds(e,t){const r=t.name;let n=(0,E.S)(r,e)+1;const i=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||i.has(e[r]))&&(e[r]=n++),i.add(e[r])}}};(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"capabilities",void 0),(0,n._)([(0,h.r)(["portal-item","web-map"],"capabilities",["layers"])],Y.prototype,"readCapabilities",null),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"featureCollections",void 0),(0,n._)([(0,h.r)(["web-map","portal-item"],"featureCollections",["layers"])],Y.prototype,"readFeatureCollections",null),(0,n._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],Y.prototype,"featureCollectionJSON",void 0),(0,n._)([(0,h.r)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],Y.prototype,"readLegacyfeatureCollectionJSON",null),(0,n._)([(0,c.Cb)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],Y.prototype,"featureCollectionType",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"fullExtent",null),(0,n._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],Y.prototype,"legendEnabled",void 0),(0,n._)([(0,c.Cb)({type:["show","hide","hide-children"]})],Y.prototype,"listMode",void 0),(0,n._)([(0,c.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Y.prototype,"minScale",void 0),(0,n._)([(0,h.r)(["web-map","portal-item"],"minScale",["layers"])],Y.prototype,"readMinScale",null),(0,n._)([(0,c.Cb)({type:Number,nonNullable:!0,json:{write:!1}})],Y.prototype,"maxScale",void 0),(0,n._)([(0,h.r)(["web-map","portal-item"],"maxScale",["layers"])],Y.prototype,"readMaxScale",null),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"multipointLayer",null),(0,n._)([(0,c.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"pointLayer",null),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"polygonLayer",null),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"polylineLayer",null),(0,n._)([(0,c.Cb)({type:G.Z})],Y.prototype,"spatialReference",void 0),(0,n._)([(0,h.r)(["web-map","portal-item"],"spatialReference",["layers"])],Y.prototype,"readSpatialReference",null),(0,n._)([(0,c.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],Y.prototype,"sublayers",void 0),(0,n._)([(0,h.r)("web-map","sublayers",["layers"])],Y.prototype,"readSublayers",null),(0,n._)([(0,m.c)("web-map","sublayers")],Y.prototype,"writeSublayers",null),(0,n._)([(0,c.Cb)({readOnly:!0})],Y.prototype,"textLayer",null),(0,n._)([(0,c.Cb)()],Y.prototype,"title",void 0),(0,n._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],Y.prototype,"type",void 0),Y=(0,n._)([(0,f.j)("esri.layers.MapNotesLayer")],Y);const Q=Y},92908:(e,t,r)=>{r.d(t,{S:()=>i,X:()=>n});const n=1;function i(e,t){let r=0;for(const n of t){const t=n.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}},54295:(e,t,r)=>{r.d(t,{V:()=>s});var n=r(43697),i=r(5600),o=(r(67676),r(75215),r(52011));const s=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,n._)([(0,i.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>p});var n=r(43697),i=r(92604),o=r(70586),s=r(5600),l=(r(67676),r(75215),r(52011)),a=r(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if((0,o.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,n._)([(0,s.Cb)()],t.prototype,"title",null),(0,n._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,n._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},70082:(e,t,r)=>{r.d(t,{Z:()=>y});var n=r(43697),i=r(2368),o=r(35454),s=r(96674),l=r(5600),a=(r(67676),r(75215),r(52011));const p=new o.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,i.J)(s.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"description",void 0),(0,n._)([(0,l.Cb)({json:{read:p.read,write:p.write}})],u.prototype,"drawingTool",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,n._)([(0,a.j)("esri.layers.support.FeatureTemplate")],u);const y=u},16451:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(43697),i=r(2368),o=r(96674),s=r(5600),l=(r(67676),r(75215),r(71715)),a=r(52011),p=r(30556),u=r(72729),y=r(70082);let c=class extends((0,i.J)(o.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,n._)([(0,s.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,n._)([(0,s.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,s.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,n._)([(0,l.r)("domains")],c.prototype,"readDomains",null),(0,n._)([(0,p.c)("domains")],c.prototype,"writeDomains",null),(0,n._)([(0,s.Cb)({type:[y.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,n._)([(0,a.j)("esri.layers.support.FeatureType")],c);const d=c},56765:(e,t,r)=>{r.d(t,{Z:()=>u});var n,i=r(43697),o=r(46791),s=r(96674),l=r(5600),a=(r(67676),r(75215),r(52011));let p=n=class extends s.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.Z}clone(){return new n({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"floorField",void 0),(0,i._)([(0,l.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllMode",void 0),(0,i._)([(0,l.Cb)({json:{read:!1,write:!1}})],p.prototype,"viewAllLevelIds",void 0),p=n=(0,i._)([(0,a.j)("esri.layers.support.LayerFloorInfo")],p);const u=p},51706:(e,t,r)=>{var n,i;function o(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function a(e,t){const r=t||l(e),o=e.valueUnit||"unknown";return r===n.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===o?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}r.d(t,{PS:()=>l,QW:()=>a,RY:()=>n,hL:()=>i,iY:()=>o,qh:()=>s}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},28694:(e,t,r)=>{r.d(t,{p:()=>o});var n=r(70586),i=r(69285);function o(e,t,r){if(!r||!r.features||!r.hasZ)return;const o=(0,i.k)(r.geometryType,t,e.outSpatialReference);if(!(0,n.Wi)(o))for(const e of r.features)o(e.geometry)}},58333:(e,t,r)=>{r.d(t,{ET:()=>o,I4:()=>i,eG:()=>a,lF:()=>s,lj:()=>u,qP:()=>l,wW:()=>p});const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n},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},p={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},u={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[98,3172,9880],{99880:(e,t,r)=>{r.d(t,{V:()=>c});var n=r(68773),s=(r(3172),r(20102)),i=r(92604),a=r(17452);const o=i.Z.getLogger("esri.assets");function c(e){if(!n.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new s.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(n.Z.assetsPath,e)}},88764:(e,t,r)=>{r.d(t,{q:()=>o});var n,s,i,a={exports:{}};n=a,s=function(){function e(r,n,s,i,a){for(;i>s;){if(i-s>600){var o=i-s+1,c=n-s+1,u=Math.log(o),l=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*l*(o-l)/o)*(c-o/2<0?-1:1);e(r,n,Math.max(s,Math.floor(n-c*l/o+d)),Math.min(i,Math.floor(n+(o-c)*l/o+d)),a)}var m=r[n],f=s,h=i;for(t(r,s,n),a(r[i],m)>0&&t(r,s,i);f<h;){for(t(r,f,h),f++,h--;a(r[f],m)<0;)f++;for(;a(r[h],m)>0;)h--}0===a(r[s],m)?t(r,s,h):t(r,++h,i),h<=n&&(s=h+1),n<=h&&(i=h-1)}}function t(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function r(e,t){return e<t?-1:e>t?1:0}return function(t,n,s,i,a){e(t,n,s||0,i||t.length-1,a||r)}},void 0!==(i=s())&&(n.exports=i);const o=a.exports},67900:(e,t,r)=>{r.d(t,{$C:()=>S,En:()=>T,Jo:()=>D,_R:()=>k,c9:()=>C,cM:()=>U,gV:()=>A,hd:()=>u,qE:()=>E,ty:()=>v}),r(80442);var n=r(35454),s=r(70586),i=r(24678),a=r(68441),o=r(8744),c=r(58116);const u=39.37,l=a.sv.radius*Math.PI/200,d=/UNIT\[([^\]]+)\]\]$/i,m=c.Z,f=/UNIT\[([^\]]+)\]/i,h=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),y=e=>e*e,w=e=>e*e*e,g={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:y(.001)},"square-centimeters":{inBaseUnits:y(.01)},"square-decimeters":{inBaseUnits:y(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:y(1e3)},"square-inches":{inBaseUnits:y(.0254)},"square-feet":{inBaseUnits:y(.3048)},"square-yards":{inBaseUnits:y(.9144)},"square-miles":{inBaseUnits:y(1609.344)},"square-us-feet":{inBaseUnits:y(1200/3937)},acres:{inBaseUnits:.0015625*y(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*w(.001)},"cubic-centimeters":{inBaseUnits:1e3*w(.01)},"cubic-decimeters":{inBaseUnits:1e3*w(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*w(1e3)},"cubic-inches":{inBaseUnits:1e3*w(.0254)},"cubic-feet":{inBaseUnits:1e3*w(.3048)},"cubic-yards":{inBaseUnits:1e3*w(.9144)},"cubic-miles":{inBaseUnits:1e3*w(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},b=(()=>{const e={};for(const t in g)for(const r in g[t].units)e[r]=t;return e})();function q(e){const t=b[e];if(!t)throw new Error("unknown type");return t}function x(e,t=null){return t=t||q(e),g[t].baseUnit===e}function T(e,t,r){if(t===r)return e;const n=q(t);if(n!==q(r))throw new Error("incompatible units");const s=x(t,n)?e:function(e,t,r){return e*g[r].units[t].inBaseUnits}(e,t,n);return x(r,n)?s:function(e,t,r){return e/g[r].units[t].inBaseUnits}(s,r,n)}function v(e,t,r){return T(e,t,"meters")/(r*Math.PI/180)}function S(e){return p.fromJSON(e.toLowerCase())||null}function k(e){if((0,s.pC)(e)&&!(0,o.N$)(e))return 1;const t=C(e);return t>1e5?1:t}function U(e){return C(e)>=(0,i.Iu)(e).metersPerDegree?"meters":E(e)}function C(e,t=a.sv.metersPerDegree){return(0,s.Pt)(function(e,t=!1){const r=(0,s.pC)(e)?e.wkid:null,n=(0,s.pC)(e)?e.wkt:null;let i=null;if(r){if((0,o.o$)(r))return a.yr.metersPerDegree;if((0,o.ME)(r))return a.Z1.metersPerDegree;i=m.values[m[r]],!i&&t&&h.has(r)&&(i=l)}else n&&(B(n)?i=O(d.exec(n),i):P(n)&&(i=O(f.exec(n),i)));return i}(e,!0),t)}function O(e,t){return e&&e[1]?M(e[1]):t}function M(e){return parseFloat(e.split(",")[1])}function E(e){const t=(0,s.pC)(e)?e.wkid:null,r=(0,s.pC)(e)?e.wkt:null;let n=null;if(t)n=m.units[m[t]];else if(r){const e=B(r)?d:P(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||!m.units.includes(r)){const t=M(e);r=null;const n=m.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=m.units[e];break}}return r}(t[1]))}}return(0,s.pC)(n)?S(n):null}function P(e){return/^GEOCCS/i.test(e)}function B(e){return/^PROJCS/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const I={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},_={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},A=(0,n.w)()(I),D=(0,n.w)()(_);(0,n.w)()({...I,..._})},24678:(e,t,r)=>{r.d(t,{GG:()=>c,HQ:()=>u,Iu:()=>f,VY:()=>l,e8:()=>h,rS:()=>m,wY:()=>d});var n=r(70586),s=r(82971),i=r(68441),a=r(8744);function o(e){return new s.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const c=o(i.sv),u=o(i.yr),l=o(i.Z1),d=new s.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function m(e){return e&&((0,a.BZ)(e)||e===u)?u:e&&((0,a.V2)(e)||e===l)?l:c}function f(e){return(0,n.pC)(e)&&((0,a.BZ)(e)||e===u)?i.yr:(0,n.pC)(e)&&((0,a.V2)(e)||e===l)?i.Z1:i.sv}function h(e){return(0,a.o$)(e)?i.yr:(0,a.ME)(e)?i.Z1:i.sv}},24470:(e,t,r)=>{r.d(t,{Gv:()=>g,HH:()=>u,SO:()=>d,Ue:()=>i,al:()=>o,cS:()=>p,fS:()=>w,jE:()=>m,jn:()=>l,kK:()=>f,oJ:()=>c,r3:()=>h}),r(80442),r(22021);var n=r(70586),s=r(6570);function i(e=b){return[e[0],e[1],e[2],e[3]]}function a(e,t){return e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3]),e}function o(e,t,r,n,s=i()){return s[0]=e,s[1]=t,s[2]=r,s[3]=n,s}function c(e,t=i()){return t[0]=e.xmin,t[1]=e.ymin,t[2]=e.xmax,t[3]=e.ymax,t}function u(e,t){return new s.Z({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}function l(e,t,r){if((0,n.Wi)(t))a(r,e);else if("length"in t)y(t)?(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r[3]=Math.max(e[3],t[3])):2!==t.length&&3!==t.length||(r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.max(e[2],t[0]),r[3]=Math.max(e[3],t[1]));else switch(t.type){case"extent":r[0]=Math.min(e[0],t.xmin),r[1]=Math.min(e[1],t.ymin),r[2]=Math.max(e[2],t.xmax),r[3]=Math.max(e[3],t.ymax);break;case"point":r[0]=Math.min(e[0],t.x),r[1]=Math.min(e[1],t.y),r[2]=Math.max(e[2],t.x),r[3]=Math.max(e[3],t.y)}}function d(e){return function(e){return(0,n.Wi)(e)||e[0]>=e[2]?0:e[2]-e[0]}(e)*function(e){return e[1]>=e[3]?0:e[3]-e[1]}(e)}function m(e,t,r){return t>=e[0]&&r>=e[1]&&t<=e[2]&&r<=e[3]}function f(e,t){return Math.max(t[0],e[0])<=Math.min(t[2],e[2])&&Math.max(t[1],e[1])<=Math.min(t[3],e[3])}function h(e,t){return t[0]>=e[0]&&t[2]<=e[2]&&t[1]>=e[1]&&t[3]<=e[3]}function p(e){return e?a(e,g):i(g)}function y(e){return null!=e&&4===e.length}function w(e,t){return y(e)&&y(t)?e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]:e===t}const g=[1/0,1/0,-1/0,-1/0],b=[0,0,0,0]},61787:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var n=r(80442),s=r(70586),i=r(24133),a=r(66459);class o{async createIndex(e,t){const r=new Array;if(!e.vertexAttributes||!e.vertexAttributes.position)return new i.Q;const n=this._createMeshData(e),a=(0,s.pC)(t)?await t.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(a)}createIndexThread(e){const t=new Float64Array(e.position),r=this._createPooledRBush();return e.components?this._createIndexComponentsThread(r,t,e.components.map((e=>new Uint32Array(e)))):this._createIndexAllThread(r,t)}_createIndexAllThread(e,t){const r=new Array(t.length/9);let n=0;for(let e=0;e<t.length;e+=9)r[n++]=c(t,e+0,e+3,e+6);return e.load(r),{result:e.toJSON()}}_createIndexComponentsThread(e,t,r){let n=0;for(const e of r)n+=e.length/3;const s=new Array(n);let i=0;for(const e of r)for(let r=0;r<e.length;r+=3)s[i++]=c(t,3*e[r+0],3*e[r+1],3*e[r+2]);return e.load(s),{result:e.toJSON()}}_createMeshData(e){const t=(e.transform?(0,a.I5)({position:e.vertexAttributes.position,normal:null,tangent:null},e.transform,e.spatialReference).position:e.vertexAttributes.position).buffer;return!e.components||e.components.some((e=>!e.faces))?{position:t}:{position:t,components:e.components.map((e=>e.faces))}}_createPooledRBush(){return new i.Q(9,(0,n.Z)("esri-csp-restrictions")?e=>e:[".minX",".minY",".maxX",".maxY"])}}function c(e,t,r,n){return{minX:Math.min(e[t+0],e[r+0],e[n+0]),maxX:Math.max(e[t+0],e[r+0],e[n+0]),minY:Math.min(e[t+1],e[r+1],e[n+1]),maxY:Math.max(e[t+1],e[r+1],e[n+1]),p0:[e[t+0],e[t+1],e[t+2]],p1:[e[r+0],e[r+1],e[r+2]],p2:[e[n+0],e[n+1],e[n+2]]}}},69285:(e,t,r)=>{r.d(t,{k:()=>a});var n=r(70586),s=r(67900),i=r(8744);function a(e,t,r){if((0,n.Wi)(t)||(0,n.Wi)(r)||r.vcsWkid||(0,i.fS)(t,r))return null;const a=(0,s._R)(t)/(0,s._R)(r);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,a);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var n=r(68773),s=r(40330),i=r(20102),a=r(80442),o=r(22974),c=r(70586),u=r(95330),l=r(17452),d=r(71058),m=r(85958);async function f(e,t){const o=(0,l.HK)(e),w=(0,l.jc)(e);w||o||(e=(0,l.Fv)(e));const g={url:e,requestOptions:{...(0,c.Wg)(t)}};let b=(0,l.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(e){r=v("request:interceptor",e,t)}if((n instanceof Error||n instanceof i.Z)&&(r=v("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,g);if(null!=e)return{data:e,getHeader:q,requestOptions:g.requestOptions,url:g.url};b.after||b.error||(b=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType){if((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"),g)}else if(o)throw v("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),g);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(o||w)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,a.Z)("host-webworker")?h||(h=await r.e(9884).then(r.bind(r,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),h)return h.execute(e,t);const x=new AbortController;(0,u.fu)(t,(()=>x.abort()));const T={controller:x,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:g,redoRequest:!1,useIdentity:p.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,i=e.controller.signal,a=r.body;let o=null,c=null;if(y&&"HTMLFormElement"in globalThis&&(a instanceof FormData?o=a:a instanceof HTMLFormElement&&(o=new FormData(a))),"string"==typeof a&&(c=a),e.fetchOptions={cache:r.cacheBust&&!f._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:p.priority,redirect:"follow",signal:i},(o||c)&&(e.fetchOptions.body=o||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&n.Z.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!k(t)&&!(0,u.Hc)(i)){let n;"immediate"===r.authMode?(await S(),n=await s.id.getCredential(t,{signal:i}),e.credential=n):"no-prompt"===r.authMode?(await S(),n=await s.id.getCredential(t,{prompt:!1,signal:i}).catch((()=>{})),e.credential=n):s.id&&(n=s.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[t,r]=await U(e)}while(!await O(e,t,r))}catch(r){const n=v("request:server",r,e.params,t);throw n.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(n),n}const i=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,l.kl)(i)){const e=(0,l.P$)(i,!0);e&&p.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,m.Hu)(r.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&s.id){const e=s.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,a.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):q,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(T);return b?.after?.(C),C}let h;const p=n.Z.request,y="FormData"in globalThis,w=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],q=()=>null,x=Symbol();function T(e){const t=(0,l.P$)(e);return!t||t.endsWith(".arcgis.com")||f._corsServers.includes(t)||(0,l.kl)(t)}function v(e,t,r,n){let s="Error";const a={url:r.url,requestOptions:r.requestOptions,getHeader:q,ssl:!1};if(t instanceof i.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,i=t.message;i&&(s=i),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=x in t?t[x]:t}return(0,u.D_)(t)?(0,u.zE)():new i.Z(e,s,a)}async function S(){s.id||await Promise.all([r.e(6261),r.e(1400),r.e(1761)]).then(r.bind(r,55142))}function k(e){return b.some((t=>t.test(e)))}async function U(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions??{},i=(0,l.jc)(t)||(0,l.HK)(t),o=r.responseType||"json",c=i?0:null!=r.timeout?r.timeout:p.timeout;let d=!1;if(!i){e.useSSL&&(t=(0,l.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,l.ZN)(t,"request.preventCache",Date.now()));let i={...r.query};e.credentialToken&&(i.token=e.credentialToken);let o=(0,l.B7)(i);(0,a.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const c=t.length+1+o.length;let u;d="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||c>p.maxUrlLength;const f=r.useProxy||!!(0,l.ed)(t);if(f){const e=(0,l.b7)(t);u=e.path,!d&&u.length+1+c>p.maxUrlLength&&(d=!0),e.query&&(i={...e.query,...i})}if("HEAD"===n.method&&(d||f)){if(d){if(c>p.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(d?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,l.fl)(t,i):(n.body=(0,l.B7)(i),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,l.fl)(t,i),f&&(e.useProxy=!0,t=`${u}?${t}`),i.token&&y&&n.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&n.body.set("token",i.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,l.D6)(t,(0,l.TI)()))if((0,l.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include",(0,m.jH)(t)&&await(0,m.jz)(d?(0,l.fl)(t,i):t))}let h,w,g=0,b=!1;c>0&&(g=setTimeout((()=>{b=!0,e.controller.abort()}),c));try{if("native-request-init"===r.responseType)w=n,w.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||d||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!i&&!e.useProxy&&p.proxyUrl&&!T(t)){if(h=await f._abortableFetch(t,n),e.useProxy||function(e){const t=(0,l.P$)(e);t&&!f._corsServers.includes(t)&&f._corsServers.push(t)}(t),"native"===r.responseType)w=h;else if("HEAD"!==n.method)if(h.ok){switch(o){case"array-buffer":w=await h.arrayBuffer();break;case"blob":case"image":w=await h.blob();break;default:w=await h.text()}if(g&&(clearTimeout(g),g=0),"json"===o||"xml"===o||"document"===o)if(w)switch(o){case"json":w=JSON.parse(w);break;case"xml":w=C(w,"application/xml");break;case"document":w=C(w,"text/html")}else w=null;if(w){if("array-buffer"===o||"blob"===o){const e=h.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&w["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(w).json();e.error&&(w=e)}catch{}}"image"===o&&w instanceof Blob&&(w=await M(URL.createObjectURL(w),e,!0))}}else w=await h.text()}else w=await M(t,e)}catch(n){if("AbortError"===n.name){if(b)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!h&&n instanceof TypeError&&p.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||T(t))throw n;e.redoRequest=!0,(0,l.tD)({proxyUrl:p.proxyUrl,urlPrefix:(0,l.P$)(t)??""})}finally{g&&clearTimeout(g)}return[h,w]}function C(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function O(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let i,a;if(!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[x]=r,i;r&&(r.error?i=r.error:"error"===r.status&&Array.isArray(r.messages)&&(i={...r},i[x]=r,i.details=r.messages));let o,c=null;i&&(a=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,o=i.messageCode,o=o&&o.toUpperCase());const u=n.authMode;if(403===a&&(4===c||i.message&&i.message.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&w.includes(a)&&!k(e.params.url)&&(403!==a||o&&!g.includes(o)&&(null==c||2===c&&e.credentialToken))){await S();try{const t=await s.id.getCredential(e.params.url,{error:v("request:server",i,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;i=t}}if(i)throw i;return!0}function M(e,t,r=!1){const n=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.fetchPriority=p.priority,s.src=e,(0,m.fY)(s,e,r,n)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>i});var n=r(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function i(e){const t=(0,n.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>l,fY:()=>c,jH:()=>d,jz:()=>m});var n=r(68773),s=r(80442),i=r(70586),a=r(95330),o=r(17452);function c(e,t,r=!1,n){return new Promise(((o,c)=>{if((0,a.Hc)(n))return void c(u());let l=()=>{f(),c(new Error(`Unable to load ${t}`))},d=()=>{const t=e;f(),o(t)},m=()=>{if(!e)return;const t=e;f(),t.src="",c(u())};const f=()=>{(0,s.Z)("esri-image-decode")||(e.removeEventListener("error",l),e.removeEventListener("load",d)),l=null,d=null,e=null,(0,i.pC)(n)&&n.removeEventListener("abort",m),m=null,r&&URL.revokeObjectURL(t)};(0,i.pC)(n)&&n.addEventListener("abort",m),(0,s.Z)("esri-image-decode")?e.decode().then(d,l):(e.addEventListener("error",l),e.addEventListener("load",d))}))}function u(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function l(e){n.Z.request.crossOriginNoCorsDomains||(n.Z.request.crossOriginNoCorsDomains={});const t=n.Z.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,o.P$)(r)??""]=0:(t[(0,o.P$)("http://"+r)??""]=0,t[(0,o.P$)("https://"+r)??""]=0)}function d(e){const t=n.Z.request.crossOriginNoCorsDomains;if(t){let r=(0,o.P$)(e);if(r)return r=r.toLowerCase(),!(0,o.D6)(r,(0,o.TI)())&&t[r]<Date.now()-36e5}return!1}async function m(e){const t=n.Z.request.crossOriginNoCorsDomains,r=(0,o.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const s=(0,o.mN)(e);e=s.path,"json"===s.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
|