Interesting way to convert a charger (that died) to be an inverter so you can take a ryobi battery and power an a/c device (thought won’t be powering your air compressor).
https://hackaday.com/2022/08/23/ryobi-battery-hack-keeps-cpap-running-quietly/