pronoun, genitive plural neuter (gendered according to the noun modified)
Analysis. sabba- (all) + -esaṁ (genitive plural ending); the form sabbesaṁ is used when 'all' modifies a neuter plural noun in the genitive case, as in 'of all things' (sabbesaṁ dhammānaṁ).
Etymology. From an Indo-European root related to Sanskrit sarva-, both meaning 'all, entire'; cognate with English 'all' and Germanic roots underlying German 'all'. The word has an ancient pedigree in the Indo-European family.
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version