1912, following the Xinhai Revolution, which began with the Wuchang uprising on 10 October 1911, replacing the Qing dynasty and ending over two thousand years of imperial rule in China. From its founding until 1949 it was based in mainland China. Central authority waxed and waned in response to warlordism (1915–28), Japanese invasion (1937–45), and the Chinese Civil War (1927–50), with central authority strongest during the Nanjing decade (1927–37), when most of China came under the control of the Kuomintang (KMT) under an authoritarian one-party state. In the 1943 Cairo Declaration, US, UK, and ROC representatives specified territories such as Formosa and the Pescadores to be restored by Japan to the Republic of China. Its terms were later referred to in the 1945 Potsdam Declaration, whose provisions Japan agreed to carry out in its instrument of surrender. In September 1945 following Japan's surrender in WWII, ROC forces, assisted by small American teams, prepared an amphibious lift into Taiwan to accept the surrender of the Japanese military forces there, under General Order No. 1, and take over the administration of Taiwan. On 25 October, General Rikichi Andō, governor-general of Taiwan and commander-in-chief of all Japanese forces on the island, signed the receipt and handed it over to ROC General Chen Yi to complete the official turnover. Chen proclaimed that day to be "Taiwan Retrocession Day", but the Allies, having entrusted Taiwan and the Penghu Islands to Chinese administration and military occupation, nonetheless considered them to be under Japanese sovereignty until 1952 when the Treaty of San Francisco took effect. Due to disagreements over which government (PRC or ROC) to invite, China did not attend the eventual signing of the Treaty of San Francisco, whereby Japan renounced all titles and claims to Formosa and the Pescadores without specifying to whom they were surrendered. In 1952, Japan and the ROC signed the Treaty of Taipei, recognizing that all treaties concluded before 9 December 1941 between China and Japan have become null and void. Interpretations of these documents and their legal implications give rise to the debate over the sovereignty status of Taiwan. While initially enthusiastic about the return of Chinese administration and the Three Principles of the People, Formosans grew increasingly dissatisfied about being excluded from higher positions, the postponement of local elections even after the enactment of a constitution on the mainland, the smuggling of valuables off the island, the expropriation of