+
    oi}>                     D   ^ RI t ^ RIt^ RIHtHt ^ RIt^ RIt^ RIt^ RIH	t	H
t
HtHtHtHt ^ RIt^RIHtHt ]! ^\4      t]! R]	R7      t ! R R4      t]! ^R	7      R
 R l4       t]! ^R	7      R R l4       t]! ^R	7      R R l4       t ! R R4      t ! R R4      t ! R R4      t ! R R]4      tR R lt ! R R4      t] ]!3]"3R lt#R R lt$R3R  R! llt%R" R# lt&R$ R% lt'R4R&RR'^/R( R) lllt(R* R+ lt)]PT                  ! R,4      3R- R. llt+R5R/R0/R1 R2 lllt,R# )6    N)	lru_cachewraps)CallableUnionIterableTypeVarcastAny)PyparsingDeprecationWarningPyparsingDiagnosticWarningC)boundc                   p   a  ] tR t^t o Rt. t. tRt]R 4       t	]! R 4      t
]! R 4      tV 3R ltRtV tR# )	__config_flagsz=Internal class for defining compatibility and debugging flagsconfigurationc                T   WP                   9   d`   \        P                  ! V P                   R V RV P                   R\        \        W4      4      P                  4        R2\        ^R7       R# WP                  9   d   \        WV4       R# \        RV P                   RV: 24      h). z is z and cannot be overridden
stacklevelNzno such )_fixed_nameswarningswarn__name__
_type_descstrgetattrupperr   
_all_namessetattr
ValueError)clsdnamevalues   &&&q/Users/tonyclaw/.openclaw/workspace/scripts/youtube-playlists/venv/lib/python3.14/site-packages/pyparsing/util.py_set__config_flags._set   s    $$$MM<<.%#..)9c'#BU>V>\>\>^=_+-*	 NN"C&x'7q	BCC    c                &    V P                  VR 4      # Tr&   r"   names   &&r%   <lambda>__config_flags.<lambda>'   s    388D$+?r(   c                &    V P                  VR 4      # )Fr+   r,   s   &&r%   r.   r/   (   s    CHHT5,Ar(   c                R   < V ^8  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   # )   r   r   listr   )format__classdict__s   "r%   __annotate____config_flags.__annotate__   s'      S	  s) 	 r(    N)r   
__module____qualname____firstlineno____doc__r   r   r   classmethodr&   enabledisable__annotate_func____static_attributes____classdictcell__r6   s   @r%   r   r      sJ     GJ L JD D ?@FABG/  r(   r   )maxsizec                <    V ^8  d   QhR\         R\        R\         /# r2   locstrgreturnintr   )r5   s   "r%   r7   r7   ,   s&     Y YS Y Y Yr(   c                    Tp^ T u;8  d   \        V4      8  d   M MW ^,
          ,          R8X  d   ^# WP                  R^ V 4      ,
          # )a  
Returns current column within a string, counting newlines as line separators.
The first column is number 1.

Note: the default parsing behavior is to expand tabs in the input string
before starting the parsing process.  See
:meth:`ParserElement.parse_string` for more
information on parsing strings containing ``<TAB>`` s, and suggested
methods to maintain a consistent view of the parsed string, the parse
location, and line and column positions within the parsed string.

)lenrfind)rH   rI   ss   && r%   colrR   +   sC     	AC #a& QQwZ4%71XS774QRTWCX=XXr(   c                <    V ^8  d   QhR\         R\        R\         /# rG   rK   )r5   s   "r%   r7   r7   =   s!     
( 
( 
(3 
(3 
(r(   c                6    VP                  R^ V 4      ^,           # )a  Returns current line number within a string, counting newlines as line separators.
The first line is number 1.

Note - the default parsing behavior is to expand tabs in the input string
before starting the parsing process.  See :meth:`ParserElement.parse_string`
for more information on parsing strings containing ``<TAB>`` s, and
suggested methods to maintain a consistent view of the parsed string, the
parse location, and line and column positions within the parsed string.
rN   )count)rH   rI   s   &&r%   linenorV   <   s     ::dAs#a''r(   c                <    V ^8  d   QhR\         R\        R\        /# rG   rK   )r5   s   "r%   r7   r7   K   s&     P Pc P P Pr(   c                    VP                  R^ V 4      pVP                  RV 4      pV^ 8  d   W^,           V # W^,           R # )z`
Returns the line of text containing loc within a string, counting newlines as line separators.
rN   N)rP   find)rH   rI   last_crnext_crs   &&  r%   liner\   J   sI    
 jjq#&Giic"G*1Q,4!g&OD1<OOr(   c                   &   a  ] tR t^Tt o R tRtV tR# )_UnboundedCachec                   aaa / oSP                   o\        4       ;V n        oVV3R  lpV3R lpV3R lpRV n        \        P
                  ! W4      V n         \        P
                  ! W 4      V n        \        P
                  ! W04      V n        R# )c                    < S! VS4      # Nr9   _key	cache_getnot_in_caches   &&r%   get%_UnboundedCache.__init__.<locals>.getZ       S,//r(   c                    < VSV&   R # ra   r9   )rc   rd   r$   caches   &&&r%   set_&_UnboundedCache.__init__.<locals>.set_]   s    E#Jr(   c                 (   < SP                  4        R # ra   clearrc   rk   s   &r%   rp   '_UnboundedCache.__init__.<locals>.clear`       KKMr(   N)rg   objectrf   sizetypes
MethodTypesetrp   )selfrg   rl   rp   rk   re   rf   s   &   @@@r%   __init___UnboundedCache.__init__U   sn    II	+183L	0		 	##C.##D/%%e2
r(   rp   rg   rf   rx   ru   Nr   r:   r;   r<   rz   rB   rC   rD   s   @r%   r^   r^   T   s     3 3r(   r^   c                   &   a  ] tR t^it o R tRtV tR# )
_FifoCachec                @  aaaaa / oSV n         \        4       ;V n        oSP                  oSP                  oVV3R  lpVVV3R lpV3R lp\
        P                  ! W 4      V n        \
        P                  ! W04      V n        \
        P                  ! W@4      V n        R# )c                    < S! VS4      # ra   r9   rb   s   &&r%   rg    _FifoCache.__init__.<locals>.getq   ri   r(   c                 j   < VSV&   \        S4      S8  d   S! \        \        S4      4      4       K,  R # ra   )rO   nextiter)rc   rd   r$   rk   	cache_popru   s   &&&r%   rl   !_FifoCache.__init__.<locals>.set_t   s.    E#Je*t#$tE{+, $r(   c                 (   < SP                  4        R # ra   ro   rq   s   &r%   rp   "_FifoCache.__init__.<locals>.clearz   rs   r(   N)	ru   rt   rf   rg   poprv   rw   rx   rp   )	ry   ru   rg   rl   rp   rk   re   r   rf   s	   &f   @@@@r%   rz   _FifoCache.__init__j   sw    	+183LII	II		0	-	 ##C.##D/%%e2
r(   r|   Nr}   rD   s   @r%   r   r   i   s     3 3r(   r   c                   B   a  ] tR t^t o RtR tR tR tR tR t	Rt
V tR# )	LRUMemoz
A memoizing mapping that retains `capacity` deleted items

The memo tracks retained items by their access order; once `capacity` items
are retained, the least recently used item is discarded.
c                .    Wn         / V n        / V n        R # ra   )	_capacity_active_memory)ry   capacitys   &&r%   rz   LRUMemo.__init__   s    !r(   c                     V P                   V,          #   \         d?    T P                  P                  T4      T P                  T&   T P                  T,          u # i ; ira   )r   KeyErrorr   r   ry   rd   s   &&r%   __getitem__LRUMemo.__getitem__   sQ    	%<<$$ 	% $ 0 0 5DLL<<$$	%s    AAAc                Z    V P                   P                  VR 4       W P                  V&   R # ra   )r   r   r   )ry   rd   r$   s   &&&r%   __setitem__LRUMemo.__setitem__   s"    d#!Sr(   c                    V P                   P                  V4      p\        V P                  4      R V P                  ^,           )  pV F  pV P                  P                  V4       K   	  W P                  V&   R #   \
         d     R # i ; ira   )r   r   r4   r   r   r   )ry   rd   r$   oldest_keyskey_to_deletes   &&   r%   __delitem__LRUMemo.__delitem__   s{    	&LL$$S)E t||,-D!1C/DEK!,  / "- %LL  		s   A; ;B
	B
c                n    V P                   P                  4        V P                  P                  4        R # ra   )r   rp   r   ry   s   &r%   rp   LRUMemo.clear   s"    r(   )r   r   r   N)r   r:   r;   r<   r=   rz   r   r   r   rp   rB   rC   rD   s   @r%   r   r      s(     
%"	& r(   r   c                   *   a  ] tR t^t o RtR tRtV tR# )UnboundedMemoz4
A memoizing mapping that retains all deleted items
c                    R # ra   r9   r   s   &&r%   r   UnboundedMemo.__delitem__   s    r(   r9   N)r   r:   r;   r<   r=   r   rB   rC   rD   s   @r%   r   r      s      r(   r   c                0    V ^8  d   QhR\         R\         /# r2   rQ   rJ   r   )r5   s   "r%   r7   r7      s        r(   c                     R  F   pV P                  V\        V,           4      p K"  	  V P                  RR4      p V P                  RR4      p \        V 4      # )z\^-[]rN   z\n	z\t)replace_bslashr   )rQ   cs   & r%   _escape_regex_range_charsr      sI    IIa1% 			$A			$Aq6Mr(   c                   H   a  ] tR t^t o RtV 3R lR ltV 3R lR ltRtV tR# )_GroupConsecutivea  
Used as a callable `key` for itertools.groupby to group
characters that are consecutive:

.. testcode::

   from itertools import groupby
   from pyparsing.util import _GroupConsecutive

   grouped = groupby("abcdejkmpqrs", key=_GroupConsecutive())
   for index, group in grouped:
       print(tuple([index, list(group)]))

prints:

.. testoutput::

   (0, ['a', 'b', 'c', 'd', 'e'])
   (1, ['j', 'k'])
   (2, ['m'])
   (3, ['p', 'q', 'r', 's'])
c                   < V ^8  d   QhRR/# )r2   rJ   Nr9   )r5   r6   s   "r%   r7   _GroupConsecutive.__annotate__   s      $ r(   c                V    ^ V n         \        P                  ! 4       V n        RV n        R# )r   N)prev	itertoolsrU   counterr$   r   s   &r%   rz   _GroupConsecutive.__init__   s    	 (
r(   c                &   < V ^8  d   QhRS[ RS[/# )r2   charrJ   )r   rL   )r5   r6   s   "r%   r7   r      s      S S r(   c                    \        V4      pW P                  uV n        pW#,
          ^8  d   \        V P                  4      V n        V P                  # )   )ordr   r   r   r$   )ry   r   c_intr   s   &&  r%   __call___GroupConsecutive.__call__   s>    D		4<!dll+DJzzr(   )r   r   r$   N)	r   r:   r;   r<   r=   rz   r   rB   rC   rD   s   @r%   r   r      s     . 
 r(   r   c                 `    \        W4      '       d   R #  \        V 4       R#   T d     R # i ; i)FT)
isinstancer   )obj	_str_type_iter_exceptions   &&&r%   _is_iterabler      s5    #!!S	   s   " --c                0    V ^8  d   QhR\         R\         /# )r2   r   rJ   r   )r5   s   "r%   r7   r7      s     , ,S ,S ,r(   c                     V R 9   d   RV  2# T # )z\^-][\r9   )r   s   &r%   _escape_re_range_charr      s    H}as8+!+r(   Tc                t    V ^8  d   QhR\         \        \        \        ,          3,          R\        R\        /# )r2   rQ   	re_escaperJ   )r   r   r   bool)r5   s   "r%   r7   r7      s7     U US(3- U-1UUr(   c                   V'       d   \         pMR p. p\        \        V 4      4      p\        V4      ^8  d   \        P
                  ! V\        4       R7       F  w  rV\        V4      ;rx\        P                  ! \        4      ;_uu_ 4        VEv rXRRR4       Wx8X  d   VP                  V! V4      4       K_  V\        \        V4      ^,           4      8X  d$   VP                  V! V4       V! V4       24       K  VP                  V! V4       RV! V4       24       K  	  MV U	u. uF
  q! V	4      NK  	  pp	RP                  V4      #   + '       g   i     L; iu up	i )a  
Take a string or list of single-character strings, and return
a string of the consecutive characters in that string collapsed
into groups, as might be used in a regular expression '[a-z]'
character set::

    'a' -> 'a' -> '[a]'
    'bc' -> 'bc' -> '[bc]'
    'defgh' -> 'd-h' -> '[d-h]'
    'fdgeh' -> 'd-h' -> '[d-h]'
    'jklnpqrtu' -> 'j-lnp-rtu' -> '[j-lnp-rtu]'

Duplicates get collapsed out::

    'aaa' -> 'a' -> '[a]'
    'bcbccb' -> 'bc' -> '[bc]'
    'defghhgf' -> 'd-h' -> '[d-h]'
    'jklnpqrjjjtu' -> 'j-lnp-rtu' -> '[j-lnp-rtu]'

Spaces are preserved::

    'ab c' -> ' a-c' -> '[ a-c]'

Characters that are significant when defining regex ranges
get escaped::

    'acde[]-' -> r'\-\[\]ac-e' -> r'[\-\[\]ac-e]'
c                     V # ra   r9   )sss   &r%   r.   ,_collapse_string_to_ranges.<locals>.<lambda>  s    "r(   rd   N- )r   sortedrx   rO   r   groupbyr   r   
contextlibsuppressr!   appendchrr   join)
rQ   r   escape_re_range_charrets_charsrc   charsfirstlastr   s
   &&        r%   _collapse_string_to_rangesr      s3   P 4,
C  AG
7|a "))'7H7JKHA  ;&E$$Z00  1 }

/67SZ!^,, 

259:;OPT;U:VWX
 

+E2315I$5O4PQ) L< 1881#A&8773<7 102 9s   E	&E	Ec                0    V ^8  d   QhR\         R\        /# )r2   llrJ   )r   r4   )r5   s   "r%   r7   r7   J  s       d r(   c                     . pV  Fo  p\        V\        4      '       d   VP                  V4       K,  \        V\        4      '       d   VP	                  \        V4      4       K^  VP                  V4       Kq  	  V# ra   )r   r   r   r   extend_flatten)r   r   is   &  r%   r   r   J  sZ    
C aJJqM8$$JJx{#JJqM  Jr(   c                0    V ^8  d   QhR\         R\         /# r   r   )r5   s   "r%   r7   r7   Y  s        r(   c                     V R 8X  d   R# V P                  4       '       d&   \        V 4      ^8X  d   \        \        V ^4      4      # V P	                  R4      '       d   \        \        V R,          ^4      4      # V # )0 r   NN)ux)isdigitrO   r   rL   
startswithrQ   s   &r%   !_convert_escaped_numerics_to_charr   Y  sZ    Cxyy{{s1v{3q!9~	
j	!	!3qub>""Hr(   non_capturing_groups_levelc          
      j    V ^8  d   QhR\         \        ,          R\        R\        R\        R\        /# )r2   	word_list	max_levelr   r   rJ   )r   r   rL   r   )r5   s   "r%   r7   r7   c  sE     \ \}\\ 	\
 \ 	\r(   c          
        R R lpV^8X  d'   V '       g   \        R4      hRV 9   d   \        R4      hM
V '       g   R# \        / P                  V 4      4      p V^ 8X  d   \        ;QJ d    R V  4       F  '       g   K   RM	  RM! R V  4       4      '       dF   R	P	                  \        V  Uu. uF  p\        P                  ! V4      NK  	  up\        RR
7      4      # RRP	                  R V  4       4       R2# . pRpV'       d   RMRpV! \        V 4      4       EFG  w  rVP                  V4       R	p\        P                  ! V	4      p	RpRV
9   d   RpV
P                  R4       \        V
4      ^8  Edf   \        ;QJ d    R V
 4       F  '       d   K   RM	  RM! R V
 4       4      '       d2   VP                  V	 RRP	                  R V
 4       4       RV 24       K  W18  d>   \        \        V
4      VVV^,           R7      pVP                  V	 RV V RV 24       EK
  \        ;QJ d    R V
 4       F  '       d   K   RM	  RM! R V
 4       4      '       d3   VP                  V	 RRP	                  R V
 4       4       RV 24       EKv  V
P                  \        RR
7       VP                  V	 RV R	P	                  R V
 4       4       RV 24       EK  V
'       dn   \        P                  ! V
^ ,          4      p\        V4      ^8  d'   V'       d   VP                  V	 RV V RV 24       EK  VP                  V	 V V 24       EK6  VP                  V	4       EKJ  	  RP	                  V4      # u upi )z
Create a regular expression string from a list of words, collapsing by common
prefixes and optional suffixes.

Calls itself recursively to build nested sublists for each group of suffixes
that have a shared prefix.
c                :    V ^8  d   QhR\         \        ,          /# )r2   namelistr3   )r5   s   "r%   r7   (make_compressed_re.<locals>.__annotate__r  s     4 4DI 4r(   c           	   3     "   \        V 4      ^8  dQ   \        P                  ! V R R7       F1  w  rT\        V Uu. uF  q3R,          NK  	  up\         RR7      3x  K3  	  R# V ^ ,          ^ ,          V ^ ,          R,          .3x  R# u upi 5i)r   c                     V R ,          # )Nr   Nr9   r   s   &r%   r.   Omake_compressed_re.<locals>.get_suffixes_from_common_prefixes.<locals>.<lambda>t  s	    aPRer(   r   r   Trd   reverseN)rO   r   r   r   )r   prefixsuffixesrQ   s   &   r%   !get_suffixes_from_common_prefixes=make_compressed_re.<locals>.get_suffixes_from_common_prefixesr  sy     x=1$-$5$5hO$T fX%>XeeX%>CQUVVV %U 1+a.8A;r?"333 &?s   9BBABz&no words given to make_compressed_re()r   z%word list cannot contain empty stringc              3   >   "   T F  p\        V4      ^8  x  K  	  R# 5ir   NrO   .0wds   & r%   	<genexpr>%make_compressed_re.<locals>.<genexpr>  s     /Yrs2w{Y   TF|r  [c              3   8   "   T F  p\        V4      x  K  	  R # 5ira   r   r  s   & r%   r  r    s     Qy8<<y   ]z?:?c              3   >   "   T F  p\        V4      ^8H  x  K  	  R# 5ir
  r  r  rQ   s   & r%   r  r    s     113q6Q;r  c              3   8   "   T F  p\        V4      x  K  	  R # 5ira   r  r  s   & r%   r  r    s     (Xx!)B1)E)Exr  )r   r   ()c              3   >   "   T F  p\        V4      ^8H  x  K  	  R# 5ir
  r  r  s   & r%   r  r    s     913q6Q;r  c              3   8   "   T F  p\        V4      x  K  	  R # 5ira   r  r  s   & r%   r  r    s     0`W_RS1J11M1MW_r  c              3   N   "   T F  p\         P                  ! V4      x  K  	  R # 5ira   )reescaper  s   & r%   r  r    s     :ZQYA299Q<<QYs   #%)r!   r4   fromkeysanyr   r   r!  r"  rO   r   removeallmake_compressed_resort)r   r   r   r   r  r  r   sepncgroupinitialr  trailing	suffix_resuffixs   &&$$          r%   r'  r'  c  s   4 {EFF?DEE   R[[+,IA~3/Y/333/Y///88	:	"		"	:TR  rwwQyQQRRSTT
C
C*dG>vi?PQ

3))G$>HOOBx=1s11sss1111

iq(Xx(X!X YYZ[cZde % 2x(!-A%z	!I JJ'!G9YKq
KLs99sss9999

&iq0`W_0`)`(aabckblm !#t<

&iq	#((:ZQY:Z2Z1[[\]e\fg 8A;/v;?xJJ'!G9VHAhZHIJJ'6(8*=>

7#W RX 773<k ;s   -M8c                <    V ^8  d   QhR\         R\        R\        /# )r2   compat_namefnrJ   )r   r   )r5   s   "r%   r7   r7     s!     * *# *1 * *r(   c                 x  a a \        SR S4      oR.\        \        P                  ! S4      P                  4      R,          8X  d   \        S4      V V3R l4       pM\        S4      V V3R l4       pRSP                   R2Vn        S Vn        SP                  Vn        \        S\        P                  4      '       d   SP                  Vn        MK\        S\        4      '       d/   \        SR4      '       d   SP                  P                  Vn        MRVn        SP                   Vn        \#        \$        V4      # )	__func__ry   r  c                 x   < \         P                  ! S: R SP                  : 2\        ^R7       S! V .VO5/ VB # z deprecated - use r   r   r   r   r   )ry   argskwargsr0  r1  s   &*,r%   _inner replaced_by_pep8.<locals>._inner  s?    MM/!3BKK?C+
 d,T,V,,r(   c                  p   < \         P                  ! S: R SP                  : 2\        ^R7       S! V / VB # r5  r6  )r7  r8  r0  r1  s   *,r%   r9  r:    s:    MM/!3BKK?C+
 t&v&&r(   z6
        .. deprecated:: 3.0.0
           Use :class:`z` instead
        rz   N)r   r4   inspect	signature
parametersr   r   r=   __annotations__r   rv   FunctionType__kwdefaults__typehasattrrz   r;   r	   r   )r0  r1  r9  s   ff r%   replaced_by_pep8rD    s    
Z	$B 	x4))"-889"==	r	- 
	- 
r	' 
	'} %	FN "FO//F"e(()) " 1 1	B		'"j"9"9 " : : $//F6?r(   z([a-z])([A-Z])c                0    V ^8  d   QhR\         R\         /# r   r   )r5   s   "r%   r7   r7     s      S C r(   c                 F    VP                  R V 4      p V P                  4       # )z\1_\2)sublower)rQ   _re_sub_patterns   &&r%   _to_pep8_namerJ    s     Ha(A779r(   new_namer   c                j    V ^8  d   QhR\         \        \        3,          R\        R\        R\        /# )r2   r8  arg_namerK  rJ   )dictr   r
   )r5   s   "r%   r7   r7     s4      cN&)LOr(   c                    W9   dB   T;'       g    \        V4      p\        P                  ! V: R V: 2\        ^R7       W,          # W V&   W,          # )z argument is deprecated, use )categoryr   )rJ  r   r   r   )r8  rM  default_valuerK  s   &&&$r%   deprecate_argumentrR    s[     66}X6l7|D0	
  )xr(   r*   )r2   ra   )-r   r!  	functoolsr   r   r<  r   rv   typingr   r   r   r   r	   r
   r   r   r   r   r   r   r   rR   rV   r\   r^   r   r   rN  r   r   r   r   bytes	Exceptionr   r   r   r   r   r'  rD  compilerJ  rR  r9   r(   r%   <module>rX     sC    	 &    @ @  M
b'Cx C C4 3Y Y  3
( 
( 3P P3 3*3 32% %PD " "J "%ei 
,Up\ "&	\
 \ \~*Z +-**5F*G 
RT r(   