§
    ¸)ýf–  ã                   óæ  — d Z g d¢Z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 dZd	Zeefd
„Zeefd„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defdefdefgdefdefdefgdefdefdefgdefdefdefgdœZd„ Zd„ Z	 ddlmZ n# e $ r Y nw xY w e!¦   «         Z"e"fd „Z#	 dd!lm#Z# n# e $ r Y nw xY w G d"„ d#¦  «        Z$	 dd$lm$Z$ n# e $ r Y nw xY w G d%„ d&e!¦  «        Z%d'„ Z& ed(g d)¢¦  «        Z' G d*„ d+e(¦  «        Z) e!¦   «         fe*e+he,e-e.fd,„Z/d=d/„Z0d0„ Z1	 dd1lm1Z1 n# e $ r Y nw xY wd2„ Z2d3„ Z3d>d5„Z4d6„ Z5d7„ Z6d8„ Z7 G d9„ d:¦  «        Z8 e!¦   «         Z9 G d;„ d<¦  «        Z:d4S )?zEfunctools.py - Tools for working with functions and callable objects
)Úupdate_wrapperÚwrapsÚWRAPPER_ASSIGNMENTSÚWRAPPER_UPDATESÚtotal_orderingÚcacheÚ
cmp_to_keyÚ	lru_cacheÚreduceÚpartialÚpartialmethodÚsingledispatchÚsingledispatchmethodÚcached_propertyé    )Úget_cache_token)Ú
namedtuple)Úrecursive_repr)ÚRLock)ÚGenericAlias)Ú
__module__Ú__name__Ú__qualname__Ú__doc__Ú__annotations__)Ú__dict__c                 óð   — |D ]4}	 t          ||¦  «        }t          | ||¦  «         Œ%# t          $ r Y Œ1w xY w|D ]4}t          | |¦  «                             t          ||i ¦  «        ¦  «         Œ5|| _        | S )a  Update a wrapper function to look like the wrapped function

       wrapper is the function to be updated
       wrapped is the original function
       assigned is a tuple naming the attributes assigned directly
       from the wrapped function to the wrapper function (defaults to
       functools.WRAPPER_ASSIGNMENTS)
       updated is a tuple naming the attributes of the wrapper that
       are updated with the corresponding attribute from the wrapped
       function (defaults to functools.WRAPPER_UPDATES)
    )ÚgetattrÚsetattrÚAttributeErrorÚupdateÚ__wrapped__)ÚwrapperÚwrappedÚassignedÚupdatedÚattrÚvalues         úU/home/blender/git/blender-v430/install_release/4.3/python/lib/python3.11/functools.pyr   r   #   s¯   € ð ð *ð *ˆð	*Ý˜G TÑ*Ô*ˆEõ �G˜T 5Ñ)Ô)Ð)Ð)øõ ð 	ð 	ð 	ØˆDð	øøøð ð Bð BˆÝ�˜ÑÔ×%Ò%¥g¨g°t¸RÑ&@Ô&@ÑAÔAÐAÐAð "€GÔà€Ns   †(¨
5´5c                 ó2   — t          t          | ||¬¦  «        S )a‹  Decorator factory to apply update_wrapper() to a wrapper function

       Returns a decorator that invokes update_wrapper() with the decorated
       function as the wrapper argument and the arguments to wraps() as the
       remaining arguments. Default arguments are as for update_wrapper().
       This is a convenience function to simplify applying partial() to
       update_wrapper().
    ©r#   r$   r%   )r   r   r*   s      r(   r   r   A   s$   € õ •>¨7Ø$¨gð7ñ 7ô 7ð 7ó    c                 óp   — t          | ¦  «                             | |¦  «        }|t          u r|S | o| |k    S )zIReturn a > b.  Computed by @total_ordering from (not a < b) and (a != b).©ÚtypeÚ__lt__ÚNotImplemented©ÚselfÚotherÚ	op_results      r(   Ú_gt_from_ltr5   Y   ó?   € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØˆ=Ð*˜T Uš]Ð*r+   c                 ón   — t          | ¦  «                             | |¦  «        }|t          u r|S |p| |k    S )zEReturn a <= b.  Computed by @total_ordering from (a < b) or (a == b).r-   r1   s      r(   Ú_le_from_ltr8   `   ó=   € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØÐ%˜ šÐ%r+   c                 ód   — t          | ¦  «                             | |¦  «        }|t          u r|S | S )z=Return a >= b.  Computed by @total_ordering from (not a < b).r-   r1   s      r(   Ú_ge_from_ltr;   g   ó6   € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØˆ=Ðr+   c                 óp   — t          | ¦  «                             | |¦  «        }|t          u r|S | p| |k    S )zJReturn a >= b.  Computed by @total_ordering from (not a <= b) or (a == b).©r.   Ú__le__r0   r1   s      r(   Ú_ge_from_ler@   n   ó?   € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØˆ=Ð)˜D EšMÐ)r+   c                 ón   — t          | ¦  «                             | |¦  «        }|t          u r|S |o| |k    S )zFReturn a < b.  Computed by @total_ordering from (a <= b) and (a != b).r>   r1   s      r(   Ú_lt_from_lerC   u   ó=   € å�T‘
”
×!Ò! $¨Ñ.Ô.€IØ•NÐ"Ð"ØÐØÐ&˜ šÐ&r+   c                 ód   — t          | ¦  «                             | |¦  «        }|t          u r|S | S )z=Return a > b.  Computed by @total_ordering from (not a <= b).r>   r1   s      r(   Ú_gt_from_lerF   |   r<   r+   c                 óp   — t          | ¦  «                             | |¦  «        }|t          u r|S | o| |k    S )zIReturn a < b.  Computed by @total_ordering from (not a > b) and (a != b).©r.   Ú__gt__r0   r1   s      r(   Ú_lt_from_gtrJ   ƒ   r6   r+   c                 ón   — t          | ¦  «                             | |¦  «        }|t          u r|S |p| |k    S )zEReturn a >= b.  Computed by @total_ordering from (a > b) or (a == b).rH   r1   s      r(   Ú_ge_from_gtrL   Š   r9   r+   c                 ód   — t          | ¦  «                             | |¦  «        }|t          u r|S | S )z=Return a <= b.  Computed by @total_ordering from (not a > b).rH   r1   s      r(   Ú_le_from_gtrN   ‘   r<   r+   c                 óp   — t          | ¦  «                             | |¦  «        }|t          u r|S | p| |k    S )zJReturn a <= b.  Computed by @total_ordering from (not a >= b) or (a == b).©r.   Ú__ge__r0   r1   s      r(   Ú_le_from_gerR   ˜   rA   r+   c                 ón   — t          | ¦  «                             | |¦  «        }|t          u r|S |o| |k    S )zFReturn a > b.  Computed by @total_ordering from (a >= b) and (a != b).rP   r1   s      r(   Ú_gt_from_gerT   Ÿ   rD   r+   c                 ód   — t          | ¦  «                             | |¦  «        }|t          u r|S | S )z=Return a < b.  Computed by @total_ordering from (not a >= b).rP   r1   s      r(   Ú_lt_from_gerV   ¦   r<   r+   rI   r?   rQ   r/   )r/   r?   rI   rQ   c                 óÌ   ‡ — ˆ fd„t           D ¦   «         }|st          d¦  «        ‚t          |¦  «        }t           |         D ]!\  }}||vr||_        t	          ‰ ||¦  «         Œ"‰ S )z6Class decorator that fills in missing ordering methodsc                 ób   •— h | ]+}t          ‰|d ¦  «        t          t          |d ¦  «        u¯)|’Œ,S ©N)r   Úobject)Ú.0ÚopÚclss     €r(   ú	<setcomp>z!total_ordering.<locals>.<setcomp>¿   s=   ø€ Ð^Ð^Ð^�B¥g¨c°2°tÑ&<Ô&<ÅGÍFÐTVÐX\ÑD]ÔD]Ð&]Ð&]ˆRÐ&]Ð&]Ð&]r+   z6must define at least one ordering operation: < > <= >=)Ú_convertÚ
ValueErrorÚmaxr   r   )r]   ÚrootsÚrootÚopnameÚopfuncs   `    r(   r   r   ¼   sƒ   ø€ ð _Ð^Ð^Ð^�(Ð^Ñ^Ô^€EØð SÝÐQÑRÔRÐRÝˆu‰:Œ:€DÝ" 4œ.ð )ð )‰ˆ�Ø˜ÐÐØ$ˆFŒOÝ�C˜ Ñ(Ô(Ð(øØ€Jr+   c                 ó2   ‡ —  G ˆ fd„dt           ¦  «        }|S )z,Convert a cmp= function into a key= functionc                   óR   •— e Zd ZdgZd„ Zˆ fd„Zˆ fd„Zˆ fd„Zˆ fd„Zˆ fd„Z	dZ
dS )	úcmp_to_key.<locals>.KÚobjc                 ó   — || _         d S rY   ©ri   )r2   ri   s     r(   Ú__init__zcmp_to_key.<locals>.K.__init__Ò   s   € ØˆDŒHˆHˆHr+   c                 ó8   •—  ‰| j         |j         ¦  «        dk     S ©Nr   rk   ©r2   r3   Úmycmps     €r(   r/   zcmp_to_key.<locals>.K.__lt__Ô   ó   ø€ Ø�5˜œ 5¤9Ñ-Ô-°Ò1Ð1r+   c                 ó8   •—  ‰| j         |j         ¦  «        dk    S rn   rk   ro   s     €r(   rI   zcmp_to_key.<locals>.K.__gt__Ö   rq   r+   c                 ó8   •—  ‰| j         |j         ¦  «        dk    S rn   rk   ro   s     €r(   Ú__eq__zcmp_to_key.<locals>.K.__eq__Ø   ó   ø€ Ø�5˜œ 5¤9Ñ-Ô-°Ò2Ð2r+   c                 ó8   •—  ‰| j         |j         ¦  «        dk    S rn   rk   ro   s     €r(   r?   zcmp_to_key.<locals>.K.__le__Ú   ru   r+   c                 ó8   •—  ‰| j         |j         ¦  «        dk    S rn   rk   ro   s     €r(   rQ   zcmp_to_key.<locals>.K.__ge__Ü   ru   r+   N)r   r   r   Ú	__slots__rl   r/   rI   rt   r?   rQ   Ú__hash__)rp   s   €r(   ÚKrh   Ð   s§   ø€ € € € € Ø�Gˆ	ð	ð 	ð 	ð	2ð 	2ð 	2ð 	2ð 	2ð	2ð 	2ð 	2ð 	2ð 	2ð	3ð 	3ð 	3ð 	3ð 	3ð	3ð 	3ð 	3ð 	3ð 	3ð	3ð 	3ð 	3ð 	3ð 	3àˆˆˆr+   rz   )rZ   )rp   rz   s   ` r(   r   r   Î   s>   ø€ ðð ð ð ð ð ð �Fñ ô ð ð €Hr+   )r   c                 óº   — t          |¦  «        }|t          u r/	 t          |¦  «        }n # t          $ r t	          d¦  «        d‚w xY w|}|D ]} | ||¦  «        }Œ|S )aÐ  
    reduce(function, iterable[, initial]) -> value

    Apply a function of two arguments cumulatively to the items of a sequence
    or iterable, from left to right, so as to reduce the iterable to a single
    value.  For example, reduce(lambda x, y: x+y, [1, 2, 3, 4, 5]) calculates
    ((((1+2)+3)+4)+5).  If initial is present, it is placed before the items
    of the iterable in the calculation, and serves as a default when the
    iterable is empty.
    z0reduce() of empty iterable with no initial valueN)ÚiterÚ_initial_missingÚnextÚStopIterationÚ	TypeError)ÚfunctionÚsequenceÚinitialÚitr'   Úelements         r(   r
   r
   í   s–   € õ 
ˆh‰Œ€BàÕ"Ð"Ð"ð	NÝ˜‘H”HˆEˆEøÝð 	Nð 	Nð 	NÝØBñDô DØIMðNð	Nøøøð ˆàð )ð )ˆØ�˜ Ñ(Ô(ˆˆà€Ls	   š* ªA)r
   c                   ó^   ‡ — e Zd ZdZdZˆ fd„Zd„ Z e¦   «         d„ ¦   «         Zd„ Z	d„ Z
ˆ xZS )r   zSNew function with partial application of the given arguments
    and keywords.
    )ÚfuncÚargsÚkeywordsr   Ú__weakref__c                ó  •— t          |¦  «        st          d¦  «        ‚t          |d¦  «        r|j        |z   }i |j        ¥|¥}|j        }t          t          | ¦  «                             | ¦  «        }||_        ||_        ||_        |S )Nz#the first argument must be callabler‡   )	Úcallabler€   Úhasattrrˆ   r‰   r‡   Úsuperr   Ú__new__)r]   r‡   rˆ   r‰   r2   Ú	__class__s        €r(   r�   zpartial.__new__  sŽ   ø€ Ý˜‰~Œ~ð 	CÝÐAÑBÔBÐBå�4˜Ñ Ô ð 	Ø”9˜tÑ#ˆDØ4˜$œ-Ð4¨8Ð4ˆHØ”9ˆDå•W˜cÑ"Ô"×*Ò*¨3Ñ/Ô/ˆàˆŒ	ØˆŒ	Ø ˆŒØˆr+   c                óF   — i | j         ¥|¥} | j        g | j        ¢|¢R i |¤ŽS rY   ©r‰   r‡   rˆ   )r2   rˆ   r‰   s      r(   Ú__call__zpartial.__call__+  s:   € Ø0�d”mÐ0 xÐ0ˆØˆtŒyÐ7˜$œ)Ð7 dÐ7Ð7Ð7¨hÐ7Ð7Ð7r+   c                 ó¦  — t          | ¦  «        j        }t          | j        ¦  «        g}|                     d„ | j        D ¦   «         ¦  «         |                     d„ | j                             ¦   «         D ¦   «         ¦  «         t          | ¦  «        j        dk    rd|› dd 	                    |¦  «        › d�S |› dd 	                    |¦  «        › d�S )Nc              3   ó4   K  — | ]}t          |¦  «        V — Œd S rY   )Úrepr)r[   Úxs     r(   ú	<genexpr>z#partial.__repr__.<locals>.<genexpr>3  s(   è è € Ð/Ð/ •D˜‘G”GÐ/Ð/Ð/Ð/Ð/Ð/r+   c              3   ó*   K  — | ]\  }}|› d |›�V — ŒdS )ú=N© ©r[   ÚkÚvs      r(   r˜   z#partial.__repr__.<locals>.<genexpr>4  s0   è è € ÐEÐE¡V a¨�q�L�L˜1�L�LÐEÐEÐEÐEÐEÐEr+   Ú	functoolsz
functools.ú(ú, ú))
r.   r   r–   r‡   Úextendrˆ   r‰   Úitemsr   Újoin)r2   Úqualnamerˆ   s      r(   Ú__repr__zpartial.__repr__/  sÊ   € å˜‘:”:Ô*ˆÝ�T”Y‘”Ð ˆØ�ŠÐ/Ð/ T¤YÐ/Ñ/Ô/Ñ/Ô/Ð/Ø�ŠÐEÐE¨t¬}×/BÒ/BÑ/DÔ/DÐEÑEÔEÑEÔEÐEÝ�‰:Œ:Ô  KÒ/Ð/Ø= Ð=Ð=¨4¯9ª9°T©?¬?Ð=Ð=Ð=Ð=ØÐ/Ð/˜TŸYšY t™_œ_Ð/Ð/Ð/Ð/r+   c                 ój   — t          | ¦  «        | j        f| j        | j        | j        pd | j        pd ffS rY   )r.   r‡   rˆ   r‰   r   ©r2   s    r(   Ú
__reduce__zpartial.__reduce__9  s;   € Ý�D‰zŒz˜DœI˜<¨$¬)°T´YØŒ}Ð$  d¤mÐ&;°tð*=ð =ð 	=r+   c                 ó4  — t          |t          ¦  «        st          d¦  «        ‚t          |¦  «        dk    rt          dt          |¦  «        › �¦  «        ‚|\  }}}}t	          |¦  «        rCt          |t          ¦  «        r.|�t          |t
          ¦  «        r|�$t          |t
          ¦  «        st          d¦  «        ‚t          |¦  «        }|€i }n%t          |¦  «        t
          urt          |¦  «        }|€i }|| _        || _        || _	        || _
        d S )Nz(argument to __setstate__ must be a tupleé   zexpected 4 items in state, got zinvalid partial state)Ú
isinstanceÚtupler€   ÚlenrŒ   Údictr.   r   r‡   rˆ   r‰   )r2   Ústater‡   rˆ   ÚkwdsÚ	namespaces         r(   Ú__setstate__zpartial.__setstate__=  s  € Ý˜%¥Ñ'Ô'ð 	HÝÐFÑGÔGÐGÝˆu‰:Œ:˜Š?ˆ?ÝÐJ½cÀ%¹j¼jÐJÐJÑKÔKÐKØ&+Ñ#ˆˆd�D˜)Ý˜‘”ð 	5¥j°µuÑ&=Ô&=ð 	5ØÐ¥Z°µdÑ%;Ô%;ÐØÐ!­*°YÅÑ*EÔ*EÐ!ÝÐ3Ñ4Ô4Ð4å�T‰{Œ{ˆØˆ<ØˆDˆDÝ�$‰ZŒZ�tÐ#Ð#Ý˜‘:”:ˆDØÐØˆIà!ˆŒØˆŒ	ØˆŒ	ØˆŒˆˆr+   )r   r   r   r   rx   r�   r“   r   r§   rª   r´   Ú__classcell__)r�   s   @r(   r   r     s›   ø€ € € € € ðð ð F€Iðð ð ð ð ð 8ð 8ð 8ð €^ÑÔð0ð 0ñ Ôð0ð=ð =ð =ðð ð ð ð ð ð r+   r   )r   c                   óX   — e Zd ZdZd„ Zd„ Zd„ Zdd„Zed„ ¦   «         Z	 e
e¦  «        ZdS )	r   zÂMethod descriptor with partial application of the given arguments
    and keywords.

    Supports wrapping existing descriptors and handles non-descriptor
    callables as instance methods.
    c                ó6  — t          |¦  «        s2t          |d¦  «        s"t          d                     |¦  «        ¦  «        ‚t	          |t
          ¦  «        r-|j        | _        |j        |z   | _        i |j        ¥|¥| _        d S || _        || _        || _        d S )NÚ__get__z${!r} is not callable or a descriptor)	rŒ   r�   r€   Úformatr­   r   r‡   rˆ   r‰   )r2   r‡   rˆ   r‰   s       r(   rl   zpartialmethod.__init__c  sž   € Ý˜‰~Œ~ð 	0¥g¨d°IÑ&>Ô&>ð 	0ÝÐBß"(¢&¨¡,¤,ñ0ô 0ð 0õ
 �d�MÑ*Ô*ð 
	%ð œ	ˆDŒIØœ	 DÑ(ˆDŒIØ9˜tœ}Ð9°Ð9ˆDŒMˆMˆMàˆDŒIØˆDŒIØ$ˆDŒMˆMˆMr+   c                 ó2  — d                      t          t          | j        ¦  «        ¦  «        }d                      d„ | j                             ¦   «         D ¦   «         ¦  «        }d}|                     | j        j        | j        j	        | j
        ||¬¦  «        S )Nr¡   c              3   óH   K  — | ]\  }}d                       ||¦  «        V — ŒdS )z{}={!r}N)r¹   rœ   s      r(   r˜   z)partialmethod.__repr__.<locals>.<genexpr>x  sR   è è € ð Dð DÙ%) Q¨ð '×-Ò-¨a°Ñ3Ô3ð Dð Dð Dð Dð Dð Dr+   z*{module}.{cls}({func}, {args}, {keywords}))Úmoduler]   r‡   rˆ   r‰   )r¥   Úmapr–   rˆ   r‰   r¤   r¹   r�   r   r   r‡   )r2   rˆ   r‰   Úformat_strings       r(   r§   zpartialmethod.__repr__v  sŸ   € Ø�yŠy��T 4¤9Ñ-Ô-Ñ.Ô.ˆØ—9’9ð Dð DØ-1¬]×-@Ò-@Ñ-BÔ-BðDñ Dô Dñ Dô DˆàDˆØ×#Ò#¨4¬>Ô+DØ(,¬Ô(CØ)-¬Ø)-Ø-5ð	 $ñ 7ô 7ð 	7r+   c                 ó8   ‡ — ˆ fd„}‰ j         |_         ‰ |_        |S )Nc                óJ   •— i ‰j         ¥|¥} ‰j        | g‰j        ¢|¢R i |¤ŽS rY   r’   )Úcls_or_selfrˆ   r‰   r2   s      €r(   Ú_methodz3partialmethod._make_unbound_method.<locals>._method‚  s=   ø€ Ø4˜$œ-Ð4¨8Ð4ˆHØ�4”9˜[ÐH¨4¬9ÐH°tÐHÐHÐH¸xÐHÐHÐHr+   )Ú__isabstractmethod__Ú_partialmethod)r2   rÂ   s   ` r(   Ú_make_unbound_methodz"partialmethod._make_unbound_method�  s;   ø€ ð	Ið 	Ið 	Ið 	Ið 	Ið (,Ô'@ˆÔ$Ø!%ˆÔØˆr+   Nc                 ó(  — t          | j        dd ¦  «        }d }|�M |||¦  «        }|| j        ur8t          |g| j        ¢R i | j        ¤Ž}	 |j        |_        n# t          $ r Y nw xY w|€(|                      ¦   «                              ||¦  «        }|S )Nr¸   )	r   r‡   r   rˆ   r‰   Ú__self__r   rÅ   r¸   )r2   ri   r]   ÚgetÚresultÚnew_funcs         r(   r¸   zpartialmethod.__get__‰  s¼   € Ý�d”i ¨DÑ1Ô1ˆØˆØˆ?Ø�s˜3 ‘}”}ˆHØ˜tœyÐ(Ð(õ ! ÐG¨D¬IÐGÐGÐG¸¼ÐGÐG�ðØ&.Ô&7�F”O�OøÝ%ð ð ð Ø�Dðøøøàˆ>ð ×.Ò.Ñ0Ô0×8Ò8¸¸cÑBÔBˆFØˆs   ÁA Á
A%Á$A%c                 ó.   — t          | j        dd¦  «        S ©NrÃ   F©r   r‡   r©   s    r(   rÃ   z"partialmethod.__isabstractmethod__œ  ó   € å�t”yÐ"8¸%Ñ@Ô@Ð@r+   rY   )r   r   r   r   rl   r§   rÅ   r¸   ÚpropertyrÃ   Úclassmethodr   Ú__class_getitem__r›   r+   r(   r   r   [  s‹   € € € € € ðð ð%ð %ð %ð&	7ð 	7ð 	7ðð ð ðð ð ð ð& ðAð Añ „XðAð $˜ LÑ1Ô1ÐÐÐr+   r   c                 óh   — t          | t          ¦  «        r| j        } t          | t          ¦  «        °| S rY   )r­   r   r‡   ©r‡   s    r(   Ú_unwrap_partialrÔ   ¥  s4   € Ý
�T�7Ñ
#Ô
#ð ØŒyˆõ �T�7Ñ
#Ô
#ð à€Kr+   Ú	CacheInfo)ÚhitsÚmissesÚmaxsizeÚcurrsizec                   ó&   — e Zd ZdZdZefd„Zd„ ZdS )Ú
_HashedSeqzÃ This class guarantees that hash() will be called no more than once
        per element.  This is important because the lru_cache() will hash
        the key multiple times on a cache miss.

    Ú	hashvaluec                 ó4   — || d d …<    ||¦  «        | _         d S rY   ©rÜ   )r2   ÚtupÚhashs      r(   rl   z_HashedSeq.__init__¹  s"   € ØˆˆQˆQˆQ‰Ø˜˜c™œˆŒˆˆr+   c                 ó   — | j         S rY   rÞ   r©   s    r(   ry   z_HashedSeq.__hash__½  s
   € ØŒ~Ðr+   N)r   r   r   r   rx   rà   rl   ry   r›   r+   r(   rÛ   rÛ   °  sK   € € € € € ðð ð €Ià!%ð #ð #ð #ð #ðð ð ð ð r+   rÛ   c                 óV  ‡— | }|r!||z  }|                      ¦   «         D ]}	||	z  }Œ|rI| |ˆfd„| D ¦   «         ¦  «        z  }|r,| |ˆfd„|                     ¦   «         D ¦   «         ¦  «        z  }n* ||¦  «        dk    r ‰|d         ¦  «        |v r|d         S t          |¦  «        S )a‘  Make a cache key from optionally typed positional and keyword arguments

    The key is constructed in a way that is flat as possible rather than
    as a nested structure that would take more memory.

    If there is only a single argument and its data type is known to cache
    its hash value, then that argument is returned without a wrapper.  This
    saves space and improves lookup speed.

    c              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S rY   r›   ©r[   rž   r.   s     €r(   r˜   z_make_key.<locals>.<genexpr>Ø  s+   øè è € Ð+Ð+ �T�T˜!‘W”WÐ+Ð+Ð+Ð+Ð+Ð+r+   c              3   ó.   •K  — | ]} ‰|¦  «        V — Œd S rY   r›   rä   s     €r(   r˜   z_make_key.<locals>.<genexpr>Ú  s+   øè è € Ð8Ð8 Q˜˜˜a™œÐ8Ð8Ð8Ð8Ð8Ð8r+   é   r   )r¤   ÚvaluesrÛ   )
rˆ   r²   ÚtypedÚkwd_markÚ	fasttypesr®   r.   r¯   ÚkeyÚitems
         `   r(   Ú	_make_keyrí   À  sä   ø€ ð$ €CØð Øˆx‰ˆØ—J’J‘L”Lð 	ð 	ˆDØ�4‰KˆCˆCØð ØˆuˆuÐ+Ð+Ð+Ð+ dÐ+Ñ+Ô+Ñ+Ô+Ñ+ˆØð 	9Ø�5�5Ð8Ð8Ð8Ð8¨$¯+ª+©-¬-Ð8Ñ8Ô8Ñ8Ô8Ñ8ˆCøØ	ˆˆS‰Œ�QŠˆ˜4˜4  A¤™<œ<¨9Ð4Ð4Ø�1ŒvˆÝ�c‰?Œ?Ðr+   é€   Fc                 ó*  ‡ ‡— t          ‰ t          ¦  «        r	‰ dk     rdŠ nlt          ‰ ¦  «        rLt          ‰t          ¦  «        r7‰ dc}Š t	          |‰ ‰t
          ¦  «        }ˆ ˆfd„|_        t          ||¦  «        S ‰ �t          d¦  «        ‚ˆ ˆfd„}|S )a¬  Least-recently-used cache decorator.

    If *maxsize* is set to None, the LRU features are disabled and the cache
    can grow without bound.

    If *typed* is True, arguments of different types will be cached separately.
    For example, f(3.0) and f(3) will be treated as distinct calls with
    distinct results.

    Arguments to the cached function must be hashable.

    View the cache statistics named tuple (hits, misses, maxsize, currsize)
    with f.cache_info().  Clear the cache and statistics with f.cache_clear().
    Access the underlying function with f.__wrapped__.

    See:  https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU)

    r   rî   c                  ó   •— ‰ ‰dœS ©N©rØ   rè   r›   rò   s   €€r(   ú<lambda>zlru_cache.<locals>.<lambda>   ó   ø€ ¸È%Ð,PÐ,P€ r+   Nz=Expected first argument to be an integer, a callable, or Nonec                 óh   •— t          | ‰‰t          ¦  «        }ˆˆfd„|_        t          || ¦  «        S )Nc                  ó   •— ‰ ‰dœS rñ   r›   rò   s   €€r(   ró   z8lru_cache.<locals>.decorating_function.<locals>.<lambda>  rô   r+   )Ú_lru_cache_wrapperÚ
_CacheInfoÚcache_parametersr   )Úuser_functionr"   rØ   rè   s     €€r(   Údecorating_functionz&lru_cache.<locals>.decorating_function  s:   ø€ Ý$ ]°G¸UÅJÑOÔOˆØ#PÐ#PÐ#PÐ#PÐ#PˆÔ Ý˜g }Ñ5Ô5Ð5r+   )	r­   ÚintrŒ   Úboolr÷   rø   rù   r   r€   )rØ   rè   rú   r"   rû   s   ``   r(   r	   r	   ß  sÒ   øø€ õ2 �'�3ÑÔð Mà�QŠ;ˆ;ØˆGøÝ	�'Ñ	Ô	ð M�z¨%µÑ6Ô6ð Mà!(¨#Ðˆ�wÝ$ ]°G¸UÅJÑOÔOˆØ#PÐ#PÐ#PÐ#PÐ#PˆÔ Ý˜g }Ñ5Ô5Ð5Ø	Ð	ÝØKñMô Mð 	Mð6ð 6ð 6ð 6ð 6ð 6ð
 Ðr+   c                 óh  ‡ ‡‡‡‡‡‡	‡
‡‡‡‡‡‡‡‡‡‡— t          ¦   «         Št          Šd\  Š	ŠŠŠ
i ŠdxŠŠdŠ‰j        Š‰j        Št	          ¦   «         Šg Š‰‰d d g‰d d …<   ‰dk    rˆˆ fd„}n#‰€ˆˆˆˆˆˆˆˆ fd„}nˆˆˆ	ˆ
ˆˆˆˆˆˆˆˆˆˆˆˆ fd„}ˆˆˆˆˆˆfd„}ˆˆˆˆˆˆfd„}||_        ||_        |S )	N)r   ræ   é   é   r   Fc                  ó"   •— ‰dz  Š ‰| i |¤Ž}|S ©Nræ   r›   )rˆ   r²   rÉ   r×   rú   s      €€r(   r"   z#_lru_cache_wrapper.<locals>.wrapper  s'   ø€ ð �a‰KˆFØ"�] DÐ1¨DÐ1Ð1ˆFØˆMr+   c                  ót   •—  ‰| |‰
¦  «        } ‰|‰	¦  «        }|‰	ur‰dz  Š|S ‰dz  Š ‰| i |¤Ž}|‰|<   |S r  r›   )rˆ   r²   rë   rÉ   r   Ú	cache_getrÖ   Úmake_keyr×   Úsentinelrè   rú   s       €€€€€€€€r(   r"   z#_lru_cache_wrapper.<locals>.wrapper'  sm   ø€ ð �(˜4  uÑ-Ô-ˆCØ�Y˜s HÑ-Ô-ˆFØ˜XÐ%Ð%Ø˜‘	�Ø�Ø�a‰KˆFØ"�] DÐ1¨DÐ1Ð1ˆFØˆE�#‰JØˆMr+   c                  ó  •—  ‰| |‰¦  «        }‰5   ‰|¦  «        }|�@|\  }}}}||‰<   ||‰<   ‰‰         }|x|‰<   ‰‰<   ||‰<   ‰|‰<   ‰dz  Š|cd d d ¦  «         S ‰dz  Šd d d ¦  «         n# 1 swxY w Y    ‰| i |¤Ž}‰5  |‰v rnd‰r7‰}	||	‰<   ||	‰<   |	‰         Š‰‰         }
‰‰         }d x‰‰<   ‰‰<   ‰|
= |	‰|<   n+‰‰         }|‰||g}|x|‰<   x‰‰<   ‰|<    ‰¦   «         ‰k    Šd d d ¦  «         n# 1 swxY w Y   |S r  r›   )rˆ   r²   rë   ÚlinkÚ	link_prevÚ	link_nextÚ_keyrÉ   ÚlastÚoldrootÚoldkeyÚ	oldresultÚKEYÚNEXTÚPREVÚRESULTr   r  Ú	cache_lenÚfullrÖ   Úlockr  rØ   r×   rc   rè   rú   s               €€€€€€€€€€€€€€€€r(   r"   z#_lru_cache_wrapper.<locals>.wrapper6  sB  ø€ ð �(˜4  uÑ-Ô-ˆCØð ð Ø �y ‘~”~�ØÐ#à9=Ñ6�I˜y¨$°Ø&/�I˜d‘OØ&/�I˜d‘OØ œ:�DØ.2Ð2�D˜‘J  d¡Ø!%�D˜‘JØ!%�D˜‘JØ˜A‘I�DØ!ðð ð ð ñ ô ð ð ð ˜!‘�ðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð ð #�] DÐ1¨DÐ1Ð1ˆFØð #4ð #4Ø˜%�<�<ð
 Øð 4à"�GØ#&�G˜C‘LØ&,�G˜F‘Oð # 4œ=�DØ! #œY�FØ $ V¤�IØ/3Ð3�D˜‘I  V¡à˜f˜ð ")�E˜#‘J�Jð   œ:�DØ  $¨¨VÐ4�DØ;?Ð?�D˜‘JÐ?  d¡¨e°C©jð &˜I™KœK¨7Ò2�DðG#4ð #4ð #4ñ #4ô #4ð #4ð #4ð #4ð #4ð #4ð #4øøøð #4ð #4ð #4ð #4ðH ˆMs+   ‘AA0ÁA0Á0A4Á7A4ÂA*C;Ã;C?ÄC?c                  óh   •— ‰5   ‰ ‰‰‰ ‰¦   «         ¦  «        cddd¦  «         S # 1 swxY w Y   dS )zReport cache statisticsNr›   )rø   r  rÖ   r  rØ   r×   s   €€€€€€r(   Ú
cache_infoz&_lru_cache_wrapper.<locals>.cache_infoo  sš   ø€ àð 	Bð 	BØ�:˜d F¨G°Y°Y±[´[ÑAÔAð	Bð 	Bð 	Bð 	Bñ 	Bô 	Bð 	Bð 	Bð 	Bð 	Bð 	Bð 	Bøøøð 	Bð 	Bð 	Bð 	Bð 	Bð 	Bs   „'§+®+c                  óˆ   •— ‰5  ‰                       ¦   «          ‰‰ddg‰dd…<   dxŠŠdŠddd¦  «         dS # 1 swxY w Y   dS )z$Clear the cache and cache statisticsNr   F)Úclear)r   r  rÖ   r  r×   rc   s   €€€€€€r(   Úcache_clearz'_lru_cache_wrapper.<locals>.cache_cleart  s¡   ø€ ð ð 	ð 	Ø�KŠK‰MŒMˆMØ˜T 4¨Ð.ˆD���‰GØÐˆD�6ØˆDð		ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   „&7·;¾;)rZ   rí   rÈ   Ú__len__r   r  r  )rú   rØ   rè   rø   r"   r  r  r  r  r  r  r   r  r  r  rÖ   r  r  r×   rc   r  s   ````   @@@@@@@@@@@@@@r(   r÷   r÷     sÔ  øøøøøøøøøøøøøøøøøø€ å‰xŒx€HÝ€HØ(Ñ€Dˆ$��Và€EØÐ€Dˆ6Ø€DØ”	€IØ”€IÝ‰7Œ7€DØ€DØ�T˜4 Ð&€Dˆˆˆ�Gà�!‚|€|ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 
ˆð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ð 7	ðrBð Bð Bð Bð Bð Bð Bð Bð Bð Bð
ð ð ð ð ð ð ð ð ð ð $€GÔØ%€GÔØ€Nr+   )r÷   c                ó4   —  t          d¬¦  «        | ¦  «        S )z@Simple lightweight unbounded cache.  Sometimes called "memoize".N)rØ   )r	   )rú   s    r(   r   r   ‹  s   € à"�9˜TÐ"Ñ"Ô" =Ñ1Ô1Ð1r+   c                 óæ   — g }	 d„ | D ¦   «         } | s|S | D ]!}|d         }| D ]}||dd…         v rd} nŒ nŒ"|€t          d¦  «        ‚|                     |¦  «         | D ]}|d         |k    r|d= ŒŒo)z�Merges MROs in *sequences* to a single MRO using the C3 algorithm.

    Adapted from https://www.python.org/download/releases/2.3/mro/.

    Tc                 ó   — g | ]}|¯|‘ŒS r›   r›   )r[   Úss     r(   ú
<listcomp>z_c3_merge.<locals>.<listcomp>œ  s   € Ð/Ð/Ð/˜1¨QÐ/�QÐ/Ð/Ð/r+   r   ræ   NzInconsistent hierarchy)ÚRuntimeErrorÚappend)Ú	sequencesrÉ   Ús1Ú	candidateÚs2Úseqs         r(   Ú	_c3_merger)  ”  s×   € ð €FðØ/Ð/ 	Ð/Ñ/Ô/ˆ	Øð 	ØˆMØð 	ð 	ˆBØ˜1œˆIØð ð �Ø  1 2 2¤Ð&Ð&Ø $�IØ�Eð 'ð �ð ð ÐÝÐ7Ñ8Ô8Ð8Ø�Š�iÑ Ô Ð àð 	ð 	ˆCØ�1Œv˜Ò"Ð"Ø˜�Føð%r+   Nc                 ó¬  ‡‡
— t          t          | j        ¦  «        ¦  «        D ].\  }Š
t          ‰
d¦  «        rt	          | j        ¦  «        |z
  } nŒ/d}‰rt          ‰¦  «        ng Št          | j        d|…         ¦  «        }g }t          | j        |d…         ¦  «        }‰D ]GŠ
t          | ‰
¦  «        r5t          ˆ
fd„| j        D ¦   «         ¦  «        s|                     ‰
¦  «         ŒH|D ]Š
‰ 	                    ‰
¦  «         Œˆfd„|D ¦   «         }ˆfd„|D ¦   «         }ˆfd„|D ¦   «         }	t          | gg|z   |z   |	z   |gz   |gz   |gz   ¦  «        S )aƒ  Computes the method resolution order using extended C3 linearization.

    If no *abcs* are given, the algorithm works exactly like the built-in C3
    linearization used for method resolution.

    If given, *abcs* is a list of abstract base classes that should be inserted
    into the resulting MRO. Unrelated ABCs are ignored and don't end up in the
    result. The algorithm inserts ABCs where their functionality is introduced,
    i.e. issubclass(cls, abc) returns True for the class itself but returns
    False for all its direct base classes. Implicit ABCs for a given class
    (either registered or inferred from the presence of a special method like
    __len__) are inserted directly after the last ABC explicitly listed in the
    MRO of said class. If two implicit ABCs end up next to each other in the
    resulting MRO, their ordering depends on the order of types in *abcs*.

    Ú__abstractmethods__r   Nc              3   ó8   •K  — | ]}t          |‰¦  «        V — Œd S rY   )Ú
issubclass)r[   ÚbÚbases     €r(   r˜   z_c3_mro.<locals>.<genexpr>Ë  s>   øè è € ð -ð -Ø()•
˜1˜dÑ#Ô#ð-ð -ð -ð -ð -ð -r+   c                 ó2   •— g | ]}t          |‰¬ ¦  «        ‘ŒS ©©Úabcs©Ú_c3_mro©r[   r/  r3  s     €r(   r!  z_c3_mro.<locals>.<listcomp>Ó  ó&   ø€ ÐLÐLÐL°T� ¨4Ð0Ñ0Ô0ÐLÐLÐLr+   c                 ó2   •— g | ]}t          |‰¬ ¦  «        ‘ŒS r1  r4  r6  s     €r(   r!  z_c3_mro.<locals>.<listcomp>Ô  r7  r+   c                 ó2   •— g | ]}t          |‰¬ ¦  «        ‘ŒS r1  r4  r6  s     €r(   r!  z_c3_mro.<locals>.<listcomp>Õ  s&   ø€ ÐFÐFÐF°$•W˜T¨Ð-Ñ-Ô-ÐFÐFÐFr+   )Ú	enumerateÚreversedÚ	__bases__r�   r¯   Úlistr-  Úanyr#  Úremover)  )r]   r3  ÚiÚboundaryÚexplicit_basesÚabstract_basesÚother_basesÚexplicit_c3_mrosÚabstract_c3_mrosÚother_c3_mrosr/  s    `        @r(   r5  r5  ¯  sß  øø€ õ" �X c¤mÑ4Ô4Ñ5Ô5ð ð ‰ˆˆ4Ý�4Ð.Ñ/Ô/ð 	Ý˜3œ=Ñ)Ô)¨AÑ-ˆHØˆEð	ð ˆØÐ%�4�‰:Œ:ˆ: 2€DÝ˜#œ-¨	¨¨	Ô2Ñ3Ô3€NØ€NÝ�s”} X Y YÔ/Ñ0Ô0€KØð (ð (ˆÝ�c˜4Ñ Ô ð 	(­ð -ð -ð -ð -Ø-0¬]ð-ñ -ô -ñ *ô *ð 	(ð
 ×!Ò! $Ñ'Ô'Ð'øØð ð ˆØ�Š�DÑÔÐÐØLÐLÐLÐL¸^ÐLÑLÔLÐØLÐLÐLÐL¸^ÐLÑLÔLÐØFÐFÐFÐF¸+ÐFÑFÔF€MÝØ
ˆˆØñ	Ø+ñ	,Ø.;ñ	<à	Ðñ	à*Ð+ñ	,à/:¨mñ	<ñô ð r+   c                 ó&  ‡ ‡‡‡‡	‡
— t          ‰ j        ¦  «        Šˆˆ fd„Šˆfd„‰D ¦   «         Šˆfd„Š	ˆ	fd„‰D ¦   «         Št          ‰¦  «        Š
g }‰D ]¬}g }|                     ¦   «         D ]<}|‰vr6t          ‰ |¦  «        r&|                     ˆ
fd„|j        D ¦   «         ¦  «         Œ=|s|                     |¦  «         Œm|                     t          d¬¦  «         |D ] }|D ]}||vr|                     |¦  «         ŒŒ!Œ­t          ‰ |¬¦  «        S )	zÛCalculates the method resolution order for a given class *cls*.

    Includes relevant abstract base classes (with their respective bases) from
    the *types* iterable. Uses a modified C3 linearization algorithm.

    c                 óx   •— | ‰vo5t          | d¦  «        o%t          | t          ¦  «         ot          ‰| ¦  «        S )NÚ__mro__)r�   r­   r   r-  )ÚtypÚbasesr]   s    €€r(   Ú
is_relatedz _compose_mro.<locals>.is_relatedå  sH   ø€ Ø˜5Ð ð :¥W¨S°)Ñ%<Ô%<ð :Ý)3°C½Ñ)FÔ)FÐ%Fð:å%/°°SÑ%9Ô%9ð	;r+   c                 ó*   •— g | ]} ‰|¦  «        ¯|‘ŒS r›   r›   )r[   ÚnrM  s     €r(   r!  z _compose_mro.<locals>.<listcomp>é  s&   ø€ Ð/Ð/Ð/�1  ¨A¡¤Ð/ˆQÐ/Ð/Ð/r+   c                 ó6   •— ‰D ]}| |k    r| |j         v r dS ŒdS )NTF)rJ  )rK  r3   Útypess     €r(   Úis_strict_basez$_compose_mro.<locals>.is_strict_baseì  s4   ø€ Øð 	ð 	ˆEØ�eŠ|ˆ|  u¤}Ð 4Ð 4Ø�t�tøØˆur+   c                 ó*   •— g | ]} ‰|¦  «        °|‘ŒS r›   r›   )r[   rO  rR  s     €r(   r!  z _compose_mro.<locals>.<listcomp>ñ  s(   ø€ Ð7Ð7Ð7�1 ^ ^°AÑ%6Ô%6Ð7ˆQÐ7Ð7Ð7r+   c                 ó   •— g | ]}|‰v ¯|‘Œ	S r›   r›   )r[   r   Útype_sets     €r(   r!  z _compose_mro.<locals>.<listcomp>ú  s   ø€ ÐFÐFÐF A¸¸X¸¸˜a¸¸¸r+   T)rë   Úreverser2  )ÚsetrJ  Ú__subclasses__r-  r#  Úsortr¯   r5  )r]   rQ  ÚmrorK  ÚfoundÚsubÚsubclsrL  rM  rR  rU  s   ``     @@@@r(   Ú_compose_mror^  Ü  s˜  øøøøøø€ õ �”ÑÔ€Eð;ð ;ð ;ð ;ð ;ð ;ð 0Ð/Ð/Ð/˜Ð/Ñ/Ô/€Eðð ð ð ð ð
 8Ð7Ð7Ð7˜Ð7Ñ7Ô7€Eõ �5‰zŒz€HØ
€CØð 'ð 'ˆØˆØ×%Ò%Ñ'Ô'ð 	Hð 	HˆCØ˜%ÐÐ¥J¨s°CÑ$8Ô$8ÐØ—’ÐFÐFÐFÐF¨¬ÐFÑFÔFÑGÔGÐGøØð 	Ø�JŠJ�s‰OŒOˆOØà�
Š
•s Dˆ
Ñ)Ô)Ð)Øð 	'ð 	'ˆCØð 'ð '�Ø Ð$Ð$Ø—J’J˜vÑ&Ô&Ð&øð'ð	'õ �3˜SÐ!Ñ!Ô!Ð!r+   c                 ó$  — t          | |                     ¦   «         ¦  «        }d}|D ]U}|�K||v rE|| j        vr<|| j        vr3t          ||¦  «        s#t	          d                     ||¦  «        ¦  «        ‚ n||v r|}ŒV|                     |¦  «        S )a^  Returns the best matching implementation from *registry* for type *cls*.

    Where there is no registered implementation for a specific type, its method
    resolution order is used to find a more generic implementation.

    Note: if *registry* does not contain an implementation for the base
    *object* type, this function may return None.

    NzAmbiguous dispatch: {} or {})r^  ÚkeysrJ  r-  r"  r¹   rÈ   )r]   ÚregistryrZ  ÚmatchÚts        r(   Ú
_find_implrd    s»   € õ �s˜HŸMšM™OœOÑ
,Ô
,€CØ€EØð ð ˆØÐð �X�� !¨3¬;Ð"6Ð"6Ø"'¨s¬{Ð":Ð":Ý&0°¸Ñ&:Ô&:ð #;å"Ð#A×#HÒ#HØ˜1ñ$ô $ñ ô ð àˆEØ�ˆ=ˆ=ØˆEøØ�<Š<˜ÑÔÐr+   c                 óZ  ‡‡‡‡‡‡‡	‡
‡— ddl Šddl}i Š
|                     ¦   «         ŠdŠˆˆˆ
fd„Šˆfd„Šˆfd„Šd
ˆˆˆˆˆ	ˆ
fd„	Š	ˆˆfd„}t          | dd	¦  «        Š| ‰
t          <   ‰	|_        ‰|_        ‰                     ‰
¦  «        |_        ‰j	        |_
        t          || ¦  «         |S )ak  Single-dispatch generic function decorator.

    Transforms a function into a generic function, which can have different
    behaviours depending upon the type of its first argument. The decorated
    function acts as the default implementation, and additional
    implementations can be registered using the register() attribute of the
    generic function.
    r   Nc                 óò   •— ‰�*t          ¦   «         }‰|k    r‰                     ¦   «          |Š	 ‰|          }n?# t          $ r2 	 ‰|          }n # t          $ r t          | ‰¦  «        }Y nw xY w|‰| <   Y nw xY w|S )zÌgeneric_func.dispatch(cls) -> <function implementation>

        Runs the dispatch algorithm to return the best available implementation
        for the given *cls* registered on *generic_func*.

        )r   r  ÚKeyErrorrd  )r]   Úcurrent_tokenÚimplÚcache_tokenÚdispatch_cachera  s      €€€r(   Údispatchz singledispatch.<locals>.dispatch2  s¹   ø€ ð Ð"Ý+Ñ-Ô-ˆMØ˜mÒ+Ð+Ø×$Ò$Ñ&Ô&Ð&Ø+�ð	'Ø! #Ô&ˆDˆDøÝð 	'ð 	'ð 	'ð1Ø ”}��øÝð 1ð 1ð 1Ý! # xÑ0Ô0���ð1øøøà"&ˆN˜3ÑÐÐð	'øøøð ˆs3   ¯8 ¸
A4ÁAÁA4ÁA)Á&A4Á(A)Á)A4Á3A4c                 ó<   •— ddl m}m}  || ¦  «        |‰j        hv S )Nr   )Ú
get_originÚUnion)Útypingrn  ro  Ú	UnionType)r]   rn  ro  rQ  s      €r(   Ú_is_union_typez&singledispatch.<locals>._is_union_typeI  s5   ø€ Ø,Ð,Ð,Ð,Ð,Ð,Ð,Ð,Øˆz˜#‰Œ 5¨%¬/Ð":Ð:Ð:r+   c                 ó˜   •— t          | t          ¦  «        rdS ddlm}  ‰| ¦  «        o!t	          d„  || ¦  «        D ¦   «         ¦  «        S )NTr   ©Úget_argsc              3   ó@   K  — | ]}t          |t          ¦  «        V — Œd S rY   )r­   r.   )r[   Úargs     r(   r˜   zBsingledispatch.<locals>._is_valid_dispatch_type.<locals>.<genexpr>R  s,   è è € ÐCÐC¨c•J˜s¥DÑ)Ô)ÐCÐCÐCÐCÐCÐCr+   )r­   r.   rp  ru  Úall)r]   ru  rr  s     €r(   Ú_is_valid_dispatch_typez/singledispatch.<locals>._is_valid_dispatch_typeM  sg   ø€ Ý�c�4Ñ Ô ð 	Ø�4Ø#Ð#Ð#Ð#Ð#Ð#Ø�˜sÑ#Ô#ð DÝÐCÐC°X°X¸c±]´]ÐCÑCÔCÑCÔCð	Er+   c                 ól  •‡ —  ‰‰ ¦  «        r	|€ˆ ˆfd„S n¿|�t          d‰ ›d�¦  «        ‚t          ‰ di ¦  «        }|st          d‰ ›d�¦  «        ‚‰ }dd	lm} t	          t           ||¦  «                             ¦   «         ¦  «        ¦  «        \  }Š  ‰‰ ¦  «        s7 ‰‰ ¦  «        rt          d
|›d‰ ›d�¦  «        ‚t          d
|›d‰ ›d�¦  «        ‚ ‰‰ ¦  «        rddlm}  |‰ ¦  «        D ]}|‰|<   Œn|‰‰ <   ‰	€t          ‰ d¦  «        rt          ¦   «         Š	‰
 
                    ¦   «          |S )zƒgeneric_func.register(cls, func) -> func

        Registers a new implementation for the given *cls* on a *generic_func*.

        Nc                 ó   •—  ‰‰| ¦  «        S rY   r›   )Úfr]   Úregisters    €€r(   ró   z2singledispatch.<locals>.register.<locals>.<lambda>]  s   ø€   ¨#¨qÑ!1Ô!1€ r+   z(Invalid first argument to `register()`. z is not a class or union type.r   z(Invalid first argument to `register()`: zS. Use either `@register(some_class)` or plain `@register` on an annotated function.r   )Úget_type_hintszInvalid annotation for z. z not all arguments are classes.z is not a class.rt  r+  )r€   r   rp  r~  r~   r|   r¤   ru  r�   r   r  )r]   r‡   Úannr~  Úargnameru  rw  rr  ry  rj  rk  r}  ra  s   `      €€€€€€r(   r}  z singledispatch.<locals>.registerT  s  øø€ ð #Ð" 3Ñ'Ô'ð 	Øˆ|Ø1Ð1Ð1Ð1Ð1Ð1ð ð ÐÝð=Øð=ð =ð =ñô ð õ ˜#Ð0°"Ñ5Ô5ˆCØð Ýð1¸sð 1ð 1ð 1ñô ð ð
 ˆDð .Ð-Ð-Ð-Ð-Ð-Ý¥ ^ ^°DÑ%9Ô%9×%?Ò%?Ñ%AÔ%AÑ BÔ BÑCÔC‰LˆG�SØ*Ð*¨3Ñ/Ô/ð 
Ø!�> #Ñ&Ô&ð 	Ý#ðB°'ð Bð BØðBð Bð Bñô ð õ
 $ð3°'ð 3ð 3Øð3ð 3ð 3ñô ð ð
 ˆ>˜#ÑÔð 	!Ø'Ð'Ð'Ð'Ð'Ð'à�x ‘}”}ð %ð %�Ø $�˜‘�ð%ð !ˆH�S‰MØÐ¥7¨3Ð0EÑ#FÔ#FÐÝ)Ñ+Ô+ˆKØ×ÒÑÔÐØˆr+   c                  ód   •— | st          ‰› d�¦  «        ‚  ‰| d         j        ¦  «        | i |¤ŽS )Nz( requires at least 1 positional argumentr   )r€   r�   )rˆ   Úkwrl  Úfuncnames     €€r(   r"   zsingledispatch.<locals>.wrapperˆ  sV   ø€ Øð 	5Ý˜xð 4ð 4ð 4ñ 5ô 5ð 5ð +ˆxˆx˜˜QœÔ)Ñ*Ô*¨DÐ7°BÐ7Ð7Ð7r+   r   zsingledispatch functionrY   )rQ  ÚweakrefÚWeakKeyDictionaryr   rZ   r}  rl  ÚMappingProxyTypera  r  Ú_clear_cacher   )r‡   r„  r"   rr  ry  rj  rl  rk  rƒ  r}  ra  rQ  s      @@@@@@@@@r(   r   r      sT  øøøøøøøøø€ ð ÐÐÐÐÐÐÐà€HØ×.Ò.Ñ0Ô0€NØ€Kðð ð ð ð ð ð ð.;ð ;ð ;ð ;ð ;ðEð Eð Eð Eð Eð2ð 2ð 2ð 2ð 2ð 2ð 2ð 2ð 2ð 2ð 2ðh8ð 8ð 8ð 8ð 8ð 8õ �t˜ZÐ)BÑCÔC€HØ€H�VÑØ€GÔØ€GÔØ×-Ò-¨hÑ7Ô7€GÔØ)Ô/€GÔÝ�7˜DÑ!Ô!Ð!Ø€Nr+   c                   ó>   — e Zd ZdZd„ Zdd„Zdd„Zed„ ¦   «         ZdS )r   z™Single-dispatch generic method descriptor.

    Supports wrapping existing descriptors and handles non-descriptor
    callables as instance methods.
    c                 óž   — t          |¦  «        s"t          |d¦  «        st          |›d�¦  «        ‚t          |¦  «        | _        || _        d S )Nr¸   z  is not callable or a descriptor)rŒ   r�   r€   r   Ú
dispatcherr‡   ©r2   r‡   s     r(   rl   zsingledispatchmethod.__init__¡  sT   € Ý˜‰~Œ~ð 	I¥g¨d°IÑ&>Ô&>ð 	IÝ˜tÐGÐGÐGÑHÔHÐHå(¨Ñ.Ô.ˆŒØˆŒ	ˆ	ˆ	r+   Nc                 ó:   — | j                              ||¬¦  «        S )z†generic_method.register(cls, func) -> func

        Registers a new implementation for the given *cls* on a *generic_method*.
        rÓ   )rŠ  r}  )r2   r]   Úmethods      r(   r}  zsingledispatchmethod.register¨  s   € ð
 Œ×'Ò'¨°&Ð'Ñ9Ô9Ð9r+   c                 ót   ‡ ‡‡— ˆˆˆ fd„}‰ j         |_         ‰ j        |_        t          |‰ j        ¦  «         |S )Nc                  ó†   •— ‰j                              | d         j        ¦  «        } |                     ‰‰¦  «        | i |¤ŽS rn   )rŠ  rl  r�   r¸   )rˆ   Úkwargsr�  r]   ri   r2   s      €€€r(   rÂ   z-singledispatchmethod.__get__.<locals>._method°  sB   ø€ Ø”_×-Ò-¨d°1¬gÔ.?Ñ@Ô@ˆFØ+�6—>’> # sÑ+Ô+¨TÐ<°VÐ<Ð<Ð<r+   )rÃ   r}  r   r‡   )r2   ri   r]   rÂ   s   ``` r(   r¸   zsingledispatchmethod.__get__¯  sV   øøø€ ð	=ð 	=ð 	=ð 	=ð 	=ð 	=ð 	=ð (,Ô'@ˆÔ$Øœ=ˆÔÝ�w ¤	Ñ*Ô*Ð*Øˆr+   c                 ó.   — t          | j        dd¦  «        S rÌ   rÍ   r©   s    r(   rÃ   z)singledispatchmethod.__isabstractmethod__¹  rÎ   r+   rY   )	r   r   r   r   rl   r}  r¸   rÏ   rÃ   r›   r+   r(   r   r   š  su   € € € € € ðð ðð ð ð:ð :ð :ð :ðð ð ð ð ðAð Añ „XðAð Að Ar+   r   c                   ó8   — e Zd Zd„ Zd„ Zdd„Z ee¦  «        ZdS )r   c                 ó`   — || _         d | _        |j        | _        t          ¦   «         | _        d S rY   )r‡   Úattrnamer   r   r  r‹  s     r(   rl   zcached_property.__init__Æ  s(   € ØˆŒ	ØˆŒØ”|ˆŒÝ‘G”GˆŒ	ˆ	ˆ	r+   c                 ór   — | j         €	|| _         d S || j         k    rt          d| j         ›d|›d�¦  «        ‚d S )Nz?Cannot assign the same cached_property to two different names (z and z).)r”  r€   )r2   ÚownerÚnames      r(   Ú__set_name__zcached_property.__set_name__Ì  sb   € ØŒ=Ð Ø ˆDŒMˆMˆMØ�T”]Ò"Ð"Ýð5Ø”Mð5ð 5Ø*.ð5ð 5ð 5ñô ð ð #Ð"r+   Nc                 óh  — |€| S | j         €t          d¦  «        ‚	 |j        }n># t          $ r1 dt	          |¦  «        j        ›d| j         ›d�}t          |¦  «        d ‚w xY w|                     | j         t          ¦  «        }|t          u r§| j        5  |                     | j         t          ¦  «        }|t          u r_|  	                    |¦  «        }	 ||| j         <   n># t          $ r1 dt	          |¦  «        j        ›d| j         ›d�}t          |¦  «        d ‚w xY wd d d ¦  «         n# 1 swxY w Y   |S )NzGCannot use cached_property instance without calling __set_name__ on it.zNo '__dict__' attribute on z instance to cache z
 property.zThe '__dict__' attribute on z7 instance does not support item assignment for caching )
r”  r€   r   r   r.   r   rÈ   Ú
_NOT_FOUNDr  r‡   )r2   Úinstancer–  r   ÚmsgÚvals         r(   r¸   zcached_property.__get__Õ  sÏ  € ØÐØˆKØŒ=Ð ÝØYñ[ô [ð [ð	+ØÔ%ˆEˆEøÝð 	+ð 	+ð 	+ðA­d°8©n¬nÔ.Eð Að AØ%)¤]ðAð Að Að õ ˜C‘.”. dÐ*ð	+øøøð �iŠi˜œ¥zÑ2Ô2ˆØ•*ÐÐØ”ð 7ð 7à—i’i ¤­zÑ:Ô:�Ø�*Ð$Ð$ØŸ)š) HÑ-Ô-�Cð7Ø/2˜˜dœmÑ,Ð,øÝ$ð 7ð 7ð 7ðh½4À¹>¼>Ô;Rð hð hØLPÌMðhð hð hð õ (¨™nœn°$Ð6ð7øøøð7ð 7ð 7ñ 7ô 7ð 7ð 7ð 7ð 7ð 7ð 7øøøð 7ð 7ð 7ð 7ð ˆ
s3   œ$ ¤;AÂ?D'Ã
CÃD'Ã;DÄD'Ä'D+Ä.D+rY   )	r   r   r   rl   r˜  r¸   rÐ   r   rÑ   r›   r+   r(   r   r   Å  sT   € € € € € ðð ð ðð ð ðð ð ð ð> $˜ LÑ1Ô1ÐÐÐr+   r   )rî   FrY   );r   Ú__all__Úabcr   Úcollectionsr   Úreprlibr   Ú_threadr   rQ  r   r   r   r   r   r5   r8   r;   r@   rC   rF   rJ   rL   rN   rR   rT   rV   r_   r   r   Ú
_functoolsÚImportErrorrZ   r}   r
   r   r   rÔ   rø   r=  rÛ   rü   Ústrr®   r.   r¯   rí   r	   r÷   r   r)  r5  r^  rd  r   r   rš  r   r›   r+   r(   ú<module>r¦     s  ððð ðð ð €ð
  Ð Ð Ð Ð Ð Ø "Ð "Ð "Ð "Ð "Ð "à "Ð "Ð "Ð "Ð "Ð "Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð*Ð à€ð 2Ø,ðð ð ð ð> )Ø#ð7ð 7ð 7ð 7ð0+ð +ð +ð&ð &ð &ðð ð ð*ð *ð *ð'ð 'ð 'ðð ð ð+ð +ð +ð&ð &ð &ðð ð ð*ð *ð *ð'ð 'ð 'ðð ð ð ˜+Ð&Ø˜+Ð&Ø˜+Ð&ð(ð ˜+Ð&Ø˜+Ð&Ø˜+Ð&ð(ð ˜+Ð&Ø˜+Ð&Ø˜+Ð&ð(ð ˜+Ð&Ø˜+Ð&Ø˜+Ð&ð(ðð €ðð ð ð$ð ð ð&	Ø%Ð%Ð%Ð%Ð%Ð%Ð%øØð 	ð 	ð 	Ø€Dð	øøøð �6‘8”8Ð à'7ð ð ð ð ð8	Ø!Ð!Ð!Ð!Ð!Ð!Ð!øØð 	ð 	ð 	Ø€Dð	øøøð?ð ?ð ?ð ?ð ?ñ ?ô ?ð ?ðB	Ø"Ð"Ð"Ð"Ð"Ð"Ð"øØð 	ð 	ð 	Ø€Dð	øøøðE2ð E2ð E2ð E2ð E2�Fñ E2ô E2ð E2ðTð ð ð ˆZ˜Ð%NÐ%NÐ%NÑOÔO€
ðð ð ð ð �ñ ô ð ð"  ˜™œ˜Ø˜s˜Ø˜t¨ðð ð ð ð>,ð ,ð ,ð ,ð\rð rð rðh	Ø-Ð-Ð-Ð-Ð-Ð-Ð-øØð 	ð 	ð 	Ø€Dð	øøøð2ð 2ð 2ðð ð ð6+ð +ð +ð +ðZ("ð ("ð ("ðTð ð ð4vð vð vðt!Að !Að !Að !Að !Añ !Aô !Að !AðP ˆV‰XŒX€
ð/2ð /2ð /2ð /2ð /2ñ /2ô /2ð /2ð /2ð /2sH   ÂB ÂBÂBÂ-B4 Â4B<Â;B<ÃC ÃCÃCÄ(D/ Ä/D7Ä6D7