// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built require({cache:{"esri/rest/support/FindImagesParameters":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/Point".split(" "),function(a,b,c,d,g,m,f,p,r){b=class extends b.ClonableMixin(c.JSONSupport){constructor(){super(...arguments);this.maxCount=this.where=this.objectIds=this.toGeometry=this.fromGeometry= null}};a.__decorate([d.property({type:r,json:{read:!0}})],b.prototype,"fromGeometry",void 0);a.__decorate([d.property({type:r,json:{read:!0,write:!0}})],b.prototype,"toGeometry",void 0);a.__decorate([d.property({json:{write:!0}})],b.prototype,"objectIds",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"where",void 0);a.__decorate([d.property({type:Number,json:{write:!0}})],b.prototype,"maxCount",void 0);return b=a.__decorate([p.subclass("esri.rest.support.FindImagesParameters")], b)})},"esri/rest/support/FindImagesResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./ImageInspectionInfo".split(" "),function(a,b,c,d,g,m,f,p){b=class extends b.JSONSupport{constructor(){super(...arguments);this.images=null}};a.__decorate([c.property({type:[p],json:{write:!0}})],b.prototype,"images",void 0);return b=a.__decorate([f.subclass("esri.rest.support.FindImagesResult")], b)})},"esri/rest/support/ImageInspectionInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/Point ./CameraInfoMixin".split(" "),function(a,b,c,d,g,m,f,p,r,v){b=class extends v.CameraInfoMixin(b.JSONSupport){constructor(){super(...arguments);this.orientation=this.perspectiveCenter= this.center=this.cameraID=this.acquisitionDate=this.referenceUri=this.id=null}writeAcquisitionDate(t,u){u.acquisitionDate=t?.getTime()}};a.__decorate([c.property({json:{write:!0}})],b.prototype,"id",void 0);a.__decorate([c.property({json:{name:"uri",write:!0}})],b.prototype,"referenceUri",void 0);a.__decorate([c.property({type:Date,json:{write:!0}})],b.prototype,"acquisitionDate",void 0);a.__decorate([p.writer("acquisitionDate")],b.prototype,"writeAcquisitionDate",null);a.__decorate([c.property({json:{write:!0}})], b.prototype,"cameraID",void 0);a.__decorate([c.property({type:r,json:{write:!0}})],b.prototype,"center",void 0);a.__decorate([c.property({type:r,json:{write:!0}})],b.prototype,"perspectiveCenter",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"orientation",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageInspectionInfo")],b)})},"esri/rest/support/CameraInfoMixin":function(){define("exports ../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "), function(a,b,c,d,g,m,f){a.CameraInfoMixin=p=>{p=class extends p{constructor(){super(...arguments);this.cols=this.rows=this.pixelSize=this.focalLength=this.model=this.make=null}};b.__decorate([c.property({json:{write:!0}})],p.prototype,"make",void 0);b.__decorate([c.property({json:{write:!0}})],p.prototype,"model",void 0);b.__decorate([c.property({json:{write:!0}})],p.prototype,"focalLength",void 0);b.__decorate([c.property({json:{write:!0}})],p.prototype,"pixelSize",void 0);b.__decorate([c.property({json:{write:!0}})], p.prototype,"rows",void 0);b.__decorate([c.property({json:{write:!0}})],p.prototype,"cols",void 0);return p=b.__decorate([f.subclass("esri.rest.support.CameraInfoMixin")],p)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/rest/support/ImageAngleParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass ../../geometry/Point ../../geometry/SpatialReference".split(" "), function(a,b,c,d,g,m,f,p,r){var v;b=v=class extends c.JSONSupport{constructor(t){super(t);this.rasterId=this.spatialReference=this.point=this.angleNames=null}clone(){return new v(d.clone({angleNames:this.angleNames,point:this.point,spatialReference:this.spatialReference,rasterId:this.rasterId}))}};a.__decorate([g.property({type:[String],json:{name:"angleName",write:!0}})],b.prototype,"angleNames",void 0);a.__decorate([g.property({type:p,json:{write:!0}})],b.prototype,"point",void 0);a.__decorate([g.property({type:r, json:{write:!0}})],b.prototype,"spatialReference",void 0);a.__decorate([g.property({type:m.Integer,json:{write:!0}})],b.prototype,"rasterId",void 0);return b=v=a.__decorate([f.subclass("esri.rest.support.ImageAngleParameters")],b)})},"esri/rest/support/ImageAngleResult":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/SpatialReference".split(" "), function(a,b,c,d,g,m,f,p,r){b=class extends c.JSONSupport{constructor(v){super(v);this.spatialReference=this.up=this.north=null}};a.__decorate([d.property({type:Number,json:{write:!0}})],b.prototype,"north",void 0);a.__decorate([d.property({type:Number,json:{write:!0}})],b.prototype,"up",void 0);a.__decorate([d.property({type:r,json:{write:!0}})],b.prototype,"spatialReference",void 0);return b=a.__decorate([p.subclass("esri.rest.support.ImageAngleResult")],b)})},"esri/rest/support/ImageAreaParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/lang ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./BaseImageMeasureParameters".split(" "), function(a,b,c,d,g,m,f,p,r,v,t){var u;m=u=class extends t.BaseImageMeasureParameters{constructor(){super(...arguments);this.type="area-perimeter";this.geometry=null;this.is3D=!1;this.linearUnit="meters";this.areaUnit="square-meters"}writeGeometry(w,y,B){null!=w&&(y.geometryType=v.getJsonType(w),y[B]=w.toJSON())}get measureOperation(){return this.is3D?"area-and-perimeter-3D":"area-and-perimeter"}clone(){return new u(c.clone({geometry:this.geometry,is3D:this.is3D,linearUnit:this.linearUnit,areaUnit:this.areaUnit, mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};a.__decorate([g.property({types:b.geometryTypes,json:{name:"fromGeometry",read:!0,write:!0}})],m.prototype,"geometry",void 0);a.__decorate([r.writer("geometry")],m.prototype,"writeGeometry",null);a.__decorate([g.property({type:t.measureOperationJSONMap.apiValues,json:{write:t.measureOperationJSONMap.write}})],m.prototype,"measureOperation",null);a.__decorate([g.property({json:{read:!0}})],m.prototype,"is3D",void 0);a.__decorate([g.property({type:String, json:{read:d.lengthUnitsJSONMap.read,write:d.lengthUnitsJSONMap.write}})],m.prototype,"linearUnit",void 0);a.__decorate([g.property({type:String,json:{read:d.areaUnitsJSONMap.read,write:d.areaUnitsJSONMap.write}})],m.prototype,"areaUnit",void 0);return m=u=a.__decorate([p.subclass("esri.rest.support.ImageAreaParameters")],m)})},"esri/rest/support/BaseImageMeasureParameters":function(){define("exports ../../chunks/tslib.es6 ../../geometry ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../layers/support/MosaicRule ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u){c=new d.JSONMap({esriMensurationPoint:"point",esriMensurationCentroid:"centroid",esriMensurationDistanceAndAngle:"distance-and-angle",esriMensurationAreaAndPerimeter:"area-and-perimeter",esriMensurationHeightFromBaseAndTop:"base-and-top",esriMensurationHeightFromBaseAndTopShadow:"base-and-top-shadow",esriMensurationHeightFromTopAndTopShadow:"top-and-top-shadow",esriMensurationPoint3D:"point-3D",esriMensurationCentroid3D:"centroid-3D",esriMensurationDistanceAndAngle3D:"distance-and-angle-3D", esriMensurationAreaAndPerimeter3D:"area-and-perimeter-3D"});a.BaseImageMeasureParameters=class extends g.JSONSupport{constructor(){super(...arguments);this.pixelSize=this.mosaicRule=this.measureOperation=this.type=null;this.raster=void 0}};b.__decorate([m.property()],a.BaseImageMeasureParameters.prototype,"type",void 0);b.__decorate([m.property({type:c.apiValues,json:{read:c.read,write:c.write}})],a.BaseImageMeasureParameters.prototype,"measureOperation",void 0);b.__decorate([m.property({type:t,json:{write:!0}})], a.BaseImageMeasureParameters.prototype,"mosaicRule",void 0);b.__decorate([m.property({type:u,json:{write:!0}})],a.BaseImageMeasureParameters.prototype,"pixelSize",void 0);b.__decorate([m.property({json:{write:!0}})],a.BaseImageMeasureParameters.prototype,"raster",void 0);a.BaseImageMeasureParameters=b.__decorate([v.subclass("esri.rest.support.BaseImageMeasureParameters")],a.BaseImageMeasureParameters);a.measureOperationJSONMap=c;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/MosaicRule":function(){define("../../chunks/tslib.es6 ../../core/deprecate ../../core/jsonMap ../../core/JSONSupport ../../core/lang ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/accessorSupport/decorators/cast ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../core/accessorSupport/ensureType ../../geometry/Point ./DimensionalDefinition ./RasterFunction".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u,w,y,B){var q;const A=c.strict()({MT_FIRST:"first",MT_LAST:"last",MT_MIN:"min",MT_MAX:"max",MT_MEAN:"mean",MT_BLEND:"blend",MT_SUM:"sum"}),z=c.strict()({esriMosaicNone:"none",esriMosaicCenter:"center",esriMosaicNadir:"nadir",esriMosaicViewpoint:"viewpoint",esriMosaicAttribute:"attribute",esriMosaicLockRaster:"lock-raster",esriMosaicNorthwest:"northwest",esriMosaicSeamline:"seamline"});c=q=class extends d.JSONSupport{constructor(l){super(l);this.ascending=!0;this.where= this.viewpoint=this.sortValue=this.sortField=this.operation=this.objectIds=this.multidimensionalDefinition=this.method=this.lockRasterIds=this.itemRasterFunction=null}readAscending(l,x){return null!=x.ascending?x.ascending:null!=x.sortAscending?x.sortAscending:!0}get itemRenderingRule(){b.deprecatedProperty(m.getLogger(this),"itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0});return this._get("itemRasterFunction")}set itemRenderingRule(l){b.deprecatedProperty(m.getLogger(this), "itemRenderingRule",{replacement:"itemRasterFunction",version:"4.27",warnOnce:!0});this._set("itemRasterFunction",l)}readMethod(l,x){l=x.mosaicMethod||x.defaultMosaicMethod;switch(l?l.toLowerCase().replace("esrimosaic",""):""){case "byattribute":case "attribute":l="esriMosaicAttribute";break;case "lockraster":l="esriMosaicLockRaster";break;case "center":l="esriMosaicCenter";break;case "northwest":l="esriMosaicNorthwest";break;case "nadir":l="esriMosaicNadir";break;case "viewpoint":l="esriMosaicViewpoint"; break;case "seamline":l="esriMosaicSeamline";break;case "none":l="esriMosaicNone";break;default:l="esriMosaicNone"}return z.fromJSON(l)}writeMultidimensionalDefinition(l,x,D){null!=l&&(l=l.filter(({variableName:E,dimensionName:F})=>E&&"*"!==E||F),l.length&&(x[D]=l.map(E=>E.toJSON())))}readOperation(l,x){l=x.mosaicOperation;x=x.mosaicOperator?.toLowerCase();x=l||(x?A.toJSON(x):null);return A.fromJSON(x)||"first"}castSortValue(l){return null==l||"string"===typeof l||"number"===typeof l?l:`${l}`}clone(){return new q({ascending:this.ascending, itemRasterFunction:g.clone(this.itemRasterFunction),lockRasterIds:g.clone(this.lockRasterIds),method:this.method,multidimensionalDefinition:g.clone(this.multidimensionalDefinition),objectIds:g.clone(this.objectIds),operation:this.operation,sortField:this.sortField,sortValue:this.sortValue,viewpoint:g.clone(this.viewpoint),where:this.where})}};a.__decorate([f.property({type:Boolean,json:{write:!0}})],c.prototype,"ascending",void 0);a.__decorate([r.reader("ascending",["ascending","sortAscending"])], c.prototype,"readAscending",null);a.__decorate([f.property({type:B,json:{name:"itemRenderingRule",write:!0}})],c.prototype,"itemRasterFunction",void 0);a.__decorate([f.property({type:B})],c.prototype,"itemRenderingRule",null);a.__decorate([f.property({type:[u.Integer],json:{write:{overridePolicy(){return{enabled:"lock-raster"===this.method}}}}})],c.prototype,"lockRasterIds",void 0);a.__decorate([f.property({type:String,json:{type:z.jsonValues,write:{target:"mosaicMethod",writer:z.write}}})],c.prototype, "method",void 0);a.__decorate([r.reader("method",["mosaicMethod","defaultMosaicMethod"])],c.prototype,"readMethod",null);a.__decorate([f.property({type:[y],json:{write:!0}})],c.prototype,"multidimensionalDefinition",void 0);a.__decorate([t.writer("multidimensionalDefinition")],c.prototype,"writeMultidimensionalDefinition",null);a.__decorate([f.property({type:[u.Integer],json:{name:"fids",write:!0}})],c.prototype,"objectIds",void 0);a.__decorate([f.property({json:{type:A.jsonValues,read:{reader:A.read}, write:{target:"mosaicOperation",writer:A.write}}})],c.prototype,"operation",void 0);a.__decorate([r.reader("operation",["mosaicOperation","mosaicOperator"])],c.prototype,"readOperation",null);a.__decorate([f.property({type:String,json:{write:{overridePolicy(){return{enabled:"attribute"===this.method}}}}})],c.prototype,"sortField",void 0);a.__decorate([f.property({type:[String,Number],json:{write:{allowNull:!0,overridePolicy(){return{enabled:"attribute"===this.method,allowNull:!0}}}}})],c.prototype, "sortValue",void 0);a.__decorate([p.cast("sortValue")],c.prototype,"castSortValue",null);a.__decorate([f.property({type:w,json:{write:!0}})],c.prototype,"viewpoint",void 0);a.__decorate([f.property({type:String,json:{write:!0}})],c.prototype,"where",void 0);return c=q=a.__decorate([v.subclass("esri.layers.support.MosaicRule")],c)})},"esri/layers/support/DimensionalDefinition":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/accessorSupport/decorators/subclass".split(" "), function(a,b,c,d,g,m){var f;b=f=class extends b.JSONSupport{constructor(p){super(p);this.dimensionName=this.variableName=null;this.values=[];this.isSlice=!1}clone(){return new f({variableName:this.variableName,dimensionName:this.dimensionName,values:c.clone(this.values),isSlice:this.isSlice})}};a.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"variableName",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],b.prototype,"dimensionName",void 0);a.__decorate([d.property({type:g.types.array(g.types.oneOf([g.types.native(Number), g.types.array(g.types.native(Number))])),json:{write:!0}})],b.prototype,"values",void 0);a.__decorate([d.property({type:Boolean,json:{write:!0}})],b.prototype,"isSlice",void 0);return b=f=a.__decorate([m.subclass("esri.layers.support.DimensionalDefinition")],b)})},"esri/layers/support/RasterFunction":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ./RasterFunctionTemplate".split(" "), function(a,b,c,d,g,m,f,p,r,v,t){var u;const w=new Set(["raster","raster2","dem","fillraster"]),y=new Set(["rasters"]),B=l=>l?.rasterFunction?z.fromJSON(l):l,q=l=>l&&l instanceof z?l.toJSON():l,A=l=>l?.functionName&&!l.declaredClass?new z(l):l;g={types:{key:"type",base:null,typeMap:{RasterFunctionTemplate:t}},json:{write:!0,name:"rasterFunctionDefinition"}};let z=u=class extends b.JSONSupport{constructor(l){super(l);this.functionName=null;this.outputPixelType="unknown";this.functionDefinition=this.variableName= null}set functionArguments(l){if(l){const x=Object.keys(l);if(x.some(D=>{var E;if(E=w.has(D.toLowerCase()))D=l[D],E=D?.functionName&&!D.declaredClass;return E})||x.some(D=>y.has(D.toLowerCase())&&Array.isArray(l[D])&&l[D].some(E=>E?.functionName&&!E.declaredClass))){l=c.clone(l);for(const D of x)w.has(D.toLowerCase())?l[D]=A(l[D]):y.has(D.toLowerCase())&&Array.isArray(l[D])&&(l[D]=l[D].map(E=>A(E)))}}this._set("functionArguments",l)}readFunctionArguments(l){if(null==l)var x=null;else{l=c.clone(l); var D={};for(x of Object.keys(l))w.has(x.toLowerCase())?D[x]=B(l[x]):y.has(x.toLowerCase())&&Array.isArray(l[x])?D[x]=l[x].map(B):D[x]=l[x];x=D}return x}writeFunctionArguments(l,x,D){const E={};for(const F of Object.keys(l))w.has(F.toLowerCase())?E[F]=q(l[F]):y.has(F.toLowerCase())&&Array.isArray(l[F])?E[F]=l[F].map(q):E[F]=q(l[F]);x[D]=E}readFunctionName(l,x){l=x.rasterFunctionInfos;const D=x.name;return D?D:l?.length&&"None"!==l[0].name?l[0].name:x.rasterFunctionDefinition?x.rasterFunctionDefinition.name: x.rasterFunction}get rasterFunctionDefinition(){return this.functionDefinition?.toJSON()}set rasterFunctionDefinition(l){this.functionDefinition=l?t.fromJSON(l):null}get hasClipFunction(){return this.rasterFunctionDefinition?JSON.stringify(this.rasterFunctionDefinition).includes('"type":"ClipFunction"'):JSON.stringify(this).includes('"rasterFunction":"Clip"')}clone(){return new u({functionName:this.functionName,functionArguments:c.clone(this.functionArguments),outputPixelType:this.outputPixelType, variableName:this.variableName,rasterFunctionDefinition:c.clone(this.rasterFunctionDefinition)})}};a.__decorate([d.property({json:{type:Object,name:"rasterFunctionArguments"}})],z.prototype,"functionArguments",null);a.__decorate([p.reader("functionArguments")],z.prototype,"readFunctionArguments",null);a.__decorate([v.writer("functionArguments")],z.prototype,"writeFunctionArguments",null);a.__decorate([d.property({json:{type:String,write:{target:"rasterFunction"}}})],z.prototype,"functionName",void 0); a.__decorate([p.reader("functionName",["rasterFunction","rasterFunctionInfos","rasterFunctionDefinition"])],z.prototype,"readFunctionName",null);a.__decorate([f.enumeration({C128:"c128",C64:"c64",F32:"f32",F64:"f64",S16:"s16",S32:"s32",S8:"s8",U1:"u1",U16:"u16",U2:"u2",U32:"u32",U4:"u4",U8:"u8",UNKNOWN:"unknown"},{ignoreUnknown:!1}),d.property({json:{default:"unknown"}})],z.prototype,"outputPixelType",void 0);a.__decorate([d.property({type:String,json:{read:!0,write:!0}})],z.prototype,"variableName", void 0);a.__decorate([d.property()],z.prototype,"rasterFunctionDefinition",null);a.__decorate([d.property(g)],z.prototype,"functionDefinition",void 0);a.__decorate([d.property()],z.prototype,"hasClipFunction",null);return z=u=a.__decorate([r.subclass("esri.layers.support.RasterFunction")],z)})},"esri/layers/support/RasterFunctionTemplate":function(){define("../../chunks/tslib.es6 ../../core/jsonMap ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./RasterFunctionInfo ./RasterFunctionProperties".split(" "), function(a,b,c,d,g,m,f,p,r,v){b=new b.JSONMap({0:"mosaic",1:"item",2:"item-group"},{useNumericKeys:!0});c=class extends c.JSONSupport{constructor(){super(...arguments);this.functionType="mosaic";this.type="RasterFunctionTemplate"}};a.__decorate([d.property({type:[String],json:{write:!0}})],c.prototype,"aliases",void 0);a.__decorate([d.property({type:Object,json:{write:!0}})],c.prototype,"arguments",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"description",void 0); a.__decorate([d.property({type:r,json:{write:!0,name:"function"}})],c.prototype,"functionInfo",void 0);a.__decorate([d.property({type:b.apiValues,json:{type:[0,1,2],read:b.read,write:b.write}})],c.prototype,"functionType",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"group",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"help",void 0);a.__decorate([d.property({type:Number,json:{type:g.Integer,write:!0,name:"_object_id"}})],c.prototype, "id",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"name",void 0);a.__decorate([d.property({type:String,json:{write:!0,name:"definition"}})],c.prototype,"queryDefinition",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"tag",void 0);a.__decorate([d.property({type:v,json:{write:!0}})],c.prototype,"properties",void 0);a.__decorate([d.property({type:String,json:{write:!0}})],c.prototype,"thumbnail",void 0);a.__decorate([d.property({type:String, json:{write:!0}})],c.prototype,"thumbnailEx",void 0);a.__decorate([d.property({json:{type:["RasterFunctionTemplate"],write:!0}})],c.prototype,"type",void 0);return c=a.__decorate([p.subclass("esri.layers.support.RasterFunctionTemplate")],c)})},"esri/layers/support/RasterFunctionInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./rasterEnums".split(" "), function(a,b,c,d,g,m,f,p){b=class extends b.JSONSupport{constructor(){super(...arguments);this.pixelType="unknown"}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"description",void 0);a.__decorate([c.property({type:d.Integer,json:{type:d.Integer,write:!0,name:"_object_id"}})],b.prototype,"id",void 0);a.__decorate([c.property({type:String,json:{type:p.pixelTypeKebabDict.jsonValues,read:p.pixelTypeKebabDict.read, write:p.pixelTypeKebabDict.write}})],b.prototype,"pixelType",void 0);a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"type",void 0);return b=a.__decorate([f.subclass("esri.layers.support.RasterFunctionInfo")],b)})},"esri/layers/support/rasterEnums":function(){define(["exports","../../core/jsonMap"],function(a,b){const c=b.strict()({RSP_NearestNeighbor:"nearest",RSP_BilinearInterpolation:"bilinear",RSP_CubicConvolution:"cubic",RSP_Majority:"majority"}),d=b.strict()({esriNoDataMatchAny:"any", esriNoDataMatchAll:"all"});b=b.strict()({U1:"u1",U2:"u2",U4:"u4",U8:"u8",S8:"s8",U16:"u16",S16:"s16",U32:"u32",S32:"s32",F32:"f32",F64:"f64",C64:"c64",C128:"c128",UNKNOWN:"unknown"});a.interpolationKebab=c;a.noDataInterpretationKebab=d;a.pixelTypeKebabDict=b;Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/layers/support/RasterFunctionProperties":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ./RasterFunctionVariable".split(" "), function(a,b,c,d,g,m,f,p){g={key:"type",base:null,typeMap:{RasterFunctionVariable:p}};b=class extends b.JSONSupport{};a.__decorate([c.property({types:g,json:{types:g,name:"MatchVariable"}})],b.prototype,"matchVariable",void 0);a.__decorate([c.property({types:g,json:{types:g,name:"UnionDimension"}})],b.prototype,"unionDimension",void 0);a.__decorate([c.property({type:Number,json:{type:d.Integer,write:!0,name:"_object_id"}})],b.prototype,"id",void 0);a.__decorate([c.property({type:String,json:{write:!0}})], b.prototype,"type",void 0);return b=a.__decorate([f.subclass("esri.layers.support.RasterFunctionProperties")],b)})},"esri/layers/support/RasterFunctionVariable":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,d,g,m,f){b=class extends b.JSONSupport{constructor(){super(...arguments);this.isPublic= this.isDataset=!1;this.type="RasterFunctionVariable"}};a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([c.property({type:Number,json:{type:d.Integer,write:!0,name:"_object_id"}})],b.prototype,"id",void 0);a.__decorate([c.property({type:Boolean,json:{write:!0}})],b.prototype,"isDataset",void 0);a.__decorate([c.property({type:Boolean,json:{write:!0}})],b.prototype,"isPublic",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"value",void 0); a.__decorate([c.property({type:String,json:{write:!0}})],b.prototype,"type",void 0);return b=a.__decorate([f.subclass("esri.layers.support.RasterFunctionVariable")],b)})},"esri/rest/support/ImageAreaResult":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./BaseImageMeasureResult".split(" "),function(a,b,c,d,g,m,f){c=class extends f.BaseImageMeasureResult{constructor(){super(...arguments); this.perimeter=this.area=null}};a.__decorate([b.property({type:f.ImageMeasureResultAreaValue,json:{read:!0,write:!0}})],c.prototype,"area",void 0);a.__decorate([b.property({type:f.ImageMeasureResultLengthValue,json:{read:!0,write:!0}})],c.prototype,"perimeter",void 0);return c=a.__decorate([m.subclass("esri.rest.support.ImageAreaResult")],c)})},"esri/rest/support/BaseImageMeasureResult":function(){define("exports ../../chunks/tslib.es6 ../../core/JSONSupport ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "), function(a,b,c,d,g,m,f,p,r){m=class extends c.JSONSupport{constructor(){super(...arguments);this.uncertainty=this.displayValue=this.value=null}};b.__decorate([g.property({type:Number,json:{read:!0,write:!0}})],m.prototype,"value",void 0);b.__decorate([g.property({type:String,json:{read:!0,write:!0}})],m.prototype,"displayValue",void 0);b.__decorate([g.property({type:Number,json:{read:!0,write:!0}})],m.prototype,"uncertainty",void 0);m=b.__decorate([r.subclass("esri.rest.support.BaseImageMeasureResult.BaseImageMeasureResultValue")], m);a.ImageMeasureResultLengthValue=class extends m{constructor(){super(...arguments);this.unit=null}};b.__decorate([g.property({type:String,json:{read:d.lengthUnitsJSONMap.read,write:d.lengthUnitsJSONMap.write}})],a.ImageMeasureResultLengthValue.prototype,"unit",void 0);a.ImageMeasureResultLengthValue=b.__decorate([r.subclass("esri.rest.support.BaseImageMeasureResult.ImageMeasureResultLengthValue")],a.ImageMeasureResultLengthValue);a.ImageMeasureResultAreaValue=class extends m{constructor(){super(...arguments); this.unit=null}};b.__decorate([g.property({type:String,json:{read:d.areaUnitsJSONMap.read,write:d.areaUnitsJSONMap.write}})],a.ImageMeasureResultAreaValue.prototype,"unit",void 0);a.ImageMeasureResultAreaValue=b.__decorate([r.subclass("esri.rest.support.BaseImageMeasureResult.ImageMeasureResultAreaValue")],a.ImageMeasureResultAreaValue);a.ImageMeasureResultAngleValue=class extends m{constructor(){super(...arguments);this.unit=null}};b.__decorate([g.property({type:String,json:{read:d.angleUnitsJSONMap.read, write:d.angleUnitsJSONMap.write}})],a.ImageMeasureResultAngleValue.prototype,"unit",void 0);a.ImageMeasureResultAngleValue=b.__decorate([r.subclass("esri.rest.support.BaseImageMeasureResult.ImageMeasureResultAngleValue")],a.ImageMeasureResultAngleValue);a.BaseImageMeasureResult=class extends c.JSONSupport{constructor(){super(...arguments);this.sensorName=this.name=null}};b.__decorate([g.property({type:String,json:{read:!0,write:!0}})],a.BaseImageMeasureResult.prototype,"name",void 0);b.__decorate([g.property({type:String, json:{read:!0,write:!0}})],a.BaseImageMeasureResult.prototype,"sensorName",void 0);a.BaseImageMeasureResult=b.__decorate([r.subclass("esri.rest.support.BaseImageMeasureResult")],a.BaseImageMeasureResult);Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})})},"esri/rest/support/ImageBoundaryParameters":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/SpatialReference".split(" "), function(a,b,c,d,g,m,f,p,r){b=class extends b.ClonableMixin(c.JSONSupport){constructor(){super(...arguments);this.outSpatialReference=null}};a.__decorate([d.property({type:r,json:{name:"outSR",write:!0}})],b.prototype,"outSpatialReference",void 0);return b=a.__decorate([p.subclass("esri.rest.support.ImageBoundaryParameters")],b)})},"esri/rest/support/ImageBoundaryResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../geometry/Extent ../../geometry/Polygon".split(" "), function(a,b,c,d,g,m,f,p,r,v){b=class extends b.JSONSupport{constructor(){super(...arguments);this.geometry=this.area=null}readGeometry(t,u){return null==t?null:t.rings?v.fromJSON(t):r.fromJSON(t)}};a.__decorate([c.property({type:Number,json:{write:!0}})],b.prototype,"area",void 0);a.__decorate([c.property({json:{name:"shape",write:!0}})],b.prototype,"geometry",void 0);a.__decorate([f.reader("geometry")],b.prototype,"readGeometry",null);return b=a.__decorate([p.subclass("esri.rest.support.ImageBoundaryResult")], b)})},"esri/rest/support/ImageDistanceParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/lang ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./BaseImageMeasureParameters ../../geometry/Point".split(" "),function(a,b,c,d,g,m,f,p,r,v,t,u){var w;b=w=class extends t.BaseImageMeasureParameters{constructor(){super(...arguments); this.type="distance-angle";this.toGeometry=this.fromGeometry=null;this.is3D=!1;this.linearUnit="meters";this.angularUnit="degrees"}writeFromGeometry(y,B,q){null!=y&&(B.geometryType=v.getJsonType(y),B[q]=y.toJSON())}get measureOperation(){return this.is3D?"distance-and-angle-3D":"distance-and-angle"}clone(){return new w(c.clone({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,is3D:this.is3D,linearUnit:this.linearUnit,angularUnit:this.angularUnit,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize, raster:this.raster}))}};a.__decorate([g.property({type:u,json:{read:!0,write:!0}})],b.prototype,"fromGeometry",void 0);a.__decorate([r.writer("fromGeometry")],b.prototype,"writeFromGeometry",null);a.__decorate([g.property({type:u,json:{read:!0,write:!0}})],b.prototype,"toGeometry",void 0);a.__decorate([g.property({type:t.measureOperationJSONMap.apiValues,json:{write:t.measureOperationJSONMap.write}})],b.prototype,"measureOperation",null);a.__decorate([g.property({json:{read:!0}})],b.prototype,"is3D", void 0);a.__decorate([g.property({type:String,json:{read:d.lengthUnitsJSONMap.read,write:d.lengthUnitsJSONMap.write}})],b.prototype,"linearUnit",void 0);a.__decorate([g.property({type:String,json:{read:d.angleUnitsJSONMap.read,write:d.angleUnitsJSONMap.write}})],b.prototype,"angularUnit",void 0);return b=w=a.__decorate([p.subclass("esri.rest.support.ImageDistanceParameters")],b)})},"esri/rest/support/ImageDistanceResult":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./BaseImageMeasureResult".split(" "), function(a,b,c,d,g,m,f){c=class extends f.BaseImageMeasureResult{constructor(){super(...arguments);this.elevationAngle=this.azimuthAngle=this.distance=null}};a.__decorate([b.property({type:f.ImageMeasureResultLengthValue,json:{read:!0,write:!0}})],c.prototype,"distance",void 0);a.__decorate([b.property({type:f.ImageMeasureResultAngleValue,json:{read:!0,write:!0}})],c.prototype,"azimuthAngle",void 0);a.__decorate([b.property({type:f.ImageMeasureResultAngleValue,json:{read:!0,write:!0}})],c.prototype, "elevationAngle",void 0);return c=a.__decorate([m.subclass("esri.rest.support.ImageDistanceResult")],c)})},"esri/rest/support/ImageGPSInfoParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/enumeration ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./spatialRelationships".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u,w,y){d=class extends d.ClonableMixin(g.JSONSupport){constructor(){super(...arguments);this.objectIds=this.geometry=null;this.spatialRelationship="intersects";this.where=this.timeExtent=null}writeGeometry(B,q,A){null!=B&&(q.geometryType=w.getJsonType(B),q[A]=JSON.stringify(B.toJSON()))}};a.__decorate([m.property({types:b.geometryTypes,json:{read:w.fromJSON,write:!0}})],d.prototype,"geometry",void 0);a.__decorate([u.writer("geometry")],d.prototype,"writeGeometry",null); a.__decorate([m.property({json:{write:!0}})],d.prototype,"objectIds",void 0);a.__decorate([v.enumeration(y.spatialRelKebabDict,{ignoreUnknown:!1,name:"spatialRel"})],d.prototype,"spatialRelationship",void 0);a.__decorate([m.property({type:c,json:{name:"time",write:!0}})],d.prototype,"timeExtent",void 0);a.__decorate([m.property({type:String,json:{write:!0}})],d.prototype,"where",void 0);return d=a.__decorate([t.subclass("esri.rest.support.ImageGPSInfoParameters")],d)})},"esri/rest/support/ImageGPSInfoResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./CameraInfo ./ImageGPSInfo".split(" "), function(a,b,c,d,g,m,f,p,r){b=class extends b.JSONSupport{constructor(){super(...arguments);this.cameras=this.images=null}};a.__decorate([c.property({type:[r],json:{write:!0}})],b.prototype,"images",void 0);a.__decorate([c.property({type:[p],json:{write:!0}})],b.prototype,"cameras",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageGPSInfoResult")],b)})},"esri/rest/support/CameraInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./CameraInfoMixin".split(" "), function(a,b,c,d,g,m,f,p){b=class extends p.CameraInfoMixin(b.JSONSupport){constructor(){super(...arguments);this.id=null}};a.__decorate([c.property({json:{write:!0}})],b.prototype,"id",void 0);return b=a.__decorate([f.subclass("esri.rest.support.CameraInfo")],b)})},"esri/rest/support/ImageGPSInfo":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r){b=class extends b.JSONSupport{constructor(){super(...arguments);this.orientation=this.gps=this.center=this.cameraID=this.acquisitionDate=this.name=this.id=null}writeAcquisitionDate(v,t){t.acquisitionDate=v?.getTime()}};a.__decorate([c.property({json:{write:!0}})],b.prototype,"id",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"name",void 0);a.__decorate([c.property({type:Date,json:{write:!0}})],b.prototype,"acquisitionDate",void 0);a.__decorate([p.writer("acquisitionDate")], b.prototype,"writeAcquisitionDate",null);a.__decorate([c.property({json:{write:!0}})],b.prototype,"cameraID",void 0);a.__decorate([c.property({type:r,json:{write:!0}})],b.prototype,"center",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"gps",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"orientation",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageGPSInfo")],b)})},"esri/rest/support/ImageHeightParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/lang ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./BaseImageMeasureParameters ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u){var w;b=w=class extends t.BaseImageMeasureParameters{constructor(){super(...arguments);this.type="height";this.toGeometry=this.fromGeometry=null;this.operationType="base-and-top";this.linearUnit="meters"}writeFromGeometry(y,B,q){null!=y&&(B.geometryType=v.getJsonType(y),B[q]=y.toJSON())}get measureOperation(){return this.operationType}clone(){return new w(c.clone({fromGeometry:this.fromGeometry,toGeometry:this.toGeometry,operationType:this.operationType,linearUnit:this.linearUnit, mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}};a.__decorate([g.property({type:u,json:{read:!0}})],b.prototype,"fromGeometry",void 0);a.__decorate([r.writer("fromGeometry")],b.prototype,"writeFromGeometry",null);a.__decorate([g.property({type:u,json:{read:!0,write:!0}})],b.prototype,"toGeometry",void 0);a.__decorate([g.property({type:t.measureOperationJSONMap.apiValues,json:{write:t.measureOperationJSONMap.write}})],b.prototype,"measureOperation",null);a.__decorate([g.property({json:{read:!0}})], b.prototype,"operationType",void 0);a.__decorate([g.property({type:String,json:{read:d.lengthUnitsJSONMap.read,write:d.lengthUnitsJSONMap.write}})],b.prototype,"linearUnit",void 0);return b=w=a.__decorate([p.subclass("esri.rest.support.ImageHeightParameters")],b)})},"esri/rest/support/ImageHeightResult":function(){define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./BaseImageMeasureResult".split(" "), function(a,b,c,d,g,m,f){c=class extends f.BaseImageMeasureResult{constructor(){super(...arguments);this.height=null}};a.__decorate([b.property({type:f.ImageMeasureResultLengthValue,json:{read:!0,write:!0}})],c.prototype,"height",void 0);return c=a.__decorate([m.subclass("esri.rest.support.ImageHeightResult")],c)})},"esri/rest/support/ImageHistogramParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/deprecate ../../core/JSONSupport ../../core/lang ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ../../layers/support/MosaicRule ../../layers/support/RasterFunction ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u,w,y,B){var q;g=q=class extends g.JSONSupport{constructor(){super(...arguments);this.pixelSize=this.rasterFunction=this.mosaicRule=this.geometry=null;this.raster=void 0;this.timeExtent=null}writeGeometry(A,z,l){null!=A&&(z.geometryType=u.getJsonType(A),z[l]=A.toJSON())}get renderingRule(){d.deprecatedProperty(f.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0});return this._get("rasterFunction")}set renderingRule(A){d.deprecatedProperty(f.getLogger(this), "renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0});this._set("rasterFunction",A)}clone(){return new q(m.clone({geometry:this.geometry,mosaicRule:this.mosaicRule,rasterFunction:this.rasterFunction,pixelSize:this.pixelSize,raster:this.raster,timeExtent:this.timeExtent}))}};a.__decorate([p.property({types:b.geometryTypes,json:{read:u.fromJSON}})],g.prototype,"geometry",void 0);a.__decorate([t.writer("geometry")],g.prototype,"writeGeometry",null);a.__decorate([p.property({type:w, json:{write:!0}})],g.prototype,"mosaicRule",void 0);a.__decorate([p.property({type:y})],g.prototype,"renderingRule",null);a.__decorate([p.property({type:y,json:{write:!0,name:"renderingRule"}})],g.prototype,"rasterFunction",void 0);a.__decorate([p.property({type:B,json:{write:!0}})],g.prototype,"pixelSize",void 0);a.__decorate([p.property({json:{write:!0}})],g.prototype,"raster",void 0);a.__decorate([p.property({type:c,json:{read:{source:"time"},write:{target:"time"}}})],g.prototype,"timeExtent", void 0);return g=q=a.__decorate([v.subclass("esri.rest.support.ImageHistogramParameters")],g)})},"esri/rest/support/ImageIdentifyParameters":function(){define("../../chunks/tslib.es6 ../../TimeExtent ../../core/deprecate ../../core/JSONSupport ../../core/lang ../../core/Logger ../../core/accessorSupport/decorators/property ../../core/has ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/Point ../../geometry/support/jsonUtils ../../layers/support/MosaicRule ../../layers/support/RasterFunction".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u,w,y){var B;d=B=class extends d.JSONSupport{constructor(){super(...arguments);this.pixelSize=this.rasterFunctions=this.geometry=null;this.returnPixelValues=this.returnCatalogItems=this.returnGeometry=!0;this.timeExtent=this.maxItemCount=null;this.viewId=this.raster=void 0;this.processAsMultidimensional=!1}writeGeometry(q,A,z){null!=q&&(A.geometryType=u.getJsonType(q),A[z]=JSON.stringify(q.toJSON()))}set mosaicRule(q){q?.mosaicMethod&&(q=w.fromJSON({...q.toJSON(),mosaicMethod:q.mosaicMethod, mosaicOperation:q.mosaicOperation}));this._set("mosaicRule",q)}writeMosaicRule(q,A,z){null!=q&&(A[z]=JSON.stringify(q.toJSON()))}get renderingRule(){c.deprecatedProperty(m.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0});return this._get("rasterFunction")}set renderingRule(q){c.deprecatedProperty(m.getLogger(this),"renderingRule",{replacement:"rasterFunction",version:"4.27",warnOnce:!0});this._set("rasterFunction",q)}get renderingRules(){c.deprecatedProperty(m.getLogger(this), "renderingRules",{replacement:"rasterFunctions",version:"4.27",warnOnce:!0});return this._get("rasterFunctions")}set renderingRules(q){c.deprecatedProperty(m.getLogger(this),"renderingRules",{replacement:"rasterFunctions",version:"4.27",warnOnce:!0});this._set("rasterFunctions",q)}set rasterFunction(q){q?.rasterFunction&&(q=y.fromJSON({...q.toJSON(),rasterFunction:q.rasterFunction,rasterFunctionArguments:q.rasterFunctionArguments}));this._set("rasterFunction",q)}writeRasterFunction(q,A,z){null!=q&& (A[z]=JSON.stringify(q.toJSON()));q.rasterFunctionDefinition&&(A[z]=JSON.stringify(q.rasterFunctionDefinition))}writeRasterFunctions(q,A,z){null!=q&&(A[z]=JSON.stringify(q.map(l=>l.rasterFunctionDefinition||l.toJSON())))}writePixelSize(q,A,z){null!=q&&(A[z]=JSON.stringify(q))}writeTimeExtent(q,A,z){if(null!=q){const l=null!=q.start?q.start.getTime():null;q=null!=q.end?q.end.getTime():null;A[z]=null!=l?null!=q?`${l},${q}`:`${l}`:null}}clone(){return new B(g.clone({geometry:this.geometry,mosaicRule:this.mosaicRule, rasterFunction:this.rasterFunction,rasterFunctions:this.rasterFunctions,pixelSize:this.pixelSize,returnGeometry:this.returnGeometry,returnCatalogItems:this.returnCatalogItems,returnPixelValues:this.returnPixelValues,maxItemCount:this.maxItemCount,processAsMultidimensional:this.processAsMultidimensional,raster:this.raster,viewId:this.viewId,timeExtent:this.timeExtent}))}};a.__decorate([f.property({json:{write:!0}})],d.prototype,"geometry",void 0);a.__decorate([v.writer("geometry")],d.prototype,"writeGeometry", null);a.__decorate([f.property({type:w,json:{write:!0}})],d.prototype,"mosaicRule",null);a.__decorate([v.writer("mosaicRule")],d.prototype,"writeMosaicRule",null);a.__decorate([f.property({type:y})],d.prototype,"renderingRule",null);a.__decorate([f.property({type:[y]})],d.prototype,"renderingRules",null);a.__decorate([f.property({type:y,json:{write:!0,name:"renderingRule"}})],d.prototype,"rasterFunction",null);a.__decorate([v.writer("rasterFunction")],d.prototype,"writeRasterFunction",null);a.__decorate([f.property({type:[y], json:{write:!0,name:"renderingRules"}})],d.prototype,"rasterFunctions",void 0);a.__decorate([v.writer("rasterFunctions")],d.prototype,"writeRasterFunctions",null);a.__decorate([f.property({type:t,json:{write:!0}})],d.prototype,"pixelSize",void 0);a.__decorate([v.writer("pixelSize")],d.prototype,"writePixelSize",null);a.__decorate([f.property({type:Boolean,json:{write:!0}})],d.prototype,"returnGeometry",void 0);a.__decorate([f.property({type:Boolean,json:{write:!0}})],d.prototype,"returnCatalogItems", void 0);a.__decorate([f.property({type:Boolean,json:{write:!0}})],d.prototype,"returnPixelValues",void 0);a.__decorate([f.property({type:Number,json:{write:!0}})],d.prototype,"maxItemCount",void 0);a.__decorate([f.property({type:b,json:{write:{target:"time"}}})],d.prototype,"timeExtent",void 0);a.__decorate([v.writer("timeExtent")],d.prototype,"writeTimeExtent",null);a.__decorate([f.property({json:{write:!0}})],d.prototype,"raster",void 0);a.__decorate([f.property({json:{write:!0}})],d.prototype, "viewId",void 0);a.__decorate([f.property({type:Boolean,json:{write:!0}})],d.prototype,"processAsMultidimensional",void 0);return d=B=a.__decorate([r.subclass("esri.rest.support.ImageIdentifyParameters")],d)})},"esri/rest/support/ImageIdentifyResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/Point ./FeatureSet".split(" "), function(a,b,c,d,g,m,f,p,r){b=class extends b.JSONSupport{constructor(){super(...arguments);this.value=this.properties=this.processedValues=this.objectId=this.name=this.location=this.catalogItems=this.catalogItemVisibilities=null}};a.__decorate([c.property({json:{write:!0}})],b.prototype,"catalogItemVisibilities",void 0);a.__decorate([c.property({type:r,json:{write:!0}})],b.prototype,"catalogItems",void 0);a.__decorate([c.property({type:p,json:{write:!0}})],b.prototype,"location",void 0);a.__decorate([c.property({json:{write:!0}})], b.prototype,"name",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"objectId",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"processedValues",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"properties",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"value",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageIdentifyResult")],b)})},"esri/rest/support/ImagePixelLocationParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r,v){var t;b=t=class extends c.JSONSupport{constructor(){super(...arguments);this.rasterId=this.geometries=null}writeGeometry(u,w,y){w.geometries={geometryType:"esriGeometryPoint",geometries:u.map(B=>B.toJSON())}}clone(){return new t({geometries:this.geometries?.map(u=>u.clone())??[],rasterId:this.rasterId})}};a.__decorate([d.property({type:[v],json:{write:!0}})],b.prototype,"geometries",void 0);a.__decorate([r.writer("geometries")],b.prototype,"writeGeometry",null);a.__decorate([d.property({type:g.Integer, json:{write:!0}})],b.prototype,"rasterId",void 0);return b=t=a.__decorate([p.subclass("esri.rest.support.ImagePixelLocationParameters")],b)})},"esri/rest/support/ImagePixelLocationResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(a,b,c,d,g,m,f){b=class extends b.JSONSupport{constructor(){super(...arguments); this.geometries=null}};a.__decorate([c.property({json:{write:!0}})],b.prototype,"geometries",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImagePixelLocationResult")],b)})},"esri/rest/support/ImagePointParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ./BaseImageMeasureParameters".split(" "), function(a,b,c,d,g,m,f,p,r,v){var t;g=t=class extends v.BaseImageMeasureParameters{constructor(){super(...arguments);this.type="point";this.geometry=null;this.is3D=!1}writeGeometry(u,w,y){null!=u&&(w.geometryType=r.getJsonType(u),w[y]=u.toJSON())}get measureOperation(){const {is3D:u,geometry:w}=this;return"point"===w.type?u?"point-3D":"point":u?"centroid-3D":"centroid"}clone(){return new t(c.clone({geometry:this.geometry,is3D:this.is3D,mosaicRule:this.mosaicRule,pixelSize:this.pixelSize,raster:this.raster}))}}; a.__decorate([d.property({types:b.geometryTypes,json:{name:"fromGeometry",read:r.fromJSON}})],g.prototype,"geometry",void 0);a.__decorate([p.writer("geometry")],g.prototype,"writeGeometry",null);a.__decorate([d.property({type:v.measureOperationJSONMap.apiValues,json:{read:v.measureOperationJSONMap.read,write:v.measureOperationJSONMap.write}})],g.prototype,"measureOperation",null);a.__decorate([d.property({json:{read:!0}})],g.prototype,"is3D",void 0);return g=t=a.__decorate([f.subclass("esri.rest.support.ImagePointParameters")], g)})},"esri/rest/support/ImagePointResult":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./BaseImageMeasureResult ../../geometry/Point".split(" "),function(a,b,c,d,g,m,f,p,r){b=class extends p.BaseImageMeasureResult{constructor(){super(...arguments);this.point=null}};a.__decorate([c.property({type:r,json:{name:"point.value",read:!0,write:!0}})], b.prototype,"point",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImagePointResult")],b)})},"esri/rest/support/ImageSampleParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../TimeExtent ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ../../layers/support/MosaicRule ../../layers/support/rasterEnums ../../geometry/Multipoint ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u,w,y,B){var q;d=q=class extends d.JSONSupport{constructor(){super(...arguments);this.geometry=null;this.interpolation="nearest";this.pixelSize=this.outFields=this.mosaicRule=null;this.returnFirstValueOnly=!0;this.timeExtent=this.sliceId=this.sampleCount=this.sampleDistance=null}writeGeometry(A,z,l){null!=A&&(z.geometryType=t.getJsonType(A),z[l]=A.toJSON())}set locations(A){if(A?.length){const z=new y({spatialReference:A[0].spatialReference,points:A.map(({x:l,y:x})=> [l,x])});this._set("locations",A);this.geometry=z}}clone(){return new q(g.clone({geometry:this.geometry,locations:this.locations,interpolation:this.interpolation,mosaicRule:this.mosaicRule,outFields:this.outFields,raster:this.raster,returnFirstValueOnly:this.returnFirstValueOnly,sampleDistance:this.sampleDistance,sampleCount:this.sampleCount,sliceId:this.sliceId,pixelSize:this.pixelSize,timeExtent:this.timeExtent}))}};a.__decorate([m.property({types:b.geometryTypes,json:{read:t.fromJSON}})],d.prototype, "geometry",void 0);a.__decorate([v.writer("geometry")],d.prototype,"writeGeometry",null);a.__decorate([m.property()],d.prototype,"locations",null);a.__decorate([m.property({type:String,json:{type:w.interpolationKebab.jsonValues,read:w.interpolationKebab.read,write:w.interpolationKebab.write}})],d.prototype,"interpolation",void 0);a.__decorate([m.property({type:u,json:{write:!0}})],d.prototype,"mosaicRule",void 0);a.__decorate([m.property({type:[String],json:{write:!0}})],d.prototype,"outFields",void 0); a.__decorate([m.property({type:B,json:{write:!0}})],d.prototype,"pixelSize",void 0);a.__decorate([m.property({type:String,json:{write:!0}})],d.prototype,"raster",void 0);a.__decorate([m.property({type:Boolean,json:{write:!0}})],d.prototype,"returnFirstValueOnly",void 0);a.__decorate([m.property({type:Number,json:{write:!0}})],d.prototype,"sampleDistance",void 0);a.__decorate([m.property({type:Number,json:{write:!0}})],d.prototype,"sampleCount",void 0);a.__decorate([m.property({type:Number,json:{write:!0}})], d.prototype,"sliceId",void 0);a.__decorate([m.property({type:c,json:{read:{source:"time"},write:{target:"time"}}})],d.prototype,"timeExtent",void 0);return d=q=a.__decorate([r.subclass("esri.rest.support.ImageSampleParameters")],d)})},"esri/rest/support/ImageSampleResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ./ImageSample".split(" "), function(a,b,c,d,g,m,f,p){b=class extends b.JSONSupport{constructor(){super(...arguments);this.samples=null}};a.__decorate([c.property({type:[p],json:{write:!0}})],b.prototype,"samples",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageSampleResult")],b)})},"esri/rest/support/ImageSample":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p){b=class extends b.JSONSupport{constructor(){super(...arguments);this.pixelValue=this.resolution=this.rasterId=this.locationId=this.location=this.attributes=null}};a.__decorate([c.property({json:{write:!0}})],b.prototype,"attributes",void 0);a.__decorate([c.property({type:p,json:{write:!0}})],b.prototype,"location",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"locationId",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"rasterId",void 0); a.__decorate([c.property({json:{write:!0}})],b.prototype,"resolution",void 0);a.__decorate([c.property({json:{write:!0}})],b.prototype,"pixelValue",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageSample")],b)})},"esri/rest/support/ImageToMapMultirayParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/accessorSupport/ensureType ../../core/RandomLCG ../../core/has ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/SpatialReference ../../geometry/support/jsonUtils".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u){c=class extends c.ClonableMixin(d.JSONSupport){constructor(){super(...arguments);this.geometries=[];this.outSpatialReference=this.rasterIds=null}writeGeometries(w,y,B){y.geometries=w?.length?{geometryType:u.getJsonType(w[0]),geometries:w.map(q=>({...q.toJSON(),spatialReference:void 0}))}:null}};a.__decorate([g.property({types:[b.geometryTypes]})],c.prototype,"geometries",void 0);a.__decorate([v.writer("geometries")],c.prototype,"writeGeometries",null);a.__decorate([g.property({type:[m.Integer], json:{write:!0}})],c.prototype,"rasterIds",void 0);a.__decorate([g.property({type:t,json:{name:"outSR",write:!0}})],c.prototype,"outSpatialReference",void 0);return c=a.__decorate([r.subclass("esri.rest.support.ImageToMapMultirayParameters")],c)})},"esri/rest/support/ImageToMapParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils ../../geometry/SpatialReference".split(" "), function(a,b,c,d,g,m,f,p,r,v,t,u){c=class extends c.ClonableMixin(d.JSONSupport){constructor(){super(...arguments);this.outSpatialReference=this.rasterId=this.geometry=null;this.depthOffset=0;this.adjust=!1}writeGeometry(w,y,B){null!=w&&(y.geometryType=t.getJsonType(w),y[B]={...w.toJSON(),spatialReference:void 0})}};a.__decorate([g.property({types:b.geometryTypes,json:{read:t.fromJSON,write:!0}})],c.prototype,"geometry",void 0);a.__decorate([v.writer("geometry")],c.prototype,"writeGeometry",null); a.__decorate([g.property({json:{write:!0}})],c.prototype,"rasterId",void 0);a.__decorate([g.property({type:u,json:{name:"outSR",write:!0}})],c.prototype,"outSpatialReference",void 0);a.__decorate([g.property({json:{name:"options.DOff",write:!0}})],c.prototype,"depthOffset",void 0);a.__decorate([g.property({json:{name:"options.Adjust",write:!0}})],c.prototype,"adjust",void 0);return c=a.__decorate([r.subclass("esri.rest.support.ImageToMapParameters")],c)})},"esri/rest/support/ImageUrlParameters":function(){define("../../chunks/tslib.es6 ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "), function(a,b,c,d,g,m,f,p){b=class extends b.ClonableMixin(c.JSONSupport){constructor(){super(...arguments);this.rasterId=this.referenceUri=null}};a.__decorate([d.property({type:String,json:{name:"uri",write:!0}})],b.prototype,"referenceUri",void 0);a.__decorate([d.property({type:Number,json:{write:!0}})],b.prototype,"rasterId",void 0);return b=a.__decorate([p.subclass("esri.rest.support.ImageUrlParameters")],b)})},"esri/rest/support/ImageUrlResult":function(){define("../../chunks/tslib.es6 ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "), function(a,b,c,d,g,m,f){b=class extends b.JSONSupport{constructor(){super(...arguments);this.url=null}};a.__decorate([c.property({json:{name:"imageURL",write:!0}})],b.prototype,"url",void 0);return b=a.__decorate([f.subclass("esri.rest.support.ImageUrlResult")],b)})},"esri/rest/support/MapToImageParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/Clonable ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils".split(" "), function(a,b,c,d,g,m,f,p,r,v,t){c=class extends c.ClonableMixin(d.JSONSupport){constructor(){super(...arguments);this.rasterId=this.geometry=null;this.visibleOnly=!1}writeGeometry(u,w,y){null!=u&&(w.geometryType=t.getJsonType(u),w[y]=JSON.stringify(u))}};a.__decorate([g.property({types:b.geometryTypes,json:{read:t.fromJSON,write:!0}})],c.prototype,"geometry",void 0);a.__decorate([v.writer("geometry")],c.prototype,"writeGeometry",null);a.__decorate([g.property({json:{write:!0}})],c.prototype,"rasterId", void 0);a.__decorate([g.property({json:{name:"options.VisibleOnly",write:!0}})],c.prototype,"visibleOnly",void 0);return c=a.__decorate([r.subclass("esri.rest.support.MapToImageParameters")],c)})},"esri/rest/support/MeasureAreaFromImageResult":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/reader ../../core/accessorSupport/decorators/subclass ../../geometry/support/jsonUtils ../../geometry/Point".split(" "), function(a,b,c,d,g,m,f,p,r,v,t){c=class extends c.JSONSupport{constructor(){super(...arguments);this.center=this.area=this.length=this.geometry=null}readCenter(u,w){u.spatialReference||(u={...u,spatialReference:w.Shape.spatialReference});return t.fromJSON(u)}};a.__decorate([d.property({types:b.geometryTypes,json:{name:"Shape",read:v.fromJSON,write:!0}})],c.prototype,"geometry",void 0);a.__decorate([d.property({json:{name:"Length",write:!0}})],c.prototype,"length",void 0);a.__decorate([d.property({json:{name:"Area", write:!0}})],c.prototype,"area",void 0);a.__decorate([d.property({json:{name:"Center",write:!0}})],c.prototype,"center",void 0);a.__decorate([p.reader("center")],c.prototype,"readCenter",null);return c=a.__decorate([r.subclass("esri.rest.support.MeasureAreaFromImageResult")],c)})},"esri/rest/support/MeasureFromImageParameters":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/lang ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/accessorSupport/decorators/subclass ../../core/accessorSupport/decorators/writer ../../geometry/support/jsonUtils".split(" "), function(a,b,c,d,g,m,f,p,r,v){var t;c=t=class extends c.JSONSupport{constructor(){super(...arguments);this.geometry=null;this.rasterId=void 0}writeGeometry(u,w,y){null!=u&&(w.geometryType=v.getJsonType(u),w[y]={...u.toJSON(),spatialReference:void 0})}clone(){const u=d.clone({geometry:this.geometry,rasterId:this.rasterId});return new t(u)}};a.__decorate([g.property({types:b.geometryTypes,json:{name:"fromGeometry",read:v.fromJSON,write:!0}})],c.prototype,"geometry",void 0);a.__decorate([r.writer("geometry")], c.prototype,"writeGeometry",null);a.__decorate([g.property({json:{write:!0}})],c.prototype,"rasterId",void 0);return c=t=a.__decorate([p.subclass("esri.rest.support.MeasureFromImageParameters")],c)})},"esri/rest/support/MeasureLengthFromImageResult":function(){define("../../chunks/tslib.es6 ../../geometry ../../core/JSONSupport ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../../geometry/support/jsonUtils".split(" "), function(a,b,c,d,g,m,f,p,r){c=class extends c.JSONSupport{constructor(){super(...arguments);this.length=this.geometry=null}};a.__decorate([d.property({types:b.geometryTypes,json:{name:"Shape",read:r.fromJSON,write:!0}})],c.prototype,"geometry",void 0);a.__decorate([d.property({json:{name:"Length",write:!0}})],c.prototype,"length",void 0);return c=a.__decorate([p.subclass("esri.rest.support.MeasureLengthFromImageResult")],c)})},"*noref":1}}); define("exports ../geometry ../request ../core/accessorSupport/ensureType ../geometry/support/normalizeUtils ../geometry/support/spatialReferenceUtils ./utils ./support/FindImagesParameters ./support/FindImagesResult ./support/ImageAngleParameters ./support/ImageAngleResult ./support/ImageAreaParameters ./support/ImageAreaResult ./support/ImageBoundaryParameters ./support/ImageBoundaryResult ./support/ImageDistanceParameters ./support/ImageDistanceResult ./support/ImageGPSInfoParameters ./support/ImageGPSInfoResult ./support/ImageHeightParameters ./support/ImageHeightResult ./support/ImageHistogramParameters ./support/ImageIdentifyParameters ./support/ImageIdentifyResult ./support/ImagePixelLocationParameters ./support/ImagePixelLocationResult ./support/ImagePointParameters ./support/ImagePointResult ./support/ImageSampleParameters ./support/ImageSampleResult ./support/ImageToMapMultirayParameters ./support/ImageToMapParameters ./support/ImageUrlParameters ./support/ImageUrlResult ./support/MapToImageParameters ./support/MeasureAreaFromImageResult ./support/MeasureFromImageParameters ./support/MeasureLengthFromImageResult ../geometry/SpatialReference ../geometry/support/jsonUtils".split(" "),function(a, b,c,d,g,m,f,p,r,v,t,u,w,y,B,q,A,z,l,x,D,E,F,Q,R,S,T,U,V,W,X,Y,Z,aa,ba,ca,da,ea,N,L){function M(h){const e=h?.time;if(e&&(null!=e.start||null!=e.end)){const k=[];null!=e.start&&k.push(e.start);null==e.end||k.includes(e.end)||k.push(e.end);h.time=k.join(",")}}async function O(h,e,k){e=d.ensureClass(E,e);h=f.parseUrl(h);var n=await g.normalizeCentralMeridian(e.geometry?[e.geometry]:[]);e=e.toJSON();M(e);n=n?.[0];null!=n&&(e.geometry=G(n));h=f.encode({...h.query,f:"json",...e});return f.asValidOptions(h, k)}async function K(h,e,k,n){h=f.parseUrl(h);k=await g.normalizeCentralMeridian(k);e=e.toJSON();null!=k[0]&&(e.fromGeometry=JSON.stringify(G(k[0])));null!=k[1]&&(e.toGeometry=JSON.stringify(G(k[1])));e=f.encode({...h.query,f:"json",...e});n=f.asValidOptions(e,n);({data:n}=await c(h.path+"/measure",n));return n}async function P(h,e,k){e=d.ensureClass(da,e);h=f.parseUrl(h);e=e.toJSON();e=f.encode({...h.query,f:"json",...e});k=f.asValidOptions(e,k);({data:k}=await c(h.path+"/measureFromImage",k));return k} function G(h){const e=h.toJSON();h.spatialReference?.imageCoordinateSystem&&(e.spatialReference=J(h.spatialReference));return e}function J(h){const {imageCoordinateSystem:e}=h;if(e){const {id:k,referenceServiceName:n}=e;return null!=k?n?{icsid:k,icsns:n}:{icsid:k}:{ics:e}}return h.toJSON()}function I(h,e){if(!h.imageCoordinateSystem)return m.srToRESTValue(h);h=J(h);const {icsid:k,icsns:n}=h;return null==k||null!=n&&!e?.toLowerCase().includes("/"+n.toLowerCase()+"/")?JSON.stringify(h):`0:${k}`}a.computeAngles= async function(h,e,k){e=d.ensureClass(v,e);var n=e.toJSON();null!=n.angleName&&(n.angleName=n.angleName.join(","));e?.point?.spatialReference?.imageCoordinateSystem&&(n.point.spatialReference=J(e.point.spatialReference));e?.spatialReference?.imageCoordinateSystem&&(n.spatialReference=I(e.spatialReference));h=f.parseUrl(h);n=f.encode({...h.query,f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/computeAngles`,k));k.spatialReference=k.spatialReference?null!=k.spatialReference.geodataXform? new N({wkid:0,imageCoordinateSystem:k.spatialReference}):N.fromJSON(k.spatialReference):null;"NaN"===k.north&&(k.north=null);"NaN"===k.up&&(k.up=null);return new t(k)};a.computeHistograms=async function(h,e,k){e=await O(h,e,k);h=f.parseUrl(h);({data:h}=await c(`${h.path}/computeHistograms`,e));return{histograms:h.histograms}};a.computePixelSpaceLocations=async function(h,e,k){e=d.ensureClass(R,e);var n=e.toJSON();({geometries:e}=e);if(e)for(let C=0;C{n.avg=n.mean;n.stddev=n.standardDeviation});return{statistics:e,histograms:h.histograms}}; a.findImages=async function(h,e,k){e=d.ensureClass(p,e);var n=e.toJSON();const C=await g.normalizeCentralMeridian([e.fromGeometry,e.toGeometry]);null!=C[0]&&(n.fromGeometry=G(C[0]),C[0].spatialReference&&(n.inSR=I(C[0].spatialReference)));null!=C[1]&&(n.toGeometry=G(C[1]));e.objectIds?.length&&(n.objectIds=n.objectIds.join(","));h=f.parseUrl(h);n=f.encode({...h.query,f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/find`,k));return r.fromJSON(k)};a.getImageSpatialReferenceJSON= J;a.getImageSpatialReferenceQueryParameter=I;a.getImageUrl=async function(h,e,k){e=d.ensureClass(Z,e);e=e.toJSON();h=f.parseUrl(h);e=f.encode({...h.query,f:"json",...e});k=f.asValidOptions(e,k);({data:k}=await c(`${h.path}/getImageUrl`,k));return aa.fromJSON(k)};a.getSamples=async function(h,e,k){e=d.ensureClass(V,e);var n=e.toJSON();M(n);n.outFields?.length&&(n.outFields=n.outFields.join(","));e=(await g.normalizeCentralMeridian(e.geometry))?.[0];null!=e&&(n.geometry=G(e));h=f.parseUrl(h);n=f.encode({...h.query, f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/getSamples`,k));k=k?.samples?.map(C=>{const H="NaN"===C.value||""===C.value?null:C.value.split(" ").map(fa=>Number(fa));return{...C,pixelValue:H}});return W.fromJSON({samples:k})};a.identify=async function(h,e,k){e=d.ensureClass(F,e);const n=f.parseUrl(h);return g.normalizeCentralMeridian(e.geometry?[e.geometry]:[]).then(C=>{var H=e.toJSON();C=C?.[0];null!=C&&(H.geometry=JSON.stringify(G(C)));H=f.encode({...n.query,f:"json",...H}); H=f.asValidOptions(H,k);return c(n.path+"/identify",H)}).then(C=>Q.fromJSON(C.data))};a.imageToMap=async function(h,e,k){e=d.ensureClass(Y,e);var n=e.toJSON();e.geometry.spatialReference.imageCoordinateSystem&&(n.geometry=G(e.geometry));e.depthOffset&&e.adjust||delete n.options;h=f.parseUrl(h);n=f.encode({...h.query,f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/imageToMap`,k));return L.fromJSON(k)};a.imageToMapMultiray=async function(h,e,k){e=d.ensureClass(X,e);var n=e.toJSON(); e.rasterIds?.length&&(n.rasterIds=e.rasterIds.join(","));h=f.parseUrl(h);n=f.encode({...h.query,f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/imageToMapMultiray`,k));return L.fromJSON(k)};a.mapToImage=async function(h,e,k){e=d.ensureClass(ba,e);var n=e.toJSON();const C=(await g.normalizeCentralMeridian(e.geometry))?.[0];null!=C&&(n.geometry=G(C));e.visibleOnly||delete n.options;if(e=C?.spatialReference??e.geometry?.spatialReference)n.inSR=I(e);h=f.parseUrl(h);n=f.encode({...h.query, f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/mapToImage`,k));return L.fromJSON(k)};a.measureAreaAndPerimeter=async function(h,e,k){e=d.ensureClass(u,e);h=await K(h,e,[e.geometry],k);return w.fromJSON(h)};a.measureAreaFromImage=async function(h,e,k){h=await P(h,e,k);return ca.fromJSON(h)};a.measureDistanceAndAngle=async function(h,e,k){e=d.ensureClass(q,e);h=await K(h,e,[e.fromGeometry,e.toGeometry],k);return A.fromJSON(h)};a.measureHeight=async function(h,e,k){e=d.ensureClass(x, e);h=await K(h,e,[e.fromGeometry,e.toGeometry],k);return D.fromJSON(h)};a.measureLengthFromImage=async function(h,e,k){h=await P(h,e,k);return ea.fromJSON(h)};a.measurePointOrCentroid=async function(h,e,k){e=d.ensureClass(T,e);h=await K(h,e,[e.geometry],k);return U.fromJSON(h)};a.queryBoundary=async function(h,e,k){e=d.ensureClass(y,e);h=f.parseUrl(h);const n=e.toJSON();e.outSpatialReference&&(n.outSR=I(e.outSpatialReference));e=f.encode({...h.query,f:"json",...n});k=f.asValidOptions(e,k);({data:k}= await c(h.path+"/queryBoundary",k));return B.fromJSON(k)};a.queryGPSInfo=async function(h,e,k){e=d.ensureClass(z,e);var n=e.toJSON();M(n);n.objectIds?.length&&(n.objectIds=n.objectIds.join(","));n.geometry||n.objectIds||n.time||n.where||(n.where="1\x3d1");const C=(await g.normalizeCentralMeridian(e.geometry))?.[0];null!=C&&(n.geometry=G(C));if(e=C?.spatialReference??e.geometry?.spatialReference)n.inSR=I(e);h=f.parseUrl(h);n=f.encode({...h.query,f:"json",...n});k=f.asValidOptions(n,k);({data:k}=await c(`${h.path}/queryGPSInfo`, k));return l.fromJSON(k)};Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});