| Schedule of basic and diluted net (loss) income per share attributable to common stockholders |
Basic net loss per share attributable to common stockholders was calculated as follows for the years ended December 31, 2024, 2023 and 2022: | | | | | | | | | | Year Ended | | December 31, | | 2024 | | 2023 | | 2022 | Numerator: | | | | | | | | | Net loss attributable to common stockholders | $ | (193,506) | | $ | (80,736) | | $ | (71,038) | Denominator: | | | | | | | | | Weighted average common shares outstanding, basic | | 158,265,162 | | | 79,827,362 | | | 76,875,035 | Net loss per share - basic | $ | (1.22) | | $ | (1.01) | | $ | (0.92) |
Diluted net loss per share was calculated as follows for the years ended December 31, 2023 and 2022: | | | | | | | | | Year Ended | | | December 31, | | | | 2023 | | | 2022 | Net loss attributable to common stockholders, basic | | $ | (80,736) | | $ | (71,038) | Interest expense on Convertible Notes | | | 4,172 | | | 4,596 | Gain on extinguishment of debt (Note 9) | | | (14,907) | | | — | Change in fair value of derivative liability | | | 4,502 | | | (13,841) | Net loss attributable to common stockholders, diluted | | $ | (86,969) | | $ | (80,283) | | | | | | | | Weighted average common shares outstanding, basic | | | 79,827,362 | | | 76,875,035 | Shares issuable in connection with conversion of Convertible Notes, as if converted | | | 5,769,232 | | | 5,769,232 | Weighted average common shares outstanding, diluted | | | 85,596,594 | | | 82,644,267 | | | | | | | | Net loss per share attributable to common stockholders, diluted | | $ | (1.02) | | $ | (0.97) |
|
| Schedule of antidilutive securities, excluded from computation of diluted net loss per share |
| | | | | | | | | December 31, | | | 2024 | | 2023 | | 2022 | Options to purchase common stock | | 19,887,683 | | 16,136,791 | | 13,669,711 | Restricted stock units | | 3,389,604 | | 1,627,341 | | 1,092,682 | | | 23,277,287 | | 17,764,132 | | 14,762,393 |
|