A modular framework of generalized Hurwitz class numbers | Synapse