# Path: nhlscrapi/constants.py
# TEAMS_BY_ABBR = {
#   'ANA': 'Anaheim Ducks', # (1993-94 - present)
#   'ARI': 'Arizona Coyotes', # (2014-15 - present)
#   'ATF': 'Atlanta Flames', # (1972-73 - 1979-80)
#   'ARL': 'Atlanta Trashers', # (1999-00 - 2010-11)
#   'BOS': 'Boston Bruins', # (1925-26 - present)
#   'BKN': 'Brooklyn Americans', # (1941-1942)
#   'BUF': 'Buffalo Sabres', # (1970-71 - present)
#   'CGY': 'Calgary Flames', # (1980-81 - present)
#   'CLF': 'California Golden Seals', # (1970-71 - 1975-76)
#   'CAR': 'Carolina Hurricanes', # (1997-98 - present)
#   'CHI': 'Chicago Blackhawks', # (1926-27 - present)
#   'CLE': 'Cleveland Barons', # (1976-77 - 1977-78)
#   'COR': 'Colorado Rockies', # (1976-77 - 1981-82)
#   'COL': 'Colorado Avalanche', # (1995-96 - present)
#   'CBJ': 'Columbus Blue Jackets', # (2000-01 - present)
#   'DAL': 'Dallas Stars', # (1993-94 - present)
#   'DTC': 'Detroit Cougars', # (1926-27 - 1929-30)
#   'DTF': 'Detroit Falcons', # (1930-31 - 1931-32)
#   'DET': 'Detroit Red Wings', # (1932-33 - present)
#   'EDM': 'Edmonton Oilers', # (1979-80 - present)
#   'FLA': 'Florida Panthers', # (1993-94 - present)
#   'HAM': 'Hamilton Tigers', # (1920-21 - 1924-25)
#   'HAR': 'Hartford Whalers', # (1979-80 - 1996-97)
#   'KC': 'Kansas City Scouts', # (1974-75 - 1975-76)
#   'LA': 'Los Angeles Kings', # (1967-68 - present)
#   'MIN': 'Minnesota Wild', # (2000-01 - present)
#   'MNS': 'Minnesota North Stars', # (1967-68 - 1992-93)
#   'MTL': 'Montreal Canadiens', # (1917-18 - present)
#   'MTM': 'Montreal Maroons', # (1924-25 - 1937-38)
#   'MTW': 'Montreal Wanderers', # (1917-18)
#   'NSH': 'Nashville Predators', # (1998-99 - present)
#   'NJ': 'New Jersey Devils', # (1982-83 - present)
#   'NYA': 'New York Americans', # (1925-26 - 1940-41)
#   'NYI': 'New York Islanders', # (1972-73 - present)
#   'NYR': 'New York Rangers', # (1926-27 - present)
#   'OAK': 'Oakland Seals', # (1967-68 - 1969-70)
#   'PHI': 'Philadelphia Flyers', # (1967-68 - present)
#   'PHQ': 'Philadelphia Quakers', # (1930-31)
#   'PHO': 'Phoenix Coyotes', # (1996-97 - 2013-14)
#   'PIT': 'Pittsburgh Penguins', # (1967-68 - present)
#   'PIP': 'Pittsburgh Pirates', # (1925-26 - 1929-30)
#   'OTT': 'Ottawa Senators', # (1992-93 - present)
#   'OTS': 'Ottawa Senators (orig)', # (1917-18 - 1930-31, 1932-33 - 1933-34)
#   'QUE': 'Quebec Nordiques', # (1979-80 - 1994-95)
#   'QUB': 'Quebec Bulldogs', # (1919-20)
#   'STL': 'St Louis Blues', # (1967-68 - present)
#   'STE': 'St Louis Eagles', # (1934-35)
#   'SJ': 'San Jose Sharks', # (1991-92 - present)
#   'TB': 'Tampa Bay Lightning', # (1992-93 - present)
#   'TOR': 'Toronto Maple Leafs', # (1926-27 - present)
#   'TRA': 'Toronto Arenas', # (1917-18 - 1918-19)
#   'TRS': 'Toronto St Pats', # (1919-20 - 1925-26)
#   'VAN': 'Vancouver Canucks', # (1970-71 - present)
#   'WSH': 'Washington Capitals', # (1974-75 - present)
#   'WIJ': 'Winnipeg Jets (orig)', # (1st) (1979-80 - 1995-96)
#   'WPG': 'Winnipeg Jets', # (2011-12 - present)
# }


from nhlscrapi.constants import TEAMS_BY_ABBR as ABB


__abbr_alts = {
  'LAK': 'LA'
}

def team_abbr_parser(abr):
  abr = abr.replace('.','')

  # keep abr if already in good shape

# Path: nhlscrapi/constants.py
# TEAMS_BY_ABBR = {
#   'ANA': 'Anaheim Ducks', # (1993-94 - present)
#   'ARI': 'Arizona Coyotes', # (2014-15 - present)
#   'ATF': 'Atlanta Flames', # (1972-73 - 1979-80)
#   'ARL': 'Atlanta Trashers', # (1999-00 - 2010-11)
#   'BOS': 'Boston Bruins', # (1925-26 - present)
#   'BKN': 'Brooklyn Americans', # (1941-1942)
#   'BUF': 'Buffalo Sabres', # (1970-71 - present)
#   'CGY': 'Calgary Flames', # (1980-81 - present)
#   'CLF': 'California Golden Seals', # (1970-71 - 1975-76)
#   'CAR': 'Carolina Hurricanes', # (1997-98 - present)
#   'CHI': 'Chicago Blackhawks', # (1926-27 - present)
#   'CLE': 'Cleveland Barons', # (1976-77 - 1977-78)
#   'COR': 'Colorado Rockies', # (1976-77 - 1981-82)
#   'COL': 'Colorado Avalanche', # (1995-96 - present)
#   'CBJ': 'Columbus Blue Jackets', # (2000-01 - present)
#   'DAL': 'Dallas Stars', # (1993-94 - present)
#   'DTC': 'Detroit Cougars', # (1926-27 - 1929-30)
#   'DTF': 'Detroit Falcons', # (1930-31 - 1931-32)
#   'DET': 'Detroit Red Wings', # (1932-33 - present)
#   'EDM': 'Edmonton Oilers', # (1979-80 - present)
#   'FLA': 'Florida Panthers', # (1993-94 - present)
#   'HAM': 'Hamilton Tigers', # (1920-21 - 1924-25)
#   'HAR': 'Hartford Whalers', # (1979-80 - 1996-97)
#   'KC': 'Kansas City Scouts', # (1974-75 - 1975-76)
#   'LA': 'Los Angeles Kings', # (1967-68 - present)
#   'MIN': 'Minnesota Wild', # (2000-01 - present)
#   'MNS': 'Minnesota North Stars', # (1967-68 - 1992-93)
#   'MTL': 'Montreal Canadiens', # (1917-18 - present)
#   'MTM': 'Montreal Maroons', # (1924-25 - 1937-38)
#   'MTW': 'Montreal Wanderers', # (1917-18)
#   'NSH': 'Nashville Predators', # (1998-99 - present)
#   'NJ': 'New Jersey Devils', # (1982-83 - present)
#   'NYA': 'New York Americans', # (1925-26 - 1940-41)
#   'NYI': 'New York Islanders', # (1972-73 - present)
#   'NYR': 'New York Rangers', # (1926-27 - present)
#   'OAK': 'Oakland Seals', # (1967-68 - 1969-70)
#   'PHI': 'Philadelphia Flyers', # (1967-68 - present)
#   'PHQ': 'Philadelphia Quakers', # (1930-31)
#   'PHO': 'Phoenix Coyotes', # (1996-97 - 2013-14)
#   'PIT': 'Pittsburgh Penguins', # (1967-68 - present)
#   'PIP': 'Pittsburgh Pirates', # (1925-26 - 1929-30)
#   'OTT': 'Ottawa Senators', # (1992-93 - present)
#   'OTS': 'Ottawa Senators (orig)', # (1917-18 - 1930-31, 1932-33 - 1933-34)
#   'QUE': 'Quebec Nordiques', # (1979-80 - 1994-95)
#   'QUB': 'Quebec Bulldogs', # (1919-20)
#   'STL': 'St Louis Blues', # (1967-68 - present)
#   'STE': 'St Louis Eagles', # (1934-35)
#   'SJ': 'San Jose Sharks', # (1991-92 - present)
#   'TB': 'Tampa Bay Lightning', # (1992-93 - present)
#   'TOR': 'Toronto Maple Leafs', # (1926-27 - present)
#   'TRA': 'Toronto Arenas', # (1917-18 - 1918-19)
#   'TRS': 'Toronto St Pats', # (1919-20 - 1925-26)
#   'VAN': 'Vancouver Canucks', # (1970-71 - present)
#   'WSH': 'Washington Capitals', # (1974-75 - present)
#   'WIJ': 'Winnipeg Jets (orig)', # (1st) (1979-80 - 1995-96)
#   'WPG': 'Winnipeg Jets', # (2011-12 - present)
# }


# Path: nhlscrapi/scrapr/teamnameparser.py
from nhlscrapi.constants import TEAMS_BY_ABBR as ABB



__abbr_alts = {
  'LAK': 'LA'
}

def team_abbr_parser(abr):
  abr = abr.replace('.','')

  # keep abr if already in good shape

  if abr in ABB: