import re


def pascal_case(word: str) -> str:
    """
    Convert passed words to pascal case, ie:

    - pascal_case("San Francisco")  # SanFrancisco
    - pascal_case("SAN-FRANCISCO")  # SanFrancisco
    - pascal_case("san_francisco")  # SanFrancisco

    :param word: passed word as string
    :return: the converted string
    """
    word_regex_pattern = re.compile("[^A-Za-z]+")
    words = word_regex_pattern.split(word)
    return "".join(w.title() if i is 0 else w.title() for i, w in enumerate(words))