let index = 0; export function safeId() { return ++index; }