The library has, like Poland itself, experienced a tumultuous and often tragic history.