@arcgis/core 4.30.0-next.20240302 → 4.30.0-next.20240304
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/17a33c1eca0f2908b1a1.js +1 -0
- package/assets/esri/core/workers/chunks/1f246954cbcee02522a2.js +1 -0
- package/assets/esri/core/workers/chunks/50fa4d4f287a86bd66ac.js +1 -0
- package/assets/esri/core/workers/chunks/{ebbbc241c7b927839c43.js → 523903a812624d0d6d06.js} +1 -1
- package/assets/esri/core/workers/chunks/87d67ba152bfed5ad0de.js +1 -0
- package/assets/esri/core/workers/chunks/b70be572d509557428f4.js +1 -0
- package/assets/esri/core/workers/chunks/e966cccee47213423a98.js +1 -0
- package/interfaces.d.ts +44 -56
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/FeatureTile.js +1 -1
- package/views/2d/engine/webgl/ReshufflePlan.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/Buffer.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/MappedMesh.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/ProcessorTileMessageQueue.js +5 -0
- package/views/2d/layers/features/RenderState.js +1 -1
- package/views/2d/layers/features/aggregation/GridCell.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/AFetchLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/ComputedExpression.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetCache.js +5 -0
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/assets/esri/core/workers/chunks/49e5432a48d55eb2c127.js +0 -1
- package/assets/esri/core/workers/chunks/6034f4e2d40712235b4a.js +0 -1
- package/assets/esri/core/workers/chunks/6a94eeb1550f87e6fc50.js +0 -1
- package/assets/esri/core/workers/chunks/6c9862e876e2df0d2130.js +0 -1
- package/assets/esri/core/workers/chunks/8dfb9d63ad006381996c.js +0 -1
- package/assets/esri/core/workers/chunks/b160972c411cca5c3158.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3622],{43334:(e,t,r)=>{r.d(t,{N3:()=>o,Om:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function o(e){return!!e.geometry?.coords?.length}},58512:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,o,s]=e,i=o-t,a=s-r;return new n([5],[t,r,i,0,0,a,-i,0,0,-a])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},90708:(e,t,r)=>{r.d(t,{B2:()=>w,BW:()=>O,Ch:()=>ne,DF:()=>x,Di:()=>Q,E2:()=>z,IE:()=>F,Nl:()=>H,Q4:()=>oe,Rk:()=>ie,Ux:()=>Y,Ye:()=>V,ZF:()=>J,eY:()=>$,jH:()=>W,jQ:()=>re,kz:()=>K,oN:()=>E,q3:()=>X,qK:()=>v,qN:()=>R,z5:()=>k,zv:()=>B});var n=r(49186),o=r(53966),s=r(97768),i=r(70328),a=r(19419),u=r(65864),l=r(43334),c=r(58512),h=r(92722);function d(e,t){return e?t?4:3:t?3:2}const f=()=>o.A.getLogger("esri.layers.graphics.featureConversionUtils"),m={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},y=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s},p=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2]},g=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+3]},b=(e,t,r,n,o,s)=>{e[r]=o,e[r+1]=s,e[r+2]=t[n+2],e[r+3]=t[n+3]};function _(e,t,r,n){if(e){if(r)return t&&n?b:p;if(t&&n)return g}else if(t&&n)return p;return y}function F({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function w({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function I({scale:e,translate:t},r,n){return r*e[n]+t[n]}function x(e,t,r){return e?t?r?N(e):M(e):r?A(e):P(e):null}function P(e){const t=e.coords;return{x:t[0],y:t[1]}}function G(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function M(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function A(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function N(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function C(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function D(e,t){return e&&t?C:e?S:t?T:G}function R(e,t,r=D(null!=t.z,null!=t.m)){return r(e,t)}function v(e,t,r){if(null==e)return null;const n=d(t,r),o=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let o=0;o<n;o++)r.push(e.coords[t+o]);o.push(r)}return t?r?{points:o,hasZ:t,hasM:r}:{points:o,hasZ:t}:r?{points:o,hasM:r}:{points:o}}function Z(e,t,r=d(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let o=0;for(const e of t.points)for(let t=0;t<r;t++)n[o++]=e[t];return e}function O(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{paths:i,hasZ:t,hasM:r}:{paths:i,hasZ:t}:r?{paths:i,hasM:r}:{paths:i}}function q(e,t,r=d(t.hasZ,t.hasM)){const{lengths:n,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)o[s++]=t[e];n.push(e.length)}return e}function k(e,t,r){if(!e)return null;const n=d(t,r),{coords:o,lengths:s}=e,i=[];let a=0;for(const e of s){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(o[a++]);t.push(e)}i.push(t)}return t?r?{rings:i,hasZ:t,hasM:r}:{rings:i,hasZ:t}:r?{rings:i,hasM:r}:{rings:i}}function V(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const o=d(r,n),{lengths:s,coords:i}=e;let a=0;ae(e);for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[a++]=t[e];s.push(e.length)}return e}(e,t.rings,r,n)}const j=[],L=[];function z(e,t,r,n,o){j[0]=e;const[s]=Q(L,j,t,r,n,o);return ue(j),ue(L),s}function Q(e,t,r,o,s,i){if(ue(e),!r){for(const r of t){const t=i?r.attributes[i]:void 0;e.push(new l.Om(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,o){const s=D(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?s(new h.A,r):null;e.push(new l.Om(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryMultipoint":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?Z(new h.A,r,s):null;e.push(new l.Om(t,n,null,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolyline":return function(e,t,r,n,o){const s=d(r,n);for(const{geometry:r,attributes:n,centroid:i}of t){const t=null!=r?q(new h.A,r,s):null,a=null!=i?R(new h.A,i):null;e.push(new l.Om(t,n,a,o?n[o]:void 0))}return e}(e,t,o,s,i);case"esriGeometryPolygon":return function(e,t,r,n,o){for(const{geometry:s,centroid:i,attributes:a}of t){const t=null!=s?V(new h.A,s,r,n):null,u=o?a[o]:void 0;null!=i?e.push(new l.Om(t,a,G(new h.A,i),u)):e.push(new l.Om(t,a,null,u))}return e}(e,t,o,s,i);default:f().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`)),ue(e)}return e}function E(e,t,r,n){L[0]=e,U(j,L,t,r,n);const o=j[0];return ue(j),ue(L),o}function Y(e,t,r){if(null==e)return null;const o=new h.A;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,u.fT)(e)?D(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(o,e):(0,u.Bi)(e)?V(o,e,t,r):(0,u.Rg)(e)?q(o,e,d(t,r)):(0,u.U9)(e)?Z(o,e,d(t,r)):void f().error("convertFromGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${e}'`))}function B(e,t,r,o){const s=e&&("coords"in e?e:e.geometry);if(null==s)return null;switch(t){case"esriGeometryPoint":{let e=P;return r&&o?e=N:r?e=M:o&&(e=A),e(s)}case"esriGeometryMultipoint":return v(s,r,o);case"esriGeometryPolyline":return O(s,r,o);case"esriGeometryPolygon":return k(s,r,o);default:return f().error("convertToGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${t}'`)),null}}function U(e,t,r,o,s){if(ue(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let o=P;r&&n?o=N:r?o=M:n&&(o=A);for(const r of t){const{geometry:t,attributes:n}=r,s=null!=t?o(t):null;e.push({attributes:n,geometry:s})}return e}(e,t,o,s);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?v(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:o,attributes:s}of t)e.push({attributes:s,geometry:null!=o?O(o,r,n):null});return e}(e,t,o,s);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:o,attributes:s,centroid:i}of t){const t=null!=o?k(o,r,n):null;if(null!=i){const r=P(i);e.push({attributes:s,centroid:r,geometry:t})}else e.push({attributes:s,geometry:t})}return e}(e,t,o,s);default:f().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`))}return e}function J(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:o,hasM:s,hasZ:i,features:a,geometryType:u,exceededTransferLimit:l,uniqueIdField:c,queryGeometry:h,queryGeometryType:d}=e,f={features:U([],a,u,i,s),fields:o,geometryType:u,objectIdFieldName:t,spatialReference:r,uniqueIdField:c,queryGeometry:B(h,d,!1,!1)};return n&&(f.transform=n),l&&(f.exceededTransferLimit=l),s&&(f.hasM=s),i&&(f.hasZ=i),f}function X(e,t){const r=new c.A,{hasM:o,hasZ:s,features:i,objectIdFieldName:a,spatialReference:u,geometryType:l,exceededTransferLimit:h,transform:d,fields:m}=e;return m&&(r.fields=m),r.geometryType=l??null,r.objectIdFieldName=a??t??null,r.spatialReference=u??null,r.objectIdFieldName?(i&&Q(r.features,i,l,s,o,r.objectIdFieldName),h&&(r.exceededTransferLimit=h),o&&(r.hasM=o),s&&(r.hasZ=s),d&&(r.transform=d),r):(f().error(new n.A("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function $(e){const{transform:t,features:r,hasM:n,hasZ:o}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,o,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,o,t);return e.transform=null,e}function W(e,t){const{geometryType:r,features:n,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],a=i.weakClone();a.geometry=new h.A,H(a.geometry,i.geometry,o,s,r,e),i.centroid&&(a.centroid=new h.A,H(a.centroid,i.centroid,o,s,"esriGeometryPoint",e)),n[t]=a}return t.transform=e,t}function H(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:l,lengths:c}=t,h=d(r,n),f=d(r&&i,n&&a),y=_(r,n,i,a);if(!c.length)return y(e.coords,l,0,0,F(s,l[0]),w(s,l[1])),ae(e,h,0),e;let p,g,b,I,x=0,P=0,G=P;for(const t of c){if(t<u)continue;let r=0;P=G,b=p=F(s,l[x]),I=g=w(s,l[x+1]),y(e.coords,l,P,x,b,I),r++,x+=h,P+=f;for(let n=1;n<t;n++,x+=h)b=F(s,l[x]),I=w(s,l[x+1]),b===p&&I===g||(y(e.coords,l,P,x,b-p,I-g),P+=f,r++,p=b,g=I);r>=u&&(e.lengths.push(r),G=P)}return ue(e.coords,G),e.coords.length?e:null}function K(e,t,r,n,o,s,i=r,a=n){if(ae(e),!t?.coords.length)return null;const u=m[o],{coords:l,lengths:c}=t,h=d(r,n),f=d(r&&i,n&&a),y=_(r,n,i,a);if(!c.length)return y(e.coords,l,0,0,l[0],l[1]),ae(e,h,0),e;let p=0;const g=s*s;for(const t of c){if(t<u){p+=t*h;continue}const r=e.coords.length/f,n=p,o=p+(t-1)*h;y(e.coords,l,e.coords.length,n,l[n],l[n+1]),te(e.coords,l,h,g,y,n,o),y(e.coords,l,e.coords.length,o,l[o],l[o+1]);const s=e.coords.length/f-r;s>=u?e.lengths.push(s):ue(e.coords,r*f),p+=t*h}return e.coords.length?e:null}function ee(e,t,r,n){const o=e[t],s=e[t+1],i=e[r],a=e[r+1],u=e[n],l=e[n+1];let c=i,h=a,d=u-c,f=l-h;if(0!==d||0!==f){const e=((o-c)*d+(s-h)*f)/(d*d+f*f);e>1?(c=u,h=l):e>0&&(c+=d*e,h+=f*e)}return d=o-c,f=s-h,d*d+f*f}function te(e,t,r,n,o,s,i){let a,u=n,l=0;for(let e=s+r;e<i;e+=r)a=ee(t,e,s,i),a>u&&(l=e,u=a);u>n&&(l-s>r&&te(e,t,r,n,o,s,l),o(e,t,e.length,l,t[l],t[l+1]),i-l>r&&te(e,t,r,n,o,l,i))}function re(e,t,r,n){if(!t?.coords?.length)return null;const o=d(r,n);let s=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,c=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const r=e[t],n=e[t+1];s=Math.min(s,r),l=Math.max(l,r),u=Math.min(u,n),c=Math.max(c,n)}}return(0,i.is)(e)?(0,i.BI)(e,s,u,l,c):(0,a.fA)(s,u,l,c,e),e}function ne(e,t,r,n,o){const{coords:i,lengths:a}=t,u=d(r,n);if(!i.length)return e!==t&&ae(e),e;(0,s.Lw)(o);const{originPosition:l,scale:c,translate:h}=o,f=le;f.originPosition=l;const m=f.scale;m[0]=c[0]??1,m[1]=-(c[1]??1),m[2]=c[2]??1,m[3]=c[3]??1;const y=f.translate;if(y[0]=h[0]??0,y[1]=h[1]??0,y[2]=h[2]??0,y[3]=h[3]??0,!a.length){for(let t=0;t<u;++t)e.coords[t]=I(f,i[t],t);return e!==t&&ae(e,u,0),e}let p=0;for(let t=0;t<a.length;t++){const r=a[t];e.lengths[t]=r;for(let t=0;t<u;++t)e.coords[p+t]=I(f,i[p+t],t);let n=e.coords[p],o=e.coords[p+1];p+=u;for(let t=1;t<r;t++,p+=u){n+=i[p]*m[0],o+=i[p+1]*m[1],e.coords[p]=n,e.coords[p+1]=o;for(let t=2;t<u;++t)e.coords[p+t]=I(f,i[p+t],t)}}return e!==t&&ae(e,i.length,a.length),e}function oe(e,t,r,n,o,s){if(ae(e),e.lengths.push(...t.lengths),r===o&&n===s)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const i=d(r,n),a=_(r,n,o,s),u=t.coords;for(let t=0;t<u.length;t+=i)a(e.coords,u,e.coords.length,t,u[t],u[t+1])}return e}function se(e,t,r,n){let o=0,s=e[n*t],i=e[n*(t+1)];for(let a=1;a<r;a++){const r=s+e[n*(t+a)],u=i+e[n*(t+a)+1],l=(r-s)*(u+i);s=r,i=u,o+=l}return.5*o}function ie(e,t){const{coords:r,lengths:n}=e;let o=0,s=0;for(let e=0;e<n.length;e++){const i=n[e];s+=se(r,o,i,t),o+=i}return Math.abs(s)}function ae(e,t=0,r=0){ue(e.lengths,r),ue(e.coords,t)}function ue(e,t=0){e.length!==t&&(e.length=t)}const le={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},93622:(e,t,r)=>{r.d(t,{A:()=>x});var n=r(90237),o=r(69622),s=r(49186),i=r(44208),a=r(74887),u=r(84952),l=r(10107),c=(r(53966),r(87811),r(40608)),h=r(20557),d=r(27733),f=r(2272),m=r(20615),y=(r(59456),r(80893)),p=r(61956),g=r(5443),b=r(78286),_=r(99199),F=r(71575),w=r(22671);let I=class extends o.A{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.queryAttachmentsSupported=!1,this.sourceSpatialReference=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(e,t){const r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){const r=this._normalizeQuery(e),n=null!=e.outStatistics?.[0],o=(0,i.A)("featurelayer-pbf-statistics"),s=!n||o;let a;if(this.pbfSupported&&s)try{a=await(0,F.S)(this.url,r,t)}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return this.pbfSupported&&s||(a=await(0,_.e)(this.url,r,t)),this._normalizeFields(a.fields),a}async featureSetFromJSON(e,t,n){if(!this._queryIs3DObjectFormat(e)||null==this.infoFor3D||!t.features)return w.A.fromJSON(t);const{meshFeatureSetFromJSON:o}=await(0,a.qr)(Promise.all([r.e(3030),r.e(4873),r.e(7761),r.e(7738),r.e(9755)]).then(r.bind(r,40050)),n);return o(e,this.infoFor3D,t)}executeForCount(e,t){return(0,m.I)(this.url,this._normalizeQuery(e),t)}executeForExtent(e,t){return async function(e,t,r){const n=(0,f.Dl)(e),o=await(0,y.Jf)(n,p.A.from(t),{...r}),s=o.data.extent;return!s||isNaN(s.xmin)||isNaN(s.ymin)||isNaN(s.xmax)||isNaN(s.ymax)?{count:o.data.count,extent:null}:{count:o.data.count,extent:g.A.fromJSON(s)}}(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,b.V)(this.url,this._normalizeQuery(e),t)}async executeRelationshipQuery(e,t){const[{default:n},{executeRelationshipQuery:o}]=await(0,a.qr)(Promise.all([r.e(6591).then(r.bind(r,26591)),r.e(5257).then(r.bind(r,15257))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeRelationshipQueryForCount(e,t){const[{default:n},{executeRelationshipQueryForCount:o}]=await(0,a.qr)(Promise.all([r.e(6591).then(r.bind(r,26591)),r.e(5257).then(r.bind(r,15257))]),t);return e=n.from(e),(this.gdbVersion||this.dynamicDataSource)&&((e=e.clone()).gdbVersion=e.gdbVersion||this.gdbVersion,e.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource),o(this.url,e,t)}async executeAttachmentQuery(e,t){const{executeAttachmentQuery:n,fetchAttachments:o,processAttachmentQueryResult:s}=await(0,a.qr)(r.e(5771).then(r.bind(r,65771)),t),i=(0,f.Dl)(this.url);return s(i,await(this.queryAttachmentsSupported?n(i,e,t):o(i,e,t)))}async executeTopFeaturesQuery(e,t){const{executeTopFeaturesQuery:n}=await(0,a.qr)(r.e(1273).then(r.bind(r,11273)),t);return n(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){const{executeForTopIds:n}=await(0,a.qr)(r.e(1277).then(r.bind(r,21277)),t);return n(this.parsedUrl,e,t)}async executeForTopExtents(e,t){const{executeForTopExtents:n}=await(0,a.qr)(r.e(8018).then(r.bind(r,8018)),t);return n(this.parsedUrl,e,t)}async executeForTopCount(e,t){const{executeForTopCount:n}=await(0,a.qr)(r.e(980).then(r.bind(r,10980)),t);return n(this.parsedUrl,e,t)}_normalizeQuery(e){let t=p.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.L.from(e.dynamicDataSource):this.dynamicDataSource);const{infoFor3D:r}=this;if(null!=r&&this._queryIs3DObjectFormat(e)){t=t===e?t.clone():t,t.formatOf3DObjects=null;const{supportedFormats:n,queryFormats:o}=r,i=(0,h.R_)("model/gltf-binary",n)??(0,h.E1)("glb",n),a=(0,h.R_)("model/gltf+json",n)??(0,h.E1)("gltf",n);for(const e of o){if(e===i){t.formatOf3DObjects=e;break}e!==a||t.formatOf3DObjects||(t.formatOf3DObjects=e)}if(!t.formatOf3DObjects)throw new s.A("query:unsupported-3d-query-formats","Could not find any supported 3D object query format. Only supported formats are 3D_glb and 3D_gltf");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,null==t.outFields&&(t.outFields=[]);const{originX:n,originY:o,originZ:s,translationX:i,translationY:a,translationZ:u,scaleX:l,scaleY:c,scaleZ:h,rotationX:d,rotationY:f,rotationZ:m,rotationDeg:y}=r.transformFieldRoles;t.outFields.push(n,o,s,i,a,u,l,c,h,d,f,m,y)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(const t of e){const e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryIs3DObjectFormat(e){return null!=this.infoFor3D&&!0===e.returnGeometry&&"xyFootprint"!==e.multipatchOption&&!e.outStatistics}};(0,n._)([(0,l.MZ)({type:d.L})],I.prototype,"dynamicDataSource",void 0),(0,n._)([(0,l.MZ)()],I.prototype,"fieldsIndex",void 0),(0,n._)([(0,l.MZ)()],I.prototype,"gdbVersion",void 0),(0,n._)([(0,l.MZ)()],I.prototype,"infoFor3D",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,n._)([(0,l.MZ)()],I.prototype,"pbfSupported",void 0),(0,n._)([(0,l.MZ)()],I.prototype,"queryAttachmentsSupported",void 0),(0,n._)([(0,l.MZ)()],I.prototype,"sourceSpatialReference",void 0),(0,n._)([(0,l.MZ)({type:String})],I.prototype,"url",void 0),I=(0,n._)([(0,c.$)("esri.layers.graphics.sources.support.QueryTask")],I);const x=I},20557:(e,t,r)=>{r.d(t,{E1:()=>a,Fm:()=>u,JZ:()=>m,R_:()=>i,fu:()=>o,oF:()=>s,rq:()=>l});const n=[["binary","application/octet-stream","bin",""]];function o(e,t){return null!=h(t.name,e?.supportedFormats??[])}function s(e,t){if(!e)return!1;const r=l(t,e.supportedFormats??[]);return null!=r&&e.editFormats.includes(r)}function i(e,t){return d(function(e,t){const r=e.toLowerCase();return c(t).find((e=>f(e)===r))}(e,t))}function a(e,t){return d(h(e,t))}function u(e,t){return f(function(e,t){return c(t).find((t=>d(t)===e))}(e,t))}function l(e,t){return a(e.name,t)??i(e.type,t)}function c(e){return[...n,...e]}function h(e,t){const r=e.toLowerCase();return c(t).find((e=>function(e){return e?.[2].split(",").map((e=>e.toLowerCase()))??[]}(e).some((e=>r.endsWith(e)))))}function d(e){return e?.[0]}function f(e){return e?.[1].toLowerCase()}function m(e){return e.tables?.find((e=>"assetMaps"===e.role))}},20615:(e,t,r)=>{r.d(t,{I:()=>i});var n=r(2272),o=r(80893),s=r(61956);async function i(e,t,r){const i=(0,n.Dl)(e);return(0,o.gW)(i,s.A.from(t),{...r}).then((e=>e.data.count))}},78286:(e,t,r)=>{r.d(t,{V:()=>i});var n=r(2272),o=r(80893),s=r(61956);async function i(e,t,r){const i=(0,n.Dl)(e);return(0,o.Pk)(i,s.A.from(t),{...r}).then((e=>e.data.objectIds))}},99199:(e,t,r)=>{r.d(t,{e:()=>u,s:()=>a});var n=r(2272),o=r(80893),s=r(22671),i=r(61956);async function a(e,t,r){const n=await u(e,t,r);return s.A.fromJSON(n)}async function u(e,t,r){const s=(0,n.Dl)(e),a={...r},u=i.A.from(t),{data:l}=await(0,o.eW)(s,u,u.sourceSpatialReference,a);return l}},71575:(e,t,r)=>{r.d(t,{S:()=>p});var n=r(2272),o=r(97768),s=r(62815),i=r(90708);function a(e,t){return t}function u(e,t,r,n){switch(r){case 0:return d(e,t+n,0);case 1:return"lowerLeft"===e.originPosition?d(e,t+n,1):function({translate:e,scale:t},r,n){return e[n]-r*t[n]}(e,t+n,1)}}function l(e,t,r,n){return 2===r?d(e,t,2):u(e,t,r,n)}function c(e,t,r,n){return 2===r?0===t?0:d(e,t,3):u(e,t,r,n)}function h(e,t,r,n){return 3===r?0===t?0:d(e,t,3):l(e,t,r,n)}function d({translate:e,scale:t},r,n){return e[n]+r*t[n]}class f{constructor(e){this._options=e,this.geometryTypes=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],this._previousCoordinate=[0,0],this._transform=null,this._applyTransform=a,this._lengths=[],this._currentLengthIndex=0,this._toAddInCurrentPath=0,this._vertexDimension=0,this._mValueOffset=null,this._coordinateBuffer=null,this._coordinateBufferPtr=0,this._attributesConstructor=class{}}createFeatureResult(){return{fields:[],features:[]}}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,s.N)(e.geometryType,this._options.sourceSpatialReference,e.spatialReference);if(null!=t)for(const r of e.features)t(r.geometry)}createSpatialReference(){return{}}addField(e,t){const r=e.fields;(0,o.Lw)(r),r.push(t);const n=r.map((e=>e.name));this._attributesConstructor=function(){for(const e of n)this[e]=null}}addFeature(e,t){e.features.push(t)}prepareFeatures(e){switch(this._transform=e.transform,this._options.applyTransform&&e.transform&&(this._applyTransform=this._deriveApplyTransform(e)),this._mValueOffset=null,this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&(this._mValueOffset=this._vertexDimension,this._vertexDimension++),e.geometryType){case"esriGeometryPoint":this.addCoordinate=(e,t,r)=>this.addCoordinatePoint(e,t,r),this.createGeometry=e=>this.createPointGeometry(e);break;case"esriGeometryPolygon":this.addCoordinate=(e,t,r)=>this._addCoordinatePolygon(e,t,r),this.createGeometry=e=>this._createPolygonGeometry(e);break;case"esriGeometryPolyline":this.addCoordinate=(e,t,r)=>this._addCoordinatePolyline(e,t,r),this.createGeometry=e=>this._createPolylineGeometry(e);break;case"esriGeometryMultipoint":this.addCoordinate=(e,t,r)=>this._addCoordinateMultipoint(e,t,r),this.createGeometry=e=>this._createMultipointGeometry(e)}}createFeature(){return this._lengths.length=0,this._currentLengthIndex=0,this._previousCoordinate[0]=0,this._previousCoordinate[1]=0,this._coordinateBuffer=null,this._coordinateBufferPtr=0,{attributes:new this._attributesConstructor}}allocateCoordinates(){}addLength(e,t,r){0===this._lengths.length&&(this._toAddInCurrentPath=t),this._lengths.push(t)}addQueryGeometry(e,t){const{queryGeometry:r,queryGeometryType:n}=t,o=(0,i.Ch)(r.clone(),r,!1,!1,this._transform),s=(0,i.zv)(o,n,!1,!1);e.queryGeometryType=n,e.queryGeometry={...s}}createPointGeometry(e){const t={x:0,y:0,spatialReference:e.spatialReference};return e.hasZ&&(t.z=0),e.hasM&&(t.m=0),t}addCoordinatePoint(e,t,r){const n=this._transform;switch(t=this._applyTransform(n,t,r,0),r){case 0:e.x=t;break;case 1:e.y=t;break;case 2:"z"in e?e.z=t:e.m=t;break;case 3:e.m=t}}_transformPathLikeValue(e,t){let r=0;t<=1&&(r=this._previousCoordinate[t],this._previousCoordinate[t]+=e);const n=this._transform;return null===this._mValueOffset||0!==e||t%this._mValueOffset?this._applyTransform(n,e,t,r):0}_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{rings:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createPolylineGeometry(e){return{paths:[[]],spatialReference:e.spatialReference,hasZ:!!e.hasZ,hasM:!!e.hasM}}_createMultipointGeometry(e){return{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),o=e[e.length-1];0===r&&(this._coordinateBufferPtr=0,this._coordinateBuffer=new Array(this._vertexDimension),o.push(this._coordinateBuffer)),this._coordinateBuffer[this._coordinateBufferPtr++]=n}_deriveApplyTransform(e){const{hasZ:t,hasM:r}=e;return t&&r?h:t?l:r?c:u}}var m=r(80893),y=(r(22671),r(61956));async function p(e,t,r){const o=(0,n.Dl)(e),s={...r},i=y.A.from(t),a=!i.quantizationParameters,{data:u}=await(0,m.IJ)(o,i,new f({sourceSpatialReference:i.sourceSpatialReference,applyTransform:a}),s);return u}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4591],{70668:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(90237),i=r(69540),o=r(25482),s=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let d=class extends((0,i.O)(o.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,n._)([(0,a.e)(p.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n._)([(0,u.$)("esri.TimeInterval")],d);const c=d},3330:(e,t,r)=>{r.d(t,{GB:()=>i,Qo:()=>s,Y4:()=>o});var n=r(96285);class i{}function o(e){return e instanceof n.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function s(e){return o(e)?i.instance:e}i.instance=new n.oh("Etc/UTC")},70328:(e,t,r)=>{r.d(t,{BI:()=>m,Ej:()=>p,Hq:()=>u,Ie:()=>y,Jt:()=>f,Ne:()=>d,RF:()=>l,aI:()=>w,fA:()=>o,hZ:()=>h,iT:()=>a,is:()=>g,qv:()=>v,vI:()=>c,v_:()=>F,vt:()=>i,w1:()=>s});var n=r(5443);function i(e=F){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,r,n,o,s,l=i()){return l[0]=e,l[1]=t,l[2]=r,l[3]=n,l[4]=o,l[5]=s,l}function s(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new n.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function 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 a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,n=t.length/3){let i=e[0],o=e[1],s=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),o=Math.min(o,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=o,e[2]=s,e[3]=l,e[4]=a,e[5]=u}function p(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 d(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 c(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 h(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 y(e){return e?h(e,v):i(v)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function m(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=i,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function w(e,t,r){if(null==e||null==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(19419);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],F=[0,0,0,0,0,0];i()},87152:(e,t,r)=>{r.r(t),r.d(t,{default:()=>L});var n=r(90237),i=(r(59456),r(13874)),o=(r(86162),r(94409),r(65345),r(42980),r(39290),r(92438),r(96576),r(93618),r(65494),r(15036)),s=r(92071),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608)),u=r(50498),p=r(4146),d=r(49186),c=r(92474),h=r(75321),y=r(22671),f=r(16930);let m=class extends c.A{constructor(){super(...arguments),this.featureDefinition=null,this.type="ogc-feature"}load(e){return this.addResolvingPromise(this._loadOGCServices(this.layer,e)),this.when()}getSource(){const{featureDefinition:{collection:e,layerDefinition:t,spatialReference:r,supportedCrs:n},layer:{apiKey:i,customParameters:o,effectiveMaxRecordCount:s}}=this;return{type:"ogc-source",collection:e,layerDefinition:t,maxRecordCount:s,queryParameters:{apiKey:i,customParameters:o},spatialReference:r,supportedCrs:n}}queryExtent(e,t={}){return null}queryFeatureCount(e,t={}){return null}queryFeatures(e,t={}){return this.queryFeaturesJSON(e,t).then((e=>y.A.fromJSON(e)))}queryFeaturesJSON(e,t={}){const r=this.getSource();return this.load(t).then((()=>(0,h.bW)(r,e,t)))}queryObjectIds(e,t={}){return null}serviceSupportsSpatialReference(e){return!(!e.isWGS84&&!e.isWebMercator&&!this.featureDefinition.supportedCrs[e.wkid])}_conformsToType(e,t){const r=new RegExp(`^${t}$`,"i");return e.conformsTo.some((e=>r.test(e)))??!1}_getCapabilities(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{maxRecordCount:t,maxRecordCountFactor:void 0,standardMaxRecordCount:void 0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsStatistics:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,supportsSqlExpression:!1,tileMaxRecordCount:void 0},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}_getMaxRecordCount(e){const t=e?.components?.parameters;return t?.limit?.schema?.maximum??t?.limitFeatures?.schema?.maximum}_getStorageSpatialReference(e){const t=e.storageCrs??h.QE,r=(0,h.J0)(t);return null==r?f.A.WGS84:new f.A({wkid:r})}_getSupportedSpatialReferences(e,t){const r="#/crs",n=e.crs??[h.QE],i=n.includes(r)?n.filter((e=>e!==r)).concat(t.crs??[]):n,o=/^http:\/\/www\.opengis.net\/def\/crs\/epsg\/.*\/3785$/i;return i.filter((e=>!o.test(e)))}async _loadOGCServices(e,t){const r=null!=t?t.signal:null,{apiKey:n,collectionId:i,customParameters:o,fields:s,geometryType:l,hasZ:a,objectIdField:p,timeInfo:c,url:y}=e,f={fields:s?.map((e=>e.toJSON())),geometryType:u.Y.toJSON(l),hasZ:a??!1,objectIdField:p,timeInfo:c?.toJSON()},m={apiKey:n,customParameters:o,signal:r},g=await(0,h.Ki)(y,m),[w,v]=await Promise.all([(0,h.Px)(g,m),(0,h.bV)(g,m)]);if(!this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson"))throw new d.A("ogc-feature-layer:no-geojson-support","Server does not support geojson");const F=v.collections.find((({id:e})=>e===i));if(!F)throw new d.A("ogc-feature-layer:collection-not-found","Server does not contain the named collection");const M=this._conformsToType(w,"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30")?await(0,h.GA)(g,m):null,T=await(0,h.GL)(F,f,m),_=this._getMaxRecordCount(M),x=this._getCapabilities(T.hasZ,_),I=this._getStorageSpatialReference(F).toJSON(),b=this._getSupportedSpatialReferences(F,v),S=new RegExp(`^${h.vJ}`,"i"),Z={};for(const e of b){const t=(0,h.J0)(e);null!=t&&(Z[t]||(Z[t]=e.replace(S,"")))}this.featureDefinition={capabilities:x,collection:F,layerDefinition:T,spatialReference:I,supportedCrs:Z}}};(0,n._)([(0,l.MZ)()],m.prototype,"featureDefinition",void 0),(0,n._)([(0,l.MZ)({constructOnly:!0})],m.prototype,"layer",void 0),(0,n._)([(0,l.MZ)()],m.prototype,"type",void 0),m=(0,n._)([(0,a.$)("esri.layers.graphics.sources.OGCFeatureSource")],m);var g=r(52136),w=r(63074),v=r(69208),F=r(87718),M=r(81149),T=r(16131),_=r(32756),x=r(8303),I=r(54310),b=r(25036),S=r(82935),Z=r(55785),R=r(33143),N=r(20437),E=r(17036),j=r(30524),A=r(81457),O=r(39383),G=r(61956),P=r(30291),C=r(5443);const D=(0,E.p)();let q=class extends((0,g.p)((0,v.d)((0,M.J)((0,F.F)((0,w.d)((0,_.f)((0,S.e)((0,b.j)((0,T.q)((0,x.A)((0,I.J)((0,s.P)(p.A))))))))))))){constructor(e){super(e),this.capabilities=null,this.collectionId=null,this.copyright=null,this.description=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.hasZ=void 0,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxRecordCount=null,this.objectIdField=null,this.operationalLayerType="OGCFeatureLayer",this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new m({layer:this}),this.spatialReference=null,this.title=null,this.type="ogc-feature",this.typeIdField=null,this.types=null,this.url=null}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["OGCFeatureServer"]},e).then((()=>this._fetchService(e)))),this.when()}get defaultPopupTemplate(){return this.createPopupTemplate()}get effectiveMaxRecordCount(){return this.maxRecordCount??this.capabilities?.query.maxRecordCount??5e3}get isTable(){return this.loaded&&null==this.geometryType}set renderer(e){(0,j.yp)(e,this.fieldsIndex),this._set("renderer",e)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,P.tn)(this,e)}createQuery(){return new G.A}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){let r,n=!1;const i=t?.feature?.attributes,o=this.typeIdField&&i?.[this.typeIdField];return null!=o&&this.types&&(n=this.types.some((t=>t.id==o&&(r=t.domains?.[e],"inherited"===r?.type&&(r=this._getLayerDomain(e)),!0)))),n||r||(r=this._getLayerDomain(e)),r}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(G.A.from(e)||this.createQuery(),t))).then((e=>(e?.features?.forEach((e=>{e.layer=e.sourceLayer=this})),e)))}serviceSupportsSpatialReference(e){return this.source?.serviceSupportsSpatialReference(e)??!1}async _fetchService(e){await this.source.load(e),this.read(this.source.featureDefinition,{origin:"service"}),(0,j.yp)(this.renderer,this.fieldsIndex),(0,j.sv)(this.timeInfo,this.fieldsIndex)}_getLayerDomain(e){if(!this.fields)return null;for(const t of this.fields)if(t.name===e&&t.domain)return t.domain;return null}};(0,n._)([(0,l.MZ)({readOnly:!0,json:{origins:{service:{read:!0}}}})],q.prototype,"capabilities",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],q.prototype,"collectionId",void 0),(0,n._)([(0,l.MZ)({type:String})],q.prototype,"copyright",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],q.prototype,"defaultPopupTemplate",null),(0,n._)([(0,l.MZ)({readOnly:!0,type:String,json:{origins:{service:{name:"collection.description"}}}})],q.prototype,"description",void 0),(0,n._)([(0,l.MZ)({type:String})],q.prototype,"displayField",void 0),(0,n._)([(0,l.MZ)({type:Number})],q.prototype,"effectiveMaxRecordCount",null),(0,n._)([(0,l.MZ)(Z.Yj)],q.prototype,"elevationInfo",void 0),(0,n._)([(0,l.MZ)({type:[N.A],json:{origins:{service:{name:"layerDefinition.fields"}}}})],q.prototype,"fields",void 0),(0,n._)([(0,l.MZ)(D.fieldsIndex)],q.prototype,"fieldsIndex",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:C.A,json:{origins:{service:{name:"layerDefinition.extent"}}}})],q.prototype,"fullExtent",void 0),(0,n._)([(0,l.MZ)({type:u.g.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:u.g.read}}}}})],q.prototype,"geometryType",void 0),(0,n._)([(0,l.MZ)({type:Boolean,json:{origins:{service:{name:"layerDefinition.hasZ"}}}})],q.prototype,"hasZ",void 0),(0,n._)([(0,l.MZ)({type:Boolean,readOnly:!0})],q.prototype,"isTable",null),(0,n._)([(0,l.MZ)({type:[A.A],json:{origins:{"web-document":{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:O.w},write:!0}}}})],q.prototype,"labelingInfo",void 0),(0,n._)([(0,l.MZ)(Z.kF)],q.prototype,"labelsVisible",void 0),(0,n._)([(0,l.MZ)(Z.fV)],q.prototype,"legendEnabled",void 0),(0,n._)([(0,l.MZ)({type:Number})],q.prototype,"maxRecordCount",void 0),(0,n._)([(0,l.MZ)({type:String,json:{origins:{service:{name:"layerDefinition.objectIdField"}}}})],q.prototype,"objectIdField",void 0),(0,n._)([(0,l.MZ)({type:["OGCFeatureLayer"]})],q.prototype,"operationalLayerType",void 0),(0,n._)([(0,l.MZ)(Z.M6)],q.prototype,"popupEnabled",void 0),(0,n._)([(0,l.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],q.prototype,"popupTemplate",void 0),(0,n._)([(0,l.MZ)({types:o.H,json:{origins:{service:{name:"layerDefinition.drawingInfo.renderer",write:!1},"web-scene":{types:o.X,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:!0}})],q.prototype,"renderer",null),(0,n._)([(0,l.MZ)(Z.PY)],q.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,l.MZ)({readOnly:!0})],q.prototype,"source",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,type:f.A,json:{origins:{service:{read:!0}}}})],q.prototype,"spatialReference",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"collection.title"}}}})],q.prototype,"title",void 0),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],q.prototype,"type",void 0),(0,n._)([(0,l.MZ)({type:String,readOnly:!0})],q.prototype,"typeIdField",void 0),(0,n._)([(0,l.MZ)({type:[R.A]})],q.prototype,"types",void 0),(0,n._)([(0,l.MZ)(Z.OZ)],q.prototype,"url",void 0),q=(0,n._)([(0,a.$)("esri.layers.OGCFeatureLayer")],q);const L=q},43334:(e,t,r)=>{r.d(t,{N3:()=>i,Om:()=>n});class n{constructor(e=null,t={},r,n){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new n(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}clone(){const e=this.geometry?.clone(),t=new n(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t.geohashX=this.geohashX,t.geohashY=this.geohashY,t}}function i(e){return!!e.geometry?.coords?.length}},58512:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722:(e,t,r)=>{r.d(t,{A:()=>n});class n{constructor(e=[],t=[],r=!1){this.lengths=e??[],this.coords=t??[],this.hasIndeterminateRingOrder=r}static fromRect(e){const[t,r,i,o]=e,s=i-t,l=o-r;return new n([5],[t,r,s,0,0,l,-s,0,0,-l])}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const n=this.lengths[r];for(let r=0;r<n;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;for(const e of r){for(let r=1;r<e;r++)t[2*(n+r)]+=t[2*(n+r)-2],t[2*(n+r)+1]+=t[2*(n+r)-1];n+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce(((e,t)=>e+t))),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e,this.hasIndeterminateRingOrder)):new n(Array.from(this.lengths),Array.from(r),this.hasIndeterminateRingOrder)}}},99352:(e,t,r)=>{r.d(t,{F:()=>n});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},90708:(e,t,r)=>{r.d(t,{B2:()=>M,BW:()=>P,Ch:()=>ne,DF:()=>_,Di:()=>U,E2:()=>z,IE:()=>F,Nl:()=>W,Q4:()=>ie,Rk:()=>se,Ux:()=>k,Ye:()=>q,ZF:()=>Y,eY:()=>K,jH:()=>H,jQ:()=>re,kz:()=>X,oN:()=>J,q3:()=>V,qK:()=>O,qN:()=>A,z5:()=>D,zv:()=>Q});var n=r(49186),i=r(53966),o=r(97768),s=r(70328),l=r(19419),a=r(65864),u=r(43334),p=r(58512),d=r(92722);function c(e,t){return e?t?4:3:t?3:2}const h=()=>i.A.getLogger("esri.layers.graphics.featureConversionUtils"),y={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryEnvelope:0},f=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o},m=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o,e[r+2]=t[n+2]},g=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o,e[r+2]=t[n+3]},w=(e,t,r,n,i,o)=>{e[r]=i,e[r+1]=o,e[r+2]=t[n+2],e[r+3]=t[n+3]};function v(e,t,r,n){if(e){if(r)return t&&n?w:m;if(t&&n)return g}else if(t&&n)return m;return f}function F({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function M({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function T({scale:e,translate:t},r,n){return r*e[n]+t[n]}function _(e,t,r){return e?t?r?N(e):b(e):r?Z(e):x(e):null}function x(e){const t=e.coords;return{x:t[0],y:t[1]}}function I(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function b(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function S(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function Z(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function R(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function N(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function E(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function j(e,t){return e&&t?E:e?S:t?R:I}function A(e,t,r=j(null!=t.z,null!=t.m)){return r(e,t)}function O(e,t,r){if(null==e)return null;const n=c(t,r),i=[];for(let t=0;t<e.coords.length;t+=n){const r=[];for(let i=0;i<n;i++)r.push(e.coords[t+i]);i.push(r)}return t?r?{points:i,hasZ:t,hasM:r}:{points:i,hasZ:t}:r?{points:i,hasM:r}:{points:i}}function G(e,t,r=c(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const n=e.coords;let i=0;for(const e of t.points)for(let t=0;t<r;t++)n[i++]=e[t];return e}function P(e,t,r){if(!e)return null;const n=c(t,r),{coords:i,lengths:o}=e,s=[];let l=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(i[l++]);t.push(e)}s.push(t)}return t?r?{paths:s,hasZ:t,hasM:r}:{paths:s,hasZ:t}:r?{paths:s,hasM:r}:{paths:s}}function C(e,t,r=c(t.hasZ,t.hasM)){const{lengths:n,coords:i}=e;let o=0;for(const e of t.paths){for(const t of e)for(let e=0;e<r;e++)i[o++]=t[e];n.push(e.length)}return e}function D(e,t,r){if(!e)return null;const n=c(t,r),{coords:i,lengths:o}=e,s=[];let l=0;for(const e of o){const t=[];for(let r=0;r<e;r++){const e=[];for(let t=0;t<n;t++)e.push(i[l++]);t.push(e)}s.push(t)}return t?r?{rings:s,hasZ:t,hasM:r}:{rings:s,hasZ:t}:r?{rings:s,hasM:r}:{rings:s}}function q(e,t,r=t.hasZ,n=t.hasM){return function(e,t,r,n){const i=c(r,n),{lengths:o,coords:s}=e;let l=0;le(e);for(const e of t){for(const t of e)for(let e=0;e<i;e++)s[l++]=t[e];o.push(e.length)}return e}(e,t.rings,r,n)}const L=[],B=[];function z(e,t,r,n,i){L[0]=e;const[o]=U(B,L,t,r,n,i);return ae(L),ae(B),o}function U(e,t,r,i,o,s){if(ae(e),!r){for(const r of t){const t=s?r.attributes[s]:void 0;e.push(new u.Om(null,r.attributes,null,t))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,i){const o=j(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?o(new d.A,r):null;e.push(new u.Om(t,n,null,i?n[i]:void 0))}return e}(e,t,i,o,s);case"esriGeometryMultipoint":return function(e,t,r,n,i){const o=c(r,n);for(const{geometry:r,attributes:n}of t){const t=null!=r?G(new d.A,r,o):null;e.push(new u.Om(t,n,null,i?n[i]:void 0))}return e}(e,t,i,o,s);case"esriGeometryPolyline":return function(e,t,r,n,i){const o=c(r,n);for(const{geometry:r,attributes:n,centroid:s}of t){const t=null!=r?C(new d.A,r,o):null,l=null!=s?A(new d.A,s):null;e.push(new u.Om(t,n,l,i?n[i]:void 0))}return e}(e,t,i,o,s);case"esriGeometryPolygon":return function(e,t,r,n,i){for(const{geometry:o,centroid:s,attributes:l}of t){const t=null!=o?q(new d.A,o,r,n):null,a=i?l[i]:void 0;null!=s?e.push(new u.Om(t,l,I(new d.A,s),a)):e.push(new u.Om(t,l,null,a))}return e}(e,t,i,o,s);default:h().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`)),ae(e)}return e}function J(e,t,r,n){B[0]=e,$(L,B,t,r,n);const i=L[0];return ae(L),ae(B),i}function k(e,t,r){if(null==e)return null;const i=new d.A;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==r&&(r=e.hasM),(0,a.fT)(e)?j(null!=t?t:null!=e.z,null!=r?r:null!=e.m)(i,e):(0,a.Bi)(e)?q(i,e,t,r):(0,a.Rg)(e)?C(i,e,c(t,r)):(0,a.U9)(e)?G(i,e,c(t,r)):void h().error("convertFromGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${e}'`))}function Q(e,t,r,i){const o=e&&("coords"in e?e:e.geometry);if(null==o)return null;switch(t){case"esriGeometryPoint":{let e=x;return r&&i?e=N:r?e=b:i&&(e=Z),e(o)}case"esriGeometryMultipoint":return O(o,r,i);case"esriGeometryPolyline":return P(o,r,i);case"esriGeometryPolygon":return D(o,r,i);default:return h().error("convertToGeometry:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${t}'`)),null}}function $(e,t,r,i,o){if(ae(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){let i=x;r&&n?i=N:r?i=b:n&&(i=Z);for(const r of t){const{geometry:t,attributes:n}=r,o=null!=t?i(t):null;e.push({attributes:n,geometry:o})}return e}(e,t,i,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({attributes:o,geometry:null!=i?O(i,r,n):null});return e}(e,t,i,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({attributes:o,geometry:null!=i?P(i,r,n):null});return e}(e,t,i,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:i,attributes:o,centroid:s}of t){const t=null!=i?D(i,r,n):null;if(null!=s){const r=x(s);e.push({attributes:o,centroid:r,geometry:t})}else e.push({attributes:o,geometry:t})}return e}(e,t,i,o);default:h().error("convertToFeatureSet:unknown-geometry",new n.A(`Unable to parse unknown geometry type '${r}'`))}return e}function Y(e){const{objectIdFieldName:t,spatialReference:r,transform:n,fields:i,hasM:o,hasZ:s,features:l,geometryType:a,exceededTransferLimit:u,uniqueIdField:p,queryGeometry:d,queryGeometryType:c}=e,h={features:$([],l,a,s,o),fields:i,geometryType:a,objectIdFieldName:t,spatialReference:r,uniqueIdField:p,queryGeometry:Q(d,c,!1,!1)};return n&&(h.transform=n),u&&(h.exceededTransferLimit=u),o&&(h.hasM=o),s&&(h.hasZ=s),h}function V(e,t){const r=new p.A,{hasM:i,hasZ:o,features:s,objectIdFieldName:l,spatialReference:a,geometryType:u,exceededTransferLimit:d,transform:c,fields:y}=e;return y&&(r.fields=y),r.geometryType=u??null,r.objectIdFieldName=l??t??null,r.spatialReference=a??null,r.objectIdFieldName?(s&&U(r.features,s,u,o,i,r.objectIdFieldName),d&&(r.exceededTransferLimit=d),i&&(r.hasM=i),o&&(r.hasZ=o),c&&(r.transform=c),r):(h().error(new n.A("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),r)}function K(e){const{transform:t,features:r,hasM:n,hasZ:i}=e;if(!t)return e;for(const e of r)null!=e.geometry&&ne(e.geometry,e.geometry,n,i,t),null!=e.centroid&&ne(e.centroid,e.centroid,n,i,t);return e.transform=null,e}function H(e,t){const{geometryType:r,features:n,hasM:i,hasZ:o}=t;if(!e)return t;for(let t=0;t<n.length;t++){const s=n[t],l=s.weakClone();l.geometry=new d.A,W(l.geometry,s.geometry,i,o,r,e),s.centroid&&(l.centroid=new d.A,W(l.centroid,s.centroid,i,o,"esriGeometryPoint",e)),n[t]=l}return t.transform=e,t}function W(e,t,r,n,i,o,s=r,l=n){if(le(e),!t?.coords.length)return null;const a=y[i],{coords:u,lengths:p}=t,d=c(r,n),h=c(r&&s,n&&l),f=v(r,n,s,l);if(!p.length)return f(e.coords,u,0,0,F(o,u[0]),M(o,u[1])),le(e,d,0),e;let m,g,w,T,_=0,x=0,I=x;for(const t of p){if(t<a)continue;let r=0;x=I,w=m=F(o,u[_]),T=g=M(o,u[_+1]),f(e.coords,u,x,_,w,T),r++,_+=d,x+=h;for(let n=1;n<t;n++,_+=d)w=F(o,u[_]),T=M(o,u[_+1]),w===m&&T===g||(f(e.coords,u,x,_,w-m,T-g),x+=h,r++,m=w,g=T);r>=a&&(e.lengths.push(r),I=x)}return ae(e.coords,I),e.coords.length?e:null}function X(e,t,r,n,i,o,s=r,l=n){if(le(e),!t?.coords.length)return null;const a=y[i],{coords:u,lengths:p}=t,d=c(r,n),h=c(r&&s,n&&l),f=v(r,n,s,l);if(!p.length)return f(e.coords,u,0,0,u[0],u[1]),le(e,d,0),e;let m=0;const g=o*o;for(const t of p){if(t<a){m+=t*d;continue}const r=e.coords.length/h,n=m,i=m+(t-1)*d;f(e.coords,u,e.coords.length,n,u[n],u[n+1]),te(e.coords,u,d,g,f,n,i),f(e.coords,u,e.coords.length,i,u[i],u[i+1]);const o=e.coords.length/h-r;o>=a?e.lengths.push(o):ae(e.coords,r*h),m+=t*d}return e.coords.length?e:null}function ee(e,t,r,n){const i=e[t],o=e[t+1],s=e[r],l=e[r+1],a=e[n],u=e[n+1];let p=s,d=l,c=a-p,h=u-d;if(0!==c||0!==h){const e=((i-p)*c+(o-d)*h)/(c*c+h*h);e>1?(p=a,d=u):e>0&&(p+=c*e,d+=h*e)}return c=i-p,h=o-d,c*c+h*h}function te(e,t,r,n,i,o,s){let l,a=n,u=0;for(let e=o+r;e<s;e+=r)l=ee(t,e,o,s),l>a&&(u=e,a=l);a>n&&(u-o>r&&te(e,t,r,n,i,o,u),i(e,t,e.length,u,t[u],t[u+1]),s-u>r&&te(e,t,r,n,i,u,s))}function re(e,t,r,n){if(!t?.coords?.length)return null;const i=c(r,n);let o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,p=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=i){const r=e[t],n=e[t+1];o=Math.min(o,r),u=Math.max(u,r),a=Math.min(a,n),p=Math.max(p,n)}}return(0,s.is)(e)?(0,s.BI)(e,o,a,u,p):(0,l.fA)(o,a,u,p,e),e}function ne(e,t,r,n,i){const{coords:s,lengths:l}=t,a=c(r,n);if(!s.length)return e!==t&&le(e),e;(0,o.Lw)(i);const{originPosition:u,scale:p,translate:d}=i,h=ue;h.originPosition=u;const y=h.scale;y[0]=p[0]??1,y[1]=-(p[1]??1),y[2]=p[2]??1,y[3]=p[3]??1;const f=h.translate;if(f[0]=d[0]??0,f[1]=d[1]??0,f[2]=d[2]??0,f[3]=d[3]??0,!l.length){for(let t=0;t<a;++t)e.coords[t]=T(h,s[t],t);return e!==t&&le(e,a,0),e}let m=0;for(let t=0;t<l.length;t++){const r=l[t];e.lengths[t]=r;for(let t=0;t<a;++t)e.coords[m+t]=T(h,s[m+t],t);let n=e.coords[m],i=e.coords[m+1];m+=a;for(let t=1;t<r;t++,m+=a){n+=s[m]*y[0],i+=s[m+1]*y[1],e.coords[m]=n,e.coords[m+1]=i;for(let t=2;t<a;++t)e.coords[m+t]=T(h,s[m+t],t)}}return e!==t&&le(e,s.length,l.length),e}function ie(e,t,r,n,i,o){if(le(e),e.lengths.push(...t.lengths),r===i&&n===o)for(let r=0;r<t.coords.length;r++)e.coords.push(t.coords[r]);else{const s=c(r,n),l=v(r,n,i,o),a=t.coords;for(let t=0;t<a.length;t+=s)l(e.coords,a,e.coords.length,t,a[t],a[t+1])}return e}function oe(e,t,r,n){let i=0,o=e[n*t],s=e[n*(t+1)];for(let l=1;l<r;l++){const r=o+e[n*(t+l)],a=s+e[n*(t+l)+1],u=(r-o)*(a+s);o=r,s=a,i+=u}return.5*i}function se(e,t){const{coords:r,lengths:n}=e;let i=0,o=0;for(let e=0;e<n.length;e++){const s=n[e];o+=oe(r,i,s,t),i+=s}return Math.abs(o)}function le(e,t=0,r=0){ae(e.lengths,r),ae(e.coords,t)}function ae(e,t=0){e.length!==t&&(e.length=t)}const ue={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},52136:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(90237),i=r(10107),o=(r(44208),r(53966),r(87811),r(40608));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.MZ)({type:String})],t.prototype,"apiKey",null),t=(0,n._)([(0,o.$)("esri.layers.mixins.APIKeyMixin")],t),t}},87718:(e,t,r)=>{r.d(t,{F:()=>S});var n,i=r(90237),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),l=r(49186),a=r(25482),u=r(93637),p=r(76369),d=r(59456),c=r(60945),h=r(66552),y=r(4718),f=r(61956);const m=new h.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new h.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=n=class extends a.oY{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:n,timeExtent:i,objectIds:o,units:s,distance:l}=this;return new f.A({geometry:(0,y.o8)(r),objectIds:(0,y.o8)(o),spatialRelationship:n,timeExtent:(0,y.o8)(i),where:t,units:s,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:i,objectIds:o,units:s,distance:l}=this;return new n({geometry:(0,y.o8)(t),objectIds:(0,y.o8)(o),spatialRelationship:r,timeExtent:(0,y.o8)(i),where:e,units:s,distance:l})}};(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,i._)([(0,o.MZ)({types:d.yR,json:{write:!0}})],w.prototype,"geometry",void 0),(0,i._)([(0,o.MZ)({type:m.apiValues,json:{name:"spatialRel",read:{reader:m.read},write:{allowNull:!1,writer:m.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,i._)([(0,o.MZ)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,i._)([(0,o.MZ)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,i._)([(0,o.MZ)({type:c.A,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=n=(0,i._)([(0,s.$)("esri.layers.support.FeatureFilter")],w);const v=w;var F;const M={read:{reader:p.LF},write:{writer:p.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},T={read:{reader:p.LF},write:{writer:p.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},_={name:"showExcludedLabels",default:!0};let x=F=class extends a.oY{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new l.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new F({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,i._)([(0,o.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,n){const i=e?.write({},n);i&&0!==Object.keys(i).length?(0,u.sM)(r,i,t):(0,u.sM)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,i._)([(0,o.MZ)({json:{write:!0,origins:{"web-map":M,"portal-item":M}}})],x.prototype,"includedEffect",void 0),(0,i._)([(0,o.MZ)({json:{write:!0,origins:{"web-map":T,"portal-item":T}}})],x.prototype,"excludedEffect",void 0),(0,i._)([(0,o.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":_,"portal-item":_}}})],x.prototype,"excludedLabelsVisible",void 0),x=F=(0,i._)([(0,s.$)("esri.layers.support.FeatureEffect")],x);const I=x,b={write:{allowNull:!0}},S=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,i._)([(0,o.MZ)({type:I,json:{origins:{"web-map":b,"portal-item":b}}})],t.prototype,"featureEffect",void 0),t=(0,i._)([(0,s.$)("esri.layers.mixins.FeatureEffectLayer")],t),t}},32756:(e,t,r)=>{r.d(t,{f:()=>p});var n=r(90237),i=r(93637),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608)),l=r(91880);function a(e,t,r){if(!e)return null;const n=e.find((e=>!!e.field));if(!n)return null;const i=new l.A;return i.read(n,r),[i]}function u(e,t,r,n){const o=e.find((e=>!!e.field));o&&(0,i.sM)(r,[o.toJSON()],t)}const p=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,n._)([(0,o.MZ)({type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:a},write:{target:"layerDefinition.orderBy",writer:u}}})],t.prototype,"orderBy",void 0),t=(0,n._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},82935:(e,t,r)=>{r.d(t,{e:()=>c});var n=r(90237),i=r(60945),o=r(70668),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),u=r(30524),p=r(96184),d=r(73133);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=d.j.fromJSON(r.timeOffsetUnits);return n&&i?new o.A({value:n,unit:i}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n._)([(0,s.MZ)({type:i.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,n._)([(0,s.MZ)({type:o.A})],t.prototype,"timeOffset",void 0),(0,n._)([(0,l.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,n._)([(0,s.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,n._)([(0,s.MZ)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,n._)([(0,a.$)("esri.layers.mixins.TemporalLayer")],t),t}},29005:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(90237),i=r(69540),o=r(66552),s=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const u=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,i.O)(s.oY)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,n._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,n._)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,n._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,n._)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,n._)([(0,a.$)("esri.layers.support.FeatureTemplate")],p);const d=p},33143:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(90237),i=r(69540),o=r(25482),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),u=r(43937),p=r(72088),d=r(29005);let c=class extends((0,i.O)(o.oY)){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,p.rS)(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.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,n._)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,n._)([(0,l.w)("domains")],c.prototype,"readDomains",null),(0,n._)([(0,u.K)("domains")],c.prototype,"writeDomains",null),(0,n._)([(0,s.MZ)({type:[d.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,n._)([(0,a.$)("esri.layers.support.FeatureType")],c);const h=c},95466:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(49186),i=r(25482),o=r(53966),s=r(91869),l=r(3330),a=r(30524),u=r(56400),p=r(96285);const d=new Map;class c{static fromJSON(e){return new c(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new c(e.fields??[],m(e))}static fromLayerJSON(e){return new c(e.fields??[],m(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,n=y(t);if(t&&n){const i=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(n,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(o.A.getLogger("esri.layers.support.FieldsIndex").error(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):f.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?l.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,(()=>p.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,i.Wj)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const f=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function m(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,u.ZS)(e.dateFieldsTimeReference):null,a=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.dateFieldsTimeReference?(0,u.ZS)(i.dateFieldsTimeReference):l??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,u.ZS)(n.timeReference):l:null,d=new Map([[h(i?.creationDateField??""),a],[h(i?.editDateField??""),a],[h(o),p],[h(s),p]]);for(const{name:n,type:i}of e.fields)if(f.has(i))t.set(n,u.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(n,null);else if(r)t.set(n,u.L5);else{const e=d.get(h(n??""))??l;t.set(n,e)}return t}},91880:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(90237),o=r(66552),s=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const u=new o.J({asc:"ascending",desc:"descending"});let p=n=class extends s.oY{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i._)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"valueExpression",void 0),(0,i._)([(0,l.MZ)({type:u.apiValues,json:{read:u.read,write:u.write}})],p.prototype,"order",void 0),p=n=(0,i._)([(0,a.$)("esri.layers.support.OrderByInfo")],p);const d=p},96184:(e,t,r)=>{r.d(t,{A:()=>f});var n=r(90237),i=r(60945),o=r(70668),s=r(69540),l=r(25482),a=r(10107),u=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),d=r(43937),c=r(56400);function h(e,t){return o.A.fromJSON({value:e,unit:t})}let y=class extends((0,s.O)(l.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),n=new Date(t.timeExtent[1]);return new i.A({start:r,end:n})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?h(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?h(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n._)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n._)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n._)([(0,a.MZ)({type:i.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n._)([(0,u.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n._)([(0,d.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n._)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n._)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n._)([(0,d.K)("interval")],y.prototype,"writeInterval",null),(0,n._)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n._)([(0,a.MZ)((0,c.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n._)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),y=(0,n._)([(0,p.$)("esri.layers.support.TimeInfo")],y);const f=y},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},73133:(e,t,r)=>{r.d(t,{j:()=>n});const n=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},22671:(e,t,r)=>{r.d(t,{A:()=>v});var n,i=r(90237),o=r(59456),s=r(52106),l=r(66552),a=r(25482),u=r(4718),p=r(10107),d=(r(44208),r(53966),r(36005)),c=r(40608),h=r(43937),y=r(16930),f=r(65864),m=r(20437);const g=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends a.oY{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=y.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const i=e[t],o=s.A.fromJSON(i),l=i.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=r);const a=i.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],n=a[e],i=n?.spatialReference;null==t||i||(t.spatialReference=r)}n.push(o)}return n}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,f.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=y.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,u.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*o+n),(e=>i-e*s),l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(l[0]),i=r(l[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,f.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,l;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,p.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i._)([(0,d.w)("features")],w.prototype,"readFeatures",null),(0,i._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i._)([(0,h.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i._)([(0,p.MZ)({types:o.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i._)([(0,d.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i._)([(0,p.MZ)({type:y.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i._)([(0,h.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i._)([(0,p.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i._)([(0,c.$)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const v=w}}]);
|