export function getAuthority(str) {
const authorityString = str;
let authority; try { if (authorityString) { authority = JSON.parse(authorityString); } } catch (e) { authority = authorityString; } if (typeof authority === 'string') { return [authority]; } return authority; }