Nonequilibrium thermodynamics of the Markovian Mpemba effect and its inverse | Synapse