
    $|hI                         d e de fdZy)datareturnc                 >   d}d}|t        |       k  r| |   }|dk(  r	 |S |dk\  r?|dk  r:t        |dz   |dz   |dz   z         D ]  }|t        | |   f      z  } |dz   |dz   z   }|dkD  r%t        | |dz      f      d|z
  z  }||z  }|dz   dz   }|t        |       k  r|S )a  RunLength decoder (Adobe version) implementation based on PDF Reference
    version 1.4 section 3.3.4:
        The RunLengthDecode filter decodes data that has been encoded in a
        simple byte-oriented format based on run length. The encoded data
        is a sequence of runs, where each run consists of a length byte
        followed by 1 to 128 bytes of data. If the length byte is in the
        range 0 to 127, the following length + 1 (1 to 128) bytes are
        copied literally during decompression. If length is in the range
        129 to 255, the following single byte is to be copied 257 - length
        (2 to 128) times during decompression. A length value of 128
        denotes EOD.
                  i  )lenrangebytes)r   decodedilengthjruns         Q/var/www/html/test/engine/venv/lib/python3.12/site-packages/pdfminer/runlength.pyrldecoder   	   s     G	A
c$i-aS= N Q;6C<1q51q5VaZ"89 -5$q',,-Q6A:&AC<a!e'3<8CsNGQ!A c$i- Nr   N)r   r    r   r   <module>r      s   5 U r   