{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/CloudRaster.js","webpack:///./node_modules/arcgis-js-api/layers/ImageryTileLayer.js","webpack:///./node_modules/arcgis-js-api/layers/mixins/ImageryTileMixin.js","webpack:///./node_modules/arcgis-js-api/layers/support/RasterJobHandler.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/RawBlockCache.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/BaseRaster.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/EphemeralBlockCache.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/xmlUtilities.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/TIFFRaster.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/DBFParser.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterFunctions/rasterProjectionHelper.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/ImageServerRaster.js","webpack:///./node_modules/arcgis-js-api/layers/support/RasterStorageInfo.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/MRFRaster.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterDatasets/RasterFactory.js","webpack:///./node_modules/arcgis-js-api/layers/support/DimensionalDefinition.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAmB,CAAC,2BAAqB,CAAC,2BAAqB,CAAC,2BAA4B,CAAC,2BAA0C,CAAC,2BAAe,CAAC,2BAAsB,CAAC,2BAAa,CAAC,2BAAc,CAAC,2BAAa,CAAC,2BAAmC,CAAC,mCAAE,sCAAsC,aAAa,cAAc,yOAAyO,mBAAmB,aAAa,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,GAAG,4BAA4B,+CAA+C,qBAAqB,EAAE,GAAG,GAAG;AAAA,oGAAE,C;;;;;;;ACxBjlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,2BAAO,CAAC,2BAAwB,CAAC,2BAAiB,CAAC,2BAAuC,CAAC,2BAAuC,CAAC,mCAAE,wBAAwB,aAAa,mBAAmB,cAAc,2BAA2B,2EAA2E,MAAM,yDAAyD,cAAc,iHAAiH,EAAE,2BAA2B,kBAAkB,UAAU,gEAAgE,kBAAkB,UAAU,iEAAiE,wGAAwG,UAAU,0DAA0D,mBAAmB,UAAU,+GAA+G,gBAAgB;AAAA,oGAAE,C","file":"js/chunk-29e2f72d.17e067d7.js","sourcesContent":["// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry\",\"../../../core/Error\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/accessorSupport/decorators\",\"../RasterInfo\",\"../RasterStorageInfo\",\"../TileInfo\",\"./BaseRaster\",\"./DBFParser\",\"../../../tasks/support/FeatureSet\"],(function(e,t,r,i,n,o,a,s,l,u,f,c,d,p){\"use strict\";var h=new Map;h.set(\"int16\",\"esriFieldTypeSmallInteger\"),h.set(\"int32\",\"esriFieldTypeInteger\"),h.set(\"int64\",\"esriFieldTypeInteger\"),h.set(\"float32\",\"esriFieldTypeSingle\"),h.set(\"float64\",\"esriFieldTypeDouble\"),h.set(\"text\",\"esriFieldTypeString\");return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.storageInfo=null,t.datasetFormat=\"CRF\",t}return r.__extends(t,e),t.prototype.open=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,i,o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.init()];case 1:return r.sent(),[4,this.request(this.url+\"/conf.json\",{signal:null==e?void 0:e.signal})];case 2:if(t=r.sent().data,!this._validateHeader(t))throw new n(\"cloudraster:open\",\"Invalid or unsupported conf.json.\");return this.datasetName=this.url.slice(this.url.lastIndexOf(\"/\")+1),i=this._parseHeader(t),o=i.storageInfo,\"thematic\"!==(a=i.rasterInfo).dataType?[3,4]:[4,this._fetchAuxiliaryInformation()];case 3:s=r.sent(),a.attributeTable=s,r.label=4;case 4:return this._set(\"storageInfo\",o),this._set(\"rasterInfo\",a),this.ioConfig.retryCount=this.ioConfig.retryCount||0,[2]}}))}))},t.prototype.fetchRawTile=function(e,t,i,n){return void 0===n&&(n={}),r.__awaiter(this,void 0,void 0,(function(){var o,a,s,l,u,f,c;return r.__generator(this,(function(r){switch(r.label){case 0:return(o=this.rasterInfo.storageInfo.maximumPyramidLevel-e)<0?[2,null]:(a=this._buildCacheFilePath(o,t,i,n.multidimensionalDefinition),s=this._getIndexRecordFromBundle(t,i),[4,this.request(a,{range:{from:0,to:this.storageInfo.headerSize-1},responseType:\"array-buffer\",signal:n.signal})]);case 1:return(l=r.sent())?(u=new Uint8Array(l.data),0===(f=this._getTileEndAndContentType(u,s)).recordSize?[2,null]:[4,this.request(a,{range:{from:f.position,to:f.position+f.recordSize},responseType:\"array-buffer\",signal:n.signal})]):[2,null];case 2:return(c=r.sent())?[2,this.decodePixelBlock(c.data,{width:this.rasterInfo.storageInfo.tileInfo.size[0],height:this.rasterInfo.storageInfo.tileInfo.size[1],planes:null,pixelType:null})]:[2,null]}}))}))},t.prototype._validateHeader=function(e){return e&&\"RasterInfo\"===e.type&&![\"origin\",\"extent\",\"geodataXform\",\"LODInfos\",\"blockWidth\",\"blockHeight\",\"bandCount\",\"pixelType\",\"pixelSizeX\",\"pixelSizeY\",\"format\",\"packetSize\"].some((function(t){return!e[t]}))},t.prototype._parseHeader=function(e){var t,r,n,o,a,s=[\"u1\",\"u2\",\"u4\",\"u8\",\"s8\",\"u16\",\"s16\",\"u32\",\"s32\",\"f32\",\"f64\"][e.pixelType],c=e.bandCount,d=e.histograms,p=e.colormap,h=e.blockWidth,m=e.blockHeight,g=e.firstPyramidLevel,y=e.maximumPyramidLevel,x=e.statistics&&e.statistics.map((function(e){return{min:e.min,max:e.max,avg:e.mean,stddev:e.standardDeviation,median:e.median,mode:e.mode}})),v=new i.SpatialReference(e.extent.spatialReference||e.geodataXform.spatialReference),I=new i.Extent({xmin:e.extent.xmin,ymin:e.extent.ymin,xmax:e.extent.xmax,ymax:e.extent.ymax,spatialReference:v}),_=new i.Point({x:e.pixelSizeX,y:e.pixelSizeY,spatialReference:v}),S=null!==(t=e.properties)&&void 0!==t?t:{},b=e.format.toLowerCase().replace(\"cache/\",\"\"),w=new i.Point(e.origin.x,e.origin.y,v);if(p&&p.colors)for(r=[],n=0;n>>24,o<<8>>>24,o>>>24]);var z=e.LODInfos,T=[];for(n=0;n0)for(n=0;n=10?e.toString():\"0\"+e.toString();var f=this.rasterInfo.multidimensionalInfo,c=null==i?void 0:i[0];if(!o.isSome(f)||!c)return this.url+\"/_alllayers/\"+u+\"/\"+l+\".bundle\";for(var d=f.variables.filter((function(e){return e.name===c.variableName}))[0].dimensions[0].values.indexOf(c.values[0]).toString(16),p=4-d.length,h=0;h0;)t=\"0\"+t;return t},r.__decorate([s.property({readOnly:!0})],t.prototype,\"storageInfo\",void 0),r.__decorate([s.property({type:String,json:{write:!0}})],t.prototype,\"datasetFormat\",void 0),t=r.__decorate([s.subclass(\"esri.layers.support.rasterDatasets.CloudRaster\")],t)}(c)}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../PopupTemplate\",\"../rasterRenderers\",\"../core/Error\",\"../core/jsonMap\",\"../core/maybe\",\"../core/MultiOriginJSONSupport\",\"../core/promiseUtils\",\"../core/accessorSupport/decorators\",\"../core/accessorSupport/ensureType\",\"./Layer\",\"./mixins/BlendLayer\",\"./mixins/ImageryTileMixin\",\"./mixins/OperationalLayer\",\"./mixins/PortalLayer\",\"./mixins/RefreshableLayer\",\"./mixins/ScaleRangeLayer\",\"./support/commonProperties\",\"./support/Field\",\"./support/rasterDatasets/RasterFactory\",\"../support/popupUtils\"],(function(e,r,t,o,i,n,a,p,s,l,u,d,y,c,f,h,_,v,m,g,b,S,P){\"use strict\";var T=a.strict()({RSP_NearestNeighbor:\"nearest\",RSP_BilinearInterpolation:\"bilinear\",RSP_CubicConvolution:\"cubic\",RSP_Majority:\"majority\"});function R(){return{enabled:!this.loaded||\"RasterTileServer\"===this.raster.datasetFormat&&\"Raster\"===this.raster.tileType}}return function(e){function r(){for(var r=[],t=0;t0?(this.updateRenderer(),o=this._rasterJobHandler.instance,s=this.bandIds,o?[4,o.symbolize(r.__assign(r.__assign({},e),{simpleStretchParams:t,bandIds:s}))]:[3,2]):[2,null];case 1:return n=a.sent(),[3,3];case 2:n=this.symbolizer.symbolize(r.__assign(r.__assign({},e),{simpleStretchParams:t,bandIds:s})),a.label=3;case 3:return[2,n]}}))}))},t.prototype.getTileUrl=function(e,t,r){return\"RasterTileServer\"===this.raster.datasetFormat?this.url+\"/tile/\"+e+\"/\"+t+\"/\"+r:\"\"},t.prototype.getCompatibleTileInfo=function(e,t){if(!this.loaded)return null;var r=d.getInfo(e);return h.create({size:256,spatialReference:e,origin:r?{x:r.origin[0],y:r.origin[1]}:{x:t.xmin,y:t.ymax}})},t.prototype.getCompatibleFullExtent=function(e){return this.loaded?this._compatibleFullExtent&&this._compatibleFullExtent.spatialReference.equals(e)?this._compatibleFullExtent:(this._compatibleFullExtent=this.raster.computeExtent(e),this._compatibleFullExtent):null},t.prototype.fetchTile=function(e,t,i,n){return void 0===n&&(n={}),r.__awaiter(this,void 0,void 0,(function(){var s,a;return r.__generator(this,(function(l){switch(l.label){case 0:return n.requestAsImageElement?(s=this.getTileUrl(e,t,i),[2,o(s,{responseType:\"image\",query:{sliceId:this._sliceId,_ts:n.timestamp},signal:n.signal}).then((function(e){return e.data}))]):[4,this._initJobHandler()];case 1:return l.sent(),this.multidimensionalDefinition&&(a=this._sliceId,n=r.__assign({multidimensionalDefinition:this.multidimensionalDefinition,sliceId:a},n)),\"raster-shaded-relief\"===this.renderer.type&&(n=r.__assign({buffer:{cols:1,rows:1}},n)),[2,this.raster.fetchTile(e,t,i,n)]}}))}))},t.prototype.fetchPixels=function(e,t,i,n){return r.__awaiter(this,void 0,void 0,(function(){var o;return r.__generator(this,(function(s){switch(s.label){case 0:return[4,this._initJobHandler()];case 1:return s.sent(),this.multidimensionalDefinition&&(o=this._sliceId,n=r.__assign({multidimensionalDefinition:this.multidimensionalDefinition,sliceId:o},n)),[2,this.raster.fetchPixels(e,t,i,n)]}}))}))},t.prototype.identify=function(e,t){return void 0===t&&(t={}),this.multidimensionalDefinition&&!t.multidimensionalDefinition&&(t=r.__assign(r.__assign({},t),{multidimensionalDefinition:this.multidimensionalDefinition})),this.raster.identify(e,t)},t.prototype.increaseRasterJobHandlerUsage=function(){this._rasterJobHandler.refCount++},t.prototype.decreaseRasterJobHandlerUsage=function(){this._rasterJobHandler.refCount--,this._rasterJobHandler.refCount<=0&&this._shutdownJobHandler()},t.prototype._configDefaultSettings=function(){this._configDefaultInterpolation(),this._configDefaultSlice(),this._configDefaultRenderer()},t.prototype._initJobHandler=function(){var e=this;if(null!=this._rasterJobHandler.connectionPromise)return this._rasterJobHandler.connectionPromise;var t=new f;return this._rasterJobHandler.connectionPromise=t.initialize().then((function(){e._rasterJobHandler.instance=t,e.raster.rasterJobHandler=t,e.renderer&&e.updateRenderer()})).catch((function(){return null})),this._rasterJobHandler.connectionPromise},t.prototype._shutdownJobHandler=function(){this._rasterJobHandler.instance&&this._rasterJobHandler.instance.destroy(),this._rasterJobHandler.instance=null,this._rasterJobHandler.connectionPromise=null,this._rasterJobHandler.refCount=0,this.raster.rasterJobHandler=null},t.prototype._configDefaultInterpolation=function(){var e;if(null==this.interpolation){var t=_.getDefaultInterpolation(this.rasterInfo,this.raster.tileType,null===(e=this.sourceJSON)||void 0===e?void 0:e.defaultResamplingMethod);this._set(\"interpolation\",t)}},t.prototype._configDefaultSlice=function(){var e=this.raster.rasterInfo.multidimensionalInfo;if(a.isSome(e)){if(!this.multidimensionalDefinition){var t=e.variables[0],r=[];t.dimensions.forEach((function(e){r.push(new c({variableName:t.name,dimensionName:e.name,values:e.hasRegularIntervals?e.extent[0]:e.values[0],isSlice:!0}))})),this.multidimensionalDefinition=r}this._sliceId=this.raster.getSliceIndex(this.multidimensionalDefinition)}},t.prototype._configDefaultRenderer=function(){var e,t=this.raster.rasterInfo;this.bandIds||(this.bandIds=_.getDefaultBandCombination(t)),this.renderer||(this.renderer=_.createDefaultRenderer(t,{bandIds:this.bandIds,variableName:null===(e=this.multidimensionalDefinition)||void 0===e?void 0:e[0].variableName})),this.symbolizer?(this.symbolizer.renderer=this.renderer,this.symbolizer.rasterInfo=t):this.symbolizer=new y({renderer:this.renderer,rasterInfo:t}),this.symbolizer.bind()||m.warn(\"imagery-tile-mixin\",\"The given renderer is not supported by the layer.\")},r.__decorate([l.property()],t.prototype,\"_cachedRendererJson\",void 0),r.__decorate([l.property()],t.prototype,\"_sliceId\",void 0),r.__decorate([l.property()],t.prototype,\"_compatibleFullExtent\",void 0),r.__decorate([l.property()],t.prototype,\"_rasterJobHandler\",void 0),r.__decorate([l.property()],t.prototype,\"bandIds\",void 0),r.__decorate([l.property()],t.prototype,\"copyright\",void 0),r.__decorate([l.property({type:i.Extent}),l.aliasOf(\"rasterInfo.extent\")],t.prototype,\"fullExtent\",void 0),r.__decorate([l.property()],t.prototype,\"interpolation\",void 0),r.__decorate([l.property({type:[c]})],t.prototype,\"multidimensionalDefinition\",null),r.__decorate([l.property()],t.prototype,\"raster\",void 0),r.__decorate([l.property({readOnly:!0}),l.aliasOf(\"raster.rasterInfo\")],t.prototype,\"rasterInfo\",void 0),r.__decorate([l.property()],t.prototype,\"sourceJSON\",void 0),r.__decorate([l.property({type:i.SpatialReference}),l.aliasOf(\"rasterInfo.spatialReference\")],t.prototype,\"spatialReference\",void 0),r.__decorate([l.property({type:h,dependsOn:[\"rasterInfo\"]}),l.aliasOf(\"rasterInfo.storageInfo.tileInfo\")],t.prototype,\"tileInfo\",void 0),r.__decorate([l.property(u.url)],t.prototype,\"url\",null),r.__decorate([l.property({types:n.rasterRendererTypes})],t.prototype,\"renderer\",null),r.__decorate([l.property()],t.prototype,\"symbolizer\",void 0),t=r.__decorate([l.subclass(\"esri.layers.ImageryTileMixin\")],t)}(e)}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/Error\",\"../../core/promiseUtils\",\"../../core/workers\",\"./PixelBlock\"],(function(e,r,t,n,o,i,s){\"use strict\";return function(){function e(){this._workerThread=null,this._destroyed=!1}return e.prototype.initialize=function(){return t.__awaiter(this,void 0,void 0,(function(){var e;return t.__generator(this,(function(r){switch(r.label){case 0:return[4,i.open(\"RasterWorker\")];case 1:return e=r.sent(),this._destroyed?e.close():this._workerThread=e,[2]}}))}))},e.prototype.destroy=function(){this._destroyed=!0,this._workerThread&&(this._workerThread.close(),this._workerThread=null)},e.prototype.decode=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return[4,this._workerThread.invoke(\"decode\",e,r)];case 1:return[2,(o=t.sent())?new s(o):null]}}))}))},e.prototype.symbolize=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o,i;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return o={extent:e.extent&&e.extent.toJSON(),pixelBlock:e.pixelBlock.toJSON(),simpleStretchParams:e.simpleStretchParams,bandIds:e.bandIds},[4,this._workerThread.invoke(\"symbolize\",o,r)];case 1:return[2,(i=t.sent())?new s(i):null]}}))}))},e.prototype.updateSymbolizer=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var i;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return i=e&&e.renderer&&\"raster-stretch\"===e.renderer.type&&e.renderer.histograms,[4,o.all(this._workerThread.broadcast(\"updateSymbolizer\",{symbolizerJSON:e.toJSON(),histograms:i},r))];case 1:return t.sent(),[2]}}))}))},e.prototype.stretch=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o,i;return t.__generator(this,(function(t){switch(t.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return e&&e.pixelBlock?(o={srcPixelBlock:e.pixelBlock.toJSON(),stretchParams:e.stretchParams},[4,this._workerThread.invoke(\"stretch\",o,r)]):[2,null];case 1:return[2,(i=t.sent())?new s(i):null]}}))}))},e.prototype.mosaicAndTransform=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var o,i;return t.__generator(this,(function(a){switch(a.label){case 0:if(!this._workerThread)throw new n(\"raster-jobhandler:no-connection\",\"no available worker connection\");return e&&e.srcPixelBlocks&&e.srcPixelBlocks.length>0?(o=t.__assign(t.__assign({},e),{srcPixelBlocks:e.srcPixelBlocks.map((function(e){return e?e.toJSON():null}))}),[4,this._workerThread.invoke(\"mosaicAndTransform\",o,r)]):[2,null];case 1:return[2,(i=a.sent())?new s(i):null]}}))}))},e}()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../geometry\",\"./EphemeralBlockCache\",\"../rasterFunctions/rasterProjectionHelper\"],(function(e,t,r,n,a){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.update=t.deleteBlock=t.putBlock=t.getBlock=t.decreaseRefCount=t.deleteRaster=t.unregister=t.register=t.getRasterId=void 0;var l=new Map,o=new n;t.getRasterId=function(e,t){return null==t?e:e+\"?sliceId=\"+t},t.register=function(e,t){var r={extent:null,rasterInfo:t,cache:new Map};if(l.has(e)){var n=l.get(e);return n.push(r),n.length-1}return l.set(e,[r]),0},t.unregister=function(e,t){l.has(e)&&(l.get(e)[t]=null)},t.deleteRaster=function(e){l.delete(e)},t.decreaseRefCount=function(e,t,r){if(!l.has(e))return null==t?o.decreaseRefCount(e,r):0;var n=l.get(e);if(null==n[t])return o.decreaseRefCount(e,r);var a=n[t].cache;if(a.has(r)){var i=a.get(r);if(i.refCount--,0===i.refCount){a.delete(r);for(var c=0;c0?x.storageInfo.pyramidBlockWidth:x.storageInfo.blockWidth,w=B>0?x.storageInfo.pyramidBlockHeight:x.storageInfo.blockHeight,P=Math.max(0,Math.floor(C.x/j)-1),E=Math.max(0,Math.floor(C.y/w)-1),H=Math.floor((C.x+I-1)/j)+1,W=Math.floor((C.y+b-1)/w)+1,_=E;_<=W;_++)for(var q=P;q<=H;q++)m.add(B+\"/\"+_+\"/\"+q)}}h.forEach((function(e,t){if(!m.has(t)){var r=h.get(t);(null==r||r.isResolved||r.isRejected)&&h.delete(t)}})),f.extent={xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax}}}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry\",\"../../../request\",\"../../../core/arrayUtils\",\"../../../core/Error\",\"../../../core/JSONSupport\",\"../../../core/Logger\",\"../../../core/maybe\",\"../../../core/Promise\",\"../../../core/promiseUtils\",\"../../../core/accessorSupport/decorators\",\"../arcgisLayerUrl\",\"../commonProperties\",\"../RasterStorageInfo\",\"../TileInfo\",\"./RawBlockCache\",\"../rasterFormats/RasterCodec\",\"../rasterFunctions/pixelUtils\",\"../rasterFunctions/rasterProjectionHelper\"],(function(e,t,r,n,o,i,a,s,l,u,c,f,h,d,p,m,g,y,x,v,_){\"use strict\";return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rasterJobHandler=null,t.datasetName=null,t.datasetFormat=null,t.rasterInfo=null,t.ioConfig={sampling:\"closest\"},t}return r.__extends(t,e),t.prototype.init=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return e=_.load(),this.addResolvingPromise(e),[4,this.when()];case 1:return t.sent(),[2]}}))}))},t.prototype.normalizeCtorArgs=function(e){return e&&e.ioConfig&&(e=r.__assign(r.__assign({},e),{ioConfig:r.__assign({resolution:null,bandIds:null,sampling:\"closest\",tileInfo:g.create()},e.ioConfig)})),e},Object.defineProperty(t.prototype,\"url\",{set:function(e){this._set(\"url\",d.sanitizeUrl(e,l.getLogger(this.declaredClass)))},enumerable:!1,configurable:!0}),t.prototype.open=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){throw new a(\"BaseRaster:open-not-implemented\",\"open() is not implemented\")}))}))},t.prototype.fetchTile=function(e,t,o,i){var a;return void 0===i&&(i={}),r.__awaiter(this,void 0,void 0,(function(){var s,l,c,f;return r.__generator(this,(function(h){return s=i.tileInfo,l=s.lodAt(e),c=new n.Point({x:l.resolution,y:l.resolution,spatialReference:s.spatialReference}),f=this.getTileExtent(c,t,o,s),(null===(a=i.multidimensionalDefinition)||void 0===a?void 0:a.length)&&u.isSome(this.rasterInfo.multidimensionalInfo)&&null==i.sliceId&&(i=r.__assign(r.__assign({},i),{sliceId:this.getSliceIndex(i.multidimensionalDefinition)||0})),[2,this.fetchPixels(f,s.size[0],s.size[1],i)]}))}))},t.prototype.identify=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,o,i,a,s,l,c,f,h,d,p,m,g,x,v,w,I,b;return r.__generator(this,(function(r){switch(r.label){case 0:return n=this.rasterInfo,o=n.spatialReference,i=n.extent,a=t.datumTransformation,s=_.projectPoint(e,o,a),i.intersects(s)?(l=0,t.srcResolution?(c=_.snapPyramid(t.srcResolution,this.rasterInfo,this.ioConfig.sampling),l=c.pyramidLevel,[3,3]):[3,1]):[2,{location:s,value:null}];case 1:return[4,this.computeBestPyramidLevelForLocation(e,t)];case 2:if(null==(l=r.sent()))return[2,{location:s,value:null}];r.label=3;case 3:return null===(f=this.identifyPixelLocation(s,l,null))?[2,{location:s,value:null}]:(h=f.row,d=f.col,p=f.rowOffset,m=f.colOffset,g=y.getRasterId(this.url,t.sliceId),x=l+\"/\"+h+\"/\"+d,v=y.getBlock(g,null,x),u.isSome(v)||(v=this.fetchRawTile(l,h,d,t),y.putBlock(g,null,x,v)),[4,v]);case 4:return(w=r.sent())&&w.pixels&&w.pixels.length>0?(I=p*this.rasterInfo.storageInfo.blockHeight+m,b=!w.mask||w.mask[I]?w.pixels.map((function(e){return e[I]})):null,[2,{location:s,value:b,pyramidLevel:l}]):[2,{location:s,value:null}]}}))}))},t.prototype.fetchPixels=function(e,t,o,i){return void 0===i&&(i={}),r.__awaiter(this,void 0,void 0,(function(){var a,s,l,u,c,f,h,d,p,m,g,y,x,w,I,b,k,R,M,C,P,B,S,T,F;return r.__generator(this,(function(r){switch(r.label){case 0:return a=e.clone().normalize(),e=a[0],s=this.rasterInfo.spatialReference,l=!e.spatialReference.equals(s),u=i.datumTransformation,c=new n.Point({x:(e.xmax-e.xmin)/t,y:(e.ymax-e.ymin)/o,spatialReference:e.spatialReference}),(f=i.srcResolution||(l?_.projectResolution(c,s,e,u):c))?(h=_.snapPyramid(f,this.rasterInfo,this.ioConfig.sampling),d=h.pyramidLevel,p=h.pyramidResolution,h.excessiveReading?[2,null]:(m=this.rasterInfo.storageInfo,null==(g=l?_.projectExtent(e,s,u):e)?[2,null]:(y={x:Math.floor((g.xmin-m.origin.x)/p.x+.1),y:Math.floor((m.origin.y-g.ymax)/p.y+.1)},x=Math.ceil((g.xmax-g.xmin)/p.x-.1),w=Math.ceil((g.ymax-g.ymin)/p.y-.1),x/t>8||w/o>8?[2,null]:[4,this.fetchRawPixels(d,y,{width:x,height:w},i)]))):[2,null];case 1:return(I=r.sent())?(b=d>0?m.pyramidBlockWidth:m.blockWidth,k=d>0?m.pyramidBlockHeight:m.blockHeight,!l&&1===I.pixelBlocks.length&&b===t&&k===o&&f.x===c.x&&f.y===c.y?[2,{extent:e,srcExtent:g,pixelBlock:I.pixelBlocks[0],transformGrid:null}]:(R=_.getProjectionOffsetGrid(e,I.extent,c,u),C=!i.requestRawData,P={rows:R.spacing[0],cols:R.spacing[1]},B=I.pixelBlocks,S=I.mosaicSize,T=I.isPartiallyFilled,this.rasterJobHandler?[4,this.rasterJobHandler.mosaicAndTransform({srcPixelBlocks:B,srcMosaicSize:S,destDimension:C?{width:t,height:o}:null,coefs:C?R.coefficients:null,sampleSpacing:C?P:null,interpolation:i.interpolation},i)]:[3,3])):[2,null];case 2:return M=r.sent(),[3,4];case 3:F=v.mosaic(B,S),M=C?v.approximateTransform(F,{width:t,height:o},R.coefficients,P,i.interpolation):F,r.label=4;case 4:return[2,{srcExtent:g,pixelBlock:M,transformGrid:R,extent:e,isPartiallyFilled:T}]}}))}))},t.prototype.fetchRawPixels=function(e,t,o,i){return r.__awaiter(this,void 0,void 0,(function(){var a,s,l,u,c,h,d,p,m,g,y,x,v,_,w,I,b,k,R,M,C,P,B,S,T,F,L,D,z,H;return r.__generator(this,(function(r){switch(r.label){case 0:if(a=this.rasterInfo.storageInfo,s=a.origin,l=a.blockBoundary,u=e>0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,c=e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight,h=t.x,d=t.y,p=o.width,m=o.height,i.buffer&&(h-=i.buffer.cols,d-=i.buffer.rows,p+=2*i.buffer.cols,m+=2*i.buffer.rows),g=Math.floor(h/u),y=Math.floor(d/c),x=Math.floor((h+p-1)/u),v=Math.floor((d+m-1)/c),_=this.rasterInfo,w=_.pixelSize,I=_.spatialReference,!(b=l[e]))return[2,null];if(k=b.minRow,R=b.minCol,M=b.maxCol,C=b.maxRow,vC||g>M)return[2,null];for(P=[],S=!1,T=y;T<=v;T++)for(F=g;F<=x;F++)T>=k&&F>=R&&C>=T&&M>=F?(B=this._fetchRawTile(e,T,F,i),this.ioConfig.allowPartialFill&&(B=f.create((function(e){B.then((function(t){return e(t)})).catch((function(){S=!0,e(null)}))}))),P.push(B)):P.push(null);return 0===P.length?[2,null]:[4,f.all(P)];case 1:return L=r.sent(),D={height:(v-y+1)*u,width:(x-g+1)*c},z=w.x*Math.pow(2,e),H=w.y*Math.pow(2,e),[2,{extent:new n.Extent({xmin:s.x+g*u*z,xmax:s.x+(x+1)*u*z,ymin:s.y-(v+1)*c*H,ymax:s.y-y*c*H,spatialReference:I}),pixelBlocks:L,mosaicSize:D,isPartiallyFilled:S}]}}))}))},t.prototype.fetchRawTile=function(e,t,n,o){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){throw new a(\"BaseRaster:read-not-implemented\",\"fetchRawTile() is not implemented\")}))}))},t.prototype.computeExtent=function(e){return _.projectExtent(this.rasterInfo.extent,e)},t.prototype.decodePixelBlock=function(e,t){return this.rasterJobHandler?this.rasterJobHandler.decode({data:e,options:t}):x.decode(e,t)},t.prototype.request=function(e,t,n){var i;return r.__awaiter(this,void 0,void 0,(function(){var a,s,l,u,c,f;return r.__generator(this,(function(h){switch(h.label){case 0:a=this.ioConfig.customFetchParameters,s=t.range,l=t.query,u=t.headers,n=null!==(i=null!=n?n:t.retryCount)&&void 0!==i?i:this.ioConfig.retryCount,c=s?{Range:\"bytes=\"+s.from+\"-\"+s.to}:null,h.label=1;case 1:return h.trys.push([1,3,,4]),[4,o(e,r.__assign(r.__assign({},t),{query:r.__assign(r.__assign({},l),a),headers:r.__assign(r.__assign({},u),c)}))];case 2:return[2,h.sent()];case 3:if(f=h.sent(),n>0)return n--,[2,this.request(e,t,n)];throw f;case 4:return[2]}}))}))},t.prototype.getSliceIndex=function(e){var t=this,r=this.rasterInfo.multidimensionalInfo;if(!u.isSome(r)||!(null==e?void 0:e.length))return null;for(var n=0,o=e[0].variableName,i=function(i){var s=r.variables[i],l=s.dimensions;if(s.name!==o)return n+=l.map((function(e){return t._getDimensionValuesCount(e)})).reduce((function(e,t){return e+t})),\"break\";for(var u=l.map((function(e){return t._getDimensionValuesCount(e)})),c=l.length,f=function(t){var r=e.filter((function(e){return e.dimensionName===l[t].name}))[0];if(null==r)return{value:null};var o=Array.isArray(r.values[0])?r.values[0][0]:r.values[0],i=a._getIndexFromDimensions(o,l[t]);if(-1===i)return{value:null};u.shift(),n+=t===c-1?i:i*u.reduce((function(e,t){return e+t}))},h=0;hc)return null;var p=Math.pow(f,t),m=p*i.x,g=p*i.y,y=(h.y-d.y)/g/u,x=(d.x-h.x)/m/l,v=Math.min(u-1,Math.floor((y-Math.floor(y))*u)),w=Math.min(l-1,Math.floor((x-Math.floor(x))*l));return{pyramidLevel:t,row:Math.floor(y),col:Math.floor(x),rowOffset:v,colOffset:w,srcLocation:d}},t.prototype.getTileExtent=function(e,t,r,o){var i=o.origin,a=o.spatialReference,s=o.size[0],l=o.size[1],u=i.x+r*s*e.x,c=u+s*e.x,f=i.y-t*l*e.y,h=f-l*e.y;return new n.Extent({xmin:u,xmax:c,ymin:h,ymax:f,spatialReference:a})},t.prototype._computeBlockBoundary=function(e,t,r,n,o){var i=t.x,a=t.y,s=e.xmin,l=e.ymax,u=[{minCol:Math.floor((e.xmin-s+.1*i)/n/i),maxCol:Math.floor((e.xmax-s-.1*i)/n/i),minRow:Math.floor((l-e.ymax+.1*a)/o/a),maxRow:Math.floor((l-e.ymin-.1*a)/o/a)}];if(r>0)for(var c=0;cc||n>l)return f.resolve(null);var h=y.getRasterId(this.url,o.sliceId),d=e+\"/\"+t+\"/\"+n,p=y.getBlock(h,o.registryId,d);if(!u.isSome(p)){var m=f.createAbortController();p=this.fetchRawTile(e,t,n,r.__assign(r.__assign({},o),{signal:m.signal})),y.putBlock(h,o.registryId,d,p,m),p.catch((function(){y.deleteBlock(h,o.registryId,d)}))}return o.signal&&f.onAbort(o,(function(){y.decreaseRefCount(h,o.registryId,d)})),p},t.prototype._getIndexFromDimensions=function(e,t){var r,n=t.extent,o=t.interval,a=t.unit,s=t.values;if(null==s?void 0:s.length)return Array.isArray(s[0])?i.findIndex(s,(function(t){return t[0]<=e&&t[1]>=e})):s.indexOf(e);if(e>n[1])return-1;var l=n[0],u=-1;if(\"ISO8601\"===a){switch((null===(r=t.intervalUnit)||void 0===r?void 0:r.toLowerCase())||\"seconds\"){case\"seconds\":u=Math.round((e-l)/1e3/o);break;case\"minutes\":u=Math.round((e-l)/6e4/o);break;case\"hours\":u=Math.round((e-l)/36e5/o);break;case\"days\":u=Math.round((e-l)/864e5/o);break;case\"years\":u=Math.round((new Date(e).getUTCFullYear()-new Date(l).getUTCFullYear())/o);break;case\"decades\":u=Math.round((new Date(e).getUTCFullYear()-new Date(l).getUTCFullYear())/10/o)}return u}return Math.round((e-l)/o)},t.prototype._getDimensionValuesCount=function(e){var t,r=e.extent,n=e.interval,o=e.unit,i=e.values,a=(null==i?void 0:i.length)||0;if(a)return a;var s=r[0];if(0===a&&\"ISO8601\"===o){switch((null===(t=e.intervalUnit)||void 0===t?void 0:t.toLowerCase())||\"seconds\"){case\"seconds\":a=Math.round((r[1]-r[0])/1e3/n);break;case\"minutes\":a=Math.round((r[1]-r[0])/6e4/n);break;case\"hours\":a=Math.round((r[1]-r[0])/36e5/n);break;case\"days\":a=Math.round((r[1]-r[0])/864e5/n);break;case\"years\":a=Math.round((new Date(r[1]).getUTCFullYear()-new Date(s).getUTCFullYear())/n);break;case\"decades\":a=Math.round((new Date(r[1]).getUTCFullYear()-new Date(s).getUTCFullYear())/10/n)}return a}return Math.round((r[1]-r[0])/n)},r.__decorate([h.property(p.url)],t.prototype,\"url\",null),r.__decorate([h.property({type:String,json:{write:!0}})],t.prototype,\"datasetName\",void 0),r.__decorate([h.property({type:String,json:{write:!0}})],t.prototype,\"datasetFormat\",void 0),r.__decorate([h.property()],t.prototype,\"rasterInfo\",void 0),r.__decorate([h.property()],t.prototype,\"ioConfig\",void 0),r.__decorate([h.property()],t.prototype,\"sourceJSON\",void 0),t=r.__decorate([h.subclass(\"esri.layers.support.rasterDatasets.BaseRaster\")],t)}(c.EsriPromiseMixin(s.JSONSupport))}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../core/MapUtils\"],(function(t,e,r){\"use strict\";return function(){function t(t,e){void 0===t&&(t=15e3),void 0===e&&(e=5e3),this._timer=null,this._cachedBlocks=new Map,this._size=-1,this._duration=t,this._interval=Math.min(t,e)}return t.prototype.decreaseRefCount=function(t,e){var r=t+\"/\"+e,i=this._cachedBlocks;if(i.has(r)){var o=i.get(r);return o.refCount--,o.refCount<=0&&(i.delete(r),o.controller&&o.controller.abort()),o.refCount}return 0},t.prototype.getBlock=function(t,e){var r=t+\"/\"+e,i=this._cachedBlocks;if(i.has(r)){var o=i.get(r);return o.ts=Date.now(),o.refCount++,i.delete(r),i.set(r,o),o.block}return null},t.prototype.putBlock=function(t,e,r,i){void 0===i&&(i=null);var o=this._cachedBlocks,n=t+\"/\"+e;if(o.has(n)){var s=o.get(n);s.ts=Date.now(),s.refCount++}else o.set(n,{block:r,ts:Date.now(),refCount:1,controller:i});this.trim(),this.updateTimer()},t.prototype.deleteBlock=function(t,e){var r=this._cachedBlocks,i=t+\"/\"+e;r.has(i)&&r.delete(i)},t.prototype.updateMaxSize=function(t){this._size=t,this.trim()},t.prototype.empty=function(){this._cachedBlocks.clear(),this.clearTimer()},t.prototype.getCurrentSize=function(){return this._cachedBlocks.size},t.prototype.updateTimer=function(){var t=this;if(null==this._timer){var e=this._cachedBlocks;this._timer=setInterval((function(){for(var i=r.pairsOfMap(e),o=Date.now(),n=0;n=t.size))for(var e=r.pairsOfMap(t),i=0;i-1?(l=n.slice(0,n.indexOf(\"/\")),n=n.slice(n.indexOf(\"/\")+1)):n=\"\",!(t=n?r(e,l).getElementsByTagNameNS(\"*\",n):e.getElementsByTagNameNS(\"*\",l))||0===t.length)return[];for(var u=[],i=0;i-1?(l=n.slice(0,n.indexOf(\"/\")),n=n.slice(n.indexOf(\"/\")+1)):n=\"\";var u=t(e,l);return u.length>0?n?r(u[0],n):u[0]:null}function l(e,n){void 0===n&&(n=null);var t,l=n?r(e,n):e;return l&&(t=l.textContent||l.nodeValue)?t.trim():null}function u(e,n){for(var r,l=t(e,n),u=[],i=0;i0?this.rasterInfo.storageInfo.pyramidBlockWidth:this.rasterInfo.storageInfo.blockWidth,o=e>0?this.rasterInfo.storageInfo.pyramidBlockHeight:this.rasterInfo.storageInfo.blockHeight,!(l=n[e])||l.maxRowt||l.minCol>i?[2,null]:(u=this.getTileLocation(e,t,i))?(f=u.range,d=u.actualTileWidth,h=u.actualTileHeight,c=u.ifd,[4,this.request(this.url,{range:f,responseType:\"array-buffer\",signal:a.signal})]):[2,null]);case 1:return p=r.sent().data,[4,this.decodePixelBlock(p,{format:\"tiff\",customOptions:{headerInfo:this._headerInfo,ifd:c,offset:0,size:0},width:s,height:o,planes:null,pixelType:null})];case 2:if(y=r.sent(),d!==s||h!==o)if(_=y.mask)for(m=0;m=t.byteLength||a<0?[4,this.request(this.url,{range:{from:a+n,to:a+n+this._bufferSize},responseType:\"array-buffer\",signal:o})]:[3,2]:[2,null];case 1:l=r.sent(),t=l.data,n=a+n,a=0,r.label=2;case 2:return[4,this.readIFD(t,i,a,n,d.TIFF_TAGS,s,o)];case 3:return u=r.sent(),e.push(u.ifd),u.nextIFD?[4,this.readIFDs(e,t,i,u.nextIFD-n,n,s,o)]:[2,null];case 4:return r.sent(),[2]}}))}))},t.prototype.readIFD=function(e,t,i,a,n,s,o){return void 0===n&&(n=d.TIFF_TAGS),void 0===s&&(s=4),r.__awaiter(this,void 0,void 0,(function(){var l,u,h,c,p,y,m,I,g,_;return r.__generator(this,(function(r){switch(r.label){case 0:return e?(l=f.parseIFD(e,t,i,a,n,s)).success?(u=[],l.ifd.forEach((function(e){e.values||u.push(e)})),u.length>0?(h=u.map((function(e){return e.offlineOffsetSize})),c=Math.min.apply(null,h.map((function(e){return e[0]}))),Math.min.apply(null,h.map((function(e){return e[0]+e[1]})))-c<=this._bufferSize?[4,this.request(this.url,{range:{from:c,to:c+this._bufferSize},responseType:\"array-buffer\",signal:o})]:[3,2]):[3,2]):[3,5]:[2,null];case 1:p=r.sent().data,e=p,a=c,u.forEach((function(r){return f.parseFieldValues(e,t,r,a)})),r.label=2;case 2:return l.ifd.has(\"GEOKEYDIRECTORY\")?(y=l.ifd.get(\"GEOKEYDIRECTORY\"),(m=y.values)&&m.length>4?(I=m[0]+\".\"+m[1]+\".\"+m[2],[4,this.readIFD(e,t,y.valueOffset+6-a,a,d.GEO_KEYS,2,o)]):[3,4]):[3,4];case 3:g=r.sent(),y.data=g.ifd,y.data&&y.data.set(\"GEOTIFFVersion\",{id:0,type:2,valueCount:1,valueOffset:null,values:[I]}),r.label=4;case 4:return[2,l];case 5:return l.requiredBufferSize&&l.requiredBufferSize!==e.byteLength?[4,this.request(this.url,{range:{from:a,to:a+l.requiredBufferSize+4},responseType:\"array-buffer\",signal:o})]:[3,7];case 6:return _=r.sent(),(e=_.data).byteLengthy||r>m||t0)for(var g=function(){var n=[];32===t.getUint8(l)?(l+=1,f.forEach((function(t){if(\"C\"===t.type)n.push(r.bytesToUTF8(new Uint8Array(e,l,t.length)).trim());else if(\"N\"===t.type)n.push(parseInt(String.fromCharCode.apply(null,new Uint8Array(e,l,t.length)).trim(),10));else if(\"F\"===t.type)n.push(parseFloat(String.fromCharCode.apply(null,new Uint8Array(e,l,t.length)).trim()));else if(\"D\"===t.type){var i=String.fromCharCode.apply(null,new Uint8Array(e,l,t.length)).trim();n.push(new Date(parseInt(i.substring(0,4),10),parseInt(i.substring(4,6),10)-1,parseInt(i.substring(6,8),10)))}l+=t.length})),p.push(n)):l+=s};p.lengths;)g()}var d=function(e){var t=e.fields,r=e.records,n=t.some((function(e){return\"oid\"===e.name.toLowerCase()}))?\"OBJECTID\":\"OID\",i=[{name:n,type:\"esriFieldTypeOID\",alias:\"OID\"}].concat(t.map((function(e){return{name:e.name,type:\"esriFieldType\"+e.typeName,alias:e.name}}))),a=i.map((function(e){return e.name})),o=[],s=0,u=0;return r.forEach((function(e){var t={};for(t[n]=s++,u=1;u1e3&&Math.abs(180-M.xmax)<5e-4){M.xmin=-180,(P=[]).push(new n.Point(e.xmax,e.ymin,v)),P.push(new n.Point(e.xmax,(e.ymin+e.ymax)/2,v)),P.push(new n.Point(e.xmax,e.ymax,v));var R=P.map((function(e){return p(e,r,i)})).filter((function(e){return!isNaN(null==e?void 0:e.x)})).map((function(e){return e.x}));M.xmax=Math.max.apply(null,R)}if(Math.abs(e.xmax-j)<.001&&Math.abs(w-e.xmin)>1e3&&Math.abs(180+M.xmin)<5e-4){var P;M.xmax=180,(P=[]).push(new n.Point(e.xmin,e.ymin,v)),P.push(new n.Point(e.xmin,(e.ymin+e.ymax)/2,v)),P.push(new n.Point(e.xmin,e.ymax,v));R=P.map((function(e){return p(e,r,i)})).filter((function(e){return!isNaN(null==e?void 0:e.x)})).map((function(e){return e.x}));M.xmin=Math.min.apply(null,R)}}w=(c=r.isWebMercator?l.getInfo(r).origin:null!==(h=null===(m=l.getInfo(r))||void 0===m?void 0:m.valid)&&void 0!==h?h:[])[0],j=c[1];var b=x(r);return b&&null!=w&&null!=j&&(Math.abs(M.xmin-w)0&&c&&m&&h[U]&&null!=P&&m.xo&&(s=l>o+3,l=o);var u=Math.pow(2,l);return{pyramidLevel:l,pyramidResolution:new n.Point({x:u*r.pixelSize.x,y:u*r.pixelSize.y,spatialReference:r.spatialReference}),excessiveReading:s}},r.computeProjectedScales=function(e,r,i,t){void 0===i&&(i=512),void 0===t&&(t=!0);var o=e.extent,l=e.spatialReference,s=e.pixelSize,u=c(new n.Point({x:s.x,y:s.y,spatialReference:l}),r,o);if(null==u)return{projectedPixelSize:null,scales:null,srcResolutions:null};var x=(u.x+u.y)/2,p=a.getMetersPerUnitForSR(r),d=x*p*96*39.37,m=r.isGeographic?512/i*295828763.7958547:512/i*591657527.591555,h=!1;if(t&&(r.isGeographic||r.isWebMercator)){var v=f(o,r);h=v.xmin*v.xmax<0}var y,M=d;if(h){var g=(M=m)/(96*p*39.37);y=c(new n.Point({x:g,y:g,spatialReference:r}),l,o)}else{y={x:s.x,y:s.y};for(var w=Math.ceil(Math.log(Math.min(e.width,e.height)/32)/Math.LN2),j=0;M<.5005*m&&j=b;)R.push(M),P.push({x:y.x,y:y.y}),M/=2,y.x/=2,y.y/=2;return{projectedPixelSize:u,scales:R,srcResolutions:P}}}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../../geometry\",\"../../../core/Error\",\"../../../core/maybe\",\"../../../core/promiseUtils\",\"../../../core/promiseUtils\",\"../../../core/urlUtils\",\"../../../core/accessorSupport/decorators\",\"../RasterInfo\",\"../RasterStorageInfo\",\"../serviceTileInfoProperty\",\"../TileInfo\",\"../TilemapCache\",\"./BaseRaster\",\"../rasterFunctions/pixelUtils\",\"../../../tasks/support/FeatureSet\"],(function(e,t,i,n,r,a,s,l,o,u,c,h,f,m,d,p,v,y){\"use strict\";return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._levelOffset=0,t._slices=null,t._tilemapCache=null,t.datasetFormat=\"RasterTileServer\",t}return i.__extends(t,e),t.prototype.open=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,s,l,u,c,p,v,y,x,g,_,w,b,S,M,I,T,R,C,q,z,O,P,j;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.init()];case 1:return i.sent(),t=e&&e.signal,this.sourceJSON?(s={data:this.sourceJSON},[3,4]):[3,2];case 2:return[4,this.request(this.url,{query:{f:\"json\"},signal:t})];case 3:s=i.sent(),i.label=4;case 4:if((n=s).ssl&&(this.url=this.url.replace(/^http:/i,\"https:\")),l=n.data,this.sourceJSON=l,u=[\"jpg\",\"jpeg\",\"png\",\"png8\",\"png24\",\"png32\",\"mixed\"],this.tileType=l.cacheType,null==this.tileType&&(u.indexOf(l.tileInfo.format.toLowerCase())>-1?this.tileType=\"Map\":\"lerc\"===l.tileInfo.format.toLowerCase()?this.tileType=\"Elevation\":this.tileType=\"Raster\"),!l)throw new r(\"imageserverraster:open\",\"cannot initialize tiled image service, missing service info\");if(!l.tileInfo)throw new r(\"imageserverraster:open\",\"use ImageryLayer to open non-tiled image services\");return this.datasetName=l.name.slice(l.name.indexOf(\"/\")+1),[4,this._fetchRasterInfo({signal:t})];case 5:if(c=i.sent(),!a.isSome(c))throw new r(\"image-server-raster:open\",\"cannot initialize image service\");if(p=\"Map\"===this.tileType?f.readServiceTileInfo(l.tileInfo,l,null):m.fromJSON(l.tileInfo),v=c.extent,y=c.pixelSize,x=.5/c.width*y.x,g=void 0,_=void 0,w=p.lodAt(Math.max.apply(null,p.lods.map((function(e){return e.level})))),\"Map\"!==this.tileType&&0!==l.maxScale&&(\"Raster\"===this.tileType?(g=p.lods.filter((function(e){return e.resolution===y.x}))[0])||(g=p.lods[p.lods.length-1]):(g=p.lods.filter((function(e){return Math.abs(e.scale-l.maxScale)l.maxScale})).sort((function(e,t){return e.scale>t.scale?1:-1}))[0]),y.x=y.y=g.resolution,c.width=Math.ceil((v.xmax-v.xmin)/y.x-.1),c.height=Math.ceil((v.ymax-v.ymin)/y.y-.1)),g||(g=w),b=p.lodAt(Math.min.apply(null,p.lods.map((function(e){return e.level})))),\"Map\"===this.tileType?this._levelOffset=p.lods[0].level:0!==l.minScale&&\"Elevation\"===this.tileType&&(_=p.lods.filter((function(e){return Math.abs(e.scale-l.minScale)x||!p.lods.some((function(e){return Math.abs(e.resolution-S)0)for(P=0;P-1&&(j={tileInfo:c.storageInfo.tileInfo,parsedUrl:o.urlToObject(this.url),url:this.url,tileServers:[],type:\"tile\"},this._tilemapCache=new d.TilemapCache({layer:j})),[2]}}))}))},t.prototype.fetchRawTile=function(e,t,n,r){return void 0===r&&(r={}),i.__awaiter(this,void 0,void 0,(function(){var a,s,l,o,u,c,h,f,m,d,p,y,x,g,_,w,b,S,M,I,T,R;return i.__generator(this,(function(i){switch(i.label){case 0:return a=this.rasterInfo,s=a.storageInfo,l=a.extent,o=a.pixelSize,u=s.maximumPyramidLevel-e+this._levelOffset,c=this.url+\"/tile/\"+u+\"/\"+t+\"/\"+n,h=this._slices?{sliceId:r.sliceId||0}:null,[4,this.request(c,{query:h,responseType:\"array-buffer\",signal:r.signal})];case 1:return(f=i.sent().data)?[4,this.decodePixelBlock(f,{width:s.tileInfo.size[0],height:s.tileInfo.size[1],planes:null,pixelType:null,isPoint:\"Elevation\"===this.tileType})]:[2,null];case 2:return m=i.sent(),d=s.blockBoundary[e],\"jpg\"!==s.compression||n>d.minCol&&nd.minRow&&t=0))return[3,6];i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this._tilemapCache.fetchAvailability(s,n.row,n.col,t)];case 3:return\"available\"===i.sent()?[3,6]:[3,5];case 4:return i.sent(),[3,5];case 5:return s--,r++,null===(n=this.identifyPixelLocation(l,r,t.datumTransformation))?[2,null]:[3,1];case 6:return-1===s||null==n?[2,null]:[2,r]}}))}))},t.prototype._fetchRasterInfo=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,r,a,l,o,u,h,f,m,d,p,v,x=this;return i.__generator(this,(function(i){return t=this.sourceJSON,r=Math.ceil((t.extent.xmax-t.extent.xmin)/t.pixelSizeX-.1),a=Math.ceil((t.extent.ymax-t.extent.ymin)/t.pixelSizeY-.1),l=n.SpatialReference.fromJSON(t.spatialReference||t.extent.spatialReference),\"Map\"===this.tileType?[2,new c({width:r,height:a,bandCount:3,extent:n.Extent.fromJSON(t.extent),spatialReference:l,pixelSize:new n.Point({x:t.pixelSizeX,y:t.pixelSizeY,spatialReference:l}),pixelType:\"u8\",statistics:null,keyProperties:{DataType:\"processed\"}})]:(o=e.slice,u=e.signal,h=!!t.hasRasterAttributeTable&&this.request(this.url+\"/rasterAttributeTable\",{query:{slice:o,f:\"json\"},signal:u}).then((function(e){return y.fromJSON(e.data)})).catch((function(){return null})),f=!!t.hasColormap&&this.request(this.url+\"/colormap\",{query:{slice:o,f:\"json\"},signal:u}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.colormap})),m=!!t.hasHistograms&&this.request(this.url+\"/histograms\",{query:{slice:o,f:\"json\"},signal:u}).then((function(e){var t;return null===(t=e.data)||void 0===t?void 0:t.histograms})),d=this.request(this.url+\"/keyProperties\",{query:{f:\"json\"},signal:u}).then((function(e){return e.data})).catch((function(){})),p=!!t.hasMultidimensions&&this._fetchMultidimensionalInfo(),v=!!t.hasMultidimensions&&this.request(this.url+\"/slices\",{query:{f:\"json\"},signal:u}).then((function(e){return e.data&&e.data.slices})).catch((function(){})),[2,s.all([h,f,m,d,p,v]).then((function(e){var i=null;if(t.minValues&&t.minValues.length===t.bandCount){i=[];for(var s=0;s0&&(this.rasterInfo.storageInfo.firstPyramidLevel=1,this.rasterInfo.storageInfo.maximumPyramidLevel=f),this.updateTileInfo(),[2]}}))}))},t.prototype.fetchRawTile=function(e,t,n,a){return void 0===a&&(a={}),r.__awaiter(this,void 0,void 0,(function(){var o,s,u,f,p,h,c,g,d,m,y,w,I,x,b,_,M,v,A,R,F,T,E,k,U,C;return r.__generator(this,(function(r){switch(r.label){case 0:if(o=this.rasterInfo.storageInfo,s=o.blockWidth,u=o.blockHeight,f=o.blockBoundary,p=o.compression,!(h=f[e])||h.maxRowt||h.minCol>n)return[2,null];if(c=this.rasterInfo,g=c.bandCount,d=c.pixelType,m=this._getTileLocation(e,t,n),y=m.ranges,w=m.actualTileWidth,I=m.actualTileHeight,!y||0===y.length)return[2,null];if(0===y[0].from&&0===y[0].to)return C=new Uint8Array(s*u),[2,new l({width:s,height:u,pixels:null,mask:C,validPixelCount:0})];for(x=this.ioConfig.bandIds,b=\"none\"===p?1:g,_=[],M=0,M=0;M-1)&&_.push(this.request(this._files.data,{range:{from:y[M].from,to:y[M].to},responseType:\"array-buffer\",signal:a.signal}));return[4,i.all(_)];case 1:for(v=r.sent(),A=v.map((function(e){return e.data.byteLength})).reduce((function(e,t){return e+t})),R=new Uint8Array(A),F=0,M=0;M0)throw\"invalid array buffer must be multiples of 16\";var t,r,n,a,o,i;if(d){for(r=new Uint8Array(e),a=new ArrayBuffer(e.byteLength),n=new Uint8Array(a),o=0;o-1&&(u=\"RasterTileServer\"),c={bandIds:null,sampling:null},l={url:r,sourceJSON:a,datasetFormat:u,ioConfig:s||c},this.supportedFormats.has(u)?(f=i.get(u).constructor,[4,(d=new f(l)).open({signal:e.signal})]):[3,2];case 1:return t.sent(),[2,d];case 2:if(u)throw new n(\"rasterfactory:open\",\"not a supported format \"+u);return p=o.keysOfMap(i),F=0,[2,(g=function(){return(u=p[F++])?(f=i.get(u).constructor,(d=new f(l)).open({signal:e.signal}).then((function(){return d})).catch((function(){return g()}))):null})()]}}))}))},e.register=function(e,r,t){i.has(e.toUpperCase())||i.set(e.toUpperCase(),{desc:r,constructor:t})},e}()}));","// COPYRIGHT © 2020 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.17/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"tslib\",\"../../core/JSONSupport\",\"../../core/lang\",\"../../core/accessorSupport/decorators\",\"../../core/accessorSupport/ensureType\"],(function(e,r,t,o,i,s,n){\"use strict\";return function(e){function r(r){var t=e.call(this,r)||this;return t.variableName=null,t.dimensionName=null,t.values=[],t.isSlice=!1,t}var o;return t.__extends(r,e),o=r,r.prototype.clone=function(){return new o({variableName:this.variableName,dimensionName:this.dimensionName,values:i.clone(this.values),isSlice:this.isSlice})},t.__decorate([s.property({type:String,json:{write:!0}})],r.prototype,\"variableName\",void 0),t.__decorate([s.property({type:String,json:{write:!0}})],r.prototype,\"dimensionName\",void 0),t.__decorate([s.property({type:n.types.array(n.types.oneOf([n.types.native(Number),n.types.array(n.types.native(Number))])),json:{write:!0}})],r.prototype,\"values\",void 0),t.__decorate([s.property({type:Boolean,json:{write:!0}})],r.prototype,\"isSlice\",void 0),r=o=t.__decorate([s.subclass(\"esri.layers.support.DimensionalDefinition\")],r)}(o.JSONSupport)}));"],"sourceRoot":""}