XML 32 R20.htm IDEA: XBRL DOCUMENT
v3.22.4

Net (Loss) Income Per Share | 12 Months Ended
--- | ---
Dec. 31, 2022
Net (Loss) Income Per Share |
Net (Loss) Income Per Share | 13.Net (Loss) Income Per Share The following table sets forth the computation of the basic and diluted net (loss) income per share: ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | Year Ended December 31,
(in thousands, except share and per share data) | 2022 |  | 2021 |  | 2020
Basic net (loss) income per share | ​ |  |  | ​ |  |  | ​ |
Numerator: | ​ |  |  | ​ |  |  | ​ |
Net (loss) income | $ | (291,754) | ​ | $ | (287,100) | ​ | $ | 132,244
Denominator: |  |  | ​ |  |  | ​ |  |
Weighted-average common shares outstanding |  | 77,630,020 | ​ |  | 75,449,632 | ​ |  | 71,411,705
Basic net (loss) income per share | $ | (3.76) | ​ | $ | (3.81) | ​ | $ | 1.85
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Diluted net (loss) income per share |  |  | ​ |  |  | ​ |  |
Numerator: |  |  | ​ |  |  | ​ |  |
Net (loss) income | $ | (291,754) | ​ | $ | (287,100) | ​ | $ | 132,244
Add interest expense on 2026 Convertible Notes, net of tax | ​ | — | ​ | ​ | — | ​ | ​ | 3,307
Numerator for diluted net (loss) income per share |  | (291,754) | ​ |  | (287,100) | ​ |  | 135,551
Denominator: |  |  | ​ |  |  | ​ |  |
Denominator for basic net (loss) income per share |  | 77,630,020 | ​ |  | 75,449,632 | ​ |  | 71,411,705
Add effect of potential dilutive securities: |  | ​ | ​ |  | ​ | ​ |  |
Stock options, including shares subject to ESPP |  | — | ​ |  | — | ​ |  | 3,455,646
Restricted stock units |  | — | ​ |  | — | ​ |  | 167,597
Shares issuable upon conversion of convertible notes | ​ | — | ​ | ​ | — | ​ | ​ | 8,456,950
Denominator for diluted net (loss) income per share |  | 77,630,020 | ​ |  | 75,449,632 | ​ |  | 83,491,898
Diluted net (loss) income per share | $ | (3.76) | ​ | $ | (3.81) | ​ | $ | 1.62
​ The following outstanding dilutive potential shares were excluded from the calculation of diluted net (loss) income per share due to their anti-dilutive effect:
​ | ​ | ​ | ​ | ​ | ​
​ | Year Ended December 31,
​ | 2022 |  | 2021 |  | 2020
Stock options, including shares subject to ESPP | 22,214,875 |  | 19,895,097 |  | 9,521,403
Restricted stock units | 2,399,465 |  | 1,811,607 |  | 7,689
Shares issuable upon conversion of 2022 Convertible Notes | 1,078,632 |  | 4,473,871 |  | 4,473,871
Shares issuable upon conversion of 2026 Convertible Notes | 11,942,152 | ​ | 11,942,152 | ​ | —
Total | 37,635,124 |  | 38,122,727 |  | 14,002,963
​

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The entire disclosure for earnings per share. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -URI https://asc.fasb.org/topic&trid=2144383 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124432515&loc=d3e3630-109257 + Details
Name: | us-gaap_EarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration