


"""simple docstring"""




import argparse


__magic_name__						: int    =				'docs/source/_static/js/custom.js'





def       a_ (	lowercase__ :Tuple     ):
			with open(lowercase__,			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(lowercase__,			"""w""",			encoding="""utf-8""",			newline="""\n"""     ) as f:
						f.writelines(lowercase__     )


if __name__ == "__main__":
					__magic_name__						: List[Any]    =				argparse.ArgumentParser()
					parser.add_argument('--version', help='Release version.')
					__magic_name__						: Tuple    =				parser.parse_args()
					update_custom_js(args.version)








"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


__magic_name__						: Tuple    =				{}


try:
					if not is_sentencepiece_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					__magic_name__						: str    =				['MLukeTokenizer']

if TYPE_CHECKING:
					try:
										if not is_sentencepiece_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .tokenization_mluke import MLukeTokenizer


else:
					import sys

					__magic_name__						: int    =				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




