
    /_i                    x    d dl mZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 erd dlmZ ddZddZdd	Zdd
ZddZy)    )annotations)version)TYPE_CHECKING)Version)VERSIONS)
ModuleTypec            
         t         d   } 	 t        d      }t        |      t        |       k  rd|  d| }t        |      dd l}|S # t
        $ r,}d|  d|  d|  d|j                  d    }t        |      |d }~ww xY w)	N
vegafusionz'The vegafusion package must be version  or greater. Found version r   zVThe "vegafusion" data transformer and chart.transformed_data feature requires
version zl or greater of the 'vegafusion' package.
This can be installed with pip using:
    pip install "vegafusion>=z:"
or conda:
    conda install -c conda-forge "vegafusion>="

ImportError: )r   importlib_versionr   RuntimeErrorr
   ImportErrorargs)min_versionr   msgvferrs        V/var/www/html/land_sniper/venv/lib/python3.12/site-packages/altair/utils/_importers.pyimport_vegafusionr      s    <(K(#L17gk229+ G!!(	+  s##	 
("m $,,7= 9==HM JHHQK=* 	 #C'
(   :A 	A;'A66A;c            
         t         d   } 	 t        d      }t        |      t        |       k  rd|  d| }t        |      dd l}|S # t
        $ r,}d|  d|  d|  d|j                  d    }t        |      |d }~ww xY w)	Nzvl-convert-pythonz.The vl-convert-python package must be version r   r   zKThe vl-convert Vega-Lite compiler and file export feature requires
version zz or greater of the 'vl-convert-python' package. 
This can be installed with pip using:
   pip install "vl-convert-python>=z@"
or conda:
   conda install -c conda-forge "vl-convert-python>=r   )r   r   r   r   
vl_convertr   r   )r   r   r   vlcr   s        r   import_vl_convertr   (   s    ./K(#$787gk22@ N!!(	+  s## 
 
("m $22= ?CCN- PHHQK=* 	 #C'
(r   c                 T    ddl m}  dj                  | j                  d      d d       S )Nr   SCHEMA_VERSION_.   )altair.vegaliter   joinsplitr   s    r   vl_version_for_vl_convertr%   B   s(    . 88N((-bq122    c            
         d} 	 t        d      }t        |      t        |       k  rd|  d| }t        |      dd lm} |S # t
        $ r,}d|  d|  d|  d	|j                  d    }t        |      |d }~ww xY w)
Nz11.0.0pyarrowz$The pyarrow package must be version r   r   z=Usage of the DataFrame Interchange Protocol requires
version zd or greater of the pyarrow package. 
This can be installed with pip using:
   pip install "pyarrow>=z6"
or conda:
   conda install -c conda-forge "pyarrow>=r   )r   r   r   pyarrow.interchangeinterchanger   r   )r   r   r   pir   s        r   import_pyarrow_interchanger,   J   s    K(#I.7gk226{m D!!(	+  s##(	 
("m $((3} 599D FHHQK=* 	 #C'
(s   <A 	A6
'A11A6c                 D    	 t                y# t        t        f$ r Y yw xY w)NTF)r,   r   r    r&   r   pyarrow_availabler/   e   s'    "$& s   
 N)returnr   )r0   str)r0   bool)
__future__r   importlib.metadatar   r   typingr   packaging.versionr   altair.utils.schemapir   typesr   r   r   r%   r,   r/   r.   r&   r   <module>r9      s3    " ;   % * (4(43(6r&   