{"version":3,"sources":["webpack:///./node_modules/arcgis-js-api/views/3d/layers/ImageryTileLayerView3D.js","webpack:///./node_modules/arcgis-js-api/geometry/geometryAdapters/json.js","webpack:///./node_modules/arcgis-js-api/views/layers/support/popupUtils.js","webpack:///./node_modules/arcgis-js-api/views/support/drapedUtils.js","webpack:///./node_modules/arcgis-js-api/layers/graphics/data/projectionSupport.js","webpack:///./node_modules/arcgis-js-api/layers/support/rasterFunctions/rasterProjectionHelper.js","webpack:///./node_modules/arcgis-js-api/views/layers/ImageryTileLayerView.js","webpack:///./node_modules/arcgis-js-api/renderers/support/clickToleranceUtils.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,2BAAqB,CAAC,2BAA0B,CAAC,2BAA0C,CAAC,2BAAe,CAAC,2BAAoB,CAAC,2BAAuB,CAAC,2BAAmC,CAAC,2BAAwB,CAAC,2BAAmC,CAAC,2BAA2B,CAAC,mCAAE,oCAAoC,aAAa,mBAAmB,aAAa,8CAA8C,+BAA+B,0DAA0D,WAAW,2CAA2C,8BAA8B,4BAA4B,qFAAqF,8IAA8I,qBAAqB,yBAAyB,0EAA0E,mBAAmB,6DAA6D,mBAAmB,uDAAuD,mBAAmB,0EAA0E,mBAAmB,GAAG,GAAG,4BAA4B,gCAAgC,0DAA0D,iDAAiD,eAAe,+FAA+F,yEAAyE,+BAA+B,2DAA2D,eAAe,yCAAyC,+BAA+B,4DAA4D,eAAe,2CAA2C,+BAA+B,sDAAsD,eAAe,uFAAuF,0CAA0C,+BAA+B,0CAA0C,kDAAkD,gBAAgB,uCAAuC,gBAAgB,0EAA0E,kGAAkG,mCAAmC,2IAA2I,uDAAuD,UAAU,8RAA8R,GAAG,GAAG,+CAA+C,w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KAAK;AAAA,oGAAE,C;;;;;;;ACxB/mI;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,mCAAE,cAAc,aAAa,gBAAgB,kIAAkI,gBAAgB,kEAAkE,oBAAoB,WAAW,KAAK,gBAAgB,+BAA+B,WAAW,YAAY,sCAAsC,SAAS,+DAA+D,sEAAsE,eAAe,0CAA0C,eAAe,4BAA4B,sBAAsB,oBAAoB,4BAA4B,wBAAwB,kBAAkB,kBAAkB,YAAY,IAAI,YAAY,sBAAsB,qBAAqB,wBAAwB,0CAA0C,4BAA4B,QAAQ,+CAA+C,gBAAgB,KAAK,4BAA4B,QAAQ,8CAA8C,gBAAgB,KAAK,iBAAiB;AAAA,oGAAE,C","file":"js/chunk-2689f633.51978158.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\",\"../../../core/maybe\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"./LayerView3D\",\"./TiledLayerView3D\",\"../terrain/RasterTile\",\"../../layers/ImageryTileLayerView\",\"../../layers/LayerView\",\"../../layers/RefreshableLayerView\",\"../../support/drapedUtils\"],(function(e,r,t,i,a,n,o,l,s,d,u,p,y){\"use strict\";return function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.isAlignedMapTile=!0,r}return t.__extends(r,e),r.prototype.initialize=function(){var e=this;this.layer.increaseRasterJobHandlerUsage();var r=this.updateFullExtent();this.addResolvingPromise(r);var t=a.whenTrueOnce(this.view,\"basemapTerrain.tilingSchemeLocked\").then((function(){var r=e.view.basemapTerrain.tilingScheme,t=e.layer.tileInfo,i=[\"png\",\"png24\",\"png32\",\"jpg\",\"mixed\"].indexOf(t.format)>-1&&r.compatibleWith(t);e.isAlignedMapTile=i;var a=i?t:r.toTileInfo();e._set(\"tileInfo\",a),e.updatingHandles.add(e,\"layer.renderer\",(function(){return e.refresh()})),e.updatingHandles.add(e,\"layer.interpolation\",(function(){return e.refresh()})),e.updatingHandles.add(e,\"layer.bandIds\",(function(){return e.refresh()})),e.updatingHandles.add(e,\"layer.multidimensionalDefinition\",(function(){return e.refresh()}))}));this.addResolvingPromise(t)},r.prototype.destroy=function(){this.layer.decreaseRasterJobHandlerUsage(),this.view=null},Object.defineProperty(r.prototype,\"_blankTile\",{get:function(){var e=document.createElement(\"canvas\"),r=e.getContext(\"2d\"),t=this.tileInfo.size,i=t[0],a=t[1];return e.width=i,e.height=a,r.clearRect(0,0,i,a),r.getImageData(0,0,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"imageFormatIsOpaque\",{get:function(){return\"jpg\"===this.layer.tileInfo.format},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"hasMixedImageFormats\",{get:function(){return\"mixed\"===this.layer.tileInfo.format},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,\"dataLevelRange\",{get:function(){var e=this.tileInfo.lods,r=this.layer.tileInfo.lods,t=e[0].scale,i=r[r.length-1].scale;return this.levelRangeFromScaleRange(t,i)},enumerable:!1,configurable:!0}),r.prototype.fetchTile=function(e,r,a,n){return t.__awaiter(this,void 0,void 0,(function(){var o,l,d,u,p,y;return t.__generator(this,(function(t){switch(t.label){case 0:return o=this.tileInfo,l=this.layer.symbolizer.canRenderInWebGL,d={tileInfo:o,requestRawData:l,signal:i.unwrap(n.signal),requestAsImageElement:this.isAlignedMapTile},[4,this.layer.fetchTile(e,r,a,d)];case 1:return(u=t.sent())instanceof HTMLImageElement?[2,u]:(p=u&&u.pixelBlock)?l?[3,3]:[4,this.layer.applyRenderer(u)]:[2,this._blankTile];case 2:if(null==(p=t.sent()))return[2,this._blankTile];t.label=3;case 3:return y=new s.default([e,r,a],p,o.size[0],o.size[1]),l&&(y.symbolizerRenderer=this.layer.symbolizer.renderer,y.symbolizerParameters=this.layer.symbolizer.generateWebGLParameters(this._getSymbolizerOptions(e)),y.transformGrid=u.transformGrid),y.bandIds=this.layer.bandIds,[2,y]}}))}))},r.prototype._getSymbolizerOptions=function(e){var r=this.tileInfo.lodAt(e).resolution;return{pixelBlock:null,isGCS:this.view.spatialReference.isGeographic,resolution:{x:r,y:r},bandIds:this.layer.bandIds}},r.prototype.ensureSymbolizerParameters=function(e){e.symbolizerRenderer!==this.layer.symbolizer.renderer&&(e.symbolizerParameters=this.layer.symbolizer.generateWebGLParameters(this._getSymbolizerOptions(e.lij[0])))},r.prototype.createFetchPopupFeaturesQueryGeometry=function(e,r){return y.createQueryGeometry(e,r,this.view)},r.prototype.refresh=function(){this.emit(\"data-changed\")},r.prototype.doRefresh=function(e){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(e){return this.suspended?[2]:(this.emit(\"data-changed\"),[2])}))}))},t.__decorate([n.property({readOnly:!0,dependsOn:[\"tileInfo\"]})],r.prototype,\"_blankTile\",null),t.__decorate([n.property({readOnly:!0,dependsOn:[\"layer.tileInfo.format\"]})],r.prototype,\"imageFormatIsOpaque\",null),t.__decorate([n.property({readOnly:!0,dependsOn:[\"layer.tileInfo.format\"]})],r.prototype,\"hasMixedImageFormats\",null),t.__decorate([n.property({readOnly:!0,dependsOn:[\"tileInfo\",\"view.basemapTerrain.tilingScheme\",\"layer.url\"]})],r.prototype,\"dataLevelRange\",null),r=t.__decorate([n.subclass(\"esri.views.3d.layers.ImageryTileLayerView3D\")],r)}(d.ImageryTileLayerView(p.RefreshableLayerView(l.TiledLayerView3D(o.LayerView3D(u)))))}));","// 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\"],(function(t,i){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.jsonAdapter=void 0,i.jsonAdapter={convertToGEGeometry:function(t,i){if(null==i)return null;return t.convertJSONToGeometry(i)},exportPoint:function(t,i,n){var s=new e(t.getPointX(i),t.getPointY(i),n),a=t.hasZ(i),h=t.hasM(i);a&&(s.z=t.getPointZ(i));h&&(s.m=t.getPointM(i));return s},exportPolygon:function(t,i,e){return new n(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))},exportPolyline:function(t,i,e){return new s(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))},exportMultipoint:function(t,i,e){return new a(t.exportPoints(i),e,t.hasZ(i),t.hasM(i))},exportExtent:function(t,i,e){var n=t.hasZ(i),s=t.hasM(i),a=new h(t.getXMin(i),t.getYMin(i),t.getXMax(i),t.getYMax(i),e);if(n){var o=t.getZExtent(i);a.zmin=o.vmin,a.zmax=o.vmax}if(s){var r=t.getMExtent(i);a.mmin=r.vmin,a.mmax=r.vmax}return a}};var e=function(t,i,e){this.x=t,this.y=i,this.spatialReference=e,this.z=void 0,this.m=void 0};var n=function(t,i,e,n){this.rings=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var s=function(t,i,e,n){this.paths=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var a=function(t,i,e,n){this.points=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};var h=function(t,i,e,n,s){this.xmin=t,this.ymin=i,this.xmax=e,this.ymax=n,this.spatialReference=s,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}));","// 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\",\"@dojo/framework/shim/array\",\"../../../core/maybe\",\"../../../layers/support/fieldUtils\"],(function(e,i,t,l,s,d){\"use strict\";Object.defineProperty(i,\"__esModule\",{value:!0}),i.getFetchPopupTemplate=i.getRequiredFields=void 0,i.getRequiredFields=function(e,i){return void 0===i&&(i=e.popupTemplate),t.__awaiter(this,void 0,void 0,(function(){var a,r,u,p,o,n,f,c,h;return t.__generator(this,(function(F){switch(F.label){case 0:return s.isSome(i)?[4,i.getRequiredFields(e.fields)]:[2,[]];case 1:return a=F.sent(),r=i.lastEditInfoEnabled,u=e.objectIdField,p=e.typeIdField,o=e.globalIdField,n=e.relationships,l.includes(a,\"*\")?[2,[\"*\"]]:r?[4,d.getFeatureEditFields(e)]:[3,3];case 2:return c=F.sent(),[3,4];case 3:c=[],F.label=4;case 4:return f=c,h=d.fixFields(e.fields,t.__spreadArrays(a,f)),p&&h.push(p),h&&u&&d.hasField(e.fields,u)&&-1===h.indexOf(u)&&h.push(u),h&&o&&d.hasField(e.fields,o)&&-1===h.indexOf(o)&&h.push(o),n&&n.forEach((function(i){var t=i.keyField;h&&t&&d.hasField(e.fields,t)&&-1===h.indexOf(t)&&h.push(t)})),[2,h]}}))}))},i.getFetchPopupTemplate=function(e,i){return e.popupTemplate?e.popupTemplate:s.isSome(i)&&i.defaultPopupTemplateEnabled&&s.isSome(e.defaultPopupTemplate)?e.defaultPopupTemplate:null}}));","// 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\",\"../../core/maybe\",\"../../core/unitUtils\",\"../../renderers/support/clickToleranceUtils\"],(function(e,r,t,a,n,i){\"use strict\";function s(e,r,a,i){var s;if(void 0===i&&(i=new t.Extent),\"2d\"===a.type)s=r*a.resolution;else if(\"3d\"===a.type){var o=a.basemapTerrain,l=o.overlayManager,c=l?l.overlayPixelSizeInMapUnits(e):1;s=o&&!o.spatialReference.equals(a.spatialReference)?n.getMetersPerUnitForSR(o.spatialReference)/n.getMetersPerUnitForSR(a.spatialReference):r*c}var u=e.x-s,p=e.y-s,y=e.x+s,m=e.y+s,f=a.spatialReference;return i.xmin=Math.min(u,y),i.ymin=Math.min(p,m),i.xmax=Math.max(u,y),i.ymax=Math.max(p,m),i.spatialReference=f,i}Object.defineProperty(r,\"__esModule\",{value:!0}),r.intersectsDrapedGeometry=r.createQueryGeometry=void 0,r.createQueryGeometry=s,r.intersectsDrapedGeometry=function(e,r,t){var n=t.toMap(e);return a.isNone(n)?null:s(n,i.calculateTolerance(),t,o).intersects(r)?n:null};var o=new t.Extent}));","// 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\",\"../../../geometry/projection\",\"../../../geometry/geometryAdapters/json\",\"../../../geometry/support/spatialReferenceUtils\",\"../../../geometry/support/webMercatorUtils\"],(function(e,r,t,n,i,o,s,a,u){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.projectMany=r.project=r.checkProjectionSupport=r.doesBrowserSupportProjection=void 0;var p=[0,0];function c(e,r){var t,n,i;if(!r)return null;if(\"x\"in r){var o={x:0,y:0};return t=e(r.x,r.y,p),o.x=t[0],o.y=t[1],null!=r.z&&(o.z=r.z),null!=r.m&&(o.m=r.m),o}if(\"xmin\"in r){o={xmin:0,ymin:0,xmax:0,ymax:0};return n=e(r.xmin,r.ymin,p),o.xmin=n[0],o.ymin=n[1],i=e(r.xmax,r.ymax,p),o.xmax=i[0],o.ymax=i[1],r.hasZ&&(o.zmin=r.zmin,o.zmax=r.zmax,o.hasZ=!0),r.hasM&&(o.mmin=r.mmin,o.mmax=r.mmax,o.hasM=!0),o}return\"rings\"in r?{rings:l(r.rings,e),hasM:r.hasM,hasZ:r.hasZ}:\"paths\"in r?{paths:l(r.paths,e),hasM:r.hasM,hasZ:r.hasZ}:\"points\"in r?{points:h(r.points,e),hasM:r.hasM,hasZ:r.hasZ}:void 0}function l(e,r){for(var t=[],n=0,i=e;n2&&s.push(o[2]),o.length>3&&s.push(o[3])}return t}function f(e,r){return!(!a.isValid(e)||!a.isValid(r)||a.equals(e,r)||u.canProject(e,r))}r.doesBrowserSupportProjection=function(e,r){return!f(e,r)||o.isSupported()},r.checkProjectionSupport=function(e,r){return t.__awaiter(this,void 0,void 0,(function(){var i,s,a;return t.__generator(this,(function(t){if(!r)return[2];if(Array.isArray(e)){for(i=0,s=e;i0&&(this._timer=setTimeout(this._process,10))}},e}());r.projectMany=function(e,r,n){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(t){return[2,y.push(e,r,n)]}))}))}}));","// 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/unitUtils\",\"../../../geometry/projection\",\"../../../geometry/support/spatialReferenceUtils\",\"../../../geometry/support/webMercatorUtils\"],(function(e,r,i,n,t,a,o,l,s){\"use strict\";Object.defineProperty(r,\"__esModule\",{value:!0}),r.computeProjectedScales=r.snapPyramid=r.getProjectionOffsetGrid=r.projectExtent=r.projectPoint=r.projectResolution=r.load=r.defaultGridSpacing=void 0;var u=function(e,r){var i=(e.isWGS84||e.isWebMercator)&&(r.isWGS84||r.isWebMercator);return!(e.equals(r)||i)};function c(e,r,i,a){if(void 0===a&&(a=null),e.spatialReference.equals(r))return e;var l=u(e.spatialReference,r);if(l&&!o.isLoaded())throw new t(\"rasterprojectionhelper-projectResolution\",\"projection engine is not loaded\");var c=i.center,x=new n.Extent({xmin:c.x-e.x/2,xmax:c.x+e.x/2,ymin:c.y-e.y/2,ymax:c.y+e.y/2,spatialReference:e.spatialReference}),p=l?o.project(x,r,a):s.project(x,r);return null==p?null:{x:p.xmax-p.xmin,y:p.ymax-p.ymin}}function x(e,r){return void 0===r&&(r=.01),a.getMetersPerUnitForSR(e)?r/a.getMetersPerUnitForSR(e):0}function p(e,r,i,n){var a,c;void 0===i&&(i=null),void 0===n&&(n=!0);var p=e.spatialReference;if(p.equals(r))return e;var f=u(p,r);if(f&&!o.isLoaded())throw new t(\"rasterprojectionhelper-projectResolution\",\"projection engine is not loaded\");var d=f?o.project(e,r,i):s.project(e,r);if(d&&n&&r.isGeographic){var m=p.isWebMercator?l.getInfo(p).origin:null!==(c=null===(a=l.getInfo(p))||void 0===a?void 0:a.valid)&&void 0!==c?c:[],h=m[0],v=m[1],y=x(p);y&&null!=h&&null!=v&&(Math.abs(e.x-h)1e3&&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\",\"../../Graphic\",\"../../core/Error\",\"../../core/maybe\",\"../../core/promiseUtils\",\"../../core/accessorSupport/decorators\",\"../../layers/graphics/data/projectionSupport\",\"../../layers/support/rasterFunctions/rasterProjectionHelper\",\"./support/popupUtils\"],(function(e,t,r,i,o,n,a,l,u,s,p){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ImageryTileLayerView=void 0,t.ImageryTileLayerView=function(e){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._rasterFieldPrefix=\"Raster.\",t.layer=null,t.view=null,t.fullExtent=null,t.tileInfo=null,t.datumTransformation=null,t}return r.__extends(t,e),Object.defineProperty(t.prototype,\"hasTilingEffects\",{get:function(){return this.layer.renderer&&\"dynamicRangeAdjustment\"in this.layer.renderer&&this.layer.renderer.dynamicRangeAdjustment},enumerable:!1,configurable:!0}),t.prototype.fetchPopupFeatures=function(e,t){var l,u;return r.__awaiter(this,void 0,void 0,(function(){var s,f,c,y,d,m,h,v,_,g,w,b,T;return r.__generator(this,(function(r){switch(r.label){case 0:if(s=this.layer,!e)return[2,a.reject(new o(\"imageryTileLayerView:fetchPopupFeatures\",\"Nothing to fetch without area\",{layer:s}))];if(f=s.popupEnabled,c=p.getFetchPopupTemplate(s,t),!f||!n.isSome(c))throw new o(\"imageryTileLayerView:fetchPopupFeatures\",\"Missing required popupTemplate or popupEnabled\",{popupEnabled:f,popupTemplate:c});return y=[],[4,s.identify(e)];case 1:if(d=r.sent().value){if(m=d.join(\", \"),\"Raster.ServicePixelValue\",(h={ObjectId:0})[\"Raster.ServicePixelValue\"]=this._formatAttributeValue(m,\"Raster.ServicePixelValue\"),(v=null===(u=null===(l=s.rasterInfo)||void 0===l?void 0:l.attributeTable)||void 0===u?void 0:u.features)&&v.length>0&&(_=v.filter((function(e){var t=e.attributes.value||e.attributes.Value||e.attributes.VALUE;return String(t)===m}))).length>0&&(g=_[0]))for(w in g.attributes)g.attributes.hasOwnProperty(w)&&(b=this._rasterFieldPrefix+w,h[b]=this._formatAttributeValue(g.attributes[w],b));(T=new i(this.fullExtent.clone(),null,h)).layer=s,T.sourceLayer=T.layer,y.push(T)}return[2,y]}}))}))},t.prototype.updateFullExtent=function(){var e,t=this.layer.tileInfo;t&&t.spatialReference||(e=new o(\"layerview:tiling-information-missing\",\"The layer doesn't provide tiling information\",{layer:this.layer}));var r=this.view.spatialReference;if(u.doesBrowserSupportProjection(r,this.layer.spatialReference)){var i=s.projectExtent(this.layer.fullExtent,r,this.datumTransformation);null==i&&(e=new o(\"layerview:projection-not-supported\",\"The layer extent cannot be projected to the view's spatial reference\",{layer:this.layer})),this._set(\"fullExtent\",i)}else e=new o(\"layerview:projection-not-supported\",\"The layer requires projection engine, which is not supported in current browser\",{layer:this.layer});return e?a.reject(e):a.resolve()},t.prototype._formatAttributeValue=function(e,t){if(\"string\"==typeof e){var r=this.layer.popupTemplate&&this.layer.popupTemplate.fieldInfos,i=this._getFieldInfo(r,t),o=i&&i.format;if(o){var n=void 0,a=void 0;return e.trim().indexOf(\",\")>-1?(a=(n=\",\")+\" \",this._formatDelimitedString(e,n,a,o)):e.trim().indexOf(\" \")>-1?(n=a=\" \",this._formatDelimitedString(e,n,a,o)):this._formatNumberFromString(e,o)}}return e},t.prototype._getFieldInfo=function(e,t){if(e&&e.length&&t){var r=t.toLowerCase(),i=void 0;return e.some((function(e){return!(!e.fieldName||e.fieldName.toLowerCase()!==r&&e.fieldName.toLowerCase()!==r.replace(/ /g,\"_\"))&&(i=e,!0)})),i}},t.prototype._formatDelimitedString=function(e,t,r,i){var o=this;return e&&t&&r&&i?e.trim().split(t).map((function(e){return o._formatNumberFromString(e,i)})).join(r):e},t.prototype._formatNumberFromString=function(e,t){if(!e||!t)return e;var r=Number(e);return isNaN(r)?e:t.format(r)},r.__decorate([l.property()],t.prototype,\"layer\",void 0),r.__decorate([l.property()],t.prototype,\"view\",void 0),r.__decorate([l.property()],t.prototype,\"fullExtent\",void 0),r.__decorate([l.property()],t.prototype,\"tileInfo\",void 0),r.__decorate([l.property({readOnly:!0,dependsOn:[\"layer.renderer\"]})],t.prototype,\"hasTilingEffects\",null),t=r.__decorate([l.subclass(\"esri.views.layers.ImageryTileLayerView\")],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\"],(function(e,r){\"use strict\";function t(e,r){return r?\"xoffset\"in r&&r.xoffset?Math.max(e,Math.abs(r.xoffset)):\"yoffset\"in r&&r.yoffset?Math.max(e,Math.abs(r.yoffset||0)):e:e}function n(e,r){return\"number\"==typeof e?e:e&&e.stops&&e.stops.length?function(e){for(var r=0,t=0,n=0;n