 Complete the following phrase:  Thanks to these reforms and improvements, the Qing government gained a major advantage over domestic rebels. After vanquishing the Taiping in 1864, the newly equipped armies defeated the Nian Rebellion in 1868, the Guizhou Miao in 1873, the Panthay Rebellion in Yun in 1873, and in 1877 the massive Muslim uprising that had engulfed Xinjiang since 1862. In addition to quelling domestic revolts, the Qing also fought foreign powers with relative success. Qing armies managed to solve the 