úÎDAY0      !"#$%&'()*+,-./API for parsing ZIM files (c) Robbin C.GPLv3 Robbin C.unstableportableNone+*See  =http://www.openzim.org/wiki/ZIM_file_format#Directory_Entries for more details.Type of this Directory EntryIndex into MIME list given by %Parameter Length NamespaceRevision$Redirect Index (only applicable for )>Content is stored in this Cluster Number (only applicable for  ) ;Content is stored in this Blob Number (only applicable for  ) URL Title PThere are 4 types of directory entries. Most content in a ZIM file are usually   or .See  2http://www.openzim.org/wiki/ZIM_file_format#Header for more details..Magic Number of file (somewhat superfluous as $I will throw an exception if magic number is anything other than 72173914)Version of ZIM header UUID of fileNumber of articlesNumber of clustersPosition of sorted URL pointers!Position of sorted Title pointersPosition of Cluster pointersPosition of MIME listIndex of main pageIndex of layout pagePosition of MD5 checksumgOther than the below, ErrorCall can be thrown by LZMA library if there is a problem with decompression. AZIM file has invalid magic number (anything other than 72173914).!There is an error in parsing.".There is insufficient bytes required to parse.#KThe given index (URL, title or cluster) is out of bounds for this ZIM file.$ÿGParses ZIM Header from a file handle. A ZIM Header is used by most of the functions in this module. For better performance or resource management, multiple file handles can be opened with the same ZIM header in order to call functions in parallel. If the underlying ZIM file has changed, a new ZIM header should be parsed.%5Parses MIME List from a ZIM header and a file handle.&3Returns Directory Entry corresponding to URL index.'5Returns Directory Entry corresponding to Title index.(„Returns (decompressed) Cluster corresponding to Cluster number. This can throw ErrorCall if there is an error during decompression.)+Returns Blob given Cluster and Blob number.*DReturns content given URL index. Redirects are handled automatically+vSearch for a Directory Entry given a URL. URL must be prefixed with Namespace (eg. "A/Blue.html" or "I/favicon.png").,9Search for a Directory Entry given a Title and namespace.-ÜSearch for lower and upper bounds of Title indices that contains prefix in their title. Eg, if title list comprises [ "A", "Ba", "Bb", "Bc", "C" ] prefix search for "B" will return bounds corresponding to ("Ba", "Bc")..ZReturns URL of main page in ZIM. This URL can be used for redirecting to the actual page./„Returns (MIME type, content) of URL, ready to be served via HTTP. Note that MIME type is a strict bytestring while Content is lazy.5  !"#$1Handle to ZIM file (eg. previously returned from 0)Returns ZIM Header1% ZIM headerHandle to ZIM fileReturns array of MIME types2& ZIM headerHandle to ZIM file URL indexReturns a Directory Entry3' ZIM headerHandle to ZIM file Title indexReturns a Directory Entry( ZIM headerHandle to ZIM fileCluster number,Returns a lazy bytestring containing cluster) ZIM headerHandle to ZIM fileCluster Number Blob Number)Returns a lazy bytestring containing blob* ZIM headerHandle to ZIM file URL index,Returns a lazy bytestring containing content4+ ZIM headerHandle to ZIM fileURL to search for.Returns (URL Index, Directory Entry) if found., ZIM headerHandle to ZIM fileNamespace to search forTitle to search for/Returns (Title Index, Directory Entry) if found- ZIM headerHandle to ZIM file Namespace Title PrefixjReturns ((Lower Title Index, Lower Directory Entry), (Upper Title Index, Upper Directory Entry)) if found..Path to ZIM fileReturns URL if found/Path to ZIM fileURL%Returns (MIME type, content) if found50  !"#$%&'()*+,-./0./+,- !"#$%  &'()*     !"#$1%2&3'()*4+,-./56      !"#$%&'()*+,-./012345678zimpa_5qYebHETafAJ4zIktUbrnfCodec.Archive.Zim.Parser ZimDirEnt zimDeType zimDeMimeTypezimDeParameterLenzimDeNamespace zimDeRevisionzimDeRedirectIndexzimDeClusterNumberzimDeBlobNumberzimDeUrl zimDeTitle ZimDirEntTypeZimArticleEntryZimRedirectEntry ZimLinkTargetZimDeletedEntry ZimHeaderzimMagicNumber zimVersionzimUuidzimArticleCountzimClusterCount zimUrlPtrPoszimTitlePtrPoszimClusterPtrPoszimMimeListPos zimMainPage zimLayoutPagezimChecksumPos ZimExceptionZimInvalidMagic ZimParseErrorZimIncompleteInputZimInvalidIndex getZimHeadergetZimMimeListgetZimDirEntByUrlIndexgetZimDirEntByTitleIndex getZimCluster getZimBlobgetZimContentByUrlIndexsearchZimDirEntByUrlsearchZimDirEntByTitlesearchZimDirEntByTitlePrefixgetZimMainPageUrlgetZimUrlContentbase System.IOwithBinaryFileparseZimHeaderparseByteStringsNulparseZimDirEnt binarySearch$fExceptionZimException