Debt - Narrative (Details) | | | | | | 1 Months Ended | 2 Months Ended | 7 Months Ended | 12 Months Ended | | | | | | | | |
Oct. 25, 2022 USD ($) Day $ / shares shares | Oct. 03, 2022 USD ($) | Aug. 31, 2022 USD ($) | May 27, 2022 USD ($) $ / shares shares | Aug. 11, 2021 USD ($) shares | Aug. 31, 2022 USD ($) | May 31, 2022 USD ($) | Jun. 30, 2021 USD ($) | Dec. 31, 2022 USD ($) $ / shares shares | Dec. 31, 2022 USD ($) $ / shares shares | Dec. 31, 2022 USD ($) $ / shares shares | Dec. 31, 2021 USD ($) $ / shares shares | Dec. 29, 2022 USD ($) | Nov. 01, 2022 $ / shares shares | Oct. 02, 2022 USD ($) | Jul. 11, 2022 $ / shares shares | Apr. 13, 2022 USD ($) | Aug. 12, 2021 USD ($) | Oct. 20, 2020 USD ($) | Mar. 09, 2020 USD ($) |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | | | | | | | $ 5,548,000 | $ 181,404,000 | | | | | | | | |
Conversion of debt | | | | | | | | | | | 17,753,000 | 181,403,000 | | | | | | | | |
Debt covenant, public float minimum | | | | | | | | | $ 350,000,000 | $ 350,000,000 | 350,000,000 | | | | | | | | | |
Long-term debt | | | | | | | | | 113,274,000 | 113,274,000 | 113,274,000 | 26,312,000 | | | | | | | | |
Forgiveness of PPP loan | | | | | | | | $ 2,900,000 | | | 0 | 2,860,000 | | | | | | | | |
Principal payments on long-term debt | | | | | | | | | | | 26,311,000 | 5,000,000 | | | | | | | | |
Principal | | | | | | | | | 206,098,000 | 206,098,000 | 206,098,000 | $ 128,504,000 | | | | | | | | |
Funds in Escrow | | | | | | | | | $ 5,078,000 | $ 5,078,000 | $ 5,078,000 | | | | | | | | | |
Warrants outstanding (in shares) | shares | | | | | | | | | 172,690,795 | 172,690,795 | 172,690,795 | 14,074,986 | | | | | | | | |
Warrants outstanding, exercise price (in USD per share) | $ / shares | $ 1.1182 | | | | | | | | | | | $ 11.5 | | | | $ 5 | | | | |
Change in fair value of debt instruments | | | | | | | | | $ (46,853,000) | | $ (73,361,000) | $ (59,916,000) | | | | | | | | |
Payments of debt issuance costs | | | | | | | | | | | | 383,000 | | | | | | | | |
Conversion of convertible notes to ordinary shares | | | | | | | | | | | 5,548,000 | 181,404,000 | | | | | | | | |
Interest | | | | | | | | | | | 13,849,000 | $ 4,132,000 | | | | | | | | |
Minimum | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Warrants outstanding, exercise price (in USD per share) | $ / shares | | | | | | | | | | | | | | | | $ 2.8 | | | | |
144A Warrants | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Warrants outstanding (in shares) | shares | | | | | | | | | | | | | | 235,001,542 | | 47,251,857 | | | | |
144A Warrants, Initial Exercise | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Warrants outstanding (in shares) | shares | | | | | | | | | | | | | | 131,600,861 | | 26,461,038 | | | | |
Warrants outstanding, exercise price (in USD per share) | $ / shares | | | | | | | | | | | | | | $ 1.1182 | | $ 5 | | | | |
144A Warrants, Additional Exercise | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Warrants outstanding (in shares) | shares | | | | | | | | | | | | | | 131,600,861 | | 20,790,819 | | | | |
Warrants outstanding, exercise price (in USD per share) | $ / shares | | | | | | | | | | | | | | $ 0.6262 | | $ 2.8 | | | | |
3.00% – 2020 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Additional funding amount triggering conversion feature | | | | | | | | | $ 10,000,000 | $ 10,000,000 | $ 10,000,000 | | | | | | | | | |
Conversion price (in dollars per share) | $ / shares | | | | | | | | | $ 14.298 | $ 14.298 | $ 14.298 | | | | | | | | | |
8.00% – 2020 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Conversion price (in dollars per share) | $ / shares | | | | | | | | | $ 14.298 | $ 14.298 | $ 14.298 | | | | | | | | | |
2026 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Shares issuable (in shares) | shares | | | | | | | | | | | | | | 77,205,836 | | 13,855,000 | | | | |
October Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | | | | | | | $ 1,000,000 | | | | | | | | | |
Change in fair value of debt instruments | | | | | | | | | | | 46,900,000 | | | | | | | | | |
Bridge Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ 12,400,000 | | | | | | | | | | | | | | | | | | | |
Payments to acquire investments | | $ 500,000 | | | | | | | | | | | | | | | | | | |
May Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | | | | | | | 1,000,000 | | | | | | | | | |
Long-term debt | | | | | | | | | $ 29,300,000 | $ 29,300,000 | 29,300,000 | | | | | | | | | |
Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ 90,600,000 | | | | | | | | | | | | | | | | | | | |
Debt conversion, percent not converted | | | | | 70% | | | | | | | | | | | | | | | |
Principal | | | | | | | | | 81,500,000 | 81,500,000 | 81,500,000 | | | | | | | | | |
Funds in Escrow | | | | | | | | | $ 20,000,000 | 20,000,000 | 20,000,000 | | $ 5,000,000 | | | | | | | |
Change in fair value of debt instruments | | | | | | | | | | $ (26,508,000) | $ 26,500,000 | | | | | | | | | |
Payments of debt issuance costs | | 1,900,000 | | | | | | | | | | | | | | | | | | |
Convertible Notes | 144A Warrants | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Warrants outstanding, exercise price (in USD per share) | $ / shares | $ 1.1182 | | | | | | | | | | | | | | | | | | | |
Class of warrant or right, value of warrants issued | $ 131,600,000 | | | | | | | | | | | | | | | | | | | |
Additional shares entitled (in USD per share) | shares | 0.7857 | | | | | | | | | | | | | | | | | | | |
Convertible Notes | 3.00% – 2020 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, stated percentage | | | | | | | | | 3% | 3% | 3% | 3% | | | | | | | | |
Debt instrument, face amount | | | | | | | | | $ 21,300,000 | $ 21,300,000 | $ 21,300,000 | | | | | | | | $ 1,300,000 | $ 20,000,000 |
Outstanding principal and interest | | | | | $ 21,900,000 | | | | | | | | | | | | | | | |
Debt conversion, shares issued (in shares) | shares | | | | | 3,800,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 38,100,000 | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | $ 38,100,000 | $ 38,092,000 | | | | | | | | |
Long-term debt | | | | | | | | | | | | 0 | | | | | | | | |
Principal | | | | | | | | | | | | 21,281,000 | | | | | | | | |
Interest | | | | | | | | | | | | $ 0 | | | | | | | | |
Convertible Notes | 8.00% – 2020 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, stated percentage | | | | | | | | | 8% | 8% | 8% | 8% | | | | | | | | |
Debt instrument, face amount | | | | | | | | | $ 8,000,000 | $ 8,000,000 | $ 8,000,000 | | | | | | | | | |
Outstanding principal and interest | | | | | $ 8,900,000 | | | | | | | | | | | | | | | |
Debt conversion, shares issued (in shares) | shares | | | | | 1,500,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 15,500,000 | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | $ 30,900,000 | $ 30,897,000 | | | | | | | | |
Debt instrument, convertible, conversion price, discount | | | | | | | | | 25% | 25% | 25% | | | | | | | | | |
Long-term debt | | | | | | | | | | | | 0 | | | | | | | | |
Principal | | | | | | | | | | | | 8,000,000 | | | | | | | | |
Interest | | | | | | | | | | | | $ 0 | | | | | | | | |
Convertible Notes | 5.00% – $50.0 Million Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, stated percentage | | | | | | | | | 5% | 5% | 5% | 5% | | | | | | | | |
Debt instrument, face amount | | | | | | | | | $ 50,000,000 | $ 50,000,000 | $ 50,000,000 | $ 50,000,000 | | | | | | | | |
Outstanding principal and interest | | | | | $ 10,600,000 | | | | | | | | | | | | | | | |
Debt conversion, shares issued (in shares) | shares | | | | | 1,300,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 12,600,000 | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | $ 12,600,000 | 12,584,000 | | | | | | | | |
Debt instrument, convertible, conversion price, discount | | | | | | | | | 15% | 15% | 15% | | | | | | | | | |
Long-term debt | | | | | | | | | | | | 0 | | | | | | | | |
Debt conversion, principal amount | | | | | 10,300,000 | | | | | | | | | | | | | | | |
Proceeds from equity triggering debt conversion, minimum, amount | | | | | | | | | $ 25,000,000 | $ 25,000,000 | $ 25,000,000 | | | | | | | | | |
Debt instrument, convertible, denominator used to calculate conversion price, amount | | | | | | | | | 1,500,000,000 | 1,500,000,000 | 1,500,000,000 | | | | | | | | | |
Debt instrument, convertible, denominator used to calculate conversion price at maturity date, amount | | | | | | | | | $ 1,500,000,000 | $ 1,500,000,000 | $ 1,500,000,000 | | | | | | | | | |
Principal | | | | | | | | | | | | 10,274,000 | | | | | | | | |
Interest | | | | | | | | | | | | $ 0 | | | | | | | | |
Convertible Notes | 5.00% – $25.0 Million Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, stated percentage | | | | | | | | | 5% | 5% | 5% | 5% | | | | | | | | |
Debt instrument, face amount | | | | | | | | | $ 25,000,000 | $ 25,000,000 | $ 25,000,000 | $ 25,000,000 | | | | | | | | |
Outstanding principal and interest | | | | | $ 25,700,000 | | | | | | | | | | | | | | | |
Debt conversion, shares issued (in shares) | shares | | | | | 3,600,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 35,600,000 | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | $ 42,600,000 | 42,569,000 | | | | | | | | |
Debt instrument, convertible, conversion price, discount | | | | | | | | | 25% | 25% | 25% | | | | | | | | | |
Long-term debt | | | | | | | | | | | | 0 | | | | | | | | |
Proceeds from equity triggering debt conversion, minimum, amount | | | | | | | | | $ 25,000,000 | $ 25,000,000 | $ 25,000,000 | | | | | | | | | |
Debt instrument, convertible, denominator used to calculate conversion price, amount | | | | | | | | | 800,000,000 | 800,000,000 | 800,000,000 | | | | | | | | | |
Debt instrument, convertible, denominator used to calculate conversion price at maturity date, amount | | | | | | | | | $ 675,000,000 | $ 675,000,000 | $ 675,000,000 | | | | | | | | | |
Debt instrument, conversion price | | | | | | | | | | | 100% | | | | | | | | | |
Principal | | | | | | | | | | | | 25,000,000 | | | | | | | | |
Interest | | | | | | | | | | | | $ 0 | | | | | | | | |
Convertible Notes | 5.00% – $25.0 Million Convertible Notes | Warrants | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt conversion, shares issued (in shares) | shares | | | | | 700,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 7,000,000 | | | | | | | | | | | | | | | |
Convertible Notes | 5.00% – $30.0 Million Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, stated percentage | | | | | | | | | 5% | 5% | 5% | 5% | | | | | | | | |
Debt instrument, face amount | | | | | | | | | $ 30,000,000 | $ 30,000,000 | $ 30,000,000 | $ 30,000,000 | | | | | | | | |
Outstanding principal and interest | | | | | $ 30,800,000 | | | | | | | | | | | | | | | |
Debt conversion, shares issued (in shares) | shares | | | | | 4,400,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 44,300,000 | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | $ 44,300,000 | 44,258,000 | | | | | | | | |
Debt instrument, convertible, conversion price, discount | | | | | | | | | 25% | 25% | 25% | | | | | | | | | |
Long-term debt | | | | | | | | | | | | 0 | | | | | | | | |
Proceeds from equity triggering debt conversion, minimum, amount | | | | | | | | | $ 25,000,000 | $ 25,000,000 | $ 25,000,000 | | | | | | | | | |
Debt instrument, convertible, denominator used to calculate conversion price, amount | | | | | | | | | 800,000,000 | 800,000,000 | 800,000,000 | | | | | | | | | |
Debt instrument, convertible, denominator used to calculate conversion price at maturity date, amount | | | | | | | | | 800,000,000 | 800,000,000 | 800,000,000 | | | | | | | | | |
Principal | | | | | | | | | | | | 30,000,000 | | | | | | | | |
Interest | | | | | | | | | | | | 0 | | | | | | | | |
Convertible Notes | 2020 Term Loan Facility | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Principal payments on long-term debt | | | | | | | | | | | 5,400,000 | | | | | | | | | |
Convertible Notes | 2026 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Shares issuable (in shares) | shares | | | | | | | | | | | | | | 208,806,697 | | 40,316,038 | | | | |
Convertible Notes | October Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ 50,000,000 | | | | | | | | | | | | | | | | | | | |
Conversion price (in dollars per share) | $ / shares | $ 0.6888 | | | | | | | | | | | | | | | | | | | |
Convertible Notes | May 144A Warrants | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Warrants outstanding, exercise price (in USD per share) | $ / shares | $ 2.8 | | | | | | | | | | | | | | | | | | | |
Convertible Notes | Bridge Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ 12,400,000 | | | | | | | | | | | | | | | | | | | |
Convertible Notes | May Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | $ 50,000,000 | | | | | | | | | | | | | | | | | | | |
Convertible Notes | 2026 Convertible Notes (May Notes) | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | 4,750,000 | | | | | | | | | |
Long-term debt | | | | | | | | | 23,501,000 | 23,501,000 | 23,501,000 | | | | | | | | | |
Principal | | | | | | | | | 81,500,000 | 81,500,000 | 81,500,000 | | | | | | | | | |
Funds in Escrow | | | | | | | | | 0 | 0 | 0 | | | | | | | | | |
Change in fair value of debt instruments | | | | | | | | | | | 26,500,000 | | | | | | | | | |
Interest | | | | | | | | | | | 3,726,000 | | | | | | | | | |
Convertible Notes | 2026 Convertible Notes (October Notes) | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | 0 | | | | | | | | | |
Long-term debt | | | | | | | | | 89,773,000 | 89,773,000 | 89,773,000 | | | | | | | | | |
Principal | | | | | | | | | 90,649,000 | 90,649,000 | 90,649,000 | | | | | | | | | |
Funds in Escrow | | | | | | | | | 5,078,000 | 5,078,000 | 5,078,000 | | | | | | | | | |
Change in fair value of debt instruments | | | | | | | | | | | 46,900,000 | | | | | | | | | |
Interest | | | | | | | | | | | 0 | | | | | | | | | |
Line of Credit | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | | | | | | | | | 35,000,000 | 35,000,000 | 35,000,000 | | | | | | | | | |
Outstanding principal and interest | | | | | $ 10,200,000 | | | | | | | | | | | | | $ 37,300,000 | | |
Debt conversion, shares issued (in shares) | shares | | | | | 1,300,000 | | | | | | | | | | | | | | | |
Debt conversion, amount | | | | | $ 13,000,000 | | | | | | | | | | | | | | | |
Conversion of debt | | | | | | | | | | | 13,003,000 | 13,003,000 | | | | | | | | |
Debt conversion, percent converted | | | | | 30% | | | | | | | | | | | | | | | |
Debt conversion, percent not converted | | | | | 70% | | | | | | | | | | | | | | | |
Fair value of outstanding principal and interest | | | | | $ 27,100,000 | | | | | | | | | | | | | | | |
Interest paid | | | | | | | | | | | 6,000,000 | 4,100,000 | | | | | | | | |
Long-term debt | | | | | | | | | 0 | 0 | 0 | 26,312,000 | | | | | | | | |
Principal | | | | | | | | | 33,949,000 | 33,949,000 | 33,949,000 | 33,949,000 | | | | | | | | |
Funds in Escrow | | | | | | | | | 0 | 0 | 0 | | | | | | | | | |
Interest | | | | | | | | | | | 10,123,000 | $ 4,132,000 | | | | | | | | |
Line of Credit | Minimum | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt covenant, cash, minimum balance | | | | | | | | | | | | | | | | | $ 25,000,000 | | | |
Line of Credit | Maximum | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt covenant, cash, minimum balance | | | | | | | | | | | | | | | | | $ 35,000,000 | | | |
Term Loan | 2020 Term Loan Facility | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Principal payments on long-term debt | | | | $ 32,300,000 | | | $ 37,300,000 | | | | | | | | | | | | | |
2026 Convertible Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Conversion of debt | | | $ 4,800,000 | | | $ 4,800,000 | | | | | | | | | | | | | | |
Interest | | | $ 1,700,000 | | | 1,700,000 | | | | | | | | | | | | | | |
2026 Convertible Notes | Convertible Debt And Warrants | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, stated percentage | 12.50% | | | 9.50% | | | | | | | | | | | | | | | | |
Debt instrument, face amount | | | | $ 81,500,000 | | | | | | | | | | | | | | | | |
Conversion price (in dollars per share) | $ / shares | $ 0.6888 | | | $ 3.08 | | | | | | | | | | $ 0.6888 | | | | | | |
Debt instrument, interest rate two, if circumstances met | 15% | | | 12% | | | | | | | | | | | | | | | | |
Debt instrument, interest rate two, if circumstances met, cash | 5.75% | | | 5.75% | | | | | | | | | | | | | | | | |
Debt instrument, interest rate two, if circumstances met, payment in kind | 9.25% | | | 6.25% | | | | | | | | | | | | | | | | |
Percentage of share price which exceeds conversion price | 250% | | | 250% | | | | | | | | | | | | | | | | |
Number of trading days sales price exceeds conversion price | 20 days | | | 20 days | | | | | | | | | | | | | | | | |
Net proceeds | $ 14,500,000 | | | $ 80,700,000 | | | | | | | | | | | | | | | | |
Purchase discount | 5% | | | 1% | | | | | | | | | | | | | | | | |
Transactions costs | | | | | | | | | 11,500,000 | 11,500,000 | 11,500,000 | | | | | | | | | |
Funds in Escrow | | | | | | | | | 5,100,000 | $ 5,100,000 | $ 5,100,000 | | | | | | | | | |
Proceeds from debt, net of issuance costs | | | | | | | | | $ 9,400,000 | | | | | | | | | | | |
Debt Instrument, consecutive trading days | Day | 30 | | | | | | | | | | | | | | | | | | | |
Shares purchased (in shares) | shares | | | | 26,500,000 | | | | | | | | | | | | | | | | |
Senior Notes | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Debt instrument, face amount | | 12,400,000 | | | | | | | | | | | | | | | | | | |
Company proceeds from debt issuance | | 10,500,000 | | | | | | | | | | | | | | | | | | |
Debt instrument, covenant, liquidity | | 5,000,000 | | | | | | | | | | | | | $ 20,000,000 | | | | | |
Senior Notes, Proceeds Received By Company | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Company proceeds from debt issuance | | 7,500,000 | | | | | | | | | | | | | | | | | | |
Senior Notes, Proceeds Used To Pay Transaction Expenses | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Company proceeds from debt issuance | | 1,900,000 | | | | | | | | | | | | | | | | | | |
Senior Notes, Proceeds Used To Pay Fees | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Company proceeds from debt issuance | | $ 1,100,000 | | | | | | | | | | | | | | | | | | |
Number of Ordinary Shares | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Conversion of convertible notes to ordinary shares (in shares) | shares | | | | | | | | | | | 1,542,206 | 15,896,210 | | | | | | | | |
Ordinary Shares and Additional Paid-in Capital | | | | | | | | | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | | | | | | | | | |
Conversion of convertible notes to ordinary shares | | | | | | $ 5,500,000 | | | | | $ 5,548,000 | $ 181,404,000 | | | | | | | | |