



"""simple docstring"""






import numpy as np

lowerCAmelCase__      =    [
    ['''a''', '''b''', '''c''', '''d''', '''e'''],
    ['''f''', '''g''', '''h''', '''i''', '''k'''],
    ['''l''', '''m''', '''n''', '''o''', '''p'''],
    ['''q''', '''r''', '''s''', '''t''', '''u'''],
    ['''v''', '''w''', '''x''', '''y''', '''z'''],
]






class 	__snake_case	:




  def __init__(			self					:						str		):






         """simple docstring"""






         _lowerCamelCase						:    Dict         =			np.array(__lowerCAmelCase		)




  def 						SCREAMING_SNAKE_CASE    (			self					:						int						, __lowerCAmelCase					:						str		):






         """simple docstring"""






         _lowerCamelCase      ,   _lowerCamelCase						:    Union[str, Any]         =			np.where(letter == self.SQUARE		)
         _lowerCamelCase						:    Tuple         =			np.concatenate([indexa + 1, indexa + 1]		)
         return indexes




  def 						SCREAMING_SNAKE_CASE    (			self					:						List[Any]						, __lowerCAmelCase					:						int						, __lowerCAmelCase					:						int		):






         """simple docstring"""






         _lowerCamelCase						:    Optional[int]         =			self.SQUARE[indexa - 1, indexa - 1]
         return letter




  def 						SCREAMING_SNAKE_CASE    (			self					:						Dict						, __lowerCAmelCase					:						str		):






         """simple docstring"""






         _lowerCamelCase						:    Optional[Any]         =			message.lower()
         _lowerCamelCase						:    Optional[int]         =			message.replace(''' '''						, ''''''		)
         _lowerCamelCase						:    Union[str, Any]         =			message.replace('''j'''						, '''i'''		)

         _lowerCamelCase						:    int         =			np.empty((2, len(__lowerCAmelCase		))		)
         for letter_index in range(len(__lowerCAmelCase		)		):
                _lowerCamelCase						:    List[Any]         =			self.letter_to_numbers(message[letter_index]		)

                _lowerCamelCase						:    Tuple         =			numbers[0]
                _lowerCamelCase						:    Optional[int]         =			numbers[1]

         _lowerCamelCase						:    Dict         =			first_step.reshape(2 * len(__lowerCAmelCase		)		)
         _lowerCamelCase						:    Optional[int]         =			''''''
         for numbers_index in range(len(__lowerCAmelCase		)		):
                _lowerCamelCase						:    Optional[int]         =			int(second_step[numbers_index * 2]		)
                _lowerCamelCase						:    List[str]         =			int(second_step[(numbers_index * 2) + 1]		)
                _lowerCamelCase						:    Any         =			self.numbers_to_letter(__lowerCAmelCase						, __lowerCAmelCase		)
                _lowerCamelCase						:    Dict         =			encoded_message + letter

         return encoded_message




  def 						SCREAMING_SNAKE_CASE    (			self					:						Optional[int]						, __lowerCAmelCase					:						str		):






         """simple docstring"""






         _lowerCamelCase						:    Tuple         =			message.lower()
         message.replace(''' '''						, ''''''		)
         _lowerCamelCase						:    Any         =			np.empty(2 * len(__lowerCAmelCase		)		)
         for letter_index in range(len(__lowerCAmelCase		)		):
                _lowerCamelCase						:    List[str]         =			self.letter_to_numbers(message[letter_index]		)
                _lowerCamelCase						:    Any         =			numbers[0]
                _lowerCamelCase						:    Optional[Any]         =			numbers[1]

         _lowerCamelCase						:    Any         =			first_step.reshape((2, len(__lowerCAmelCase		))		)
         _lowerCamelCase						:    int         =			''''''
         for numbers_index in range(len(__lowerCAmelCase		)		):
                _lowerCamelCase						:    Optional[int]         =			int(second_step[0, numbers_index]		)
                _lowerCamelCase						:    int         =			int(second_step[1, numbers_index]		)
                _lowerCamelCase						:    Tuple         =			self.numbers_to_letter(__lowerCAmelCase						, __lowerCAmelCase		)
                _lowerCamelCase						:    List[str]         =			decoded_message + letter

         return decoded_message







"""simple docstring"""






import argparse


lowerCAmelCase__      =    '''docs/source/_static/js/custom.js'''






def 	snake_case_  (				A_ :		List[str]						):


       '''simple docstring'''





       with open(A_,    encoding='''utf-8''',    newline='''\n'''						) as f:
              _lowerCamelCase						:    int         =			f.readlines()
       _lowerCamelCase						:    List[str]         =			0

       # First let's put the right version
       while not lines[index].startswith('''const stableVersion ='''						):
              index += 1
       _lowerCamelCase						:    List[Any]         =			F'''const stableVersion = "v{version}"\n'''

       # Then update the dictionary
       while not lines[index].startswith('''const versionMapping = {'''						):
              index += 1

       # We go until the end
       while not lines[index].startswith('''}'''						):
              index += 1
       # We add the new version at the end
       lines[index - 1] += F'''    "v{version}": "v{version}",\n'''

       with open(A_,    '''w''',    encoding='''utf-8''',    newline='''\n'''						) as f:
              f.writelines(A_						)


if __name__ == "__main__":
   lowerCAmelCase__      =    argparse.ArgumentParser()
   parser.add_argument('''--version''', help='''Release version.''')
   lowerCAmelCase__      =    parser.parse_args()
   update_custom_js(args.version)


