// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define(["exports","../core/Error","../views/3d/support/supportedSpatialReference","../views/3d/terrain/TilingScheme"],function(c,b,n,d){function f(){return!0}function g(){return 0}function h(a,k,e,l){if(null==a)return d.getMissingTileInfoError();e=a?.lods.length-1;const m=a.spatialReference;if(m.isWebMercator){if(!d.TilingScheme.makeWebMercatorAuxiliarySphere(e).compatibleWith(a,l))return new b("tilingscheme:incompatible-global-web-mercator","The tiling scheme is not compatible with the ArcGIS Online Web Mercator tiling scheme")}else if(n.isSupportedGCSOnGlobe(m)){if(!d.TilingScheme.makeGCSWithTileSize(a.spatialReference, a.size[0],e).compatibleWith(a,l))return a.spatialReference.isWGS84?new b("tilingscheme:incompatible-global-wgs84","The tiling scheme is not compatible with the ArcGIS Online WGS84 tiling scheme"):new b("tilingscheme:incompatible-global","The tiling scheme is not compatible with the ArcGIS Online tiling scheme")}else return new b("tilingscheme:global-unsupported-spatial-reference","The tiling scheme spatial reference is not supported in global scenes");return null==k||a.spatialReference.equals(k)? null:new b("tilingscheme:spatial-reference-mismatch","The tiling scheme does not match the spatial reference of the global scene")}const p=Object.freeze(Object.defineProperty({__proto__:null,checkIfTileInfoSupportedForViewSR:h,isInsideExtent:f,tiltToExtentEdge:g},Symbol.toStringTag,{value:"Module"}));c.checkIfTileInfoSupportedForViewSR=h;c.isInsideExtent=f;c.terrainUtilsSpherical=p;c.tiltToExtentEdge=g});