0

Vyxal, 150 bytes
k2T0ẋ→_0→0?£{D¥L<|¥i:‛+-$c[:‛ +$ḟ←_:_←›Ǔṫ∇∇+J←›ǔ→_|:‛<>$c[:‛ >ḟ←+→|:\.=[←_← iC₴|:\,=[←_:_←?CȦ→_|:\[=[←_← i0=[Ȯ¥$ȯ\]ḟ∇∇+$]|:\]=[Ȯ¥$Ẏf\[=TG‹∇$_]]]]]]]_›
Try it Online!
"But there's already a Vyxal answer that's 100 bytes shorter bro what is this cringe" I hear you say. Well this v...