
    j$                         d Z ddlZdZ ej                    d         pdZ ed dD                       Zd Zd Zd	 Z	dS )
z1
Helpers related to SVG conditional processing.

    Nz"http://www.w3.org/TR/SVG11/feature c              #   0   K   | ]}t           d z   |z   V  dS )#N)ROOT).0features     X/home/ubuntu/budget-transfer-bot/.venv/lib/python3.11/site-packages/cairosvg/features.py	<genexpr>r
   
   s<          $D3J               )SVGz
SVG-staticCoreAttribute	StructureBasicStructureConditionalProcessingImageStyleViewportAttributeShape	BasicTextBasicPaintAttributeOpacityAttributeBasicGraphicsAttributeMarkerGradientPatternClip	BasicClipMaskc                 |    t           t          |                                                     d                    k    S )z5Check whether ``features`` are supported by CairoSVG. )SUPPORTED_FEATURESsetstripsplit)featuress    r	   has_featuresr&   #   s-    X^^%5%5%;%;C%@%@!A!AAAr   c                     |                      d          D ]5}|                                }|rt                              |          r dS 6dS )z?Check whether one of ``languages`` is part of the user locales.,TF)r$   r#   LOCALE
startswith)	languageslanguages     r	   support_languagesr-   (   sV    OOC((  >>## 	))(33 	445r   c                     | j                             d          }| j                             d          }d| j         v rdS |t          |          sdS |t          |          sdS dS )z;Check the node match the conditional processing attributes.requiredFeaturessystemLanguagerequiredExtensionsFNT)attribgetr&   r-   )noder%   r+   s      r	   match_featuresr5   1   sr    {122H 011It{**uL$:$:u%6y%A%Au4r   )
__doc__localer   	getlocaler)   	frozensetr!   r&   r-   r5    r   r	   <module>r;      s    
 +				A		$"Y    )        2B B B
  
 
 
 
 
r   