{"version":3,"sources":["../../../../src/lib/errors/Messages.ts"],"sourcesContent":["import { register } from './HypixelTSError';\n\nconst messages = {\n\tCLIENT_OPTIONS_MISSING: (option?: string) => `ClientOptions${option ? `.${option}` : ''} ${option ? 'is' : 'are'} missing`,\n\tCLIENT_OPTION_INVALID_TYPE: (option: string, type: string, received?: string) =>\n\t\t`ClientOption.${option} is expected to be of type \"${type}\", received \"${received}\"`,\n\tAPI_KEYS_EXHAUSTED: (length: number) => `All ${length} API keys have been exhausted with no successful requests. Please check logs for details.`,\n\tGET_UUID_ERROR: (error: string, code: number) => `Util.getUUID: Failed with error ${error}, status code ${code}`,\n\tGET_UUID_404: `Util.getUUID: Player not found`,\n\tGET_USERNAME_ERROR: (error: string, code: number) => `Util.getUsername: Failed with error ${error}, status code ${code}`,\n\tGET_USERNAME_404: `Util.getUsername: Player not found`,\n\tNOT_UUID: `The supplied string was not of the correct format for a UUID`,\n\tMETHOD_MISSING_OPTION: (manager: string, method: string, option: string) => `${manager}.${method}: Required option \"${option}\" is missing`,\n\tMETHOD_INVALID_OPTIONS: (manager: string, method: string, option: string, expected: string[]) =>\n\t\t`${manager}.${method}: Invalid options provided. Expected type \"${\n\t\t\texpected?.length > 1 ? `either ${expected.join(', ')}` : expected.join(', ')\n\t\t}\" for the \"${option}\" option`\n};\n\nfor (const [key, value] of Object.entries(messages)) register(key, value);\n"],"mappings":";;;;AAAA,SAAS,gBAAgB;AAEzB,IAAM,WAAW;AAAA,EAChB,wBAAwB,wBAAC,WAAoB,gBAAgB,SAAS,IAAI,MAAM,KAAK,EAAE,IAAI,SAAS,OAAO,KAAK,YAAxF;AAAA,EACxB,4BAA4B,wBAAC,QAAgB,MAAc,aAC1D,gBAAgB,MAAM,+BAA+B,IAAI,gBAAgB,QAAQ,KADtD;AAAA,EAE5B,oBAAoB,wBAAC,WAAmB,OAAO,MAAM,6FAAjC;AAAA,EACpB,gBAAgB,wBAAC,OAAe,SAAiB,mCAAmC,KAAK,iBAAiB,IAAI,IAA9F;AAAA,EAChB,cAAc;AAAA,EACd,oBAAoB,wBAAC,OAAe,SAAiB,uCAAuC,KAAK,iBAAiB,IAAI,IAAlG;AAAA,EACpB,kBAAkB;AAAA,EAClB,UAAU;AAAA,EACV,uBAAuB,wBAAC,SAAiB,QAAgB,WAAmB,GAAG,OAAO,IAAI,MAAM,sBAAsB,MAAM,gBAArG;AAAA,EACvB,wBAAwB,wBAAC,SAAiB,QAAgB,QAAgB,aACzE,GAAG,OAAO,IAAI,MAAM,8CACnB,UAAU,SAAS,IAAI,UAAU,SAAS,KAAK,IAAI,CAAC,KAAK,SAAS,KAAK,IAAI,CAC5E,cAAc,MAAM,YAHG;AAIzB;AAEA,WAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,QAAQ,EAAG,UAAS,KAAK,KAAK;","names":[]}