XML 24 R7.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 income (loss) $ 76,713 $ (75,240) $ (152,600)
Adjustments to reconcile net income (loss) to net cash used in operating activities:      
Depreciation and amortization 4,296 4,273 8,938
Amortization of right-of-use assets 2,715 2,562 3,375
Inventory write-off 2,588
Loss (gain) on disposal of property and equipment and from lease termination 47 (98) 18
Amortization of premiums (accretion of discounts) on marketable securities 470 535 (1,462)
Realized gain on available-for-sale securities 57
Loss on debt extinguishment (5,232) 0 0
Change in fair value of warrant liability 49,354 (4,124) 7,500
Stock compensation expense 21,285 13,484 25,456
Cost of sales - amortization of intangible assets 0 2,500 9,217
Non-cash interest expense 1,608 2,542 4,973
Tenant improvements provided by the landlord (1,137) (6,999)
Gain on sale of assets (1,000) (6,851) 0
Changes in operating assets and liabilities:      
Accounts and other receivables, net (109,155) (13,775) (5,182)
Inventories, net (234) 22,357 22,310
Prepaid manufacturing (130,232) (29,423)
Prepaid expenses and other current assets (64,558) (1,826) (1,278)
Other assets 175 (229) 1,632
Accounts payable (767) (3,448) 4,848
CEPI accrual (see Note 9) 128,848
Lease liabilities 3,234 2,872 2,000
Deferred revenue 311,652 38,212
Accrued and other liabilities 39,725 2,804 (9,376)
Net cash provided by (used in) operating activities 335,528 (92,251) (121,252)
Investing activities      
Acquisition of technology licenses 7,000 7,000
Purchases of marketable securities (164,928) (201,786) (215,191)
Proceeds from maturities and redemptions of marketable securities 187,630 148,565 201,810
Proceeds from sales of marketable securities 30,910
Purchases of property and equipment, net (9,477) (4,072) (22,401)
Proceeds from sale of assets, net of transaction costs 1,000 6,851
Net cash (used in) provided by investing activities 14,225 (26,532) (42,782)
Financing activities      
Proceeds from long-term debt, net 74,250
Proceeds from issuances of common stock, net 28,156 108,538 65,948
Proceeds from issuances of preferred stock, net 13,586
Proceeds from issuance of Convertible Notes, net 219,822
Purchases of capped call options 27,240
Repayment of long-term debt 190,194
Proceeds from Issuance of Warrants 17,814
Proceeds from exercise of stock options and restricted stock awards, net 6,577 289 2
Proceeds from Employee Stock Purchase Plan 841 672 565
Net cash provided by financing activities 55,776 109,499 154,351
Effect of exchange rate changes on cash, cash equivalents and restricted cash (1,431) 1,494 (184)
Net increase (decrease) in cash, cash equivalents and restricted cash 404,098 (7,790) (9,867)
Cash, cash equivalents and restricted cash at beginning of year 32,310 40,100 49,967
Cash, cash equivalents and restricted cash at end of year 436,408 32,310 40,100
Supplemental disclosure of cash flow information      
Cash paid during the year for income taxes 1,312
Cash paid during the year for interest 9,815 16,541 12,147
Non-cash investing and financing activities:      
Purchases of property and equipment, not yet paid 591 361 2,698
Proceeds allocated to warrant liability at issuance 7,360
Right-of-use assets obtained in exchange for operating lease liabilities $ 2,468 $ 40,626