Fair Value Measurements - Summary of Changes in Fair Value of Total Level 3 Financial Assets (Detail) - USD ($) $ in Thousands |
12 Months Ended | |
---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
|
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] | ||
Balance at beginning of year | $ 14,261 | $ 23,509 |
Loss recognized from the change in fair value of common stock warrants | 1,386 | 17,087 |
Common stock warrants exercised during the period | (15,500) | (26,335) |
Balance at end of year | $ 147 | $ 14,261 |