shadow$provide.module$node_modules$pixi_DOT_js$lib$compressed_textures$shared$resolveCompressedTextureUrl = function(global, require, module, exports) {
  var Resolver = require("module$node_modules$pixi_DOT_js$lib$assets$resolver$Resolver"), checkExtension = require("module$node_modules$pixi_DOT_js$lib$assets$utils$checkExtension");
  global = require("module$node_modules$pixi_DOT_js$lib$extensions$Extensions");
  "use strict";
  const validFormats = "basis bc7 bc6h astc etc2 bc5 bc4 bc3 bc2 bc1 eac".split(" ");
  exports.resolveCompressedTextureUrl = {extension:global.ExtensionType.ResolveParser, test:value => checkExtension.checkExtension(value, [".ktx", ".ktx2", ".dds"]), parse:value => {
    let format;
    var splitValue = value.split(".");
    2 < splitValue.length ? (splitValue = splitValue[splitValue.length - 2], validFormats.includes(splitValue) && (format = splitValue)) : format = splitValue[splitValue.length - 1];
    return {resolution:parseFloat(Resolver.Resolver.RETINA_PREFIX.exec(value)?.[1] ?? "1"), format, src:value};
  }};
  exports.validFormats = validFormats;
};

//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$compressed_textures$shared$resolveCompressedTextureUrl.js.map
