Ë
    èì�i¶	  ã                  ó¼   — d Z ddlmZ ddlZ	 ddlmZ dd„Ze	dk(  rddl
Z
 e
j                   e«       «       yy# e$ r 	 ddlmZ n# e$ r	 ddlmZ Y nw xY wY ŒFw xY w)	a  Write fsspec ReferenceFileSystem for TIFF file.

positional arguments:
  tifffile              path to the local TIFF input file
  url                   remote URL of TIFF file without file name

optional arguments:
  -h, --help            show this help message and exit
  --out OUT             path to the JSON output file
  --series SERIES       index of series in file
  --level LEVEL         index of level in series
  --key KEY             index of page in file or series
  --chunkmode CHUNKMODE
                        mode used for chunking {None, pages}

For example:

    ``tiff2fsspec ./test.ome.tif https://server.com/path/``

é    )ÚannotationsNé   )Útiff2fsspecc            
     ó¤  — t        j                  dd¬«      } | j                  dt        d¬«       | j                  dt        d¬«       | j                  d	t        d
d¬«       | j                  dt        d
d¬«       | j                  dt        d
d¬«       | j                  dt        d
d¬«       | j                  dt        d
d¬«       | j                  dt        d
d¬«       | j                  «       }t        |j                  |j                  |j                  |j                  |j                  |j                  |j                  |j                  ¬«       y)z-Tiff2fsspec command line usage main function.r   z/Write fsspec ReferenceFileSystem for TIFF file.)ÚdescriptionÚtifffilez!path to the local TIFF input file)ÚtypeÚhelpÚurlz)remote URL of TIFF file without file namez--outNzpath to the JSON output file)r	   Údefaultr
   z--serieszindex of series in filez--levelzindex of level in seriesz--keyzindex of page in file or seriesz--chunkmodez$mode used for chunking {None, pages}z--verzversion of ReferenceFileSystem)ÚoutÚkeyÚseriesÚlevelÚ	chunkmodeÚversionr   )ÚargparseÚArgumentParserÚadd_argumentÚstrÚintÚ
parse_argsr   r   r   r   r   r   r   r   Úver)ÚparserÚargss     úy/var/www/ITT-ServiceAPI-Services/ITT-Document-Scan/mrzscanner/mrzenv/lib/python3.12/site-packages/tifffile/tiff2fsspec.pyÚmainr   &   sc  € ä×$Ñ$ØØEô€Fð ×ÑØœÐ#Fð ô ð ×ÑØ”CÐIð ô ð ×ÑØ”c 4Ð.Lð ô ð ×ÑØœ dÐ1Jð ô ð ×ÑØœ TÐ0Jð ô ð ×ÑØ”c 4Ð.Oð ô ð ×ÑØÜØØ3ð	 ô ð ×ÑØ”c 4Ð.Nð ô ð ×ÑÓ€DäØ�‰Ø�‰Ø�H‰HØ�H‰HØ�{‰{Ø�j‰jØ—.‘.Ø—‘õ	ð ó    Ú__main__)Úreturnr   )Ú__doc__Ú
__future__r   r   r   r   ÚImportErrorÚtifffile.tifffiler   Ú__name__ÚsysÚexit© r   r   ú<module>r)      sn   ðñõ* #ã ð)Ý%ó-ð` ˆzÒÛà€C‡H�H‰T‹VÕð øðo ò )ð)Þ1øØò )ß(ð)üð)ús3   Ž: ºAÁ AÁAÁAÁAÁAÁAÁA