§
    cÌc”I  ã                   ót   — d Z ddlmZ  G d„ d¦  «        Z G d„ d¦  «        Zd„ Zd„ Zd	„ Zd
„ Zd„ Z	d„ Z
d„ ZdS )z™Python version of compiled extensions for doing compression.

We separate the implementation from the groupcompress.py to avoid importing
useless stuff.
é   )Úosutilsc                   ó0   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ ZdS )Ú_OutputHandlerzCA simple class which just tracks how to split up an insert request.c                 óL   — || _         || _        || _        g | _        d| _        d S )Né    )Ú	out_linesÚindex_linesÚmin_len_to_indexÚcur_insert_linesÚcur_insert_len)Úselfr   r	   r
   s       ú>/usr/lib/python3/dist-packages/breezy/bzr/_groupcompress_py.pyÚ__init__z_OutputHandler.__init__   s/   € Ø"ˆŒØ&ˆÔØ 0ˆÔØ "ˆÔØˆÔÐÐó    c                 óÜ   — t          ||d¦  «        D ]Y}t          d||z
  ¦  «        }t          ||¦  «        }| j                             |¦  «         | j                             d¦  «         ŒZd S )Né   F)ÚrangeÚminÚencode_copy_instructionr   Úappendr	   )r   Ú
start_byteÚend_byteÚ	num_bytesÚ
copy_bytess        r   Úadd_copyz_OutputHandler.add_copy$   s|   € õ   
¨H°iÑ@Ô@ð 	+ð 	+ˆJÝ˜I x°*Ñ'<Ñ=Ô=ˆIÝ0°¸YÑGÔGˆJØŒN×!Ò! *Ñ-Ô-Ð-ØÔ×#Ò# EÑ*Ô*Ð*Ð*ð		+ð 	+r   c                 ó  — | j         sd S | j        dk    rt          d¦  «        ‚| j                             t          | j        g¦  «        ¦  «         | j                             d¦  «         | j                             | j         ¦  «         | j        | j        k     r1| j                             dgt          | j         ¦  «        z  ¦  «         n0| j                             dgt          | j         ¦  «        z  ¦  «         g | _         d| _        d S )Né   z/We cannot insert more than 127 bytes at a time.FTr   )
r   r   ÚAssertionErrorr   r   Úbytesr	   Úextendr
   Úlen)r   s    r   Ú_flush_insertz_OutputHandler._flush_insert-   s  € ØÔ$ð 	ØˆFØÔ Ò$Ð$Ý ð "/ñ 0ô 0ð 0àŒ×Ò�e TÔ%8Ð$9Ñ:Ô:Ñ;Ô;Ð;ØÔ×Ò Ñ&Ô&Ð&ØŒ×Ò˜dÔ3Ñ4Ô4Ð4ØÔ Ô!6Ò6Ð6ØÔ×#Ò# U G­c°$Ô2GÑ.HÔ.HÑ$HÑIÔIÐIÐIàÔ×#Ò# T F­S°Ô1FÑ-GÔ-GÑ$GÑHÔHÐHØ "ˆÔØˆÔÐÐr   c                 óœ  — |                       ¦   «          t          |¦  «        }t          d|d¦  «        D ]–}t          d||z
  ¦  «        }| j                             t          |g¦  «        ¦  «         | j                             d¦  «         | j                             ||||z   …         ¦  «         | j                             d¦  «         Œ—d S )Nr   r   F)r"   r!   r   r   r   r   r   r	   )r   ÚlineÚline_lenÚstart_indexÚnext_lens        r   Ú_insert_long_linez _OutputHandler._insert_long_line=   sÐ   € à×ÒÑÔÐÝ�t‘9”9ˆÝ   H¨cÑ2Ô2ð 	+ð 	+ˆKÝ˜3 ¨;Ñ 6Ñ7Ô7ˆHØŒN×!Ò!¥%¨¨
Ñ"3Ô"3Ñ4Ô4Ð4ØÔ×#Ò# EÑ*Ô*Ð*ØŒN×!Ò! $ {°;ÀÑ3IÐ'IÔ"JÑKÔKÐKð Ô×#Ò# EÑ*Ô*Ð*Ð*ð	+ð 	+r   c                 óœ  — | j         g k    rt          d¦  «        ‚|D ]š}t          |¦  «        dk    r|                      |¦  «         Œ+t          |¦  «        | j        z   }|dk    r1|                      ¦   «          |g| _         t          |¦  «        | _        Œy| j                              |¦  «         || _        Œ›|                      ¦   «          d S )Nz<self.cur_insert_lines must be empty when adding a new insertr   )r   r   r!   r(   r   r"   r   )r   Úlinesr$   r'   s       r   Ú
add_insertz_OutputHandler.add_insertJ   sß   € ØÔ  BÒ&Ð&Ý ð "8ñ 9ô 9ð 9àð 	3ð 	3ˆDÝ�4‰yŒy˜3ŠˆØ×&Ò& tÑ,Ô,Ð,Ð,å˜t™9œ9 tÔ':Ñ:�Ø˜c’>�>à×&Ò&Ñ(Ô(Ð(Ø-1¨F�DÔ)Ý*-¨d©)¬)�DÔ'Ð'àÔ)×0Ò0°Ñ6Ô6Ð6Ø*2�DÔ'Ð'Ø×ÒÑÔÐÐÐr   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r"   r(   r+   © r   r   r   r      se   € € € € € ØMÐMð ð  ð  ð+ð +ð +ð ð  ð  ð +ð +ð +ðð ð ð ð r   r   c                   óT   — e Zd ZdZdZdZd„ Zd„ Zd„ Zd„ Z	dd	„Z
d
„ Zd„ Zd„ Zdd„ZdS )ÚLinesDeltaIndexa�  This class indexes matches between strings.

    :ivar lines: The 'static' lines that will be preserved between runs.
    :ivar _matching_lines: A dict of {line:[matching offsets]}
    :ivar line_offsets: The byte offset for the end of each line, used to
        quickly map between a matching line number and the byte location
    :ivar endpoint: The total number of bytes in self.line_offsets
    é
   éÈ   c                 óŒ   — g | _         g | _        d| _        i | _        |                      |dgt          |¦  «        z  ¦  «         d S )Nr   T)r*   Úline_offsetsÚendpointÚ_matching_linesÚextend_linesr!   )r   r*   s     r   r   zLinesDeltaIndex.__init__k   sI   € ØˆŒ
ØˆÔØˆŒØ!ˆÔØ×Ò˜% $ ­#¨e©*¬*Ñ!4Ñ5Ô5Ð5Ð5Ð5r   c                 óˆ  — | j         }t          | j        ¦  «        }t          |¦  «        t          |¦  «        k    r.t          dt          |¦  «        t          |¦  «        fz  ¦  «        ‚t	          |¦  «        D ]H\  }}|sŒ||         }	 ||                              ||z   ¦  «         Œ0# t          $ r ||z   h||<   Y ŒEw xY wd S )NzVThe number of lines to be indexed does not match the index/don't index flags: %d != %d)r8   r!   r*   r   Ú	enumerateÚaddÚKeyError)r   Ú	new_linesÚindexÚmatchesÚ	start_idxÚidxÚdo_indexr$   s           r   Ú_update_matching_linesz&LinesDeltaIndex._update_matching_linesr   sñ   € ØÔ&ˆÝ˜œ
‘O”Oˆ	Ýˆy‰>Œ>�S ™ZœZÒ'Ð'Ý ð "Uå$'¨	¡N¤NµC¸±J´JÐ#?ñ"@ñ Aô Að Aõ ' uÑ-Ô-ð 	2ð 	2‰MˆC�Øð ØØ˜S”>ˆDð2Ø˜”×!Ò! )¨c¡/Ñ2Ô2Ð2Ð2øÝð 2ð 2ð 2Ø!*¨S¡Ð 1�˜‘��ð2øøøð	2ð 	2s   Â
B)Â)B?Â>B?c                 ó@   — 	 | j         |         S # t          $ r Y dS w xY w)z/Return the lines which match the line in right.N)r8   r=   )r   r$   s     r   Úget_matcheszLinesDeltaIndex.get_matches‚   s7   € ð	ØÔ'¨Ô-Ð-øÝð 	ð 	ð 	Ø�4�4ð	øøøs   ‚ �
œc                 ón  — |}d}d}t          |¦  «        }| j        }||k     rr	 |||                  }n# t          $ r |dz  }Y nQw xY w|€|}d}d}n9|                     d„ |D ¦   «         ¦  «        }	|	rt	          |	¦  «        }|dz  }d}nn|dz  }||k     °r|€d|fS t          |¦  «        }
|
|z
  dz   ||f|fS )af  Look at all matches for the current line, return the longest.

        :param lines: The lines we are matching against
        :param pos: The current location we care about
        :param locations: A list of lines that matched the current location.
            This may be None, but often we'll have already found matches for
            this line.
        :return: (start_in_self, start_in_lines, num_lines)
            All values are the offset in the list (aka the line number)
            If start_in_self is None, then we have no matches, and this line
            should be inserted in the target.
        r   Né   c                 ó   — g | ]}|d z   ‘ŒS )rH   r0   )Ú.0Úlocs     r   ú
<listcomp>z6LinesDeltaIndex._get_longest_match.<locals>.<listcomp>¬   s.   € ð 9Lð 9Lð 9LÀS¸¸q¹ð 9Lð 9Lð 9Lr   )r!   r8   r=   ÚintersectionÚsetr   )r   r*   ÚposÚrange_startÚ	range_lenÚprev_locationsÚmax_posÚmatchingÚ	locationsÚnext_locationsÚsmallests              r   Ú_get_longest_matchz"LinesDeltaIndex._get_longest_match‰   s;  € ð ˆØˆ	ØˆÝ�e‘*”*ˆØÔ'ˆØ�GŠmˆmðØ$ U¨3¤ZÔ0�	�	øÝð ð ð ð �q‘�Ø�ð	øøøð Ð%à!*�Ø�	Ø �	�	ð "+×!7Ò!7ð 9Lð 9LØ<Jð9Lñ 9Lô 9Lñ "Mô "M�à!ð 
å%(¨Ñ%8Ô%8�NØ ‘N�IØ $�I�Ið Ø�1‰HˆCð= �GŠmˆmð> Ð!à˜�9ÐÝ�~Ñ&Ô&ˆØ˜9Ñ$ qÑ(¨+°yÐAÀ3ÐFÐFs   ¤3 ³AÁAFc           	      óª  — g }d}t          |¦  «        }|j        }| j        }|r| j        }||k     ru|                      ||¦  «        \  }}|�G|d         |k     r;|\  }	}
}t          t          t           ||
|
|z   …         ¦  «        ¦  «        }||k     rd}|� ||¦  «         ||k     °u |t          | j        ¦  «        t          |¦  «        df¦  «         |S )a˜  Return the ranges in lines which match self.lines.

        :param lines: lines to compress
        :return: A list of (old_start, new_start, length) tuples which reflect
            a region in self.lines that is present in lines.  The last element
            of the list is always (old_len, new_len, 0) to provide a end point
            for generating instructions from the matching blocks list.
        r   Néÿÿÿÿ)r!   r   Ú_MIN_MATCH_BYTESÚ_SOFT_MIN_MATCH_BYTESrX   ÚsumÚmapr*   )r   r*   ÚsoftÚresultrO   rS   Úresult_appendÚmin_match_bytesÚblockÚ	old_startÚ	new_startrQ   Úmatched_bytess                r   Úget_matching_blocksz#LinesDeltaIndex.get_matching_blocksÀ   s   € ð ˆØˆÝ�e‘*”*ˆØœˆØÔ/ˆØð 	9Ø"Ô8ˆOØ�GŠmˆmØ×0Ò0°¸Ñ<Ô<‰JˆE�3ØÐ ð ˜”9˜Ò.Ð.à6;Ñ3�I˜y¨)Ý$'­­C°°yÀÈYÑAVÐ7VÔ1WÑ(XÔ(XÑ$YÔ$Y�MØ$ Ò6Ð6Ø $˜ØÐ Ø�˜eÑ$Ô$Ð$ð �GŠmˆmð  	ˆ•s˜4œ:‘”­¨E©
¬
°AÐ6Ñ7Ô7Ð7Øˆr   c                 óV  — |                       ||¦  «         | j                             |¦  «         | j        }|D ].}|t	          |¦  «        z  }| j                             |¦  «         Œ/t	          | j        ¦  «        t	          | j        ¦  «        k    rt          d¦  «        ‚|| _        dS )z½Add more lines to the left-lines list.

        :param lines: A list of lines to add
        :param index: A True/False for each node to define if it should be
            indexed.
        zHSomehow the line offset indicator got out of sync with the line counter.N)rD   r*   r    r7   r!   r6   r   r   )r   r*   r?   r7   r$   s        r   r9   zLinesDeltaIndex.extend_linesè   s´   € ð 	×#Ò# E¨5Ñ1Ô1Ð1ØŒ
×Ò˜%Ñ Ô Ð Ø”=ˆØð 	/ð 	/ˆDØ�˜D™	œ	Ñ!ˆHØÔ×$Ò$ XÑ.Ô.Ð.Ð.ÝˆtÔ Ñ!Ô!¥S¨¬¡_¤_Ò4Ð4Ý ð "Kñ Lô Lð Là ˆŒˆˆr   c                 óÔ  — d                      |||…         ¦  «        }t          |¦  «        }t          d|d¦  «        D ]©}t          ||z
  d¦  «        }	|                     t          |	g¦  «        ¦  «         |                     d¦  «         ||||	z   …         }
t          j        |
¦  «        }|                     |¦  «         |                     dgt          |¦  «        z  ¦  «         ŒªdS )z+Add an 'insert' request to the data stream.r   r   r   FTN)	Újoinr!   r   r   r   r   r   Úsplit_linesr    )r   Ústart_linenumÚend_linenumr>   r   r	   Úbytes_to_insertÚinsert_lengthr   Úinsert_countÚinsertÚas_liness               r   r"   zLinesDeltaIndex._flush_insertú   só   € ð Ÿ(š( 9¨]¸;Ð-FÔ#GÑHÔHˆÝ˜OÑ,Ô,ˆå  =°#Ñ6Ô6ð 	7ð 	7ˆJÝ˜}¨zÑ9¸3Ñ?Ô?ˆLØ×Ò�U L >Ñ2Ô2Ñ3Ô3Ð3à×Ò˜uÑ%Ô%Ð%Ø$ Z°
¸\Ñ0IÐ%IÔJˆFÝÔ*¨6Ñ2Ô2ˆHØ×Ò˜XÑ&Ô&Ð&Ø×Ò ˜v­¨H©¬Ñ5Ñ6Ô6Ð6Ð6ð	7ð 	7r   c                 ó*  — |dk    rd}n| j         |dz
           }| j         ||z   dz
           }||z
  }t          ||d¦  «        D ]O}t          d||z
  ¦  «        }t          ||¦  «        }	|                     |	¦  «         |                     d¦  «         ŒPd S )Nr   rH   r   F)r6   r   r   r   r   )
r   Úold_start_linenumÚ	num_linesr   r	   Ú
first_byteÚ	stop_byter   r   r   s
             r   Ú_flush_copyzLinesDeltaIndex._flush_copy
  s¾   € à Ò!Ð!ØˆJˆJàÔ*Ð+<¸qÑ+@ÔAˆJØÔ%Ð&7¸)Ñ&CÀaÑ&GÔHˆ	Ø 
Ñ*ˆ	õ   
¨I°yÑAÔAð 	&ð 	&ˆJÝ˜I y°:Ñ'=Ñ>Ô>ˆIÝ0°¸YÑGÔGˆJØ×Ò˜ZÑ(Ô(Ð(Ø×Ò˜uÑ%Ô%Ð%Ð%ð		&ð 	&r   c                 ó~  — ddt          |¦  «        g}g d¢}t          ||| j        ¦  «        }|                      ||¬¦  «        }d}|D ]r\  }	}
}|
|k    r|                     |||
…         ¦  «         |
|z   }|rB|	dk    rd}n| j        |	dz
           }| j        |	|z   dz
           }|                     ||¦  «         Œs||fS )z?Compute the delta for this content versus the original content.r   )FFF)r_   r   rH   )Úencode_base128_intr   r[   rg   r+   r6   r   )r   r>   Úbytes_lengthr_   r   r	   Úoutput_handlerÚblocksÚcurrent_line_numrd   re   rQ   rv   Ú	last_bytes                 r   Ú
make_deltazLinesDeltaIndex.make_delta  s  € ð ˜#Õ1°,Ñ?Ô?Ð@ˆ	Ø+Ð+Ð+ˆÝ'¨	°;Ø(,Ô(=ñ?ô ?ˆà×)Ò)¨)¸$Ð)Ñ?Ô?ˆØÐð 06ð 	?ð 	?Ñ+ˆI�y )ØÐ,Ò,Ð,à×)Ò)ØÐ.¨yÐ8Ô9ñ;ô ;ð ;à(¨9Ñ4ÐØð ?à ’>�>Ø!"�J�Jà!%Ô!2°9¸q±=Ô!A�JØ Ô-¨i¸)Ñ.CÀaÑ.GÔH�	Ø×'Ò'¨
°IÑ>Ô>Ð>øØ˜+Ð%Ð%r   N)F)r,   r-   r.   r/   r[   r\   r   rD   rF   rX   rg   r9   r"   rx   r€   r0   r   r   r2   r2   ^   sÂ   € € € € € ðð ð ÐØÐð6ð 6ð 6ð2ð 2ð 2ð ð ð ð5Gð 5Gð 5Gðn&ð &ð &ð &ðP!ð !ð !ð$7ð 7ð 7ð &ð &ð &ð &ð &ð &ð &ð &ð &r   r2   c                 óÂ   — t          ¦   «         }d}| dk    r&|                     | dz  dz  ¦  «         | dz  } | dk    °&|                     | ¦  «         t          |¦  «        S )z-Convert an integer into a 7-bit lsb encoding.r   é€   éÿ   é   )Ú	bytearrayr   r   )ÚvalÚdataÚcounts      r   rz   rz   6  sh   € å‰;Œ;€DØ€EØ
�Š+ˆ+Ø�Š�S˜4‘Z 4Ñ'Ñ(Ô(Ð(Ø�‰	ˆð �Š+ˆ+ð 	‡K‚K�ÑÔÐÝ�‰;Œ;Ðr   c                 ó’   — d}d}d}| |         }|dk    r#||dz  |z  z  }|dz  }|dz  }| |         }|dk    °#|||z  z  }|dz  }||fS )z,Decode an integer from a 7-bit lsb encoding.r   r‚   r   r„   rH   r0   )r‡   Úoffsetr†   ÚshiftÚbvals        r   Údecode_base128_intr�   A  s   € à€FØ
€CØ€EØ�Œ<€DØ
�$Š,ˆ,Ø��t‘ Ñ%Ñ%ˆØ�‰
ˆØ�!‰ˆØ�FŒ|ˆð	 �$Š,ˆ,ð
 ˆ4�5‰=Ñ€CØ
ˆa�K€FØ�ˆ;Ðr   c                 óÂ  — d}dg}dD ]6}| dz  }|r(||z  }|                      t          |g¦  «        ¦  «         | dz  } Œ7|€t          d¦  «        ‚|dk    rt          d¦  «        ‚|d	k    rt          d
¦  «        ‚|dk    r9dD ]6}|dz  }|r(||z  }|                      t          |g¦  «        ¦  «         |dz  }Œ7t          |g¦  «        |d	<   d                     |¦  «        S )z2Convert this offset into a control code and bytes.r‚   N)rH   r   é   é   rƒ   r�   zcannot supply a length of Noner   z.we don't emit copy records for lengths > 64KiBr   z!We cannot emit a copy of length 0)é   é    r   )r   r   Ú
ValueErrorrj   )rŠ   ÚlengthÚcopy_commandr   Úcopy_bitÚ	base_bytes         r   r   r   Q  s,  € à€LØ�€Jà,ð ð ˆØ˜T‘Mˆ	Øð 	2Ø˜HÑ$ˆLØ×Ò�e Y KÑ0Ô0Ñ1Ô1Ð1Ø�1‰ˆˆØ€~ÝÐ9Ñ:Ô:Ð:Ø�ÒÐÝÐIÑJÔJÐJØ�‚{€{ÝÐ<Ñ=Ô=Ð=Ø�ÒÐð %ð 	ð 	ˆHØ ™ˆIØð 6Ø Ñ(�Ø×!Ò!¥%¨¨Ñ"4Ô"4Ñ5Ô5Ð5Ø�q‰LˆFˆFÝ˜<˜.Ñ)Ô)€Jˆq�MØ�8Š8�JÑÔÐr   c                 óŒ  — |dz  dk    rt          d¦  «        ‚d}d}|dz  r| |         }|dz  }|dz  r|| |         dz  z  }|dz  }|dz  r|| |         dz  z  }|dz  }|dz  r|| |         d	z  z  }|dz  }|dz  r| |         }|dz  }|d
z  r|| |         dz  z  }|dz  }|dz  r|| |         dz  z  }|dz  }|dk    rd}|||fS )a#  Decode a copy instruction from the next few bytes.

    A copy instruction is a variable number of bytes, so we will parse the
    bytes we care about, and return the new position, as well as the offset and
    length referred to in the bytes.

    :param bytes: A string of bytes
    :param cmd: The command code
    :param pos: The position in bytes right after the copy command
    :return: (offset, length, newpos)
        The offset of the copy start, the number of bytes to copy, and the
        position after the last byte of the copy
    r‚   z(copy instructions must have bit 0x80 setr   rH   r   r�   r�   r‘   é   r’   é@   r   )r“   )r   ÚcmdrO   rŠ   r”   s        r   Údecode_copy_instructionrœ   o  sI  € ð ˆT�z�TÒÐÝÐCÑDÔDÐDØ€FØ€FØˆd‰
ð Ø�s”ˆØˆq‰ˆØˆd‰
ð Ø˜5 œ:¨™?Ñ+ˆØˆq‰ˆØˆd‰
ð Ø˜5 œ:¨Ñ+Ñ,ˆØˆq‰ˆØˆd‰
ð Ø˜5 œ:¨Ñ+Ñ,ˆØˆq‰ˆØˆd‰
ð Ø�s”ˆØˆq‰ˆØˆd‰
ð Ø˜5 œ:¨™?Ñ+ˆØˆq‰ˆØˆd‰
ð Ø˜5 œ:¨Ñ+Ñ,ˆØˆq‰ˆØ�‚{€{ØˆØ�F˜CÐ Ð r   c                 óp  — t          | t          ¦  «        st          d¦  «        ‚t          |t          ¦  «        st          d¦  «        ‚t          t	          j        | ¦  «        ¦  «        }|                     t	          j        |¦  «        t          |¦  «        ¬¦  «        \  }}d                     |¦  «        S )z%Create a delta from source to target.zsource is not bytesztarget is not bytes)r{   r   )	Ú
isinstancer   Ú	TypeErrorr2   r   rk   r€   r!   rj   )Úsource_bytesÚtarget_bytesÚline_locationsÚdeltaÚ_s        r   r€   r€   ›  s¤   € å�l¥EÑ*Ô*ð /ÝÐ-Ñ.Ô.Ð.Ý�l¥EÑ*Ô*ð /ÝÐ-Ñ.Ô.Ð.Ý$¥WÔ%8¸Ñ%FÔ%FÑGÔG€NØ×(Ò(­Ô)<¸\Ñ)JÔ)JÝ69¸,Ñ6GÔ6Gð )ñ Iô I�H€Eˆ1à�8Š8�E‰?Œ?Ðr   c                 óÜ  — t          | t          ¦  «        st          d¦  «        ‚t          |t          ¦  «        st          d¦  «        ‚t          |¦  «        \  }}g }t	          |¦  «        }||k     r¬||         }|dz  }|dz  rZt          |||¦  «        \  }}}||z   }	|	t	          | ¦  «        k    rt          d¦  «        ‚|                     | ||	…         ¦  «         n:|dk    rt          d¦  «        ‚|                     ||||z   …         ¦  «         ||z  }||k     °¬d                     |¦  «        }
t	          |
¦  «        |k    r&t          d	|t	          t          ¦  «        fz  ¦  «        ‚|
S )
z4Apply delta to this object to become new_version_id.zbasis is not byteszdelta is not bytesrH   r‚   z+data would copy bytes past theend of sourcer   zCommand == 0 not supported yetr   z1Delta claimed to be %d long, but ended up %d long)	rž   r   rŸ   r�   r!   rœ   r“   r   rj   )Úbasisr£   Útarget_lengthrO   r*   Ú	len_deltar›   rŠ   r”   Úlastr‡   s              r   Úapply_deltarª   §  s”  € å�e�UÑ#Ô#ð .ÝÐ,Ñ-Ô-Ð-Ý�e�UÑ#Ô#ð .ÝÐ,Ñ-Ô-Ð-Ý+¨EÑ2Ô2Ñ€M�3Ø€EÝ�E‘
”
€IØ
�	Š/ˆ/Ø�CŒjˆØˆq‰ˆØ�‰:ð 	Ý"9¸%ÀÀcÑ"JÔ"JÑˆF�F˜CØ˜F‘?ˆDØ•c˜%‘j”jÒ Ð Ý ð "1ñ 2ô 2ð 2à�LŠL˜˜v d˜{Ô+Ñ,Ô,Ð,Ð,à�aŠxˆxÝ Ð!AÑBÔBÐBØ�LŠL˜˜s 3¨¡9˜}Ô-Ñ.Ô.Ð.Ø�3‰JˆCð �	Š/ˆ/ð �8Š8�E‰?Œ?€DÝ
ˆ4�y„y�MÒ!Ð!Ýð $Ø'4µc½%±j´jÐ&AñBñ Cô Cð 	Cà€Kr   c                 óÒ   — t          | ¦  «        }||k    rt          d¦  «        ‚||k    rt          d¦  «        ‚||k    rt          d¦  «        ‚| ||…         }t          | |¦  «        S )z0Extract a delta from source bytes, and apply it.zdelta starts after sourcezdelta ends after sourcezdelta starts after it ends)r!   r“   rª   )ÚsourceÚdelta_startÚ	delta_endÚsource_sizeÚdelta_bytess        r   Úapply_delta_to_sourcer±   Æ  sz   € å�f‘+”+€KØ�kÒ!Ð!ÝÐ4Ñ5Ô5Ð5Ø�;ÒÐÝÐ2Ñ3Ô3Ð3Ø�iÒÐÝÐ5Ñ6Ô6Ð6Ø˜ YÐ.Ô/€KÝ�v˜{Ñ+Ô+Ð+r   N)r/   Ú r   r   r2   rz   r�   r   rœ   r€   rª   r±   r0   r   r   ú<module>r³      sù   ðð"ð ð Ð Ð Ð Ð Ð ðAð Að Að Að Añ Aô Að AðHU&ð U&ð U&ð U&ð U&ñ U&ô U&ð U&ðpð ð ðð ð ð  ð  ð  ð<)!ð )!ð )!ðX	ð 	ð 	ðð ð ð>
,ð 
,ð 
,ð 
,ð 
,r   