import { urlAlphabet } from "./url-alphabet-index.js";
let nanoid = (size = 21) => {
  let id = "";
  let bytes = crypto.getRandomValues(new Uint8Array(size |= 0));
  while (size--) {
    id += urlAlphabet[bytes[size] & 63];
  }
  return id;
};
export {
  nanoid,
  urlAlphabet
};
//# sourceMappingURL=index.browser.js.map
