a *žegRã @shdZGdd„deƒZeƒZejZejZejZejZejZej Z ej Z ej Z e j Z e j Z ejZejZejZejZee_e e_ e e_ dd„Zdd„Zedededed ed ed e d e jd e jde jde jde jde jde de jde jde jjde jde jde jde jde jde j de j j!de j"de j#de jd e jd!e j$d"e j%d#e j%jd$e j%j&d%e j%j'd&e j%j!d'e d(e j(d)e d*e j)d+e j*d,e j+d-e j,d.e j-d/e j.d0e jd1e j/d2e j0d3e jd4e j1d5e j2d6e j3d7e d8e j4d9e j5d:e j6d;e j7ded?ej:d@edAej;dBedCejdFej?dGej2dHej@dIedJejAdKejBdLejdMejCdNejDdOejEdPejFdQejGdRejHdSejIdTejJdUiPZKdVS)WzË pygments.token ~~~~~~~~~~~~~~ Basic token types and the standard tokens. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. c@sHeZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dS)Ú _TokenTypeNcCs.g}|}|dur"| |¡|j}q| ¡|S©N)ÚappendÚparentÚreverse)ÚselfÚbufÚnode©r úD/usr/local/lib/python3.9/site-packages/pip/_vendor/pygments/token.pyÚsplits z_TokenType.splitcGs tƒ|_dSr)ÚsetÚsubtypes)rÚargsr r r Ú__init__sz_TokenType.__init__cCs*||up(t|ƒ|juo(|dt|ƒ…|kSr)ÚtypeÚ __class__Úlen)rÚvalr r r Ú __contains__sþz_TokenType.__contains__cCsL|r|d ¡st ||¡St||fƒ}t|||ƒ|j |¡||_|S)Né)ÚisupperÚtupleÚ__getattribute__rÚsetattrr Úaddr)rrÚnewr r r Ú __getattr__"s   z_TokenType.__getattr__cCsd|r dp dd |¡S)NÚTokenÚ.Ú)Újoin©rr r r Ú__repr__+sz_TokenType.__repr__cCs|Srr r!r r r Ú__copy__.sz_TokenType.__copy__cCs|Srr )rÚmemor r r Ú __deepcopy__2sz_TokenType.__deepcopy__) Ú__name__Ú __module__Ú __qualname__rr rrrr"r#r%r r r r r s  rcCs||vS)z‚ Return True if ``ttype`` is a subtype of ``other``. exists for backwards compatibility. use ``ttype in other`` now. r )ÚttypeÚotherr r r Úis_token_subtypeUsr+cCs8t|tƒr|S|stSt}| d¡D]}t||ƒ}q$|S)a} Convert a string into a token type:: >>> string_to_token('String.Double') Token.Literal.String.Double >>> string_to_token('Token.Literal.Number') Token.Literal.Number >>> string_to_token('') Token Tokens that are already tokens are returned unchanged: >>> string_to_token(String) Token.Literal.String r)Ú isinstancerrr Úgetattr)ÚsrÚitemr r r Ústring_to_tokentype^s  r0rÚwÚescÚerrÚxÚkZkcZkdÚknZkpZkrZktÚnÚnaÚnbZbpZncÚnoÚndÚniÚneÚnfZfmÚpyÚnlÚnnZnxÚntÚnvZvcZvgÚviZvmÚlZldr.ÚsaZsbZscÚdlÚsdÚs2ÚseÚshÚsiZsxÚsrÚs1ÚssÚmÚmbZmfZmhÚmiZilÚmoÚoZowÚpZpmÚcÚchÚcmÚcpZcpfZc1ÚcsÚgÚgdÚgeZgrZghZgiZgoZgpZgsZguZgesÚgtN)LÚ__doc__rrrÚTextÚ WhitespaceZEscapeÚErrorZOtherÚKeywordÚNameÚLiteralÚStringÚNumberZ PunctuationZOperatorÚCommentÚGenericr+r0ÚConstantZ DeclarationÚ NamespaceZPseudoZReservedÚTypeÚ AttributeZBuiltinZClassZ DecoratorÚEntityÚ ExceptionZFunctionZMagicZPropertyZLabelÚTagÚVariableÚGlobalZInstanceÚDateZAffixZBacktickÚCharZ DelimiterZDocÚDoubleZHeredocZInterpolÚRegexÚSingleZSymbolZBinZFloatZHexZIntegerZLongÚOctÚWordÚMarkerZHashbangZ MultilineZPreprocZ PreprocFileÚSpecialZDeletedZEmphZHeadingZInsertedZOutputZPromptZStrongZ SubheadingZ EmphStrongÚ TracebackZSTANDARD_TYPESr r r r ÚsÌ + ¦