python (3.11.7)

(root)/
lib/
python3.11/
__pycache__/
functools.cpython-311.pyc

e
dZgdZddlmZddlmZddlmZddlm	Z	ddl
mZdZd	Z
ee
fd
Zee
fdZdZd
ZdZdZdZdZdZdZdZdZdZdZdefdefdefgdefdefdefgdefdefdefgdefdefdefgdZdZdZ	ddlmZn#e $rYnwxYwe!Z"e"fd Z#	dd!lm#Z#n#e $rYnwxYwGd"d#Z$	dd$lm$Z$n#e $rYnwxYwGd%d&e!Z%d'Z&ed(gd)Z'Gd*d+e(Z)e!fe*e+he,e-e.fd,Z/d=d/Z0d0Z1	dd1lm1Z1n#e $rYnwxYwd2Z2d3Z3d>d5Z4d6Z5d7Z6d8Z7Gd9d:Z8e!Z9Gd;d<Z:d4S)?zEfunctools.py - Tools for working with functions and callable objects
)update_wrapperwrapsWRAPPER_ASSIGNMENTSWRAPPER_UPDATEStotal_orderingcache
cmp_to_key	lru_cachereducepartial
partialmethodsingledispatchsingledispatchmethodcached_property)get_cache_token)
namedtuple)recursive_repr)RLock)GenericAlias)
__module____name____qualname____doc____annotations__)__dict__c|D]4}	t||}t|||%#t$rY1wxYw|D]4}t||t||i5||_|S)aUpdate 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)
    )getattrsetattrAttributeErrorupdate__wrapped__)wrapperwrappedassignedupdatedattrvalues      =/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/functools.pyrr#s**	*GT**E
GT5))))			D	BB%%ggtR&@&@AAAA"GNs(
55c2tt|||S)aDecorator 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%)rrr*s   r(rrAs$>7$g7777cpt|||}|tur|S|o||kS)zIReturn a > b.  Computed by @total_ordering from (not a < b) and (a != b).type__lt__NotImplementedselfother	op_results   r(_gt_from_ltr5Y?T

!!$..IN""=*TU]*r+cnt|||}|tur|S|p||kS)zEReturn a <= b.  Computed by @total_ordering from (a < b) or (a == b).r-r1s   r(_le_from_ltr8`=T

!!$..IN""%
%r+cdt|||}|tur|S|S)z=Return a >= b.  Computed by @total_ordering from (not a < b).r-r1s   r(_ge_from_ltr;g6T

!!$..IN""=r+cpt|||}|tur|S|p||kS)zJReturn a >= b.  Computed by @total_ordering from (not a <= b) or (a == b).r.__le__r0r1s   r(_ge_from_ler@n?T

!!$..IN""=)DEM)r+cnt|||}|tur|S|o||kS)zFReturn a < b.  Computed by @total_ordering from (a <= b) and (a != b).r>r1s   r(_lt_from_lerCu=T

!!$..IN""&&r+cdt|||}|tur|S|S)z=Return a > b.  Computed by @total_ordering from (not a <= b).r>r1s   r(_gt_from_lerF|r<r+cpt|||}|tur|S|o||kS)zIReturn a < b.  Computed by @total_ordering from (not a > b) and (a != b).r.__gt__r0r1s   r(_lt_from_gtrJr6r+cnt|||}|tur|S|p||kS)zEReturn a >= b.  Computed by @total_ordering from (a > b) or (a == b).rHr1s   r(_ge_from_gtrLr9r+cdt|||}|tur|S|S)z=Return a <= b.  Computed by @total_ordering from (not a > b).rHr1s   r(_le_from_gtrNr<r+cpt|||}|tur|S|p||kS)zJReturn a <= b.  Computed by @total_ordering from (not a >= b) or (a == b).r.__ge__r0r1s   r(_le_from_gerRrAr+cnt|||}|tur|S|o||kS)zFReturn a > b.  Computed by @total_ordering from (a >= b) and (a != b).rPr1s   r(_gt_from_gerTrDr+cdt|||}|tur|S|S)z=Return a < b.  Computed by @total_ordering from (not a >= b).rPr1s   r(_lt_from_gerVr<r+rIr?rQr/)r/r?rIrQcfdtD}|stdt|}t|D]!\}}||vr||_t	||"S)z6Class decorator that fills in missing ordering methodscbh|]+}t|dtt|du)|,SN)robject).0opclss  r(	<setcomp>z!total_ordering.<locals>.<setcomp>s=^^^Bgc2t&<&<GFTVX\D]D]&]&]R&]&]&]r+z6must define at least one ordering operation: < > <= >=)_convert
ValueErrormaxrr)r]rootsrootopnameopfuncs`    r(rrs
_^^^(^^^ESQRRRu::D"4.))$FOC(((Jr+c2Gfddt}|S)z,Convert a cmp= function into a key= functioncReZdZdgZdZfdZfdZfdZfdZfdZ	dZ
dS)	cmp_to_key.<locals>.Kobjc||_dSrYri)r2ris  r(__init__zcmp_to_key.<locals>.K.__init__s
DHHHr+c8|j|jdkSNrrkr2r3mycmps  r(r/zcmp_to_key.<locals>.K.__lt__559--11r+c8|j|jdkSrnrkros  r(rIzcmp_to_key.<locals>.K.__gt__rqr+c8|j|jdkSrnrkros  r(__eq__zcmp_to_key.<locals>.K.__eq__559--22r+c8|j|jdkSrnrkros  r(r?zcmp_to_key.<locals>.K.__le__rur+c8|j|jdkSrnrkros  r(rQzcmp_to_key.<locals>.K.__ge__rur+N)rrr	__slots__rlr/rIrtr?rQ__hash__)rpsr(KrhsG					2	2	2	2	2	2	2	2	2	2	3	3	3	3	3	3	3	3	3	3	3	3	3	3	3r+rz)rZ)rprzs` r(rrs>F
Hr+)rct|}|tur/	t|}n #t$rt	ddwxYw|}|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_missingnext
StopIteration	TypeError)functionsequenceinitialitr'elements      r(r
r
s
hB"""	NHHEE	N	N	NBDDIM
N	N))((Ls	*A)r
c^eZdZdZdZfdZdZedZdZ	dZ
xZS)rzSNew function with partial application of the given arguments
    and keywords.
    )funcargskeywordsr__weakref__ct|stdt|dr|j|z}i|j|}|j}t
t||}||_||_||_|S)Nz#the first argument must be callabler)	callablerhasattrrrrsuperr__new__)r]rrrr2	__class__s     r(rzpartial.__new__s~~	CABBB4  	9t#D4$-484H9DWc""**3//		 
r+cFi|j|}|jg|j|Ri|SrYrrr)r2rrs   r(__call__zpartial.__call__+s:0dm0x0ty7$)7d777h777r+ct|j}t|jg}|d|jD|d|jDt|jdkrd|dd	|dS|dd	|dS)Nc34K|]}t|VdSrY)repr)r[xs  r(	<genexpr>z#partial.__repr__.<locals>.<genexpr>3s(//DGG//////r+c3*K|]\}}|d|VdS)=Nr[kvs   r(rz#partial.__repr__.<locals>.<genexpr>4s0EEVaqLL1LLEEEEEEr+	functoolsz
functools.(, ))
r.rrrextendrritemsrjoin)r2qualnamers   r(__repr__zpartial.__repr__/s::*TY //TY//////EEt}/B/B/D/DEEEEEE:: K//===499T??====//TYYt__////r+cjt||jf|j|j|jpd|jpdffSrY)r.rrrrr2s r(
__reduce__zpartial.__reduce__9s;DzzDI<$)TY}$dm&;t*==	=r+c4t|tstdt|dkrtdt||\}}}}t	|rCt|tr.|t|t
r|$t|t
stdt|}|i}n%t
|t
urt|}|i}||_||_||_	||_
dS)Nz(argument to __setstate__ must be a tuplezexpected 4 items in state, got zinvalid partial state)
isinstancetuplerlenrdictr.rrrr)r2staterrkwds	namespaces      r(__setstate__zpartial.__setstate__=s%''	HFGGGu::??Jc%jjJJKKK&+#dD)	5ju&=&=	5Zd%;%;!*Y*E*E!3444T{{<DD
$ZZt
#
#::DI!
		


r+)rrrrrxrrrrrr
__classcell__)rs@r(rrsFI 888^000===r+r)rcXeZdZdZdZdZdZddZedZ	e
eZdS)	rzMethod descriptor with partial application of the given arguments
    and keywords.

    Supports wrapping existing descriptors and handles non-descriptor
    callables as instance methods.
    c6t|s2t|ds"td|t	|t
r-|j|_|j|z|_i|j||_dS||_||_||_dS)N__get__z${!r} is not callable or a descriptor)	rrrformatrrrrr)r2rrrs    r(rlzpartialmethod.__init__cs~~	0gdI&>&>	0B"(&,,00
0
dM**
	%	DI	D(DI9t}99DMMMDIDI$DMMMr+c2dtt|j}dd|jD}d}||jj|jj	|j
||S)Nrc3HK|]\}}d||VdS)z{}={!r}N)rrs   r(rz)partialmethod.__repr__.<locals>.<genexpr>xsRDD%)Q'--a33DDDDDDr+z*{module}.{cls}({func}, {args}, {keywords}))moduler]rrr)rmaprrrrrrrrr)r2rr
format_strings    r(rzpartialmethod.__repr__vsyyT49--..99DD-1]-@-@-B-BDDDDDD
##4>+D(,(C)-)--5	$77	7r+c8fd}j|_|_|S)NcJij|}j|gj|Ri|SrYr)cls_or_selfrrr2s   r(_methodz3partialmethod._make_unbound_method.<locals>._methods=4$-484H49[H49HtHHHxHHHr+)__isabstractmethod___partialmethod)r2rs` r(_make_unbound_methodz"partialmethod._make_unbound_methods;	I	I	I	I	I(,'@$!%r+Nc(t|jdd}d}|M|||}||jur8t|g|jRi|j}	|j|_n#t$rYnwxYw|(|||}|S)Nr)	rrrrr__self__rrr)r2rir]getresultnew_funcs      r(rzpartialmethod.__get__sdiD11?s3}}Hty((!GDIGGGGG&.&7FOO%D>..0088cBBF
sA
A%$A%c.t|jddSNrFrrrs r(rz"partialmethod.__isabstractmethod__ty"8%@@@r+rY)
rrrrrlrrrpropertyrclassmethodr__class_getitem__rr+r(rr[s%%%&	7	7	7&AAXA$L11r+rcht|tr|j}t|t|SrY)rrrrs r(_unwrap_partialrs4
T7
#
#yT7
#
#Kr+	CacheInfo)hitsmissesmaxsizecurrsizec&eZdZdZdZefdZdZdS)
_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.

    	hashvaluec4||dd<|||_dSrYr)r2tuphashs   r(rlz_HashedSeq.__init__s"QQQcr+c|jSrYrrs r(ryz_HashedSeq.__hash__s
~r+N)rrrrrxrrlryrr+r(rrsKI!%####r+rcV|}|r!||z
}|D]}	||	z
}|rI||fd|Dz
}|r,||fd|Dz
}n*||dkr|d|vr|dSt|S)aMake 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.

    c3.K|]}|VdSrYrr[rr.s  r(rz_make_key.<locals>.<genexpr>s+++TT!WW++++++r+c3.K|]}|VdSrYrrs  r(rz_make_key.<locals>.<genexpr>s+88Qa888888r+r)rvaluesr)
rrtypedkwd_mark	fasttypesrr.rkeyitems
      `   r(	_make_keyrs$CxJJLL		D4KCCuu++++d++++++	9558888$++--888888C	SQ44A<<9441v
c??r+Fc*ttr	dkrdnltrLttr7dc}t	|t
}fd|_t||Stdfd}|S)aLeast-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)

    rrcdSNrrrrsr(<lambda>zlru_cache.<locals>.<lambda>%,P,Pr+Nz=Expected first argument to be an integer, a callable, or Nonecht|t}fd|_t||S)NcdSrrrsr(rz8lru_cache.<locals>.decorating_function.<locals>.<lambda>rr+)_lru_cache_wrapper
_CacheInfocache_parametersr)
user_functionr"rrs  r(decorating_functionz&lru_cache.<locals>.decorating_functions:$]GUJOO#P#P#P#P#P g}555r+)	rintrboolrrrrr)rrrr"rs``   r(r	r	s2'3MQ;;G	'		Mz%66M!(#
w$]GUJOO#P#P#P#P#P g}555		KMM	M666666
r+ch	

ttd\	
idxdjj
t	gddgdd<dkrfd}n#
fd}n	

fd}
fd}fd}||_||_|S)	N)rrrFc"dz
|i|}|SNrr)rrrrrs   r(r"z#_lru_cache_wrapper.<locals>.wrappers'
aKF"]D1D11FMr+ct||
}|	}|	urdz
|Sdz
|i|}||<|Srr)rrrrr	cache_getrmake_keyrsentinelrrs    r(r"z#_lru_cache_wrapper.<locals>.wrapper'sm(4u--CYsH--FX%%	
aKF"]D1D11FE#JMr+c||}5|}|@|\}}}}||
<||<}|x|
<<||<|
<dz
|cdddSdz
dddn#1swxYwY|i|}5|vrndr7}	||	<||	<|	
}
}dx<<|
=|	|<n+}|||g}|x|
<x<|<kdddn#1swxYwY|Srr)rrrlink	link_prev	link_next_keyrlastoldrootoldkey	oldresultKEYNEXTPREVRESULTrr	cache_lenfullrlockrrrrcrrs            r(r"z#_lru_cache_wrapper.<locals>.wrapper6sB(4u--C



 y~~#9=6Iy$&/IdO&/IdO:D.22DJd!%DJ!%DJAID!















!





























#]D1D11F#
4#
4%<<
4"G#&GCL&,GFO#4=D!#YF $VI/33DIVf
")E#JJ :D $V4D;??DJ?deCj&IKK72DG#
4#
4#
4#
4#
4#
4#
4#
4#
4#
4#
4#
4#
4#
4#
4HMs+AA0A00A47A4A*C;;C?C?ch5cdddS#1swxYwYdS)zReport cache statisticsNr)rrrrrrsr(
cache_infoz&_lru_cache_wrapper.<locals>.cache_infoos
	B	B:dFGYY[[AA	B	B	B	B	B	B	B	B	B	B	B	B	B	B	B	B	B	Bs'++c5ddgdd<dxdddddS#1swxYwYdS)z$Clear the cache and cache statisticsNrF)clear)rrrrrrcsr(cache_clearz'_lru_cache_wrapper.<locals>.cache_clearts		KKMMMT4.DGD6D																			s&7;;)rZrr__len__rrr)rrrrr"rrrrrrrrrrrrrrrcrs````   @@@@@@@@@@@@@@r(rr
sxxHH(D$VED6D	I
I77D
DT4&DG!||							
													7	7	7	7	7	7	7	7	7	7	7	7	7	7	7	7	7	7	7	7	rBBBBBBBBBB
$G%GNr+)rc4td|S)z@Simple lightweight unbounded cache.  Sometimes called "memoize".N)r)r	)rs r(rrs"9T"""=111r+cg}	d|D}|s|S|D]!}|d}|D]}||ddvrd}nn"|td|||D]}|d|kr|d=o)zMerges MROs in *sequences* to a single MRO using the C3 algorithm.

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

    Tcg|]}||Srr)r[ss  r(
<listcomp>z_c3_merge.<locals>.<listcomp>s///1Q/Q///r+rrNzInconsistent hierarchy)RuntimeErrorappend)	sequencesrs1	candidates2seqs      r(	_c3_merger)sF//	///		M		B1I

122&& $IE'7888

i   		C1v""F%r+Nc
tt|jD].\}
t
drt	|j|z
}n/d}rtngt|jd|}g}t|j|d}D]G
t
|
r5t
fd|jDs|
H|D]
	
fd|D}fd|D}fd|D}	t|gg|z|z|	z|gz|gz|gzS)aComputes 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__rNc38K|]}t|VdSrY)
issubclass)r[bbases  r(rz_c3_mro.<locals>.<genexpr>s>--()
1d##------r+c2g|]}t|Sabcs_c3_mror[r/r3s  r(r!z_c3_mro.<locals>.<listcomp>&LLLT4000LLLr+c2g|]}t|Sr1r4r6s  r(r!z_c3_mro.<locals>.<listcomp>r7r+c2g|]}t|Sr1r4r6s  r(r!z_c3_mro.<locals>.<listcomp>s&FFF$WT---FFFr+)	enumeratereversed	__bases__rrlistr-anyr#remover))r]r3iboundaryexplicit_basesabstract_basesother_basesexplicit_c3_mrosabstract_c3_mros
other_c3_mrosr/s `        @r(r5r5s"Xcm445544.//	3=))A-HE	%4:::2D#-		233NNs}XYY/00K((c4  	(-----0]---**	(

!!$'''DLLLL^LLLLLLL^LLLFFFF+FFFM

	+	,.;	<		*+	,/:m	<r+c&	
tjfdfdDfd		fdDt
g}D]}g}|D]<}|vr6t|r&|
fd|jD=|s||m|td|D] }|D]}||vr||!t|S)	zCalculates 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.

    cx|vo5t|do%t|tot|S)N__mro__)rrrr-)typbasesr]s r(
is_relatedz _compose_mro.<locals>.is_relatedsH5 :WS)%<%<:)3C)F)F%F:%/S%9%9	;r+c*g|]}|
|Srr)r[nrMs  r(r!z _compose_mro.<locals>.<listcomp>s&///1A/Q///r+c6D]}||kr||jvrdSdS)NTF)rJ)rKr3typess  r(is_strict_basez$_compose_mro.<locals>.is_strict_bases4		Ee||u} 4 4ttur+c*g|]}|
|Srr)r[rOrRs  r(r!z _compose_mro.<locals>.<listcomp>s(7771^^A%6%67Q777r+cg|]}|v|	Srr)r[r type_sets  r(r!z _compose_mro.<locals>.<listcomp>sFFFAX

a


r+T)rreverser2)setrJ__subclasses__r-r#sortrr5)r]rQmrorKfoundsubsubclsrLrMrRrUs``     @@@@r(_compose_mror^s
E;;;;;;
0//////E

8777777E5zzH
C
'
'%%''	H	HC%JsC$8$8FFFFFFFGGG	JJsOOO

sD
)))	'	'C
'
'$$JJv&&&
'	'3S!!!!r+c$t||}d}|D]U}|K||vrE||jvr<||jvr3t||s#t	d||n||vr|}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.

    NzAmbiguous dispatch: {} or {})r^keysrJr-r"rr)r]registryrZmatchts     r(
_find_implrdssHMMOO
,
,CE
X

!3;"6"6"'s{":":&0&:&:#;"#A#H#H1$$E==E<<r+cZ	
ddlddl}i
|d
fdfdfdd
	
fd		fd}t|dd	|
t<	|_|_
|_j	|_
t|||S)akSingle-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.
    rNc*t}|kr|	|}n?#t$r2	|}n #t$rt|}YnwxYw||<YnwxYw|S)zgeneric_func.dispatch(cls) -> <function implementation>

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

        )rrKeyErrorrd)r]
current_tokenimplcache_tokendispatch_cacheras   r(dispatchz singledispatch.<locals>.dispatch2s"+--Mm++$$&&&+	'!#&DD	'	'	'
1}
1
1
1!#x00
1"&N3	's38
A4AA4A)&A4(A))A43A4c<ddlm}m}|||jhvS)Nr)
get_originUnion)typingrnro	UnionType)r]rnrorQs   r(_is_union_typez&singledispatch.<locals>._is_union_typeIs5,,,,,,,,z#5%/":::r+ct|trdSddlm}|o!t	d||DS)NTrget_argsc3@K|]}t|tVdSrY)rr.)r[args  r(rzBsingledispatch.<locals>._is_valid_dispatch_type.<locals>.<genexpr>Rs,CCcJsD))CCCCCCr+)rr.rpruall)r]rurrs  r(_is_valid_dispatch_typez/singledispatch.<locals>._is_valid_dispatch_typeMsgc4  	4######s##DCCXXc]]CCCCC	Er+clr	|fdSn|tddtdi}|stdd}dd	lm}t	t||\}s7rtd
|ddtd
|dd
rddlm}|D]}||<n|<	tdrt	

|S)zgeneric_func.register(cls, func) -> func

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

        Nc|SrYr)fr]registers r(rz2singledispatch.<locals>.register.<locals>.<lambda>]s#q!1!1r+z(Invalid first argument to `register()`. z is not a class or union type.rz(Invalid first argument to `register()`: zS. Use either `@register(some_class)` or plain `@register` on an annotated function.r)get_type_hintszInvalid annotation for z. z not all arguments are classes.z is not a class.rtr+)rrrpr~r~r|rrurrr)
r]rannr~argnamerurwrrryrjrkr}ras
`      r(r}z singledispatch.<locals>.registerTs#"3''	|111111====#0"55C
1s111
D
.-----^^D%9%9%?%?%A%A B BCCLGS**3//

!>#&&	#B'BBBBB
$3'33333
>#	!''''''x}}
%
% $


%!HSM730E#F#F)++Kr+cd|std|dj|i|S)Nz( requires at least 1 positional argumentr)rr)rkwrlfuncnames  r(r"zsingledispatch.<locals>.wrappersV	5x44455
5+xxQ)**D7B777r+rzsingledispatch functionrY)rQweakrefWeakKeyDictionaryrrZr}rlMappingProxyTyperar_clear_cacher)rrr"rrryrjrlrkrr}rarQs   @@@@@@@@@r(r
r
 sTH..00NK.;;;;;EEEEE22222222222h888888tZ)BCCHHVGG--h77G)/G7D!!!Nr+c>eZdZdZdZddZddZedZdS)rzSingle-dispatch generic method descriptor.

    Supports wrapping existing descriptors and handles non-descriptor
    callables as instance methods.
    ct|s"t|dst|dt||_||_dS)Nrz  is not callable or a descriptor)rrrr

dispatcherrr2rs  r(rlzsingledispatchmethod.__init__sT~~	IgdI&>&>	ItGGGHHH(..			r+Nc:|j||S)zgeneric_method.register(cls, func) -> func

        Registers a new implementation for the given *cls* on a *generic_method*.
        r)rr})r2r]methods   r(r}zsingledispatchmethod.registers
''&'999r+ctfd}j|_j|_t|j|S)Ncj|dj}||i|Srn)rrlrr)rkwargsrr]rir2s   r(rz-singledispatchmethod.__get__.<locals>._methodsB_--d1g.?@@F+6>>#s++T<V<<<r+)rr}rr)r2rir]rs``` r(rzsingledispatchmethod.__get__sV	=	=	=	=	=	=	=(,'@$=w	***r+c.t|jddSrrrs r(rz)singledispatchmethod.__isabstractmethod__rr+rY)	rrrrrlr}rrrrr+r(rrsu::::AAXAAAr+rc8eZdZdZdZddZeeZdS)rc`||_d|_|j|_t|_dSrY)rattrnamerrrrs  r(rlzcached_property.__init__s(	
|GG			r+cr|j	||_dS||jkrtd|jd|ddS)Nz?Cannot assign the same cached_property to two different names (z and z).)rr)r2ownernames   r(__set_name__zcached_property.__set_name__sb=  DMMM
T]
"
"5M55*.555
#
"r+Nch||S|jtd	|j}n>#t$r1dt	|jd|jd}t|dwxYw||jt}|tur|j5||jt}|tur_|	|}	|||j<n>#t$r1dt	|jd|jd}t|dwxYwdddn#1swxYwY|S)NzGCannot use cached_property instance without calling __set_name__ on it.zNo '__dict__' attribute on z instance to cache z
 property.zThe '__dict__' attribute on z7 instance does not support item assignment for caching )
rrrrr.rr
_NOT_FOUNDrr)r2instancerrmsgvals      r(rzcached_property.__get__sK= Y[[
[	+%EE	+	+	+Ad8nn.EAA%)]AAA
C..d*	+ii
z22*
7
7ii
z::*$$))H--C7/2dm,,$777h4>>;RhhLPMhhh(nn$67
7
7
7
7
7
7
7
7
7
7
7
7
7
7
7
s3$;A?D'
CD';DD''D+.D+rY)	rrrrlrrrrrrr+r(rrsT>$L11r+r)rFrY);r__all__abcrcollectionsrreprlibr_threadrrQrrrrrr5r8r;r@rCrFrJrLrNrRrTrVr_rr
_functoolsImportErrorrZr}r
rrrrr=rrstrrr.rrr	rrr)r5r^rdr
rrrrr+r(<module>rs
 """"""""""""*2,>)#77770+++&&&***'''+++&&&***'''+&+&+&(+&+&+&(+&+&+&(+&+&+&(

$


&	%%%%%%%			D	688'78	!!!!!!!			D	????????B	"""""""			D	E2E2E2E2E2FE2E2E2TZ%N%N%N
O
O
" st>,,,,\rrrh	-------			D	2226++++Z("("("T4vvvt!A!A!A!A!A!A!A!APVXX
/2/2/2/2/2/2/2/2/2/2sHBBB-B44B<;B<
CCC(D//D76D7