XML 22 R6.htm IDEA: XBRL DOCUMENT v3.22.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Cash flows from operating activities:      
Net income (loss) $ 23,254 $ 32,277 $ (9,372)
Adjustments to reconcile net income to net cash provided by operating activities      
Depreciation and amortization expense 11,843 7,926 6,402
Stock-based compensation expense 57,415 29,992 16,009
Inventory write-down 2,972 1,817 1,446
Impairment of internal-use software     959
Unrealized interest on held to maturity securities (5,055)    
Other 358 117 106
Changes in assets and liabilities:      
Accounts receivable, net (2,853) (14,456) (6,261)
Related party accounts receivable   736 337
Inventories (36,992) (13,096) (2,070)
Prepaid expenses and other assets (7,460) (1,859) 2,951
Accounts payable 2,468 5,826 2,606
Accrued expenses and other liabilities (6,198) 9,798 3,491
Net cash provided by operating activities 39,752 59,078 16,604
Cash flows from investing activities      
Purchase of held to maturity securities (673,370)    
Proceeds from maturity of held to maturity securities 148,931    
Purchase of property and equipment (31,793) (30,878) (6,098)
Cash paid for intangibles (3,856) (2,910) (1,695)
Net cash used in investing activities (560,088) (33,788) (7,793)
Cash flows from financing activities      
Tax withholding paid on behalf of employees for net share settlement (37,552)   (3,493)
Proceeds from public offering 33,977 461,264 48,800
Payments for offering costs (947) (618) (3,011)
Proceeds from loans from financial institutions     35,000
Principal payments on loans to financial institutions     (76,000)
Net cash provided by (used in) financing activities (4,522) 460,646 1,296
Net increase (decrease) in cash and cash equivalents (524,858) 485,936 10,107
Cash and cash equivalents      
Beginning of period 559,461 73,525 63,418
End of period 34,603 559,461 73,525
Supplemental disclosure of cash flow information      
Interest paid during the period     799
Income taxes paid 58 24 1
Supplemental disclosure of noncash flow information      
Unpaid property and equipment 747 1,437 343
Unpaid intangibles, net 606 3,178  
Right-of-use assets acquired under operating leases $ 4,761 $ 689 $ 382