 Complete the following phrase:  The city remained important throughout the middle Byzantine period 7th12th centuries. Following the rebellion of Nikephoros Melissenos, his Turkish allies captured the city in 1081, and it became the first capital of the Seljuk Turkish Sultanate of Rum until its 