When elements with animations are contained within nested embedded templates (such as @if or @switch) inside a @for block, moving or swapping items in the repeater previously failed to track and cancel the leave animations on those nested views. This caused the leave animations to run concurrently with the enter animations upon re-attachment, and subsequently remove the DOM nodes from the document, throwing DOM exceptions on subsequent updates.
This change ensures that:
1. initViewDetachAnimations and clearViewDetachAnimations recursively traverse nested view containers and embedded views so that leave animations across all levels are tracked and cleanly cancelled upon re-attachment.
2. The outer view's animation data properly tracks detached animations even when leave animations reside within nested child views.
3. Reused/moved nodes bypass enter animation queuing during re-attachment so enter and leave animations do not fire simultaneously on moved items.
4. Leave classes are properly cleaned up upon animation completion or cancellation rather than lingering indefinitely on non-projected elements.
5. In-flight animation assertions in web acceptance tests use durations suitable for real browser frame rendering.
Part of #70764
(cherry picked from commit 7e678e0ed7)