Income Taxes - Schedule of Reconciliation of Statutory Tax Rate to Effective Tax Rate (Details) - USD ($) $ in Thousands |
12 Months Ended |
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
| Reconciliation of effective income tax rate |
|
|
|
| Statutory tax rate (as a percent) |
12.50%
|
12.50%
|
12.50%
|
| Income tax provision at statutory rate |
$ (24,632)
|
$ (15,871)
|
$ (17,909)
|
| Change in valuation allowance |
19,882
|
28,371
|
26,771
|
| In-process R&D |
10,824
|
|
|
| Share-based compensation |
6,287
|
1,163
|
(1,205)
|
| Foreign rate differential |
5,390
|
5,405
|
(682)
|
| U.S. state income taxes, net of U.S. federal benefit |
1,051
|
1,732
|
(558)
|
| Foreign derived intangible income |
(3,450)
|
|
|
| Intercompany amounts |
(1,125)
|
(751)
|
(5,041)
|
| R&D credit |
(8,846)
|
(7,698)
|
(9,326)
|
| Federal tax law change |
(8,111)
|
|
|
| Federal tax law change |
|
|
21,453
|
| Irish rate differential |
(146)
|
(2,350)
|
(2,675)
|
| Impairment on equity method investment |
|
|
1,662
|
| Other permanent items |
2,440
|
2,343
|
2,181
|
| Total tax (benefit) provision |
$ (436)
|
$ 12,344
|
$ 14,671
|
| Effective tax rate (as a percent) |
0.20%
|
(9.70%)
|
(10.20%)
|