Your IP : 13.58.32.115


Current Path : /opt/alt/python310/lib64/python3.10/collections/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/collections/__pycache__/__init__.cpython-310.opt-2.pyc

o

6��f���@s	gd�ZddlZddlZddlmZddlmZddlm	Z
ddlmZ
ddlmZddlmZdd	lmZdd
lmZzddlmZWn	eyNYnwej�e�zddlmZWn	eyfYnwGd
d�dej�Z Gdd�dej!�Z"Gdd�dej#�Z$Gdd�de%�Z&Gdd�de'�Z(zddlm(Z(Wn	ey�Ynwzddlm)Z)Wn
ey�dd�Z)Ynwdddd�dd�Z*dd �Z+zdd!lm+Z+Wn	ey�YnwGd"d#�d#e'�Z,Gd$d%�d%ej-�Z.Gd&d'�d'ej-�Z/Gd(d)�d)ej�Z0Gd*d+�d+ej1�Z2dS),)	�ChainMap�Counter�OrderedDict�UserDict�UserList�
UserString�defaultdict�deque�
namedtuple�N)�chain)�repeat)�starmap)�	iskeyword)�eq)�
itemgetter)�recursive_repr)�proxy)r)rc@�eZdZdd�ZdS)�_OrderedDictKeysViewccs�t|j�EdHdS�N��reversed�_mapping��self�r�;/opt/alt/python310/lib64/python3.10/collections/__init__.py�__reversed__<s�z!_OrderedDictKeysView.__reversed__N��__name__�
__module__�__qualname__rrrrrr:�rc@r)�_OrderedDictItemsViewccs&�t|j�D]
}||j|fVqdSrr�r�keyrrrrAs��z"_OrderedDictItemsView.__reversed__Nrrrrrr#?r"r#c@r)�_OrderedDictValuesViewccs"�t|j�D]}|j|VqdSrrr$rrrrGs��z#_OrderedDictValuesView.__reversed__Nrrrrrr&Er"r&c@seZdZdZdS)�_Link)�prev�nextr%�__weakref__N)rr r!�	__slots__rrrrr'Ksr'c@seZdZ	d0dd�Zejeefdd�Zejfdd�Zdd	�Z	d
d�Z
dd
�Zd1dd�Zd1dd�Z
dd�ZejjZZdd�Zdd�Zdd�ZejjZe�Zefdd�Zd2dd�Ze�d d!��Zd"d#�Zd$d%�Zed2d&d'��Z d(d)�Z!d*d+�Z"d,d-�Z#d.d/�Z$dS)3rrcKs`	z|jWnty$t�|_t|j�|_}||_|_i|_Ynw|j|fi|��dSr)	�_OrderedDict__root�AttributeErrorr'�_OrderedDict__hardroot�_proxyr(r)�_OrderedDict__map�_OrderedDict__update)r�other�kwds�rootrrr�__init__]s

�zOrderedDict.__init__c	Cs\	||vr&|�|j|<}|j}|j}||||_|_|_||_||�|_||||�dSr)r0r,r(r)r%)	rr%�valueZdict_setitemrZLink�linkr4�lastrrr�__setitem__js
zOrderedDict.__setitem__cCs@	|||�|j�|�}|j}|j}||_||_d|_d|_dSr)r0�popr(r))rr%Zdict_delitemr7�	link_prev�	link_nextrrr�__delitem__xs

zOrderedDict.__delitem__cc�6�	|j}|j}||ur|jV|j}||usdSdSr)r,r)r%�rr4Zcurrrrr�__iter__����zOrderedDict.__iter__ccr>r)r,r(r%r?rrrr�rAzOrderedDict.__reversed__cCs,	|j}||_|_|j��t�|�dSr)r,r(r)r0�clear�dict)rr4rrrrB�s

zOrderedDict.clearTcCsl	|std��|j}|r|j}|j}||_||_n|j}|j}||_||_|j}|j|=t�||�}||fS)Nzdictionary is empty)�KeyErrorr,r(r)r%r0rCr:)rr8r4r7r;r<r%r6rrr�popitem�s"zOrderedDict.popitemc	Csx	|j|}|j}|j}|j}||_||_|j}|r+|j}||_||_||_||_dS|j}||_||_||_||_dSr)r0r(r)r,)	rr%r8r7r;r<Z	soft_linkr4�firstrrr�move_to_end�s&


zOrderedDict.move_to_endcCsVtj}t|�d}||j�}|||j�d7}|||j�|7}|||j�|7}|S)N��)�_sys�	getsizeof�len�__dict__r0r.r,)rZsizeof�n�sizerrr�
__sizeof__�s
zOrderedDict.__sizeof__cC�
	t|�Sr)rrrrr�keys��zOrderedDict.keyscCrQr)r#rrrr�items�rSzOrderedDict.itemscCrQr)r&rrrr�values�rSzOrderedDict.valuescCs2	||vr||}||=|S||jurt|��|Sr)�_OrderedDict__markerrD)rr%�default�resultrrrr:�s
zOrderedDict.popNcCs	||vr	||S|||<|Srr�rr%rWrrr�
setdefault�s
zOrderedDict.setdefaultcCs,	|s
d|jjfSd|jjt|���fS)Nz%s()z%s(%r))�	__class__r�listrTrrrr�__repr__szOrderedDict.__repr__cCsF	t|���}tt��D]}|�|d�q|jd|pddt|���fS)Nr)�vars�copyrr:r[�iterrT)rZ	inst_dict�krrr�
__reduce__s
zOrderedDict.__reduce__cC�	|�|�Sr�r[rrrrr_�
zOrderedDict.copycCs	|�}|D]}|||<q|Srr)�cls�iterabler6rr%rrr�fromkeyss

zOrderedDict.fromkeyscCs4	t|t�rt�||�ottt||��St�||�Sr)�
isinstancerrC�__eq__�all�map�_eq�rr2rrrrjs
zOrderedDict.__eq__cCs|�|�|Sr)�updaternrrr�__ior__%s
zOrderedDict.__ior__cCs&t|t�stS|�|�}|�|�|Sr�rirC�NotImplementedr[ro�rr2�newrrr�__or__)�



zOrderedDict.__or__cCs&t|t�stS|�|�}|�|�|Srrqrsrrr�__ror__0rvzOrderedDict.__ror__)r)Tr)%rr r!r5rCr9r/r'r=r@rrBrErGrP�_collections_abc�MutableMappingror1rRrTrU�__ne__�objectrVr:rZ�_recursive_reprr]rbr_�classmethodrhrjrprurwrrrrrNs<

�
		

	


	r)r)�_tuplegettercCstt|�|d�S)N)�doc)�property�_itemgetter)�indexrrrr�<lambda>Fsr�F)�rename�defaults�modulecs�	t�t�r��dd����ttt����t�t|��}|rGt�}t	��D]!\}}|�
�r:t|�s:|�d�s:||vrAd|���|<|�
|�q%|g�D]"}t|�turXtd��|�
�sctd|����t|�rntd|����qLt�}�D] }|�d�r�|s�td|����||vr�td|����|�
|�qti}|dur�t|�}t|�t��kr�td	��ttttt��t|�����}tttj����t���d
���}	�dkr�|	d7}	dd
�d
d��D��d�tj�tttttf\������id|��d�}
d|	�d|	�d�}t||
�}d|_d|�d|	�d�|_|du�r||_t���fdd��}
d|�d�|
j_��fdd�}d|�d�|_�fdd �}��fd!d"�}�fd#d$�}||
j||||fD]}|�d%|j��|_�qX|�d|	�d�d&�|||
||||�d'�}t	��D]\}}t�d(|���}t||�||<�q}t|tf|�}|du�r�zt� d�j!�"d)d*�}Wnt#tf�y�Ynw|du�r�||_$|S)+N�,� �_z*Type names and field names must be stringsz6Type names and field names must be valid identifiers: z0Type names and field names cannot be a keyword: z-Field names cannot start with an underscore: z"Encountered duplicate field name: z(Got more default values than field names�, rH�(css�|]}|�d�VqdS)z=%rNr)�.0�namerrr�	<genexpr>�s�znamedtuple.<locals>.<genexpr>�)�namedtuple_)�
_tuple_new�__builtins__rz
lambda _cls, z: _tuple_new(_cls, (z))�__new__zCreate new instance of cs2�||�}�|��krtd��dt|�����|S)Nz	Expected z arguments, got )�	TypeErrorrL)rfrgrX)�_len�
num_fields�	tuple_newrr�_make�s
znamedtuple.<locals>._makezMake a new z# object from a sequence or iterablecs.|��|j�|��}|rtdt|�����|S)NzGot unexpected field names: )r�r:�
ValueErrorr\)rr3rX)�_map�field_namesrr�_replace�sznamedtuple.<locals>._replacez
Return a new z2 object replacing specified fields with new valuescs	|jj�|Sr)r[rr)�repr_fmtrrr]��znamedtuple.<locals>.__repr__cs	��|j|��Sr)�_fieldsr)�_dict�_ziprr�_asdict�r�znamedtuple.<locals>._asdictcs
	�|�Srrr)�_tuplerr�__getnewargs__�rSz"namedtuple.<locals>.__getnewargs__�.r)�__doc__r+r��_field_defaultsr�r�r�r]r�r��__match_args__zAlias for field number r�__main__)%ri�str�replace�splitr\rlrJ�intern�set�	enumerate�isidentifier�
_iskeyword�
startswith�add�typer�r��tuplerLrCr�zip�joinr��evalrr��__defaults__r}�__func__r!r~�	_getframe�	f_globals�getr-r )�typenamer�r�r�r��seenr�r��field_defaults�arg_list�	namespace�coder�r�r�r]r�r��method�class_namespacerrXr)	r�r�r�r�r�r�r�r�r�rr	Hs�
������
�
�

��

�
r	cCs(	|j}|D]}||d�d||<qdS�Nr
rH)r�)�mappingrgZmapping_get�elemrrr�_count_elements�s
�r�)r�cseZdZ	d<�fdd�	Zdd�Zdd�Zd<dd	�Zd
d�Zed<dd
��Z	d<�fdd�	Z
d<dd�Zdd�Zdd�Z
�fdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:d;�Z �Z!S)=rNcs"	t���|j|fi|��dSr)�superr5ro)rrgr3rdrrr55s

zCounter.__init__cCs	dS�Nr
rr$rrr�__missing__CszCounter.__missing__cCs	t|���Sr)�sumrUrrrr�totalHsz
Counter.totalcCs@	|durt|��td�dd�Sddl}|j||��td�d�S)NrHT)r%�reverser
�r%)�sortedrTr��heapq�nlargest)rrNr�rrr�most_commonLs
zCounter.most_commoncCs	t�tt|����Sr)�_chain�
from_iterable�_starmap�_repeatrTrrrr�elements\szCounter.elementscCstd��)Nz@Counter.fromkeys() is undefined.  Use Counter(iterable) instead.)�NotImplementedError)rfrg�vrrrrhts	�zCounter.fromkeyscst	|dur/t|tj�r*|r#|j}|��D]
\}}|||d�||<qnt��|�nt||�|r8|�|�dSdSr�)rirx�Mappingr�rTr�ror��rrgr3�self_getr��countrdrrro�s�
�zCounter.updatecKst	|dur/|j}t|tj�r!|��D]
\}}||d�|||<qn|D]}||d�d||<q#|r8|�|�dSdSr�)r�rirxr�rT�subtractr�rrrr��s��zCounter.subtractcCrcrrdrrrrr_�rezCounter.copycCs|jt|�ffSr)r[rCrrrrrb��zCounter.__reduce__cs	||vr
t��|�dSdSr)r�r=)rr�rdrrr=�s�zCounter.__delitem__c�,	t�t�stSt��fdd���fD��S)Nc3s*�|]}|D]}�|�|kVqqdSrr�r��c�e�r2rrrr����(z!Counter.__eq__.<locals>.<genexpr>�rirrrrkrnrr�rrj��
zCounter.__eq__cCs	t|t�stS||kSr�rirrrrnrrrrz�s

zCounter.__ne__cr�)Nc3s*�|]}|D]}�|�|kVqqdSrrr�r�rrr��r�z!Counter.__le__.<locals>.<genexpr>r�rnrr�r�__le__�r�zCounter.__le__cCs 	t|t�stS||ko||kSrr�rnrrr�__lt__��
zCounter.__lt__cr�)Nc3s*�|]}|D]}�|�|kVqqdSrrr�r�rrr��r�z!Counter.__ge__.<locals>.<genexpr>r�rnrr�r�__ge__�r�zCounter.__ge__cCs 	t|t�stS||ko||kSrr�rnrrr�__gt__�r�zCounter.__gt__cCsR|s	|jj�d�Szt|���}Wn
tyt|�}Ynw|jj�d|�d�S)Nz()r�r�)r[rrCr�r�)r�drrrr]�s�zCounter.__repr__cCsr	t|t�stSt�}|��D]\}}|||}|dkr!|||<q|��D]\}}||vr6|dkr6|||<q&|Sr��rirrrrT�rr2rXr�r��newcountrrr�__add__s
��zCounter.__add__cCsv	t|t�stSt�}|��D]\}}|||}|dkr!|||<q|��D]\}}||vr8|dkr8d|||<q&|Sr�r�r�rrr�__sub__-s
��zCounter.__sub__cCs~	t|t�stSt�}|��D]\}}||}||kr|n|}|dkr'|||<q|��D]\}}||vr<|dkr<|||<q,|Sr�r��rr2rXr�r��other_countr�rrrru@s
��zCounter.__or__cCsT	t|t�stSt�}|��D]\}}||}||kr|n|}|dkr'|||<q|Sr�r�r�rrr�__and__Ts
�zCounter.__and__cCs.	t�}|��D]\}}|dkr|||<q|Sr��rrT�rrXr�r�rrr�__pos__es�zCounter.__pos__cCs2	t�}|��D]\}}|dkrd|||<q|Sr�r�r�rrr�__neg__ms�zCounter.__neg__cCs(	dd�|��D�}|D]}||=q|S)NcSsg|]
\}}|dks|�qS)r
r)r�r�r�rrr�
<listcomp>zsz*Counter._keep_positive.<locals>.<listcomp>)rT)r�nonpositiver�rrr�_keep_positivexs
zCounter._keep_positivecCs,	|��D]\}}|||7<q|��Sr�rTr��rr2r�r�rrr�__iadd__�zCounter.__iadd__cCs,	|��D]\}}|||8<q|��Srrrrrr�__isub__�rzCounter.__isub__cCs4	|��D]\}}||}||kr|||<q|��Srr)rr2r�r�r�rrrrp���zCounter.__ior__cCs4	|��D]\}}||}||kr|||<q|��Srr)rr2r�r�r�rrr�__iand__�rzCounter.__iand__r)"rr r!r5r�r�r�r�r}rhror�r_rbr=rjrzr�r�r�r�r]r�r�rur�r�r�r�rrrpr�
__classcell__rrrdrrs@2

"-

rc@s�eZdZ	dd�Zdd�Zdd�Zd,dd	�Zd
d�Zdd
�Zdd�Z	dd�Z
e�dd��Ze
dd��Zdd�ZeZd,dd�Zedd��Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�ZdS)-rcGs	t|�pig|_dSr)r\�maps)rrrrrr5�szChainMap.__init__cCst|��r)rDr$rrrr��szChainMap.__missing__c	Cs6|jD]}z||WStyYqw|�|�Sr)rrDr�)rr%r�rrr�__getitem__�s
�
zChainMap.__getitem__NcCs||vr||S|SrrrYrrrr���zChainMap.getcCstt�j|j��Sr)rLr��unionrrrrr�__len__��zChainMap.__len__cCs,i}t|j�D]
}|�t�|��qt|�Sr)rrrorCrhr`)rr�r�rrrr@�szChainMap.__iter__cst�fdd�|jD��S)Nc3s�|]}�|vVqdSrr)r��mr�rrr��s�z(ChainMap.__contains__.<locals>.<genexpr>��anyrr$rr�r�__contains__�szChainMap.__contains__cC�
t|j�Srrrrrr�__bool__��
zChainMap.__bool__cCs"|jj�dd�tt|j���d�S)Nr�r�r�)r[rr�rl�reprrrrrrr]�s"zChainMap.__repr__cGs	|tj|g|�R��Sr)rCrh)rfrg�argsrrrrh�szChainMap.fromkeyscCs(	|j|jd��g|jdd��R�Sr�)r[rr_rrrrr_�s&z
ChainMap.copycKs2	|dur|}n|r|�|�|j|g|j�R�Sr)ror[r)rr�kwargsrrr�	new_child�s
zChainMap.new_childcCs	|j|jdd��S)NrH)r[rrrrr�parentsszChainMap.parentscCs||jd|<dSr�)r)rr%r6rrrr9
r
zChainMap.__setitem__cCs0z	|jd|=WdStytd|����w�Nr
z$Key not found in the first mapping: )rrDr$rrrr=s
�zChainMap.__delitem__cCs*	z|jd��WStytd��w)Nr
z#No keys found in the first mapping.)rrErDrrrrrEs�zChainMap.popitemcGs:	z
|jdj|g|�R�WStytd|����wr)rr:rD)rr%rrrrr:s�zChainMap.popcCs	|jd��dSr�)rrBrrrrrB$szChainMap.clearcCs|jd�|�|Sr�)rrornrrrrp(szChainMap.__ior__cCs,t|tj�stS|��}|jd�|�|Sr�)rirxr�rrr_rro)rr2rrrrru,s
zChainMap.__or__cCs<t|tj�stSt|�}t|j�D]}|�|�q|�|�Sr)	rirxr�rrrCrrror[)rr2r�childrrrrw3s
zChainMap.__ror__r)rr r!r5r�r	r�rr@rrr|r]r}rhr_�__copy__rr�rr9r=rEr:rBrprurwrrrrr�s6





rc@s�eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zeddd��ZdS)rNcKs.i|_|dur|�|�|r|�|�dSdSr)�dataro)rrCrrrrr5Cs
�zUserDict.__init__cCrr�rLrrrrrrJrzUserDict.__len__cCs6||jvr
|j|St|jd�r|j�||�St|��)Nr�)r�hasattrr[r�rDr$rrrr	Ms


zUserDict.__getitem__cC�||j|<dSr�r)rr%�itemrrrr9T�zUserDict.__setitem__cC�|j|=dSrr!r$rrrr=W�zUserDict.__delitem__cCrr)r`rrrrrr@ZrzUserDict.__iter__cC�
||jvSrr!r$rrrr^rzUserDict.__contains__cCrr�rrrrrrr]brzUserDict.__repr__cCs:t|t�r|�|j|jB�St|t�r|�|j|B�StSr�rirr[rrCrrrnrrrrue�


zUserDict.__or__cCs:t|t�r|�|j|jB�St|t�r|�||jB�StSrr(rnrrrrwlr)zUserDict.__ror__cCs0t|t�r|j|jO_|S|j|O_|Sr)rirrrnrrrrpss

�zUserDict.__ior__cCs4|j�|j�}|j�|j�|jd��|jd<|S�Nr)r[r�rMror_�r�instrrrrzszUserDict.__copy__cCsX|jturt|j���Sddl}|j}z
i|_|�|�}W||_n||_w|�|�|Sr�)r[rrr_ro)rr_rr�rrrr_�s

z
UserDict.copycCs|�}|D]}|||<q|Srr)rfrgr6r�r%rrrrh�s
zUserDict.fromkeysr)rr r!r5rr	r9r=r@rr]rurwrprr_r}rhrrrrr@s 

rc@seZdZ	d?dd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�ZeZd$d%�Zd&d'�Zd(d)�Zd*d+�Zd@d-d.�Zd/d0�Zd1d2�Zd3d4�Zd5d6�Zd7d8�Zd9d:�Zd;d<�Z d=d>�Z!dS)ArNcCsjg|_|dur3t|�t|j�kr||jdd�<dSt|t�r,|jdd�|jdd�<dSt|�|_dSdSr)rr�rirr\)r�initlistrrrr5�s
�zUserList.__init__cCrrr'rrrrr]�rzUserList.__repr__cCs|j|�|�kSr�r�_UserList__castrnrrrr��r�zUserList.__lt__cCs|j|�|�kSrr.rnrrrr��r�zUserList.__le__cCs|j|�|�kSrr.rnrrrrj�r�zUserList.__eq__cCs|j|�|�kSrr.rnrrrr��r�zUserList.__gt__cCs|j|�|�kSrr.rnrrrr��r�zUserList.__ge__cCst|t�r|jS|Sr)rirrrnrrr�__cast�r
zUserList.__castcCr&rr!�rr"rrrr�rzUserList.__contains__cCrrrrrrrr�rzUserList.__len__cCs$t|t�r
|�|j|�S|j|Sr)ri�slicer[r�r�irrrr	�s

zUserList.__getitem__cCr rr!�rr4r"rrrr9�r#zUserList.__setitem__cCr$rr!r3rrrr=�r%zUserList.__delitem__cCsPt|t�r|�|j|j�St|t|j��r|�|j|�S|�|jt|��Sr�rirr[rr�r\rnrrrr���

zUserList.__add__cCsPt|t�r|�|j|j�St|t|j��r|�||j�S|�t|�|j�Srr6rnrrr�__radd__�r7zUserList.__radd__cCsVt|t�r|j|j7_|St|t|j��r |j|7_|S|jt|�7_|Sr)rirrr�r\rnrrrr�s
��zUserList.__iadd__cC�|�|j|�Sr�r[r�rrNrrr�__mul__�r�zUserList.__mul__cCs|j|9_|Srr!r;rrr�__imul__�szUserList.__imul__cCs8|j�|j�}|j�|j�|jddd�|jd<|Sr*)r[r�rMror+rrrr�szUserList.__copy__cC�|j�|�dSr)r�appendr1rrrr?�r�zUserList.appendcCs|j�||�dSr)r�insertr5rrrr@�r
zUserList.insert���cC�|j�|�Sr)rr:r3rrrr:�r%zUserList.popcCr>r)r�remover1rrrrC�r�zUserList.removecC�|j��dSr)rrBrrrrrBr#zUserList.clearcCs
|�|�Srrdrrrrr_rz
UserList.copycCrBr)rr�r1rrrr�r%zUserList.countcGs|jj|g|�R�Sr�rr�)rr"rrrrr�r
zUserList.indexcCrDr)rr�rrrrr�r#zUserList.reversecOs|jj|i|��dSr)r�sort�rrr3rrrrFsz
UserList.sortcCs,t|t�r|j�|j�dS|j�|�dSr)rirr�extendrnrrrrHs
zUserList.extendr�rA)"rr r!r5r]r�r�rjr�r�r/rrr	r9r=r�r8rr<�__rmul__r=rr?r@r:rCrBr_r�r�r�rFrHrrrrr�sB
	
rc@sxeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�ZeZd'd(�Zd)d*�Zd+d,�Zd-d.�Zd/d0�Zd1ejfd2d3�Zd4d5�Zd6d7�Z d�d:d;�Z!d1ejfd<d=�Z"d�d?d@�Z#d1ejfdAdB�Z$dCdD�Z%dEdF�Z&d1ejfdGdH�Z'dIdJ�Z(dKdL�Z)dMdN�Z*dOdP�Z+dQdR�Z,dSdT�Z-dUdV�Z.dWdX�Z/dYdZ�Z0d[d\�Z1d]d^�Z2d_d`�Z3dadb�Z4dcdd�Z5dedf�Z6d�dhdi�Z7e8j9Z9djdk�Z:d�dmdn�Z;d1ejfdodp�Z<d1ejfdqdr�Z=dsdt�Z>dudv�Z?d�dwdx�Z@d�dydz�ZAd�d{d|�ZBd�d~d�ZCd1ejfd�d��ZDd�d�d��ZEd�d��ZFd�d��ZGd�d��ZHd�d��ZId�d��ZJdgS)�rcCs@t|t�r
||_dSt|t�r|jdd�|_dSt|�|_dSr)rir�rr�r�seqrrrr5!s



zUserString.__init__cCrr)r�rrrrr�__str__)rzUserString.__str__cCrrr'rrrrr],rzUserString.__repr__cCrr)�intrrrrr�__int__/rzUserString.__int__cCrr)�floatrrrrr�	__float__2rzUserString.__float__cCrr)�complexrrrrr�__complex__5rzUserString.__complex__cCrr)�hashrrrrr�__hash__8rzUserString.__hash__cCs|jdd�fSrr!rrrrr�;r�zUserString.__getnewargs__cCs t|t�r|j|jkS|j|kSr�rirr�r�stringrrrrj>�

zUserString.__eq__cCs t|t�r|j|jkS|j|kSrrVrWrrrr�CrYzUserString.__lt__cCs t|t�r|j|jkS|j|kSrrVrWrrrr�HrYzUserString.__le__cCs t|t�r|j|jkS|j|kSrrVrWrrrr�MrYzUserString.__gt__cCs t|t�r|j|jkS|j|kSrrVrWrrrr�RrYzUserString.__ge__cCst|t�r|j}||jvSrrV)r�charrrrrWs

zUserString.__contains__cCrrrrrrrr\rzUserString.__len__cCs|�|j|�Srr:)rr�rrrr	_r�zUserString.__getitem__cCsJt|t�r|�|j|j�St|t�r|�|j|�S|�|jt|��Sr)rirr[rr�rnrrrr�bs


zUserString.__add__cCs.t|t�r
|�||j�S|�t|�|j�Sr)rir�r[rrnrrrr8is
zUserString.__radd__cCr9rr:r;rrrr<nr�zUserString.__mul__cCs|�|j|�Srr:�rrrrr�__mod__sr�zUserString.__mod__cCs|�t|�|�Sr)r[r�)r�templaterrr�__rmod__vr
zUserString.__rmod__cC�|�|j���Sr)r[r�
capitalizerrrrr`zr�zUserString.capitalizecCr_r)r[r�casefoldrrrrra}r�zUserString.casefoldcG�|�|jj|g|�R��Sr)r[r�center�r�widthrrrrrc��zUserString.centerr
cC� t|t�r|j}|j�|||�Sr)rirrr��r�sub�start�endrrrr���
zUserString.countcC�"t|t�r|j}|�|j�|��Sr)rirrr[�removeprefix)r�prefixrrrrn��
zUserString.removeprefixcCrmr)rirrr[�removesuffix)r�suffixrrrrq�rpzUserString.removesuffix�utf-8�strictcCs.|durdn|}|durdn|}|j�||�S)Nrsrt)r�encode)r�encoding�errorsrrrru�szUserString.encodecC�|j�|||�Sr)r�endswith)rrrrjrkrrrry�r�zUserString.endswith�cC�|�|j�|��Sr)r[r�
expandtabs)r�tabsizerrrr|�r
zUserString.expandtabscCrgr)rirr�findrhrrrr~�rlzUserString.findcOs|jj|i|��Sr)r�formatrGrrrr�r
zUserString.formatcCrBr)r�
format_map)rr�rrrr��r%zUserString.format_mapcCrxrrErhrrrr��r�zUserString.indexcC�
|j��Sr)r�isalpharrrrr��rzUserString.isalphacCr�r)r�isalnumrrrrr��rzUserString.isalnumcCr�r)r�isasciirrrrr��rzUserString.isasciicCr�r)r�	isdecimalrrrrr��rzUserString.isdecimalcCr�r)r�isdigitrrrrr��rzUserString.isdigitcCr�r)rr�rrrrr��rzUserString.isidentifiercCr�r)r�islowerrrrrr��rzUserString.islowercCr�r)r�	isnumericrrrrr��rzUserString.isnumericcCr�r)r�isprintablerrrrr��rzUserString.isprintablecCr�r)r�isspacerrrrr��rzUserString.isspacecCr�r)r�istitlerrrrr��rzUserString.istitlecCr�r)r�isupperrrrrr��rzUserString.isuppercCrBr)rr�rKrrrr��r%zUserString.joincGrbr)r[r�ljustrdrrrr��rfzUserString.ljustcCr_r)r[r�lowerrrrrr��r�zUserString.lowerNcCr{r)r[r�lstrip�r�charsrrrr��r
zUserString.lstripcCrBr)r�	partition�r�seprrrr��r%zUserString.partitionrAcCs6t|t�r|j}t|t�r|j}|�|j�|||��Sr)rirrr[r�)r�oldrt�maxsplitrrrr��s


zUserString.replacecCrgr)rirr�rfindrhrrrr��rlzUserString.rfindcCrxr)r�rindexrhrrrr��r�zUserString.rindexcGrbr)r[r�rjustrdrrrr��rfzUserString.rjustcCrBr)r�
rpartitionr�rrrr��r%zUserString.rpartitioncCr{r)r[r�rstripr�rrrr��r
zUserString.rstripcC�|j�||�Sr)rr��rr�r�rrrr��r#zUserString.splitcCr�r)r�rsplitr�rrrr��r#zUserString.rsplitFcCrBr)r�
splitlines)r�keependsrrrr��r%zUserString.splitlinescCrxr)rr�)rrorjrkrrrr�r�zUserString.startswithcCr{r)r[r�stripr�rrrr�r
zUserString.stripcCr_r)r[r�swapcaserrrrr�r�zUserString.swapcasecCr_r)r[r�titlerrrrr�
r�zUserString.titlecGs|�|jj|��Sr)r[r�	translater[rrrr�
r
zUserString.translatecCr_r)r[r�upperrrrrr�r�zUserString.uppercCr{r)r[r�zfill)rrerrrr�r
zUserString.zfill)rsrt)rzrrI)NrA)F)Krr r!r5rMr]rOrQrSrUr�rjr�r�r�r�rrr	r�r8r<rJr\r^r`rarcrJ�maxsizer�rnrqruryr|r~rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��	maketransr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrs�








r)3�__all__rx�sysrJ�	itertoolsrr�rr�r
r��keywordrr��operatorrrmrr��reprlibrr|�_weakrefrr/�_collectionsr�ImportError�MutableSequence�registerr�KeysViewr�	ItemsViewr#�
ValuesViewr&r{r'rCrr~r	r�rryrrr�Sequencerrrrr�<module>sr��k�	�0�=Z

?>