P3RVXIVXHD4W5KQ2FUU3ZF3756ZN6YJ2G57EV7CDCEPKTXTNCSXAC }// waitForPlaybackFinished polls until playback completes, then sends a message.func waitForPlaybackFinished(state *tools.ClassifyState) tea.Cmd {return tea.Tick(50*time.Millisecond, func(t time.Time) tea.Msg {if state.Player == nil || !state.Player.IsPlaying() {return playbackFinishedMsg{}}// Still playing, continue pollingreturn waitForPlaybackFinished(state)()})