Donald Trump elected, world leaders react: Snapshots of the sentiment from around the globe
Leaders around the world are reacting to Donald Trump's victory in the US election.
Here are snapshots of the sentiment around the globe:
President Ashraf Ghani said: "[The] Afghan government is hopeful that close co-operation [with] the new president-elect will further deepen ties between the two countries."
Foreign minister Julie Bishop said the new administration will face a number of challenges, including in Asia-Pacific, and Australia wants to work constructively with the new government to ensure the continued presence and leadership of the US in the region.
She called the US "our major security ally" and the largest foreign direct investor and the second-largest trading partner.
She added: "The United States is also the guarantor and defender of the rules-based international order that has underpinned so much of our economic and security issues. And interests."
Chinese state media outlets cast the US election as the embodiment of America's democracy in crisis, in contrast to China's perceived stability under authoritarian rule.
The state-run Xinhua News Agency said the campaign had highlighted that "the majority of Americans are rebelling against the US's political class and financial elites".
The official Communist Party newspaper People's Daily said the presidential election had revealed an "ill democracy".
But some Chinese participants at a US Embassy event in Beijing welcomed a Trump presidency.
Blogger Wang Yiming said the Republican Party has been more willing to demonstrate American leadership globally, and he hoped a Republican president would do more to encourage freedom of speech in China.
Prime Minister Justin Trudea said: "We look forward to working very closely with President-elect Trump, his administration, and with the United States Congress in the years ahead, including on issues such as trade, investment, and international peace and security."
Communist Party member and noted economist and political scientist Esteban Morales told the Telesur network that Cubans "must be worried because I think this represents a new chapter".
Carlos Alzugaray, a political scientist and retired Cuban diplomat, said Mr Trump's victory could please some hard-liners in the Cuban leadership who worried that the country was moving too close to the United States too quickly.
Normalisation of relations has set off a tourism boom in Cuba and visits by hundreds of executives from the US and dozens of other nations newly interested in doing business on the island.
Mr Trump has promised to reverse Barack Obama's opening with Cuba unless President Raul Castro agrees to more political freedom on the island, a concession considered a virtual impossibility.
Populist anti-immigrant politician Marine Le Pen, who is hoping to ride France's own anti-establishment sentiment to victory in spring presidential elections, tweeted her support to the "American people, free!".
Foreign minister Jean-Marc Ayrault expressed concern about Mr Trump and said: "We don't want a world where egoism triumphs."
France's Socialist government had openly endorsed Hillary Clinton.
Mr Ayrault said European politicians should pay attention to the message from Trump voters. "There is a part of our electorate that feels ... abandoned," including people who feel "left behind" by globalisation, he said.
Defence minister Ursula von der Leyen called the vote "a big shock" and "a vote against Washington, against the establishment".
She said that while many questions remain open, "we Europeans obviously know that as partners in the Nato, Donald Trump will naturally ask, 'what are you achieving for the alliance', but we will also ask, 'what's your stand toward the alliance'.
President Hassan Rouhani said the result would not have any impact on Iran's policies. Foreign Minister Mohammad Javad Zarif said: "Iran and America have no political relations, but it is important that the future US president realises his duty to uphold the multilateral obligations of the Joint Comprehensive Plan of Action, and we expect the international community to require this of the United States of America."
Israeli Prime Minister Benjamin Netanyahu said: "I look forward to working with him to advance security, stability and peace in our region," he said.
Jewish Home party leader and Education Minister Naftali Bennett said: "Trump's victory is an opportunity for Israel to immediately retract the notion of a Palestinian state in the centre of the country, which would hurt our security and just cause. This is the position of the president-elect... The era of a Palestinian state is over."
Chief cabinet secretary Yoshihide Suga reaffirmed his government's commitment to the US security alliance. He said the alliance will remain the cornerstone of Japan-US diplomacy.
Indonesians on social media questioned why Americans voted in big numbers for Mr Trump, who many in the world's most populous Muslim country perceive as intolerant and reactionary.
Twitter, Facebook and chatrooms buzzed with speculation about whether Mr Trump would follow through on campaign rhetoric that included a ban on Muslims entering the US.
Some people feared being prevented from visiting relatives and friends in America or travelling there as tourists. About 100,000 Indonesians live in the US.
President Joko "Jokowi" Widodo said his government would work with whoever becomes president.
President Ellen Johnson Sirleaf said: "Our concern is whether President-elect Trump will have an African agenda and build bridges. We can only hope that he will do so in due course. We do not know what his policy towards Africa will be. Obviously we are concerned but we will have to give him the benefit of the doubt."
President Enrique Pena Nieto said: "I congratulate the US for its electoral process and I reiterate to @realDonaldTrump the disposition to work together in favor of the bilateral relation."
Student Sarah Pereira said she is looking forward to working as an intern in the US Congress, but dreads the prospect of Mr Trump as president.
Ms Pereira, a masters student in strategic studies, is leaving for Washington this weekend after winning a scholarship to work for Democratic Congressman Gregory Meeks.
Speaking at an event hosted by the US Embassy in Wellington, she predicted the effects of Mr Trump's victory on international relationships would be "catastrophic"
President Mahmoud Abbas congratulated Mr Trump and said that he hoped "peace will be achieved during his term".
A spokesperson said: "We are ready to deal with the elected president on the basis of a two-state solution and to establish a Palestinian state on the 1967 borders."
President Rodrigo Duterte offered "warm congratulations".
President Vladimir Putin has said he is willing fully to restore ties with the US following Mr Trump's victory.
"We heard the campaign statements of the future US presidential candidate about the restoration of relations between Russia and the United States," Mr Putin said on Wednesday.
"It is not an easy path, but we are ready to do our part and do everything to return Russian and American relations to a stable path of development.
"This would be good for both the Russian and American people and have a positive impact on the climate of world affairs."
The leader of the nationalist Liberal Democratic party, Vladimir Zhirinovsky, said: "We of course regard with satisfaction that the better candidate of the two presented to the American voters was victorious."
He said he hopes the Trump victory means US ambassador John Tefft departs Moscow.
"We hope that this ambassador leaves Russia ... he hates Russia."
President Recep Tayyip Erdogan said: ""I hope that this choice of the American people will lead to beneficial steps being taken for the world concerning basic rights and freedoms, democracy and developments in our region."
Prime Minister Theresa May said: "We are, and will remain, strong and close partners on trade, security and defence. I look forward to working with President-elect Donald Trump, building on these ties to ensure the security and prosperity of our nations in the years ahead."
UN Secretary General Ban Ki-moon said: "I encourage all Americans to stay true to that spirit. Today's global challenges demand concerted global action and joint solutions. As a founding member of the United Nations and permanent member of the Security Council, the United States is an essential actor across the international agenda.
"People everywhere look to the United States to use its remarkable power to help lift humanity up and to work for the common good" which included the battle against climate change, advancing human rights and "promoting mutual understanding... to achieve lives of peace, prosperity and dignity for all."
Secretary of State Cardinal Pietro Parolin said: "There is need for everyone to work to change the world situation, which is in great distress."