Part-time resident

I moved from PA to CA and became a CA resident in July 2023. I sold a rental property in PA in December 2023. My questions are...

1. Do I report half of my rental income for that rental property on my PA tax and half on CA tax?

2. Since I sold the rental property in December as a CA resident, do I report the capital gain on my CA tax only or both state taxes?

 

Thank you.