XML 23 R8.htm IDEA: XBRL DOCUMENT v3.22.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating activities:      
Net loss $ (29,126) $ (59,995) $ (75,595)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 10,598 10,033 8,077
Stock-based compensation 32,633 36,575 57,327
Provision for credit loss recovery (1,000)    
Provision for credit loss expense 0 1,000 0
Disposal of property and equipment 1 0 54
Loss on impairment of asset 0 0 1,183
Loss on debt extinguishment 8,146 0 8,047
Changes in operating assets and liabilities:      
Accounts receivable, net (5,983) 2,353 (8,123)
Inventory, net (3,655) (284) (545)
Prepaid expenses and other 2,669 2,207 414
Other current assets 3,194 (3,120) 1,464
Accounts payable (902) (7,107) (1,526)
Accrued expenses and other 5,209 19,251 22,599
Post-marketing commitment liability (1,134) (140) 9,000
Net cash provided by operating activities 20,650 773 22,376
Investing activities:      
Purchase of property and equipment 0 (46) (306)
Purchase of available-for-sale securities (38,073) (29,826) (127,198)
Sale of available-for-sale securities 0 0 28,135
Maturity of available-for-sale securities 27,192 73,275 104,532
Purchase of intangible assets 0 (10,000) 0
Net cash provided by (used in) investing activities (10,881) 33,403 5,163
Financing activities:      
Net proceeds from shares issued under employee stock plans 0 68 1,351
Proceeds from debt 98,500 8,444 25,000
Payment of debt (100,000) (8,444) (80,000)
Payment of prepayment costs, end of loan payment and other extinguishment costs (8,521) 0 (7,793)
Payment of debt issuance costs (1,910) 0 (5,625)
Installment payment for purchase of intangible asset (20,000) (10,000) 0
Net cash used in financing activities (31,931) (9,932) (67,067)
Net increase (decrease) in cash, cash equivalents and restricted cash (22,162) 24,244 (39,528)
Cash, cash equivalents and restricted cash, beginning of period 97,454 73,210 112,738
Cash, cash equivalents and restricted cash, end of period 75,292 97,454 73,210
Supplemental disclosures of non-cash investing and financing activities:      
Intangibles in accrued expenses 0 20,000 0
Property and equipment purchases in accounts payable 0 0 25
Supplemental disclosure of cash flow information:      
Interest paid 10,342 9,703 11,739
Income taxes paid $ 324 $ 207 $ 53