// Charter entitlements, never a submitted UI tier or a member's rank. export const CLAN_MEMBER_LIMITS=Object.freeze({basic:5,original:25,royal:50}); export function clanMemberLimit(kind,institutionLimit=null){ if(institutionLimit!==null){const limit=Number(institutionLimit);if(!Number.isSafeInteger(limit)||limit<1)throw TypeError('Invalid institution member limit');return limit;} return Object.hasOwn(CLAN_MEMBER_LIMITS,kind)?CLAN_MEMBER_LIMITS[kind]:CLAN_MEMBER_LIMITS.basic; }