
    XhHZ              	         U d Z ddlmZ ddlZddlZddlmZmZ ddlm	Z	m
Z
mZ dZdZd7dZ G d	 d
      Zd8dZd9dZd8dZd:dZd:dZd;dZ G d de      Zh dZd ej2                  dej4                        fd ej2                  ddj7                  e       d      fd ej2                  d      fd ej2                  d      fd ej2                  dej4                        fgZded <   d<d!Z	 d=	 	 	 	 	 	 	 d>d"Zd=d?d#Z d@d$Z!dAd%Z"	 	 	 	 dBd&Z#dCd'Z$ G d( d)      Z%d* Z&d+ Z'd, Z( G d- d.      Z) G d/ d0e)      Z* G d1 d2e)      Z+ G d3 d4e+      Z, G d5 d6e)      Z-y)Dz
    babel.numbers
    ~~~~~~~~~~~~~

    CLDR Plural support.  See UTS #35.

    :copyright: (c) 2013-2025 by the Babel Team.
    :license: BSD, see LICENSE for more details.
    )annotationsN)IterableMapping)AnyCallableLiteral)zeroonetwofewmanyotherr   c                   t        |       }t        |      }t        |t              r&||k(  r|}nt	        j
                  t        |            }t        |t        j
                        r|j                         }|j                  }|dk  r|j                  |d nd}dj                  d |D              }|j                  d      }t        |      }t        |      }	t        |xs d      }
t        |xs d      }ndx}x}	x}
}dx}}||||	|
|||fS )u  Extract operands from a decimal, a float or an int, according to `CLDR rules`_.

    The result is an 8-tuple (n, i, v, w, f, t, c, e), where those symbols are as follows:

    ====== ===============================================================
    Symbol Value
    ------ ---------------------------------------------------------------
    n      absolute value of the source number (integer and decimals).
    i      integer digits of n.
    v      number of visible fraction digits in n, with trailing zeros.
    w      number of visible fraction digits in n, without trailing zeros.
    f      visible fractional digits in n, with trailing zeros.
    t      visible fractional digits in n, without trailing zeros.
    c      compact decimal exponent value: exponent of the power of 10 used in compact decimal formatting.
    e      currently, synonym for ‘c’. however, may be redefined in the future.
    ====== ===============================================================

    .. _`CLDR rules`: https://www.unicode.org/reports/tr35/tr35-61/tr35-numbers.html#Operands

    :param source: A real number
    :type source: int|float|decimal.Decimal
    :return: A n-i-v-w-f-t-c-e tuple
    :rtype: tuple[decimal.Decimal, int, int, int, int, int, int, int]
    r   N  c              3  2   K   | ]  }t        |        y wNstr).0ds     @/var/www/html/myenv/lib/python3.12/site-packages/babel/plural.py	<genexpr>z#extract_operands.<locals>.<genexpr>D   s     ;a3q6;s   0)absint
isinstancefloatdecimalDecimalr   as_tupleexponentdigitsjoinrstriplen)sourceni	dec_tupleexpfraction_digitstrailingno_trailingvwftces                 r   extract_operandsr5      s   2 	FAAA!U6A A'A!W__%JJL	  47!G)**34077;?;;ooc*MA q!AAIAaAq!Q!!    c                  r    e Zd ZdZdZddZddZedd       Ze	dd       Z
e	dd       ZddZdd	Zdd
Zy)
PluralRuleaf  Represents a set of language pluralization rules.  The constructor
    accepts a list of (tag, expr) tuples or a dict of `CLDR rules`_. The
    resulting object is callable and accepts one parameter with a positive or
    negative number (both integer and float) for the number that indicates the
    plural form for a string and returns the tag for the format:

    >>> rule = PluralRule({'one': 'n is 1'})
    >>> rule(1)
    'one'
    >>> rule(2)
    'other'

    Currently the CLDR defines these tags: zero, one, two, few, many and
    other where other is an implicit default.  Rules should be mutually
    exclusive; for a given numeric value, only one rule should apply (i.e.
    the condition should only be true for one of the plural rule elements.

    .. _`CLDR rules`: https://www.unicode.org/reports/tr35/tr35-33/tr35-numbers.html#Language_Plural_Rules
    )abstract_funcc                j   t        |t              r|j                         }t               }g | _        t        |      D ]t  \  }}|t        vrt        d|      ||v rt        d|d      |j                  |       t        |      j                  }|sX| j                  j                  ||f       v y)a$  Initialize the rule instance.

        :param rules: a list of ``(tag, expr)``) tuples with the rules
                      conforming to UTS #35 or a dict with the tags as keys
                      and expressions as values.
        :raise RuleError: if the expression is malformed
        zunknown tag ztag z defined twiceN)r   r   itemssetr9   sorted_plural_tags
ValueErroradd_Parserastappend)selfrulesfoundkeyexprrC   s         r   __init__zPluralRule.__init__g   s     eW%KKME/1 	1IC,& <w!788 4wn!=>>IIcN$-##C$$c3Z0	1r6   c           	         | j                   }dj                  t        D cg c]  }||v s| d||     c}      }dt        |       j                   d|dS c c}w )N, z: < >)rF   r$   r?   type__name__)rE   rF   tagargss       r   __repr__zPluralRule.__repr__}   s`    

yyLYSCSXLSEE#J<0YZ4:&&'q22 Zs
   	AAc                6    t        |t              r|S  | |      S )a
  Create a `PluralRule` instance for the given rules.  If the rules
        are a `PluralRule` object, that object is returned.

        :param rules: the rules as list or dict, or a `PluralRule` object
        :raise RuleError: if the expression is malformed
        )r   r8   )clsrF   s     r   parsezPluralRule.parse   s     eZ(L5zr6   c                    t               j                  }| j                  D ci c]  \  }}| ||       c}}S c c}}w )zThe `PluralRule` as a dict of unicode plural rules.

        >>> rule = PluralRule({'one': 'n is 1'})
        >>> rule.rules
        {'one': 'n is 1'}
        )_UnicodeCompilercompiler9   )rE   _compilerR   rC   s       r   rF   zPluralRule.rules   s7     $%--37==AxsCXc]"AAAs   ;c                :    t        d | j                  D              S )zA set of explicitly defined tags in this rule.  The implicit default
        ``'other'`` rules is not part of this set unless there is an explicit
        rule for it.
        c              3  &   K   | ]	  }|d      yw)r   Nr   )r   r)   s     r   r   z"PluralRule.tags.<locals>.<genexpr>   s     5!15s   )	frozensetr9   rE   s    r   tagszPluralRule.tags   s     5t}}555r6   c                    | j                   S r   r9   r_   s    r   __getstate__zPluralRule.__getstate__   s    }}r6   c                    || _         y r   rb   )rE   r9   s     r   __setstate__zPluralRule.__setstate__   s	     r6   c                \    t        | d      st        |       | _        | j                  |      S )Nr:   )hasattr	to_pythonr:   )rE   r(   s     r   __call__zPluralRule.__call__   s%    tW%"4DJzz!}r6   N)rF   z-Mapping[str, str] | Iterable[tuple[str, str]]returnNone)rj   r   )rF   :Mapping[str, str] | Iterable[tuple[str, str]] | PluralRulerj   r8   )rj   zMapping[str, str])rj   zfrozenset[str])rj   list[tuple[str, Any]])r9   rm   rj   rk   )r(   float | decimal.Decimalrj   r   )rQ   
__module____qualname____doc__	__slots__rJ   rT   classmethodrW   propertyrF   r`   rc   re   ri   r   r6   r   r8   r8   P   se    ( &I1,3
 	 	 B B 6 6!r6   r8   c                
   t               j                  }dg}t        j                  |       j                  D ]"  \  }}|j                   ||       d|d       $ |j                  dt        z         dj                  |      S )a  Convert a list/dict of rules or a `PluralRule` object into a JavaScript
    function.  This function depends on no external library:

    >>> to_javascript({'one': 'n is 1'})
    "(function(n) { return (n == 1) ? 'one' : 'other'; })"

    Implementation detail: The function generated will probably evaluate
    expressions involved into range operations multiple times.  This has the
    advantage that external helper functions are not required and is not a
    big performance hit for these simple calculations.

    :param rule: the rules as list or dict, or a `PluralRule` object
    :raise RuleError: if the expression is malformed
    z(function(n) { return  ?  : z%r; })r   )_JavaScriptCompilerrZ   r8   rW   r9   rD   _fallback_tagr$   )ruleto_jsresultrR   rC   s        r   to_javascriptr}      sz      !))E&'F$$T*33 4SsCwc234
MM(]*+776?r6   c           	        t         t        t        t        d}t	               j
                  }ddg}t        j                  |       j                  D ]+  \  }}|j                  d ||       dt        |             - |j                  dt               t        dj                  |      dd	      }t        ||       |d
   S )a<  Convert a list/dict of rules or a `PluralRule` object into a regular
    Python function.  This is useful in situations where you need a real
    function and don't are about the actual rule object:

    >>> func = to_python({'one': 'n is 1', 'few': 'n in 2..4'})
    >>> func(1)
    'one'
    >>> func(3)
    'few'
    >>> func = to_python({'one': 'n in 1,11', 'few': 'n in 3..10,13..19'})
    >>> func(11)
    'one'
    >>> func(15)
    'few'

    :param rule: the rules as list or dict, or a `PluralRule` object
    :raise RuleError: if the expression is malformed
    )INWITHINMODr5   zdef evaluate(n):z- n, i, v, w, f, t, c, e = extract_operands(n)z if (z
): return z return 
z<rule>execevaluate)in_range_listwithin_range_listcldr_modulor5   _PythonCompilerrZ   r8   rW   r9   rD   r   ry   r$   eval)rz   	namespaceto_python_funcr|   rR   rC   codes          r   rh   rh      s    ( #,	I %&..N7F $$T*33 KS 	nS12*SXLIJK MMH]-./499V$h7DyZ  r6   c                   t         j                  |       } | j                  t        hz  }t	               j
                  }t        D cg c]	  }||v s| c}j                  }dt        |       dg}| j                  D ](  \  }}|j                   ||       d ||       d       * |j                   |t               d       dj                  |      S c c}w )a  The plural rule as gettext expression.  The gettext expression is
    technically limited to integers and returns indices rather than tags.

    >>> to_gettext({'one': 'n is 1', 'two': 'n is 2'})
    'nplurals=3; plural=((n == 1) ? 0 : (n == 2) ? 1 : 2);'

    :param rule: the rules as list or dict, or a `PluralRule` object
    :raise RuleError: if the expression is malformed
    z	nplurals=z
; plural=(rv   rw   z);r   )r8   rW   r`   ry   _GettextCompilerrZ   r?   indexr&   r9   rD   r$   )rz   	used_tagsr[   rR   
_get_indexr|   rC   s          r   
to_gettextr      s     D!D		]O+I!))H!-B#	1A#BHHJ#i.)45FMM AS#s:c?*;3?@A
MMZ./r23776? Cs   	CCc                :    | t        |       k(  xr t        | |      S )a  Integer range list test.  This is the callback for the "in" operator
    of the UTS #35 pluralization rule language:

    >>> in_range_list(1, [(1, 3)])
    True
    >>> in_range_list(3, [(1, 3)])
    True
    >>> in_range_list(3, [(1, 3), (5, 8)])
    True
    >>> in_range_list(1.2, [(1, 4)])
    False
    >>> in_range_list(10, [(1, 4)])
    False
    >>> in_range_list(10, [(1, 4), (6, 8)])
    False
    )r   r   num
range_lists     r   r   r     s    " #c(?A0jAAr6   c                ,     t         fd|D              S )a  Float range test.  This is the callback for the "within" operator
    of the UTS #35 pluralization rule language:

    >>> within_range_list(1, [(1, 3)])
    True
    >>> within_range_list(1.0, [(1, 3)])
    True
    >>> within_range_list(1.2, [(1, 4)])
    True
    >>> within_range_list(8.8, [(1, 4), (7, 15)])
    True
    >>> within_range_list(10, [(1, 4)])
    False
    >>> within_range_list(10.5, [(1, 4), (20, 30)])
    False
    c              3  D   K   | ]  \  }}|cxk  xr |k  nc   y wr   r   )r   min_max_r   s      r   r   z$within_range_list.<locals>.<genexpr>(  s"     @ztTts"d""@s    )anyr   s   ` r   r   r     s    " @Z@@@r6   c                N    d}| dk  r| dz  } d}|dk  r|dz  }| |z  }|r|dz  }|S )zJavaish modulo.  This modulo operator returns the value with the sign
    of the dividend rather than the divisor like Python does:

    >>> cldr_modulo(-3, 5)
    -3
    >>> cldr_modulo(-3, -5)
    -3
    >>> cldr_modulo(3, 5)
    3
    r      r   )abreverservs       r   r   r   +  sH     G1u	R1u	R	
QB
bIr6   c                      e Zd ZdZy)	RuleErrorzRaised if a rule is malformed.N)rQ   ro   rp   rq   r   r6   r   r   r   B  s    (r6   r   >   r3   r4   r1   r)   r(   r2   r/   r0   z\s+wordz"\b(and|or|is|(?:with)?in|not|mod|[r   z])\bvaluez\d+symbolz%|,|!=|=ellipsisz\.{2,3}|\u2026z(list[tuple[str | None, re.Pattern[str]]]_RULESc                >   | j                  d      d   } g }d}t        |       }||k  rnt        D ]N  \  }}|j                  | |      }||j	                         }|r!|j                  ||j                         f        n t        d| |         ||k  rn|d d d   S )N@r   z3malformed CLDR pluralization rule.  Got unexpected r   )splitr&   r   matchendrD   groupr   )sr|   posr   tokrz   r   s          r   tokenize_ruler   Z  s    	QA$&F
C
a&C
) 	^ICJJq#&E iikMM3"67	^ QRSTWRXQ[\]] ) $B$<r6   c                F    | xr | d   d   |k(  xr |d u xs | d   d   |k(  S )Nr   r   r   r   tokenstype_r   s      r   test_next_tokenr   l  s>    
  2fRjmu, 2	$	0&*Q-502r6   c                >    t        | ||      r| j                         S y r   )r   popr   s      r   
skip_tokenr   u  s    vue,zz| -r6   c                    d| ffS )Nr   r   )r   s    r   
value_noder   z  s    UIr6   c                
    | dfS )Nr   r   )names    r   
ident_noder   ~  s    8Or6   c                
    d| fS )Nr   r   )r   s    r   range_list_noder     s     ##r6   c                    d| ffS )Nnotr   )r   s    r   negater     s    2%<r6   c                  N    e Zd ZdZd ZddZd Zd Zd Zd Z	d	 Z
d
 Zd Zd Zy)rB   u  Internal parser.  This class can translate a single rule into an abstract
    tree of tuples. It implements the following grammar::

        condition     = and_condition ('or' and_condition)*
                        ('@integer' samples)?
                        ('@decimal' samples)?
        and_condition = relation ('and' relation)*
        relation      = is_relation | in_relation | within_relation
        is_relation   = expr 'is' ('not')? value
        in_relation   = expr (('not')? 'in' | '=' | '!=') range_list
        within_relation = expr ('not')? 'within' range_list
        expr          = operand (('mod' | '%') value)?
        operand       = 'n' | 'i' | 'f' | 't' | 'v' | 'w'
        range_list    = (range | value) (',' range_list)*
        value         = digit+
        digit         = 0|1|2|3|4|5|6|7|8|9
        range         = value'..'value
        samples       = sampleRange (',' sampleRange)* (',' ('…'|'...'))?
        sampleRange   = decimalValue '~' decimalValue
        decimalValue  = value ('.' value)?

    - Whitespace can occur between or around any of the above tokens.
    - Rules should be mutually exclusive; for a given numeric value, only one
      rule should apply (i.e. the condition should only be true for one of
      the plural rule elements).
    - The in and within relations can take comma-separated lists, such as:
      'n in 3,5,7..15'.
    - Samples are ignored.

    The translator parses the expression on instantiation into an attribute
    called `ast`.
    c                    t        |      | _        | j                  sd | _        y | j                         | _        | j                  rt	        d| j                  d   d         y )NzExpected end of rule, got r   r   )r   r   rC   	conditionr   )rE   strings     r   rJ   z_Parser.__init__  s\    #F+{{ DH>>#;;8R9K8NOPP r6   Nc                    t        | j                  ||      }||S |t        |d u xr |xs |      }| j                  st        d| d      t        d| d| j                  d   d         )Nz	expected z but end of rule reachedz	 but got r   r   )r   r   reprr   )rE   r   r   termtokens        r   expectz_Parser.expect  s~    4;;u5L</%859D{{iv-EFGG)D64;;r?13E2HIJJr6   c                    | j                         }t        | j                  dd      r,d|| j                         ff}t        | j                  dd      r,|S )Nr   or)and_conditionr   r   rE   ops     r   r   z_Parser.condition  sO    !fd3D..011B fd3	r6   c                    | j                         }t        | j                  dd      r,d|| j                         ff}t        | j                  dd      r,|S )Nr   and)relationr   r   r   s     r   r   z_Parser.and_condition  sI    ]]_fe4T]]_--B fe4	r6   c                   | j                         }t        | j                  dd      r1t        | j                  dd      xr dxs d|| j                         ffS t        | j                  dd      }d}t        | j                  dd      rd}n5t        | j                  dd      s|rt	        d      | j                  |      S d||| j                         ff}|rt        |      S |S )	Nr   isr   isnotinwithinz#Cannot negate operator based rules.r   )rI   r   r   r   r   newfangled_relationr   r   )rE   leftnegatedmethodr   s        r   r   z_Parser.relation  s    yy{dkk640dkk659EgMtzz|$% %T[[&%8dkk684Fdkk648#$IJJ//55&$(9::$vbz,",r6   c                    t        | j                  dd      rd}n%t        | j                  dd      rd}nt        d      dd|| j                         ff}|rt	        |      S |S )	Nr   =Fz!=Tz'Expected "=" or "!=" or legacy relationr   r   )r   r   r   r   r   )rE   r   r   r   s       r   r   z_Parser.newfangled_relation  sa    dkk8S1GXt4GEFF$doo&788$vbz,",r6   c                z    | j                         }t        | j                  d      r|| j                         fS ||fS )Nr   )r   r   r   )rE   r   s     r   range_or_valuez_Parser.range_or_value  s6    zz|dkk:.%%:r6   c                    | j                         g}t        | j                  dd      r7|j                  | j                                t        | j                  dd      r7t	        |      S )Nr   ,)r   r   r   rD   r   )rE   r   s     r   r   z_Parser.range_list  sW    ))+,
h4d1134 h4z**r6   c                2   t        | j                  d      }||d   t        vrt        d      |d   }t        | j                  dd      rd|df| j	                         ffS t        | j                  dd      rd|df| j	                         ffS t        |      S )Nr   r   zExpected identifier variablemodr   r   %)r   r   _VARSr   r   r   )rE   r   r   s      r   rI   z_Parser.expr  s    $++v.<47%/:;;Awdkk651D":tzz|444Xs3D":tzz|444$r6   c                N    t        t        | j                  d      d               S )Nr   r   )r   r   r   r_   s    r   r   z_Parser.value  s     #dkk'215677r6   )NN)rQ   ro   rp   rq   rJ   r   r   r   r   r   r   r   rI   r   r   r6   r   rB   rB     s<    B	QK-"-+	 8r6   rB   c                      fdS )%Compiler factory for the `_Compiler`.c                N    | j                  |      | j                  |      fz  S r   rZ   )rE   r   righttmpls      r   <lambda>z"_binary_compiler.<locals>.<lambda>  s#    TT\\$-?eAT,U%U r6   r   r   s   `r   _binary_compilerr     s	    UUr6   c                      fdS )r   c                ,    | j                  |      z  S r   r   )rE   xr   s     r   r   z!_unary_compiler.<locals>.<lambda>  s    4$,,q/1 r6   r   r   s   `r   _unary_compilerr     s	    11r6   c                     y)Nr   r   r   s    r   r   r         r6   c                      e Zd ZdZd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Z ed      Z ed      Z ed      Z ed      Z ed      Z ed      Zd Zy)	_CompilerzZThe compilers are able to transform the expressions into multiple
    output formats.
    c                0    |\  }} t        | d|       | S )Ncompile_)getattr)rE   argr   rS   s       r   rZ   z_Compiler.compile  s%    D-wtxt_-t44r6   c                     y)Nr(   r   r   s    r   r   z_Compiler.<lambda>  r   r6   c                     y)Nr)   r   r   s    r   r   z_Compiler.<lambda>  r   r6   c                     y)Nr/   r   r   s    r   r   z_Compiler.<lambda>  r   r6   c                     y)Nr0   r   r   s    r   r   z_Compiler.<lambda>  r   r6   c                     y)Nr1   r   r   s    r   r   z_Compiler.<lambda>   r   r6   c                     y)Nr2   r   r   s    r   r   z_Compiler.<lambda>!  r   r6   c                     y)Nr3   r   r   s    r   r   z_Compiler.<lambda>"  r   r6   c                     y)Nr4   r   r   s    r   r   z_Compiler.<lambda>#  r   r6   c                    t        |      S r   r   )r   r/   s     r   r   z_Compiler.<lambda>$  s
    Q r6   z
(%s && %s)z
(%s || %s)z(!%s)z
(%s %% %s)z
(%s == %s)z
(%s != %s)c                    t               r   )NotImplementedError)rE   r   rI   r   s       r   compile_relationz_Compiler.compile_relation,  s    !##r6   N)rQ   ro   rp   rq   rZ   	compile_n	compile_i	compile_v	compile_w	compile_f	compile_t	compile_c	compile_ecompile_valuer   compile_and
compile_orr   compile_notcompile_mod
compile_iscompile_isnotr  r   r6   r   r   r     s|    5 IIIIIIII'M"<0K!,/J!'*K"<0K!,/J$\2M$r6   r   c                  V    e Zd ZdZ ed      Z ed      Z ed      Z ed      Z	d Z
y)r   z!Compiles an expression to Python.z(%s and %s)z
(%s or %s)z(not %s)zMOD(%s, %s)c                    dj                  |d   D cg c],  \  }}d| j                  |       d| j                  |       d. c}}      }|j                          d| j                  |       d| dS c c}}w )Nr   r   (rL   )z, [z]))r$   rZ   upper)rE   r   rI   r   r   r   rangess          r   r  z _PythonCompiler.compile_relation8  sw    S]^_S`a!QQt||A/r$,,q/1B!Dab,,.!4<<#5"6c&DD bs   1A5
N)rQ   ro   rp   rq   r   r  r  r   r  r  r  r   r6   r   r   r   0  s3    +"=1K!,/J!*-K"=1KEr6   r   c                  >    e Zd ZdZej
                  ZeZeZ	eZ
eZd Zy)r   z)Compile into a gettext plural expression.c                @   g }| j                  |      }|d   D ]o  }|d   |d   k(  r+|j                  d| d| j                  |d          d       9t        | j                   |      \  }}|j                  d| d| d| d| d	       q dd	j                  |       dS )
Nr   r   r  z == r  z >=  && z <= z || )rZ   rD   mapr$   )rE   r   rI   r   r   itemminmaxs           r   r  z!_GettextCompiler.compile_relationF  s    ||D!qM 	CDAw$q'!		AdV4T!W(='>a@At||T2S		AdV4uDd3%qAB	C 6;;r?#1%%r6   N)rQ   ro   rp   rq   r   r  r  compile_zeror  r  r  r  r  r   r6   r   r   r   =  s)    3##IIIII	&r6   r   c                  ,    e Zd ZdZd ZeZeZeZeZ	d Z
y)rx   z/Compiles the expression to plain of JavaScript.c                     y)NzparseInt(n, 10)r   r   s    r   r   z_JavaScriptCompiler.<lambda>W  r   r6   c                z    t         j                  | |||      }|dk(  r| j                  |      }d| d| d| d}|S )Nr   z
(parseInt(z	, 10) == r$  r  )r   r  rZ   )rE   r   rI   r   r   s        r   r  z$_JavaScriptCompiler.compile_relation]  sO    00&$
,T><<%DvYtfDa@Dr6   N)rQ   ro   rp   rq   r  r)  r  r  r  r  r  r   r6   r   rx   rx   R  s%    9 ,IIIIIr6   rx   c                  n    e Zd ZdZ ed      Z ed      Z ed      Z ed      Z ed      Z	d Z
d
dZy	)rY   z+Returns a unicode pluralization rule again.z%s is %sz%s is not %sz	%s and %sz%s or %sz	%s mod %sc                ,     | j                   |d   ddiS )Nr   r   T)r  )rE   r   s     r   r  z_UnicodeCompiler.compile_nots  s    $t$$hqk@4@@r6   c           	     H   g }|d   D ]k  }|d   |d   k(  r$|j                  | j                  |d                2|j                  | j                  |d          d| j                  |d                 m | j                  |       |rdnd d| ddj                  |       S )Nr   r   z..z notr   rN   r   )rD   rZ   r$   )rE   r   rI   r   r   r!  r&  s          r   r  z!_UnicodeCompiler.compile_relationv  s    qM 	SDAw$q'!dll4734d1g!6 7r$,,tAw:O9PQR		S
 ,,t$%fR%@&388TZK[J\]]r6   N)F)rQ   ro   rp   rq   r   r  r  r  r  r  r  r  r   r6   r   rY   rY   f  sE    5 "*-J$^4M";/K!*-J";/KA^r6   rY   )r'   rn   rj   zMtuple[decimal.Decimal | int, int, int, int, int, int, Literal[0], Literal[0]])rz   rl   rj   r   )rz   rl   rj   z(Callable[[float | decimal.Decimal], str])r   rn   r   +Iterable[Iterable[float | decimal.Decimal]]rj   bool)r   r   r   r   rj   r   )r   r   rj   list[tuple[str, str]]r   )r   r2  r   r   r   
str | Nonerj   zlist[tuple[str, str]] | bool)r   r2  r   r   r   r3  )r   r   rj   z#tuple[Literal['value'], tuple[int]])r   r   rj   ztuple[str, tuple[()]])r   r0  rj   zItuple[Literal['range_list'], Iterable[Iterable[float | decimal.Decimal]]])r   ztuple[Any, ...]rj   z-tuple[Literal['not'], tuple[tuple[Any, ...]]]).rq   
__future__r   r   recollections.abcr   r   typingr   r   r   r?   ry   r5   r8   r}   rh   r   r   r   r   	Exceptionr   r   rZ   UNICODEr$   r   __annotations__r   r   r   r   r   r   r   rB   r   r   r)  r   r   r   rx   rY   r   r6   r   <module>r;     s   #  	 - ) )=8"vZ Zz.%!P.B(A(.)	 )		 
:2::fbjj)*ZRZZ=bggen=MTRSTjbjj !zrzz+&'-rzz:;40 * 2!22 2 "	2
$;$N$w8 w8tV
2
 $ $:
Ei 
E&y &** (^y ^r6   