+
    ^eòj7  ã                   ó
  € R t ^ RIHt ^ RIHtHt ^ RIHtHt ^ RI	t	^RI
Ht ]	P                  ! R4      tRtRtR	t]	P                  ! R
],           R,           ]	P"                  4      tRt]	P                  ! RP)                  ]]4      ]	P"                  4      tR tR tR tR.]! ]4      ,           t]! RR7      R 4       t]! ]^4       U Uu/ uF  w  rWbK	  	  upp tRt]! RR7      R 4       tR t R t!R t"R t#R t$R t%R# u upp i )zT
Collection of utilities used within the package and also available for client code
)Ú	lru_cache)ÚchainÚproduct)Úascii_uppercaseÚdigitsN)ÚCellCoordinatesExceptionz^[$]?([A-Za-z]{1,3})[$]?(\d+)$z[A-Z]{1,3}:[A-Z]{1,3}:z\d+:\d+:zq
[$]?(?P<min_col>[A-Za-z]{1,3})?
[$]?(?P<min_row>\d+)?
(:[$]?(?P<max_col>[A-Za-z]{1,3})?
[$]?(?P<max_row>\d+)?)?
Ú^Ú$z7
(('(?P<quoted>([^']|'')*)')|(?P<notquoted>[^'^ ^!]*))!z{0}(?P<cells>{1})(?=,?)c                óæ   € \        V \        4      '       d   \        V 4      p \        V\        4      '       d   \        V4      p\        W^,           4       Uu. uF  p\	        V4      NK  	  up# u upi )z”
Given the start and end columns, return all the columns in the series.

The start and end columns can be either column letters or 1-based
indexes.
)Ú
isinstanceÚstrÚcolumn_index_from_stringÚrangeÚget_column_letter)ÚstartÚendÚxs   && ÚŠ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/openpyxl/utils/cell.pyÚget_column_intervalr      s[   € ô �%œ×ÒÜ(¨Ó/ˆÜ�#”s×ÒÜ& sÓ+ˆÜ*/°¸QµwÔ*?Ó@Ñ*? QÔ˜aÖ Ñ*?Ñ@Ð@ùÒ@s   ÁA.c                óÐ   € \         P                  V 4      pV'       g   RV  R2p\        V4      hVP                  4       w  r4\	        V4      pV'       g   RV  R2p\        V4      hW43# )z;Convert a coordinate string like 'B12' to a tuple ('B', 12)zInvalid cell coordinates (Ú)zThere is no row 0 ()ÚCOORD_REÚmatchr   ÚgroupsÚint)Úcoord_stringr   ÚmsgÚcolumnÚrows   &    r   Úcoordinate_from_stringr   ,   sf   € ä�N‰N˜<Ó(€EßØ*¨<¨.¸Ð:ˆÜ& sÓ+Ð+Ø—,‘,“.�K€FÜ
ˆc‹(€CßØ# L >°Ð3ˆÜ& sÓ+Ð+Øˆ;Ðó    c                ó8  € \         P                  V 4      pV'       g   \        V  R24      hVP                  R4      pVP	                  4        F  w  r4V'       g   K  RV 2W#&   K  	  VR,          '       g   VR,          '       d   RpMRpVP
                  ! R/ VB # )	zDConvert a coordinate to an absolute coordinate string (B12 -> $B$12)z  is not a valid coordinate rangeÚ r	   Úmax_colÚmax_rowz%{min_col}{min_row}:{max_col}{max_row}z{min_col}{min_row}© )ÚABSOLUTE_REr   Ú
ValueErrorÚ	groupdictÚitemsÚformat)r   ÚmÚdÚkÚvÚfmts   &     r   Úabsolute_coordinater0   :   s†   € ä×Ñ˜,Ó'€AßÜ˜L˜>Ð)IÐJÓKÐKà	�‰�B‹€AØ—‘–	‰ˆß‰1Ø�q�c�7ˆA‹Dñ ð 	ˆ‡|„|�q˜—|”|Ø5‰à"ˆØ�:Š:‰?˜‰?Ðr    r"   )Úmaxsizec                óZ  € ^T u;8:  d   R8:  g   M \        RP                  V 4      4      h. pV ^8  d   \        V ,          # V '       dS   \        V ^4      w  rVP	                  ^ \        V,          4       V'       d   K=  V ^,          p VP	                  ^ R4       KZ  RP                  V4      # )aª  
Convert decimal column position to its ASCII (base 26) form.

Because column indices are 1-based, strides are actually pow(26, n) + 26
Hence, a correction is applied between pow(26, n) and pow(26, 2) + 26 to
prevent and additional column letter being prepended

"A" == 1 == pow(26, 0)
"Z" == 26 == pow(26, 0) + 26 // decimal equivalent 10
"AA" == 27 == pow(26, 1) + 1
"ZZ" == 702 == pow(26, 2) + 26 // decimal equivalent 100
ifG  zInvalid column index {0}ÚZr"   )r'   r*   Ú__decimal_to_alphaÚdivmodÚinsertÚjoin)Úcol_idxÚresultÚ	remainders   &  r   r   r   N   s�   € ð �Ö ˜5Ö ÜÐ3×:Ñ:¸7ÓCÓDÐDà€Fà�„|Ü! 'Õ*Ð*ç
Ü# G¨RÓ0ÑˆØ�‰�aÔ+¨IÕ6Ô7ß‰yØ�q�LˆGØ�M‰M˜!˜SÖ!à�7‰7�6‹?Ðr    c                óV  € RV  R2p\        V 4      ^8”  d   \        V4      h^ p\        V P                  4       4      p \	        V \
        4       F"  w  r4 \        V,          pY%T,          ,          pK$  	  ^ Tu;8  d   R8  g   M \        V4      hV#   \         d    \        T4      hi ; i)zº
Convert ASCII column name (base 26) to decimal with 1-based index

Characters represent descending multiples of powers of 26

"AFZ" == 26 * pow(26, 0) + 6 * pow(26, 1) + 1 * pow(26, 2)
Ú'z<' is not a valid column name. Column names are from A to ZZZigG  )Úlenr'   ÚreversedÚupperÚzipÚ__powersÚ__alpha_to_decimalÚKeyError)ÚcolÚ	error_msgÚidxÚletterÚpowerÚposs   &     r   r   r   r   s§   € ð �C�5ÐTÐU€IÜ
ˆ3ƒx�!„|Ü˜Ó#Ð#Ø
€CÜ
�3—9‘9“;Ó
€CÜ˜S¤(Ö+‰ˆð	(Ü$ VÕ,ˆCð 	�U�{ÕŠñ ,ð ˆsŽ?�UŽ?Ü˜Ó#Ð#Ø€Jøô ô 	(Ü˜YÓ'Ð'ð	(ús   ÁBÂB(c                ó  € RP                  V 4      p\        P                  V 4      pV'       g   \        V4      hVP	                  4       w  r4rVpV'       dm   W63pWG3p	\        W‰,           4      '       gP   \        V4      '       d   \        V	4      '       d.   \        V	4      '       d   \        V4      '       d   \        V4      hVe   \        V4      pVe   \        V4      pVe   \        V4      pMTpVe   \        V4      pMTpW4Wg3# )z£
Convert a range string into a tuple of boundaries:
(min_col, min_row, max_col, max_row)
Cell coordinates will be converted into a range with the cell at both end
z&{0} is not a valid coordinate or range)	r*   r&   r   r'   r   ÚallÚanyr   r   )
Úrange_stringr   r+   Úmin_colÚmin_rowÚsepr#   r$   ÚcolsÚrowss
   &         r   Úrange_boundariesrS   ‹   sä   € ð 3×
9Ñ
9¸,Ó
G€CÜ×Ñ˜,Ó'€AßÜ˜‹oÐà./¯h©h«jÑ+€G�c Gç
ØÐˆØÐˆô �•×ÒÜ��IŠIœc $ŸišiÜ��IŠIœc $Ÿišiä˜S“/Ð!àÒÜ*¨7Ó3ˆàÒÜ�g“,ˆàÒÜ*¨7Ó3‰àˆàÒÜ�g“,‰àˆà˜WÐ-Ð-r    c              #  ó(  a"  € \        V 4      w  rr4\        W$^,           4      p\        W^,           4       Uu. uF  p\        V4      NK  	  ppV F7  o\        ;QJ d    . V3R lV 4       F  NK  	  5M! V3R lV 4       4      x € K9  	  R# u upi 5i)úO
Get individual addresses for every cell in a range.
Yields one row at a time.
c              3   óH   <"  € T F  pR P                  VS4      x € K  	  R# 5i©z{0}{1}N©r*   )Ú.0rD   r   s   & €r   Ú	<genexpr>Ú"rows_from_range.<locals>.<genexpr>¿   ó   øé € Ð>¹°#�H—O‘O C¨×-Ð-»ùó   ƒ"N)rS   r   r   Útuple)	rM   rN   rO   r#   r$   rR   rD   rQ   r   s	   &       @r   Úrows_from_ranger_   ¶   sy   øé € ô
 *:¸,Ó)GÑ&€G�gÜ� A�+Ó&€DÜ.3°GÀq½[Ô.IÓJÑ.I sÔ˜cÖ"Ñ.I€DÐJÛˆßŒeÔ>¹Ó>�e‰eÔ>¹Ó>Ó>Ô>ó ùò Kùs   ƒ5B¸BÁABc              #  óü   a"  € \        V 4      w  rr4\        W$^,           4      pR \        W^,           4       4       pV F7  o\        ;QJ d    . V3R lV 4       F  NK  	  5M! V3R lV 4       4      x € K9  	  R# 5i)rU   c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5i)N)r   )rY   rD   s   & r   rZ   Ú"cols_from_range.<locals>.<genexpr>É   s   é € ÐHÑ.G sÔ˜c×"Ð"Ó.Gùs   ‚c              3   óH   <"  € T F  pR P                  SV4      x € K  	  R# 5irW   rX   )rY   r   rD   s   & €r   rZ   rb   Ë   r\   r]   N)rS   r   r^   )rM   rN   rO   r#   r$   rR   rQ   rD   s   &      @r   Úcols_from_rangerd   Â   sa   øé € ô
 *:¸,Ó)GÑ&€G�gÜ� !�)Ó$€DÙH¬e°GÀQ½YÔ.GÓH€DÛˆßŒeÔ>¹Ó>�e‰eÔ>¹Ó>Ó>Ô>ó ùs   ƒA9A<c                ó‚   € \        V 4       F  w  rV\        9   g   K   M	  V RX pWR p\        V4      \        V4      3# )z:
Convert an Excel style coordinate to (row, column) tuple
N)Ú	enumerater   r   r   )Ú
coordinaterF   ÚcrD   r   s   &    r   Úcoordinate_to_tupleri   Î   sL   € ô ˜JÖ'‰ˆØ”Ž;Ùñ (ð �T�cÐ
€CØ
�TÐ
€CÜˆs‹8Ô-¨cÓ2Ð2Ð2r    c                óÜ   € \         P                  V 4      pVf   \        R4      hVP                  R4      ;'       g    VP                  R4      pVP                  R4      p\	        V4      pW$3# )zW
Convert a worksheet range to the sheetname and maximum and minimum
coordinate indices
z)Value must be of the form sheetname!A1:E4ÚquotedÚ	notquotedÚcells)ÚSHEETRANGE_REr   r'   ÚgrouprS   )rM   r+   Ú	sheetnamerm   Ú
boundariess   &    r   Úrange_to_tuplerr   Ú   se   € ô
 	×Ñ˜LÓ)€AØ‚yÜÐDÓEÐEØ—‘˜Ó!×9Ð9 Q§W¡W¨[Ó%9€IØ�G‰G�GÓ€EÜ! %Ó(€JØÐ Ð r    c                óZ   € RV 9   d   V P                  RR4      p RP                  V 4      p V # )z6
Add quotes around sheetnames if they contain spaces.
r<   z''z'{0}')Úreplacer*   )rp   s   &r   Úquote_sheetnameru   è   s2   € ð ˆiÔØ×%Ñ% c¨4Ó0ˆ	à—‘ 	Ó*€IØÐr    )é   é   i¤  )&Ú__doc__Ú	functoolsr   Ú	itertoolsr   r   Ústringr   r   ÚreÚ
exceptionsr   Úcompiler   Ú	COL_RANGEÚ	ROW_RANGEÚ
RANGE_EXPRÚVERBOSEr&   ÚSHEET_TITLEr*   rn   r   r   r0   Úlistr4   r   rf   rB   rA   r   rS   r_   rd   ri   rr   ru   )rI   rG   s   00r   Ú<module>r…      s.  ðñõ  ß $ß *Û 	å 0ð �:Š:Ð7Ó8€Ø(€	Ø€	ð€
ð �jŠj˜˜zÕ)¨3Õ.°·
±
Ó;€ð:€à—
’
Ð8×?Ñ?Ø�óØ Ÿj™jó*€òAòòð$ �T™D Ó1Õ1Ð á
�4Ôñó ðñ@ 5>¸oÈqÔ4QÔRÑ4Q¡[ S�f’jÑ4QÒRÐ Ø€á
�4Ôñó ðò0(.òV	?ò	?ò	3ò!ôùós Ss   Ã	C?