Win or lose, Donald Trump's campaign has changed the way countries in Asia view their relationships with Washington.
Final polling suggests the most likely outcome is a victory for Hillary Clinton. But even Clinton, an architect of the U.S. strategic pivot to Asia, has some work ahead of her in rebuilding trust, analysts and former officials in Asia said.
"With or without Trump, this marks the end of U.S. leadership, in particular, moral leadership," said a former Japanese diplomat, who asked not to be identified because of the sensitivity of the topic.
"I don't think it's a question of Trump as an individual, but a question of the U.S. society that produced this man as the Republican candidate."
Trump upended U.S. democratic traditions during his White House campaign, drawing enthusiastic crowds where people cheered his often provocative and outrageous remarks. Critics labeled him ignorant, uncouth, a racist, hypocrite, demagogue and a sexual predator, all accusations he denied.
He described a dark America, knocked to its knees by China, Mexico and the Islamic state.
Trump's harnessing of a populist backlash against immigration and global trade has challenged the ideal of benevolent American power that helped shape the global economy - and the forces of globalization - since the fall of the Soviet Union in the early 1990s.
Now the United States faces a rising China, long an economic force and now becoming more assertive in geopolitics - building its military capability and ignoring an international tribunal's ruling against its claims to most of the South China Sea.
Asia is most worried about trade protectionism - exports make up a quarter of Asia's GDP and a fifth of them go to the United States.
The Trans-Pacific Partnership (TPP) trade deal, championed by Barack Obama in part to increase U.S. influence in Asia, was to be an essential feature of Washington's strategic pivot to Asia - an "economic NATO."
It now looks dead in the water. Both Clinton and Trump oppose the deal, which would set up a free trade zone among 12 countries that excludes China.
Former Indonesian finance minister Chatib Basri told Reuters the TPP "is an important instrument for the U.S. pivot to Asia."
"There is some kind of a rivalry between America and China, and the way America can get into Asia is with TPP," said Basri, now a visiting professor at Australian National University.
With U.S. allies such as Japan, South Korea, Taiwan and Singapore among the biggest winners of an open trade regime, a more isolationist and protectionist stance will cost Washington influence in Asia.
Ironically, it would be China, the subject of many of Trump's tirades, that could emerge the big winner as uncertainty over Washington's future commitment to Asia pushes countries into dealing more closely with Beijing.
"If the U.S. pulls out of TPP, that will certainly increase China's influence in Asia," said Kanti Bajpai, Professor of Asian Studies at the Lee Kuan Yew School of Public Policy in Singapore.
"Already, U.S. criticism of domestic issues in Thailand, the Philippines, and Malaysia has alienated those countries and caused them to lean towards Beijing. Pulling out of the TPP will help China geopolitically."
Philippine President Rodrigo Duterte has been particularly hostile towards Washington over its criticism of his lethal anti-drugs campaign, announcing a "separation" from the United States during last month's visit to China.
Malaysian Prime Minister Najib Razak came back from a visit to China last week with $34 billion worth of deals and an agreement to buy four Chinese naval vessels.
China has long been in Trump's sights, with promises to declare it a currency manipulator and impose punitive tariffs on imports. But any such moves could also hurt Asian exporters who ship components there for assembly and export to the United States, at a time when global trade is already weakening.
Gareth Leather, senior Asia economist at Capital Economics, said the Philippines, Taiwan and South Korea were the emerging Asia economies most vulnerable to a Trump presidency.
"Perhaps the biggest risk to the region's economies, however, stems not from Trump's trade policies, but from his foreign policy," Leather said.
Trump has created doubts over his commitment to security alliances, suggesting Japan and South Korea need to pay more for a U.S. military presence and that they should even develop their own nuclear capability to counter China and North Korea.
Clinton, who was secretary of state when the Obama administration launched its Asia pivot, is expected to maintain Obama's foreign policy, with some seeing her as being more hawkish.
The divisive U.S. presidential campaign has already done a lot of damage to the reputation of the United States in Asia, regardless of the election outcome, according to some analysts.
"The broader question is whether the United States can assert global leadership," said Jesper Koll, CEO at fund manager WisdomTree Japan.
"All my Chinese friends say, 'We thought we would run the world in 20 years. Now it's going to be in January'. This is not a joke. It's the natural state of development," Koll said.