Generalized Riemann problem for the one-dimensional Chaplygin gas equations with a friction term. (January 2023)