Debt (Tables) |
12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2021 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Debt Disclosure [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of carrying value of convertible notes | As of December 31, 2020, the carrying value of the Convertible Notes consisted of (in thousands):
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of carrying value of senior notes | The carrying value of the Company’s senior secured notes consisted of the following as of December 31, 2021 and 2020 (in thousands):
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of future principal payments of the senior secured notes | Future principal payments of the senior secured notes are as follows (in thousands):
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||