export const ATTACHMENT_MAX_FILES=0x19;export const ATTACHMENT_MAX_FILE_SIZE_BYTES=0x32*0x400*0x400;export function computeAttachmentFilter(_0x20e6bc,_0x217f6c,_0x5b948b={}){const _0x1baf00=_0x5b948b['maxFiles']??ATTACHMENT_MAX_FILES,_0x2f1912=_0x5b948b['maxFileSizeBytes']??ATTACHMENT_MAX_FILE_SIZE_BYTES,_0x201478=[],_0x440bca=[];let _0x10b0dd=Math['max'](0x0,_0x1baf00-_0x217f6c);for(const _0x2f633d of _0x20e6bc||[]){if(_0x2f633d['size']>_0x2f1912){_0x440bca['push'](_0x2f633d['name']||'(unnamed)');continue;}if(_0x10b0dd<=0x0)continue;_0x201478['push'](_0x2f633d),_0x10b0dd--;}const _0x2a5017=(_0x20e6bc||[])['length'],_0x32cd97=_0x2a5017-_0x201478['length']-_0x440bca['length'];return{'accepted':_0x201478,'rejectedForSize':_0x440bca,'rejectedForCount':_0x32cd97,'limits':{'maxFiles':_0x1baf00,'maxFileSizeBytes':_0x2f1912}};}