import"../../utils/index.js";import{formatFileSize as t}from"../../utils/formatFileSize.js";var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t instanceof Array?t:t.split(",").map((function(t){return t.trim()})).filter((function(t){return!!t}));return{mimetypes:n.filter((function(t){return!t.startsWith(".")})),extensions:n.filter((function(t){return t.startsWith(".")}))}},i=function(n,i){var r=[];if(n.length){var e=n.slice(-1)[0],o=n.slice(0,-1),c=o.length>0?" and ":"";r.push("Only ".concat(o.join(", ")).concat(c).concat(e," ")+"format".concat(o.length>0?"s":"","."))}return i&&r.push("".concat(t(i)," max file size.")),r.join(" ")};export{i as formatDescription,n as parseAccept};
//# sourceMappingURL=utils.js.map
