





'''simple docstring'''


import argparse


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


def 		__a(SCREAMING_SNAKE_CASE_     :    Dict			):



    '''simple docstring'''





    with open(UpperCAmelCase__						,				encoding="utf-8"						,				newline="\n"			) as f:
        _lowerCAmelCase			=					f.readlines()
    _lowerCAmelCase			=					0

    # First let's put the right version
    while not lines[index].startswith("const stableVersion ="			):
        index += 1
    _lowerCAmelCase			=					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__":
       _SCREAMING_SNAKE_CASE		       =							argparse.ArgumentParser()
       parser.add_argument("--version", help="Release version.")
       _SCREAMING_SNAKE_CASE		       =							parser.parse_args()
       update_custom_js(args.version)



'''simple docstring'''




import math




def 							lowerCamelCase	(      UpperCAmelCase__       :					int )			->      int:

							if not isinstance(UpperCAmelCase__      ,      UpperCAmelCase__ ):
														lowercase_					:			List[Any]										=       F'''Input value of [number={number}] must be an integer'''
														raise TypeError(UpperCAmelCase__ )

							if number < 1:
														lowercase_					:			Tuple										=       F'''Input value of [number={number}] must be > 0'''
														raise ValueError(UpperCAmelCase__ )
							elif number == 1:
														return 3
							elif number == 2:
														return 5
							else:
														lowercase_					:			Union[str, Any]										=       int(math.log(number // 3      ,      2 ) ) + 2

														lowercase_					:			Any										=       [3, 5]
														lowercase_					:			List[Any]										=       2
														lowercase_					:			Optional[Any]										=       3
														for block in range(1      ,      UpperCAmelCase__ ):
																					for _ in range(UpperCAmelCase__ ):
																												proth_list.append(2 ** (block + 1) + proth_list[proth_index - 1] )
																												proth_index += 1
																					increment *= 2

							return proth_list[number - 1]


if __name__ == "__main__":
						import doctest

						doctest.testmod()

						for number in range(11):
												_lowercase						: Optional[Any]						=						0
												try:
																		_lowercase						: str						=						proth(number)
												except ValueError:
																		print(f"""ValueError: there is no {number}th Proth number""")
																		continue

												print(f"""The {number}th Proth number: {value}""")





