Holistic Surgical Phase Recognition with Hierarchical Input Dependent State Space Models