Support deep-history-pseudostate and shallow-history-pseudostate