Measurement of the muon mass by critical mesic X-ray absorption