Edit File: _pmap.cpython-311.pyc
� ����u�d]I���������������������������d�dl�mZmZ�d�dlmZ�d�dlmZ�d�dlmZ��G�d��d������������Z �G�d��de ������������Z �G�d ��d e ������������Z�G�d��de������������Z �ej��������e ��������������ej��������e �������������d ��Z�ei�d�������������Zi�d�fd�Zd��ZdS�)�����)�Mapping�Hashable)�chain)�pvector�� transformc��������������������*�����e�Zd�ZdZd��Zd��Zd��Zd��ZdS�)�PMapViewa���View type for the persistent map/dict type `PMap`. Provides an equivalent of Python's built-in `dict_values` and `dict_items` types that result from expreessions such as `{}.values()` and `{}.items()`. The equivalent for `{}.keys()` is absent because the keys are instead represented by a `PSet` object, which can be created in `O(1)` time. The `PMapView` class is overloaded by the `PMapValues` and `PMapItems` classes which handle the specific case of values and items, respectively Parameters ---------- m : mapping The mapping/dict-like object of which a view is to be created. This should generally be a `PMap` object. c������������������������t����������|t����������������������s4t����������|t����������������������rt����������|������������}nt ����������d�������������t �������������������������������|�d|�������������d�S�)Nz"PViewMap requires a Mapping object�_map)� isinstance�PMapr����pmap� TypeError�object�__setattr__)�self�ms��� �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/pyrsistent/_pmap.py�__init__zPMapView.__init__���sb�������!�T�"�"�� F��!�W�%�%�� F���G�G���� D�E�E�E����4���+�+�+�+�+�����c������������������*�����t����������|�j��������������������S��N)�lenr����r���s��� r����__len__zPMapView.__len__"���s�������4�9�~�~�r���c������������������@�����t����������t����������|��������������d��������������)Nz is immutable)r����type)r����k�vs��� r���r���zPMapView.__setattr__%���s�������T�$�Z�Z�Z�Z�9�:�:�:r���c������������������ �����t����������d��������������Nz"Persistent maps are not reversible�r���r���s��� r����__reversed__zPMapView.__reversed__(�����������<�=�=�=r���N)�__name__� __module__�__qualname__�__doc__r���r���r���r$�����r���r���r ���r ������sZ�����������������",��,��,������;��;��;�>��>��>��>��>r���r ���c��������������������0�����e�Zd�ZdZd��Zd��Zd��Zd��Zd��ZdS�)� PMapValuesa��View type for the values of the persistent map/dict type `PMap`. Provides an equivalent of Python's built-in `dict_values` type that result from expreessions such as `{}.values()`. See also `PMapView`. Parameters ---------- m : mapping The mapping/dict-like object of which a view is to be created. This should generally be a `PMap` object. c������������������4�����|�j��������������������������������������������S�r����r���� itervaluesr���s��� r����__iter__zPMapValues.__iter__7���s�������y�#�#�%�%�%r���c������������������8�����||�j��������������������������������������������v�S�r���r.���)r����args��� r����__contains__zPMapValues.__contains__:���s�������d�i�*�*�,�,�,�,r���c������������������B�����dt����������t����������|���������������������������d�S��Nzpmap_values(�)��list�iterr���s��� r����__str__zPMapValues.__str__>����!������1�d�4��:�:�.�.�1�1�1�1r���c������������������B�����dt����������t����������|���������������������������d�S�r5���r7���r���s��� r����__repr__zPMapValues.__repr__A���r;���r���c�����������������������||�u�rdS�dS��NTFr*����r����xs��� r����__eq__zPMapValues.__eq__D���s������� ��9�9�T�T��Ur���N� r&���r'���r(���r)���r0���r3���r:���r=���rB���r*���r���r���r,���r,���+���si�������������� �� �&��&��&�-��-��-�2��2��2�2��2��2���������r���r,���c��������������������0�����e�Zd�ZdZd��Zd��Zd��Zd��Zd��ZdS�)� PMapItemsa|��View type for the items of the persistent map/dict type `PMap`. Provides an equivalent of Python's built-in `dict_items` type that result from expreessions such as `{}.items()`. See also `PMapView`. Parameters ---------- m : mapping The mapping/dict-like object of which a view is to be created. This should generally be a `PMap` object. c������������������4�����|�j��������������������������������������������S�r���)r���� iteritemsr���s��� r���r0���zPMapItems.__iter__V���s�������y�"�"�$�$�$r���c������������������d�����|\��}}n#�t�����������$�r�Y�dS�w�xY�w||�j��������v�o|�j��������|���������|k����S�)NF)� Exceptionr���)r���r2���r���r ���s��� r���r3���zPMapItems.__contains__Y���sB�������U�a�����&�&�&����&�����D�I�~�3�$�)�A�,�!�"3�3s������ �c������������������B�����dt����������t����������|���������������������������d�S��Nzpmap_items(r6���r7���r���s��� r���r:���zPMapItems.__str___����!������0�T�$�t�*�*�-�-�0�0�0�0r���c������������������B�����dt����������t����������|���������������������������d�S�rK���r7���r���s��� r���r=���zPMapItems.__repr__b���rL���r���c������������������l�����||�u�rdS�t����������|t����������|�������������������������sdS�|�j��������|j��������k����S�r?���)r ���r���r���r@���s��� r���rB���zPMapItems.__eq__e���s:��������9�9�T�T��A�t�D�z�z�*�*�� )�5�5��Y�!�&�(�(r���NrC���r*���r���r���rE���rE���J���si�������������� �� �%��%��%�4��4��4�1��1��1�1��1��1�)��)��)��)��)r���rE���c��������������������R������e�Zd�ZdZdZ��fd�Zed����������������Zed����������������Zd��Z ed����������������Z d��Zej ��������Z d ��Zd ��Zd��Zd��Zd ��Zd��Zd��Zd��Zd��Zd��Zd��Zd��Zej��������Zd��ZeZeZeZd��Zd��Z d��Z!d��Z"d��Z#d��Z$d��Z%d��Z&e&Z'd��Z(d��Z)d ��Z*�G�d!��d"e+������������Z,d#��Z-��xZ.S�)$r���a��� Persistent map/dict. Tries to follow the same naming conventions as the built in dict where feasible. Do not instantiate directly, instead use the factory functions :py:func:`m` or :py:func:`pmap` to create an instance. Was originally written as a very close copy of the Clojure equivalent but was later rewritten to closer re-assemble the python dict. This means that a sparse vector (a PVector) of buckets is used. The keys are hashed and the elements inserted at position hash % len(bucket_vector). Whenever the map size exceeds 2/3 of the containing vectors size the map is reallocated to a vector of double the size. This is done to avoid excessive hash collisions. This structure corresponds most closely to the built in dict type and is intended as a replacement. Where the semantics are the same (more or less) the same function names have been used but for some cases it is not possible, for example assignments and deletion of values. PMap implements the Mapping protocol and is Hashable. It also supports dot-notation for element access. Random access and insert is log32(n) where n is the size of the map. The following are examples of some common operations on persistent maps >>> m1 = m(a=1, b=3) >>> m2 = m1.set('c', 3) >>> m3 = m2.remove('a') >>> m1 == {'a': 1, 'b': 3} True >>> m2 == {'a': 1, 'b': 3, 'c': 3} True >>> m3 == {'b': 3, 'c': 3} True >>> m3['c'] 3 >>> m3.c 3 )�_size�_buckets�__weakref__�_cached_hashc������������������t������t����������t����������|����������������������������������|�������������}||_��������||_��������|S�r���)�superr����__new__rP���rQ���)�cls�size�bucketsr���� __class__s��� �r���rV���zPMap.__new__����s3��������T�3���'�'��,�,���� ��� ��r���c������������������X�����t����������|������������t����������|�������������z��}|�|���������}||fS�r���)�hashr���)rY����key�index�buckets��� r����_get_bucketzPMap._get_bucket����s+�������S� � �C��L�L�(�������f�}�r���c�����������������������t��������������������������������|�|������������\��}}|r|D�]\��}}||k����r|c�S��t����������|�������������r���)r���r`����KeyError)rY���r]����_r_���r���r ���s��� r����_getitemz PMap._getitem����s[�������$�$�W�c�2�2� ��6��� ��� �� ���1���8�8��H�H�H�����s�m�m�r���c������������������B�����t��������������������������������|�j��������|������������S�r���)r���rd���rQ����r���r]���s��� r����__getitem__zPMap.__getitem__����s�������}�}�T�]�C�0�0�0r���c������������������l�����t��������������������������������|�|������������\��}}|r|D�]\��}}||k����r�dS��dS�dS�r?���)r���r`���)rY���r]���rc���r_���r���s��� r���� _containszPMap._contains����sW�������$�$�W�c�2�2� ��6��� ��� �� ���1���8�8��4�4�����5��ur���c������������������8�����|�����������������������|�j��������|������������S�r���)ri���rQ���rf���s��� r���r3���zPMap.__contains__����s�������~�~�d�m�S�1�1�1r���c������������������*�����|�������������������������������������S�r���)�iterkeysr���s��� r���r0���z PMap.__iter__������������}�}���r���c������������������ �����t����������d�������������r"���r#���r���s��� r���r$���zPMap.__reversed__����r%���r���c����������������������� �|�|���������S�#�t�����������$�r;}t����������d���������������������t����������|�������������j��������|������������������������|�d�}~ww�xY�w)Nz{0} has no attribute '{1}')rb����AttributeError�formatr���r&���)r���r]����es��� r����__getattr__zPMap.__getattr__����sa������ ���9����� �� �� � �,�3�3�D��J�J�4G��M�M����� ����� ���s���� �� A�6A � Ac��������������#����F���K����|�������������������������������������D�] \��}}|V���� d�S�r����rG���)r���r���rc���s��� r���rl���z PMap.iterkeys�����8�����������N�N�$�$�� �� �D�A�q��G�G�G�G� �� r���c��������������#����F���K����|�������������������������������������D�] \��}}|V���� d�S�r���ru���)r���rc���r ���s��� r���r/���zPMap.itervalues����rv���r���c��������������#����>���K����|�j���������D�]}|r|D�]\��}}||fV�����d�S�r���)rQ���)r���r_���r���r ���s��� r���rG���zPMap.iteritems����sL�����������m�� �� �F��� �"�����D�A�q��Q�$�J�J�J�J�� �� r���c������������������ �����t����������|�������������S�r���)r,���r���s��� r����valueszPMap.values����s�������$���r���c������������������$�����ddl�m}��||�������������S�)N����)�PSet)�_psetr}���)r���r}���s��� r����keysz PMap.keys����s"�������������t�D�z�z�r���c������������������ �����t����������|�������������S�r���)rE���r���s��� r����itemsz PMap.items����s����������r���c�����������������������|�j���������S�r����rP���r���s��� r���r���zPMap.__len__����s �������z�r���c������������������`�����d����������������������t����������t����������|�������������������������������������S�)Nz pmap({0}))rq����str�dictr���s��� r���r=���z PMap.__repr__����s"�������!�!�#�d�4�j�j�/�/�2�2�2r���c����������������������|�|u�rdS�t����������|t����������������������st����������S�t����������|�������������t����������|������������k����rdS�t����������|t����������������������r�t����������|�d������������r"t����������|d������������r|�j��������|j��������k����rdS�|�j��������|j��������k����rdS�t����������|�� ����������������������������������������������t����������|� ����������������������������������������������k����S�t����������|t����������������������r%t����������|�� ����������������������������������������������|k����S�t����������|�� ����������������������������������������������t����������|� ����������������������������������������������k����S�)NTFrS���)r ���r����NotImplementedr���r����hasattrrS���rQ���r����rG���r�����r����others��� r���rB���zPMap.__eq__����s.������5�=�=��4��%��)�)�� "�!�!��t�9�9��E� � �"�"��5��e�T�"�"�� 3���n�-�-�� �'�%��2P�2P�� ��)�U�-?�?�?��u��}���.�.��t�����(�(�)�)�T�%�/�/�2C�2C�-D�-D�D�D� ��t� $� $�� 3�����(�(�)�)�U�2�2��D�N�N�$�$�%�%��e�k�k�m�m�)<�)<�<�<r���c������������������ �����t����������d�������������)NzPMaps are not orderabler#���r����s��� r����__lt__zPMap.__lt__��s�������1�2�2�2r���c������������������*�����|�������������������������������������S�r���)r=���r���s��� r���r:���zPMap.__str__ ��rm���r���c�����������������������t����������|�d������������s3t����������t����������|������������������������������������������������������������|�_��������|�j��������S�)NrS���)r����r\���� frozensetrG���rS���r���s��� r����__hash__z PMap.__hash__��s@�������t�^�,�,�� B� $�Y�t�~�~�/?�/?�%@�%@� A� A�D��� � r���c������������������v�����|����������������������������������������������������������||�����������������������������������������������S�)a4�� Return a new PMap with key and val inserted. >>> m1 = m(a=1, b=2) >>> m2 = m1.set('a', 3) >>> m3 = m1.set('c' ,4) >>> m1 == {'a': 1, 'b': 2} True >>> m2 == {'a': 3, 'b': 2} True >>> m3 == {'a': 1, 'b': 2, 'c': 4} True )�evolver�set� persistent�r���r]����vals��� r���r����zPMap.set��s.��������|�|�~�~�!�!�#�s�+�+�6�6�8�8�8r���c������������������t�����|����������������������������������������������������������|�����������������������������������������������S�)z� Return a new PMap without the element specified by key. Raises KeyError if the element is not present. >>> m1 = m(a=1, b=2) >>> m1.remove('a') pmap({'b': 2}) )r�����remover����rf���s��� r���r����zPMap.remove!��s,��������|�|�~�~�$�$�S�)�)�4�4�6�6�6r���c������������������R����� �|�����������������������|������������S�#�t����������$�r�|�cY�S�w�xY�w)a�� Return a new PMap without the element specified by key. Returns reference to itself if element is not present. >>> m1 = m(a=1, b=2) >>> m1.discard('a') pmap({'b': 2}) >>> m1 is m1.discard('c') True )r����rb���rf���s��� r����discardzPMap.discard,��s=������ ��;�;�s�#�#�#���� �� �� ��K�K�K� ���s������&�&c������������������ ������|�j���������d��g|�R���S�)a,�� Return a new PMap with the items in Mappings inserted. If the same key is present in multiple maps the rightmost (last) value is inserted. >>> m1 = m(a=1, b=2) >>> m1.update(m(a=2, c=3), {'a': 17, 'd': 35}) == {'a': 17, 'b': 2, 'c': 3, 'd': 35} True c�����������������������|S�r���r*���)�l�rs��� r����<lambda>zPMap.update.<locals>.<lambda>E��s������Q��r���)�update_with)r����mapss��� r����updatezPMap.update<��s!������� �t����6��6�6�6�6r���c����������� �������������|�������������������������������������}|D�]H}|�����������������������������������D�]1\��}}|���������������������|||v�r�|||���������|������������n|��������������2�I|�����������������������������������S�)a%�� Return a new PMap with the items in Mappings maps inserted. If the same key is present in multiple maps the values will be merged using merge_fn going from left to right. >>> from operator import add >>> m1 = m(a=1, b=2) >>> m1.update_with(add, m(a=2)) == {'a': 3, 'b': 2} True The reverse behaviour of the regular merge. Keep the leftmost element instead of the rightmost. >>> m1 = m(a=1) >>> m1.update_with(lambda l, r: l, m(a=2), {'a':3}) pmap({'a': 1}) )r����r����r����r����)r���� update_fnr����r�����mapr]����values��� r���r����zPMap.update_withG��s������� ��,�,�.�.���� ^�� ^�C�!�i�i�k�k�� ^�� ^� ��U����C�3�'�>�>���7�3�<��!?�!?�!?�W\�]�]�]�]� ^���!�!�#�#�#r���c������������������,�����|�����������������������|������������S�r���)r����r����s��� r����__add__zPMap.__add__^��s�������{�{�5�!�!�!r���c������������������0�����t�����������t����������|�������������ffS�r���)r���r����r���s��� r���� __reduce__zPMap.__reduce__c��s�������d�4�j�j�]�"�"r���c������������������"�����t����������|�|������������S�)a��� Transform arbitrarily complex combinations of PVectors and PMaps. A transformation consists of two parts. One match expression that specifies which elements to transform and one transformation function that performs the actual transformation. >>> from pyrsistent import freeze, ny >>> news_paper = freeze({'articles': [{'author': 'Sara', 'content': 'A short article'}, ... {'author': 'Steve', 'content': 'A slightly longer article'}], ... 'weather': {'temperature': '11C', 'wind': '5m/s'}}) >>> short_news = news_paper.transform(['articles', ny, 'content'], lambda c: c[:25] + '...' if len(c) > 25 else c) >>> very_short_news = news_paper.transform(['articles', ny, 'content'], lambda c: c[:15] + '...' if len(c) > 15 else c) >>> very_short_news.articles[0].content 'A short article' >>> very_short_news.articles[1].content 'A slightly long...' When nothing has been transformed the original data structure is kept >>> short_news is news_paper True >>> very_short_news is news_paper False >>> very_short_news.articles[0] is news_paper.articles[0] True r���)r����transformationss��� r���r���zPMap.transformg��s������4����/�/�/r���c�����������������������|�S�r���r*���r���s��� r����copyz PMap.copy���s�������r���c��������������������T�����e�Zd�ZdZd��Zd��Zd��Zd��Zd��Zd��Z d��Z d ��Zd ��Zd��Z d��Zd S�)� PMap._Evolver)�_buckets_evolverrP����_original_pmapc������������������h�����||�_���������|j�������������������������������������������|�_��������|j��������|�_��������d�S�r���)r����rQ���r����r����rP���)r���� original_pmaps��� r���r���zPMap._Evolver.__init__���s/������"/�D��$1�$:�$B�$B�$D�$D�D�!�&�,�D�J�J�Jr���c������������������B�����t��������������������������������|�j��������|������������S�r���)r���rd���r����rf���s��� r���rg���zPMap._Evolver.__getitem__���s�������=�=��!6��<�<�<r���c������������������2�����|�����������������������||�������������d�S�r���)r����r����s��� r����__setitem__zPMap._Evolver.__setitem__���s�������H�H�S�#�����r���c������������������F���� ��|�f}t��������������������������������|�j��������|������������\��}}t����������|�j��������������������d|�j��������z��k�����}|r�|D�],\��� }� |k����r!|�ur� �fd�|D���������������}||�j��������|<���|�c�S��-|r*|�������������������������������������|����������������������|�������������S�|g}|���������������������|�������������||�j��������|<���|�xj��������dz ��c_��������nG|r*|�������������������������������������|����������������������|�������������S�|g|�j��������|<���|�xj��������dz ��c_��������|�S�)Ngq= ףp�?c������������������2������g�|�]\��}}|�k����r||fn|�f��S�r*���r*���)�.0�k2�v2r���r����s��� ��r���� <listcomp>z%PMap._Evolver.set.<locals>.<listcomp>���s4�������)b�)b�)b�QW�QS�UW�b�A�g�g�2�r�(�(�B��9�)b�)b�)br���r|���)r���r`���r����r���rP����_reallocater�����extend) r���r]���r�����kvr^���r_����reallocation_requiredr ���� new_bucketr���s ��� ` @r���r����zPMap._Evolver.set���se��������s��B� �,�,�T�-B�C�H�H�M�E�6�$'��(=�$>�$>��� �AR�$R�!��� �"��$��$�D�A�q��C�x�x��C�<�<�)b�)b�)b�)b�)b�[a�)b�)b�)b�J�;E�D�1�%�8�#����� ��)��.��$�$�&�&�&��8�8�C��-�-�-� �T� ��!�!�&�)�)�)�/9��%�e�,�� � �a�� � � �(��.��$�$�&�&�&��8�8�C��-�-�-�02�t��%�e�,�� � �a�� � ��Kr���c����������������������dt����������|�j��������������������z��}|d�gz��}|�j�������������������������������������������}t����������j��������d��|D���������������������������D�]E\��}}t����������|������������|z��}||���������r||������������������������������||f��������������=||fg||<����Ft�����������������������������������������������������������|�_��������|�j��������� ��������������������|�������������d�S�)N����c��������������3�������K����|�]}|�|V���� d�S�r���r*���)r����rA���s��� r���� <genexpr>z,PMap._Evolver._reallocate.<locals>.<genexpr>���s'����������+D�+D�!�!�+D�A�+D�+D�+D�+D�+D�+Dr���) r���r����r����r���� from_iterabler\����appendr���r����r����)r����new_size�new_listrY���r���r ���r^���s��� r���r����zPMap._Evolver._reallocate���s��������3�t�4�5�5�5�H��4�&�(�H��+�6�6�8�8�G��+�+D�+D�w�+D�+D�+D�D�D�� /�� /���1��Q���(�*���E�?��/��U�O�*�*�A�q�6�2�2�2�2�()�1�v�h�H�U�O�O��%,�I�I�$5�$5�$7�$7�D�!��!�(�(��2�2�2�2�2r���c������������������4�����|�j��������������������������������������������S�r���)r�����is_dirtyr���s��� r���r����zPMap._Evolver.is_dirty���s�������(�1�1�3�3�3r���c�����������������������|�������������������������������������r1t����������|�j��������|�j�������������������������������������������������������|�_��������|�j��������S�r���)r����r���rP���r����r����r����r���s��� r���r����zPMap._Evolver.persistent���s?�������}�}���� [�&*�4�:�t�7L�7W�7W�7Y�7Y�&Z�&Z��#��&�&r���c�����������������������|�j���������S�r���r����r���s��� r���r���zPMap._Evolver.__len__���s �������:�r���c������������������B�����t��������������������������������|�j��������|������������S�r���)r���ri���r����rf���s��� r���r3���zPMap._Evolver.__contains__���s�������>�>�$�"7��=�=�=r���c������������������0�����|�����������������������|�������������d�S�r���)r����rf���s��� r����__delitem__zPMap._Evolver.__delitem__���s�������K�K������r���c������������������.�����t��������������������������������|�j���������������������\��}}|rN�fd�|D���������������}t����������|������������t����������|������������k����r |r|nd�|�j��������|<���|�xj��������dz��c_��������|�S�t����������d�����������������������������������������������)Nc������������������*������g�|�]\��}}|�k�����||f��S�r*���r*���)r����r���r ���r]���s��� �r���r����z(PMap._Evolver.remove.<locals>.<listcomp>���s&�������F�F�F��!�Q�Q�#�X�X�q�!�f�X�X�Xr���r|���z{0})r���r`���r����r���rP���rb���rq���)r���r]���r^���r_���r����s��� ` r���r����zPMap._Evolver.remove���s�������� �,�,�T�-B�C�H�H�M�E�6��� �F�F�F�F�6�F�F�F� ��v�;�;��Z���0�0�AK�3U�:�:�QU�D�)�%�0��J�J�!�O�J�J��K��5�<�<��,�,�-�-�-r���N)r&���r'���r(���� __slots__r���rg���r����r����r����r����r����r���r3���r����r����r*���r���r����_Evolverr�������s���������������C� � -�� -�� -� =�� =�� =� �� �� � �� �� �B 3�� 3�� 3� 4�� 4�� 4� '�� '�� '� �� �� � >�� >�� >� �� �� � .�� .�� .�� .�� .r���r����c������������������,�����|�����������������������|�������������S�)a-�� Create a new evolver for this pmap. For a discussion on evolvers in general see the documentation for the pvector evolver. Create the evolver and perform various mutating updates to it: >>> m1 = m(a=1, b=2) >>> e = m1.evolver() >>> e['c'] = 3 >>> len(e) 3 >>> del e['a'] The underlying pmap remains the same: >>> m1 == {'a': 1, 'b': 2} True The changes are kept in the evolver. An updated pmap can be created using the persistent() function on the evolver. >>> m2 = e.persistent() >>> m2 == {'b': 2, 'c': 3} True The new pmap will share data with the original pmap in the same way that would have been done if only using operations on the pmap. )r����r���s��� r���r����zPMap.evolver���s������:��}�}�T�"�"�"r���)/r&���r'���r(���r)���r����rV����staticmethodr`���rd���rg���ri���r3���r����getr0���r$���rs���rl���r/���rG���rz���r���r����r���r=���rB����__ne__r�����__le__�__gt__�__ge__r:���r����r����r����r����r����r����r�����__or__r����r���r����r���r����r����� __classcell__)rZ���s���@r���r���r���j���s���������������$��$�J�E�I�����������������\�� �������\��1��1��1��� �� ���\� �2��2��2���+�C������>��>��>��������������������� �� �� ����������������3��3��3�=��=��=�$��^�F�3��3��3���F� �F� �F������!��!��!� 9��9��9� 7�� 7�� 7������ 7�� 7�� 7�$��$��$�."��"��"���F�#��#��#�0��0��0�8�����[.��[.��[.��[.��[.�6��[.��[.��[.�z#��#��#��#��#��#��#r���r���c�����������������������|r|}n( �dt����������|�������������z��pd}n#�t����������$�r�d}Y�nw�xY�w|d�gz��}t����������|�t����������������������st ����������|�������������}�|������������������������������������D�]C\��}}t ����������|������������}||z��}||���������}|r|���������������������||f��������������;||fg||<����Dt����������t����������|�������������t������������������������� ��������������������|������������������������S�)Nr��������)r���rI���r ���r���r����r����r\���r����r���r���r����) �initial�pre_sizerX���rY���r���r ����hr^���r_���s ��� r����_turbo_mappingr������s����������� ��s�7�|�|�#�(�q�D�D���� �� �� ���D�D�D� ���� ��d�V�m�G��g�w�'�'�� ���w�-�-��� � ����&��&���1���G�G���D��������� &��M�M�1�a�&�!�!�!�!� �!�f�X�G�E�N�N���G���g�i�i�.�.�w�7�7�8�8�8s������+�+c������������������@�����|�s |dk����rt�����������S�t����������|�|������������S�)a��� Create new persistent map, inserts all elements in initial into the newly created map. The optional argument pre_size may be used to specify an initial size of the underlying bucket vector. This may have a positive performance impact in the cases where you know beforehand that a large number of elements will be inserted into the map eventually since it will reduce the number of reallocations required. >>> pmap({'a': 13, 'b': 14}) == {'a': 13, 'b': 14} True r���)�_EMPTY_PMAPr����)r����r����s��� r���r���r���)��s*����������x�1�}�}����'�8�,�,�,r���c������������������� �����t����������|�������������S�)z� Creates a new persistent map. Inserts all key value arguments into the newly created map. >>> m(a=13, b=14) == {'a': 13, 'b': 14} True )r���)�kwargss��� r���r���r���9��s���������<�<�r���N)�collections.abcr���r���� itertoolsr����pyrsistent._pvectorr����pyrsistent._transformationsr���r ���r,���rE���r���r����registerr����r����r���r���r*���r���r����<module>r�������s������-��-��-��-��-��-��-��-��������������'��'��'��'��'��'��1��1��1��1��1��1�#>��#>��#>��#>��#>��#>��#>��#>�J����������������>)��)��)��)��)���)��)��)�@V#��V#��V#��V#��V#�6��V#��V#��V#�p�����������������$�������9��9��9�@��n�R��#�#����a�� -�� -�� -�� -� ��������r���