export const ATTACHMENT_MAX_FILES=0x19;export const ATTACHMENT_MAX_FILE_SIZE_BYTES=0x32*0x400*0x400;export function computeAttachmentFilter(_0x4afb47,_0x102f7b,_0x1f4060={}){const _0xcac5e=_0x1f4060['maxFiles']??ATTACHMENT_MAX_FILES,_0x3619eb=_0x1f4060['maxFileSizeBytes']??ATTACHMENT_MAX_FILE_SIZE_BYTES,_0x41b0b6=[],_0x4ff0e2=[];let _0x3583d9=Math['max'](0x0,_0xcac5e-_0x102f7b);for(const _0xbc7cc6 of _0x4afb47||[]){if(_0xbc7cc6['size']>_0x3619eb){_0x4ff0e2['push'](_0xbc7cc6['name']||'(unnamed)');continue;}if(_0x3583d9<=0x0)continue;_0x41b0b6['push'](_0xbc7cc6),_0x3583d9--;}const _0x2dd3e7=(_0x4afb47||[])['length'],_0x5a4187=_0x2dd3e7-_0x41b0b6['length']-_0x4ff0e2['length'];return{'accepted':_0x41b0b6,'rejectedForSize':_0x4ff0e2,'rejectedForCount':_0x5a4187,'limits':{'maxFiles':_0xcac5e,'maxFileSizeBytes':_0x3619eb}};}