L ilddlmZddlmZddlmZddlmZerddl m Z d dZ d dZ d dZ d d Zdd Zy )) annotations)version) TYPE_CHECKING)Version) ModuleTypec Nd} ddl}td}t|tdk\r|Std}||k7st|t|krd|d|d|d }t||S#t$r/}d |d |d |d |d|j d }t ||d}~wwxYw)Nz1.5.0r vegafusionz2.0.0a0zvegafusion-python-embedzcThe versions of the vegafusion and vegafusion-python-embed packages must match and must be version z# or greater. Found: - vegafusion==z - vegafusion-python-embed== zVThe "vegafusion" data transformer and chart.transformed_data feature requires version z or greater of the 'vegafusion-python-embed' and 'vegafusion' packages. These can be installed with pip using: pip install "vegafusion[embed]>=zR" Or with conda using: conda install -c conda-forge "vegafusion-python-embed>=z" "vegafusion>=" ImportError: )r importlib_versionr RuntimeError ImportErrorargs) min_versionvfr embed_versionmsgerrs ]/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/altair/utils/_importers.pyimport_vegafusionr sK(#L1 7 wy1 1I-.GHM-'77+;gk>R+R++6-8&&-Y/33@/ E#3''I  ( "m$33>-@JJUW'=)HHQK= * #C' (s'A,?A,, B$5*BB$c d} td}t|t|krd|d|}t|ddl}|S#t$r,}d|d|d|d |j d}t ||d}~wwxYw) Nz1.6.0zvl-convert-pythonz.The vl-convert-python package must be version  or greater. Found version rzKThe 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 rr vl_convertrr)rrrvlcrs rimport_vl_convertr/sK(#$78 7 gk2 2@ N!!( + s# #   ("m$22=?CCN-PHHQK=  * #C' (s:? A4'A//A4cTddlm}dj|jdddS)NrSCHEMA_VERSION_.)altair.vegaliterjoinsplitrs rvl_version_for_vl_convertr%Is(. 88N((-bq1 22c d} td}t|t|krd|d|}t|ddlm}|S#t $r,}d|d|d|d |j d}t ||d}~wwxYw) Nz11.0.0pyarrowz$The pyarrow package must be version rrz=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 rr pyarrow.interchange interchangerr)rrrpirs rimport_pyarrow_interchanger,QsK(#I. 7 gk2 26{mD!!( + s# #(  ("m$((3}599D FHHQK=  * #C' (sr8s1"; %  (F(43(6r&