"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var s=async(t=[{}])=>(Array.isArray(t)||(t=[t]),new Promise((n,c)=>{const e=document.createElement("input");e.type="file";const r=[...t.map(i=>i.mimeTypes||[]),...t.map(i=>i.extensions||[])].join();e.multiple=t[0].multiple||!1,e.accept=r||"";const a=i=>{typeof l=="function"&&l(),n(i)},l=t[0].legacySetup&&t[0].legacySetup(a,()=>l(c),e);e.addEventListener("change",()=>{a(e.multiple?Array.from(e.files):e.files[0])}),e.click()}));exports.default=s;
