Annual report pursuant to Section 13 and 15(d)

Fair Value Measurements - Schedule of Fair Value of Liabilities on Recurring Basis (Details)

v3.20.2
Fair Value Measurements - Schedule of Fair Value of Liabilities on Recurring Basis (Details) - USD ($)
$ in Thousands
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Total fair value $ 97,595 $ 11,596 $ 64,687
Secured Promissory Notes [Member]      
Total fair value 85,507    
Secured Promissory Notes Related Party [Member]      
Total fair value 1,230    
Warrant Derivative Liability [Member]      
Total fair value 6,689 3,558 16,492
Debt Derivative Liability [Member]      
Total fair value 4,169 8,038 $ 48,195
Fair Value, Inputs, Level 1 [Member]      
Total fair value  
Fair Value, Inputs, Level 1 [Member] | Secured Promissory Notes [Member]      
Total fair value    
Fair Value, Inputs, Level 1 [Member] | Secured Promissory Notes Related Party [Member]      
Total fair value    
Fair Value, Inputs, Level 1 [Member] | Warrant Derivative Liability [Member]      
Total fair value  
Fair Value, Inputs, Level 1 [Member] | Debt Derivative Liability [Member]      
Total fair value  
Level 2 [Member]      
Total fair value 86,737  
Level 2 [Member] | Secured Promissory Notes [Member]      
Total fair value 85,507    
Level 2 [Member] | Secured Promissory Notes Related Party [Member]      
Total fair value 1,230    
Level 2 [Member] | Warrant Derivative Liability [Member]      
Total fair value  
Level 2 [Member] | Debt Derivative Liability [Member]      
Total fair value  
Level 3 [Member]      
Total fair value 10,858 11,596  
Level 3 [Member] | Secured Promissory Notes [Member]      
Total fair value    
Level 3 [Member] | Secured Promissory Notes Related Party [Member]      
Total fair value    
Level 3 [Member] | Warrant Derivative Liability [Member]      
Total fair value 6,689 3,558  
Level 3 [Member] | Debt Derivative Liability [Member]      
Total fair value $ 4,169 $ 8,038