File: //usr/lib/python3/dist-packages/sphinx/builders/__pycache__/_epub_base.cpython-310.pyc
o
�$�ar � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZmZm Z m
Z
mZ ddlm
Z
mZmZ ddlmZ ddlmZmZ ddlmZ dd lmZ dd
lmZmZ ddlmZ ddlmZm Z dd
l!m"Z" ddl#m$Z$ ddl%m&Z&m'Z' zddl(m)Z) W n e*y� dZ)Y nw e�+e,�Z-dZ.dZ/dZ0dZ1dZ2dZ3ddd�Z4dddddddd d!d"d#�
Z5d$Z6e�7d%�Z8G d&d'� d'e �Z9G d(d)� d)e �Z:G d*d+� d+e �Z;G d,d-� d-e �Z<d6d/e=d0e=d1e=fd2d3�Z>e>Z?G d4d5� d5e�Z@dS )7z�
sphinx.builders._epub_base
~~~~~~~~~~~~~~~~~~~~~~~~~~
Base class of epub2/epub3 builders.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�path)�Any�Dict�List�
NamedTuple�Set�Tuple)�ZIP_DEFLATED�
ZIP_STORED�ZipFile)�nodes)�Element�Node)�smartquotes)�addnodes)� BuildInfo�StandaloneHTMLBuilder)�__)�logging�status_iterator)�copy_asset_file)�format_date)�copyfile� ensuredir)�Imagezepub-cover.xhtmlztoctree-l%dz
[%(uri)s]z#%d� Footnoteszlink-targetzTable of Contents�Cover)�toc�coverzapplication/xhtml+xmlztext/css� image/png� image/gif�
image/svg+xml�
image/jpegzapplication/x-font-otfzapplication/x-font-ttfzapplication/font-woff)
�.xhtmlz.cssz.pngz.gif�.svgz.jpgz.jpegz.otfz.ttfz.woff)r$ z
([^#:]*#)(.*)c @ �&