




UpperCAmelCase__				     = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"







def 		_A(       )    -> None:
							'''simple docstring'''


							__lowercase      =    input('''Enter message: '''				)
							__lowercase      =    input('''Enter key [alphanumeric]: '''				)
							__lowercase      =    input('''Encrypt/Decrypt [e/d]: '''				)

							if mode.lower().startswith('''e'''				):
														__lowercase      =    '''encrypt'''
														__lowercase      =    encrypt_message(UpperCamelCase__				,       UpperCamelCase__				)
							elif mode.lower().startswith('''d'''				):
														__lowercase      =    '''decrypt'''
														__lowercase      =    decrypt_message(UpperCamelCase__				,       UpperCamelCase__				)

							print(F'\n{mode.title()}ed message:'				)
							print(UpperCamelCase__				)







def 		_A(       UpperCamelCase__							:			str				,       UpperCamelCase__							:			str				)    -> str:
							'''simple docstring'''


							return translate_message(UpperCamelCase__				,       UpperCamelCase__				,       '''encrypt'''				)







def 		_A(       UpperCamelCase__							:			str				,       UpperCamelCase__							:			str				)    -> str:
							'''simple docstring'''


							return translate_message(UpperCamelCase__				,       UpperCamelCase__				,       '''decrypt'''				)







def 		_A(       UpperCamelCase__							:			str				,       UpperCamelCase__							:			str				,       UpperCamelCase__							:			str				)    -> str:
							'''simple docstring'''


							__lowercase      =    []
							__lowercase      =    0
							__lowercase      =    key.upper()

							for symbol in message:
														__lowercase      =    LETTERS.find(symbol.upper()				)
														if num != -1:
																					if mode == "encrypt":
																												num += LETTERS.find(key[key_index]				)
																					elif mode == "decrypt":
																												num -= LETTERS.find(key[key_index]				)

																					num %= len(UpperCamelCase__				)

																					if symbol.isupper():
																												translated.append(LETTERS[num]				)
																					elif symbol.islower():
																												translated.append(LETTERS[num].lower()				)

																					key_index += 1
																					if key_index == len(UpperCamelCase__				):
																												__lowercase      =    0
														else:
																					translated.append(UpperCamelCase__				)
							return "".join(UpperCamelCase__				)


if __name__ == "__main__":
			main()












import argparse


UpperCAmelCase__				     = "docs/source/_static/js/custom.js"







def 		_A(       UpperCamelCase__							:			Optional[int]				)    -> Optional[int]:
							'''simple docstring'''


							with open(UpperCamelCase__				,       encoding='''utf-8'''				,       newline='''\n'''				) as f:
														__lowercase      =    f.readlines()
							__lowercase      =    0

							# First let's put the right version
							while not lines[index].startswith('''const stableVersion ='''				):
														index += 1
							__lowercase      =    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(UpperCamelCase__				,       '''w'''				,       encoding='''utf-8'''				,       newline='''\n'''				) as f:
														f.writelines(UpperCamelCase__				)


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






