/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
async function e(e){const r=[];for(const n of e)n.name.toLowerCase().endsWith(".zip")?r.push(t(n)):r.push(Promise.resolve(n));return(await Promise.all(r)).flat()}async function t(e){const{BlobReader:t,ZipReader:r,BlobWriter:n}=await import("./zipjs-wrapper.js"),a=[],i=new r(new t(e));return(await i.getEntries()).forEach(e=>{if(e.directory||/^__MACOS/i.test(e.filename))return;const t=new n;a.push(e.getData(t).then(t=>new File([t],e.filename)))}),Promise.all(a)}export{t as extractZipFile,e as extractZipFiles};
