/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
import"./H6RQVSYM.js";export default $arcgis.t(([o])=>{var a=/\.(\w+)$/iv;function r(e){let t=new URL(e).pathname.match(a);if(!(!t||t.length<2))return t[1].toUpperCase()}async function p(e,t){let n=(await o(e,{...t,method:"head"}))?.getHeader?.("Content-Type");if(n)return n.split("/")[1].toUpperCase()}return{getDatasetFormat:p,guessExtensionFromURI:r}},"request")