A Unified Masked Autoencoder with Patchified Skeletons for Motion Synthesis