'use strict';

function chr4() {
    return Math.random().toString(16).slice(-4);
}
function createID(prefix) {
    return `${prefix}-${chr4()}${chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`;
}
function removeDiacritics(string) {
    if (typeof string !== 'string')
        return string;
    return string.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
}
function splitByWhitespace(string) {
    if (typeof string !== 'string')
        return string;
    return string.split(/(\s+)/);
}

exports.chr4 = chr4;
exports.createID = createID;
exports.removeDiacritics = removeDiacritics;
exports.splitByWhitespace = splitByWhitespace;
//# sourceMappingURL=string.utils-BG4pUfEi.js.map

//# sourceMappingURL=string.utils-BG4pUfEi.js.map