\e[c@`sddlmZmZmZddlmZmZddlZddlm Z ddl m Z ddl m Z ddl m Z dd lmZdd l mZdd lmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"d e#d Z$dd e#dZ%dZ&de'fdYZ(ej)dZ*dZ+de,e-dZ.de/fdYZ0dS(i(tabsolute_importtdivisiontunicode_literals(twith_metaclasstviewkeysN(t OrderedDicti(t _inputstream(t _tokenizer(t treebuilders(tMarker(t_utils(tspaceCharacterstasciiUpper2LowertspecialElementstheadingElementst cdataElementstrcdataElementst tokenTypest tagTokenTypest namespacesthtmlIntegrationPointElementst"mathmlTextIntegrationPointElementstadjustForeignAttributestadjustMathMLAttributestadjustSVGAttributestEt_ReparseExceptionuetreecK`s1tj|}t|d|}|j||S(uParse an HTML document as a string or file-like object into a tree :arg doc: the document to parse as a string or file-like object :arg treebuilder: the treebuilder to use when parsing :arg namespaceHTMLElements: whether or not to namespace HTML elements :returns: parsed tree Example: >>> from html5lib.html5parser import parse >>> parse('

This is a doc

') tnamespaceHTMLElements(RtgetTreeBuildert HTMLParsertparse(tdoct treebuilderRtkwargsttbtp((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRsudivcK`s7tj|}t|d|}|j|d||S(u#Parse an HTML fragment as a string or file-like object into a tree :arg doc: the fragment to parse as a string or file-like object :arg container: the container context to parse the fragment in :arg treebuilder: the treebuilder to use when parsing :arg namespaceHTMLElements: whether or not to namespace HTML elements :returns: parsed tree Example: >>> from html5lib.html5libparser import parseFragment >>> parseFragment('this is a fragment') Rt container(RRRt parseFragment(RR$R RR!R"R#((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR%2sc`s dtffdY}|S(Nt Decoratedc`seZfdZRS(c`s^xE|jD]7\}}t|tjr:|}n|||>> from html5lib.html5parser import HTMLParser >>> parser = HTMLParser() # generates parser with etree builder >>> parser = HTMLParser('lxml', strict=True) # generates parser with lxml builder which is strict uetreeN( tstricttNoneRRttreeterrorstdictt getPhasesR'tphases(tselfR9R7Rtdebugtnametcls((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt__init__^s   udivcK`sz||_||_||_tj|d|||_|jy|jWn%tk ru|j|jnXdS(Ntparser( t innerHTMLModeR$t scriptingRt HTMLTokenizert tokenizertresettmainLoopR(R>tstreamt innerHTMLR$RER!((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt_parse}s      cC`s|jjt|_g|_g|_d|_|jr|jj |_ |j t krp|j j |j _nH|j tkr|j j|j _n$|j dkr|j j|j _n|jd|_|jj|jnt|_ |jd|_d|_d|_t|_dS(Nu no quirksu plaintextu beforeHtmluinitial(R9RHtFalset firstStartTagR:tlogt compatModeRDR$tlowerRKRRGt rcdataStatetstateRt rawtextStatetplaintextStateR=tphasetinsertHtmlElementtresetInsertionModeR8t lastPhasetbeforeRCDataPhasetTruet framesetOK(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRHs*           cC`s't|dsdS|jjjdjS(uName of the character encoding that was used to decode the input stream, or :obj:`None` if that is not determined yet u tokenizeriN(thasattrR8RGRJt charEncodingR@(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytdocumentEncodingscC`se|jdkrK|jtdkrKd|jkoJ|jdjtdkS|j|jftkSdS(Nuannotation-xmlumathmluencodingu text/htmluapplication/xhtml+xml(u text/htmluapplication/xhtml+xml(R@t namespaceRt attributest translateR R(R>telement((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytisHTMLIntegrationPoints cC`s|j|jftkS(N(R`R@R(R>Rc((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytisMathMLTextIntegrationPointscC`sBtd}td}td}td}td}td}td}x|jD]}d} |} x=| dk r| } |jjr|jjdnd} | r| jnd} | r| jnd} | d }||kr|j| d | jd id} qht |jjd ks| |jj ks|j | rx||krf|d t ddgks|||fks| t dkr| dkr||kr|d dks|j| r||||fkr|j}n |jd}||kr |j| } qh||kr)|j| } qh||krG|j| } qh||kre|j| } qh||kr|j| } qh||krh|j| } qhqhW||krS| drS| d rS|jdi| d d 6qSqSWt}g}xG|r=|j|j|jj}|r|j|ks:tqqWdS(Nu CharactersuSpaceCharactersuStartTaguEndTaguCommentuDoctypeu ParseErroriutypeudataudatavarsiunameumglyphu malignmarkumathmluannotation-xmlusvguinForeignContentu selfClosinguselfClosingAcknowledgedu&non-void-element-with-trailing-solidus(RtnormalizedTokensR8R9t openElementsR`R@t parseErrortgettlentdefaultNamespaceRet frozensetRRdRVR=tprocessCharacterstprocessSpaceCharacterstprocessStartTagt processEndTagtprocessCommenttprocessDoctypeR[tappendt processEOFtAssertionError(R>tCharactersTokentSpaceCharactersTokent StartTagTokent EndTagTokent CommentTokent DoctypeTokentParseErrorTokenttokent prev_tokent new_tokent currentNodetcurrentNodeNamespacetcurrentNodeNameR+RVt reprocessR=((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRIsp       "                  cc`s&x|jD]}|j|Vq WdS(N(RGtnormalizeToken(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRfscO`s&|j|td|||jjS(uParse a HTML document into a well-formed tree :arg stream: a file-like object or string containing the HTML to be parsed The optional encoding parameter must be a string that indicates the encoding. If specified, that encoding will be used, regardless of any BOM or later declaration (such as in a meta element). :arg scripting: treat noscript elements as if JavaScript was turned on :returns: parsed tree Example: >>> from html5lib.html5parser import HTMLParser >>> parser = HTMLParser() >>> parser.parse('

This is a doc

') N(RLRMR8R9t getDocument(R>RJtargsR!((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scO`s#|j|t|||jjS(uZParse a HTML fragment into a well-formed tree fragment :arg container: name of the element we're setting the innerHTML property if set to None, default to 'div' :arg stream: a file-like object or string containing the HTML to be parsed The optional encoding parameter must be a string that indicates the encoding. If specified, that encoding will be used, regardless of any BOM or later declaration (such as in a meta element) :arg scripting: treat noscript elements as if JavaScript was turned on :returns: parsed tree Example: >>> from html5lib.html5libparser import HTMLParser >>> parser = HTMLParser() >>> parser.parseFragment('this is a fragment') (RLR[R9t getFragment(R>RJRR!((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR%$suXXX-undefined-errorcC`s^|dkri}n|jj|jjj||f|jrZtt||ndS(N( R8R:RsRGRJtpositionR7t ParseErrorR(R>t errorcodetdatavars((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRh@s   % cC`sr|dtdkrn|d}t||dR}traw((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRHs  $cC`st|tdS(N(tadjust_attributesR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRSscC`st|tdS(N(RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRVscC`st|tdS(N(RtadjustForeignAttributesMap(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRYscC`s|jjdS(N(RCRV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytreparseTokenNormal\scC`s]t}idd6dd6dd6dd6dd 6dd 6dd 6d d 6dd6dd6dd6dd6dd6dd6}x|jjdddD]}|j}d}||jjdkr|jstt}|j}n|dkr|jstn| r|j|jj krqn||kr5|j ||}Pq|r|j d}PqqW||_ dS(NuinSelectuselectuinCellutduthuinRowutru inTableBodyutbodyutheadutfootu inCaptionucaptionu inColumnGroupucolgroupuinTableutableuinBodyuheadubodyu inFramesetuframesetu beforeHeaduhtmlii(uselectucolgroupuheaduhtml( RMR9RgR@R8RKRuR[R`RkR=RV(R>tlasttnewModestnodetnodeNamet new_phase((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRX`sD       cC`su|dkst|jj||dkrC|jj|j_n|jj|j_|j|_|j d|_dS(NuRAWTEXTuRCDATAutext(uRAWTEXTuRCDATA( RuR9t insertElementRGRTRSRRRVt originalPhaseR=(R>R}t contentType((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytparseRCDataRawtexts  N(R4R5t__doc__R8RMR[RBRLRHtpropertyR_RdReRIRfRR%RhRRRRRRXR(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRWs& "  C        ,c`sTd}d}dt|||fdYdfdY}dfdY}d ffd Y}d ffd Y}d ffdY}dffdY}dffdY} dffdY} dffdY} dffdY} dffdY} dffdY}dffdY}dffd Y}d!ffd"Y}d#ffd$Y}d%ffd&Y}d'ffd(Y}d)ffd*Y}d+ffd,Y}d-ffd.Y}d/ffd0Y}d1ffd2Y}i|d36|d46|d56|d66|d76|d86| d96| d:6| d;6| d<6| d=6|d>6|d?6|d@6|dA6|dB6|dC6|dD6|dE6|dF6|dG6|dH6|dI6S(JNc`s2tdtjDfd}|S(u4Logger that records which phase processes each tokencs`s!|]\}}||fVqdS(N((t.0tkeytvalue((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pys sc`sjjdrt|dkr|d}yi|dd6}Wn nX|dtkru|d|dRR!R}tinfo(R3t type_names(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytwrappeds$   (R;RR'(R3R((R3Rs?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyROs cS`s|rt|StSdS(N(R6R+(t use_metaclasstmetaclass_func((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt getMetaclasss tPhasecB`s_eZdZdZdZdZdZdZdZdZ dZ d Z RS( uNBase class for helper object that implements each phase of processing cS`s||_||_dS(N(RCR9(R>RCR9((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs cS`s tdS(N(tNotImplementedError(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtscS`s!|jj||jjddS(Ni(R9t insertCommentRg(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRqscS`s|jjddS(Nuunexpected-doctype(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRrscS`s|jj|ddS(Nudata(R9t insertText(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmscS`s|jj|ddS(Nudata(R9R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnscS`s|j|d|S(Nuname(tstartTagHandler(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRoscS`s|jj r0|ddkr0|jjdnxQ|djD]?\}}||jjdjkrA||jjdj|R}tattrR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt startTagHtmls cS`s|j|d|S(Nuname(t endTagHandler(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRps( R4R5RRBRtRqRrRmRnRoRRp(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs        t InitialPhasecB`sPeZdZdZdZdZdZdZdZdZ RS(cS`sdS(N((R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnscS`s|jj||jjdS(N(R9Rtdocument(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRqsc8S`su|d}|d}|d}|d}|dksX|dk sX|dk rk|dkrk|jjdn|dkrd}n|jj||dkr|jt}n| s|ddks|jdJs|dKks|jdLr|dks|r"|jdDkr"dE|j_ n9|jdMsL|jdNr[|dk r[dH|j_ n|jj dI|j_ dS(ONunameupublicIdusystemIducorrectuhtmluabout:legacy-compatuunknown-doctypeuu*+//silmaril//dtd html pro v0r11 19970101//u4-//advasoft ltd//dtd html 3.0 aswedit + extensions//u*-//as//dtd html 3.0 aswedit + extensions//u-//ietf//dtd html 2.0 level 1//u-//ietf//dtd html 2.0 level 2//u&-//ietf//dtd html 2.0 strict level 1//u&-//ietf//dtd html 2.0 strict level 2//u-//ietf//dtd html 2.0 strict//u-//ietf//dtd html 2.0//u-//ietf//dtd html 2.1e//u-//ietf//dtd html 3.0//u-//ietf//dtd html 3.2 final//u-//ietf//dtd html 3.2//u-//ietf//dtd html 3//u-//ietf//dtd html level 0//u-//ietf//dtd html level 1//u-//ietf//dtd html level 2//u-//ietf//dtd html level 3//u"-//ietf//dtd html strict level 0//u"-//ietf//dtd html strict level 1//u"-//ietf//dtd html strict level 2//u"-//ietf//dtd html strict level 3//u-//ietf//dtd html strict//u-//ietf//dtd html//u(-//metrius//dtd metrius presentational//u5-//microsoft//dtd internet explorer 2.0 html strict//u.-//microsoft//dtd internet explorer 2.0 html//u0-//microsoft//dtd internet explorer 2.0 tables//u5-//microsoft//dtd internet explorer 3.0 html strict//u.-//microsoft//dtd internet explorer 3.0 html//u0-//microsoft//dtd internet explorer 3.0 tables//u#-//netscape comm. corp.//dtd html//u*-//netscape comm. corp.//dtd strict html//u*-//o'reilly and associates//dtd html 2.0//u3-//o'reilly and associates//dtd html extended 1.0//u;-//o'reilly and associates//dtd html extended relaxed 1.0//uN-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//uE-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//u$-//spyglass//dtd html 2.0 extended//u+-//sq//dtd html 2.0 hotmetal + extensions//u--//sun microsystems corp.//dtd hotjava html//u4-//sun microsystems corp.//dtd hotjava strict html//u-//w3c//dtd html 3 1995-03-24//u-//w3c//dtd html 3.2 draft//u-//w3c//dtd html 3.2 final//u-//w3c//dtd html 3.2//u-//w3c//dtd html 3.2s draft//u-//w3c//dtd html 4.0 frameset//u#-//w3c//dtd html 4.0 transitional//u(-//w3c//dtd html experimental 19960712//u&-//w3c//dtd html experimental 970421//u-//w3c//dtd w3 html//u-//w3o//dtd w3 html 3.0//u#-//webtechs//dtd mozilla html 2.0//u-//webtechs//dtd mozilla html//u$-//w3o//dtd w3 html strict 3.0//en//u"-/w3c/dtd html 4.0 transitional/enu -//w3c//dtd html 4.01 frameset//u$-//w3c//dtd html 4.01 transitional//u:http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtduquirksu -//w3c//dtd xhtml 1.0 frameset//u$-//w3c//dtd xhtml 1.0 transitional//ulimited quirksu beforeHtml(7u*+//silmaril//dtd html pro v0r11 19970101//u4-//advasoft ltd//dtd html 3.0 aswedit + extensions//u*-//as//dtd html 3.0 aswedit + extensions//u-//ietf//dtd html 2.0 level 1//u-//ietf//dtd html 2.0 level 2//u&-//ietf//dtd html 2.0 strict level 1//u&-//ietf//dtd html 2.0 strict level 2//u-//ietf//dtd html 2.0 strict//u-//ietf//dtd html 2.0//u-//ietf//dtd html 2.1e//u-//ietf//dtd html 3.0//u-//ietf//dtd html 3.2 final//u-//ietf//dtd html 3.2//u-//ietf//dtd html 3//u-//ietf//dtd html level 0//u-//ietf//dtd html level 1//u-//ietf//dtd html level 2//u-//ietf//dtd html level 3//u"-//ietf//dtd html strict level 0//u"-//ietf//dtd html strict level 1//u"-//ietf//dtd html strict level 2//u"-//ietf//dtd html strict level 3//u-//ietf//dtd html strict//u-//ietf//dtd html//u(-//metrius//dtd metrius presentational//u5-//microsoft//dtd internet explorer 2.0 html strict//u.-//microsoft//dtd internet explorer 2.0 html//u0-//microsoft//dtd internet explorer 2.0 tables//u5-//microsoft//dtd internet explorer 3.0 html strict//u.-//microsoft//dtd internet explorer 3.0 html//u0-//microsoft//dtd internet explorer 3.0 tables//u#-//netscape comm. corp.//dtd html//u*-//netscape comm. corp.//dtd strict html//u*-//o'reilly and associates//dtd html 2.0//u3-//o'reilly and associates//dtd html extended 1.0//u;-//o'reilly and associates//dtd html extended relaxed 1.0//uN-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//uE-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//u$-//spyglass//dtd html 2.0 extended//u+-//sq//dtd html 2.0 hotmetal + extensions//u--//sun microsystems corp.//dtd hotjava html//u4-//sun microsystems corp.//dtd hotjava strict html//u-//w3c//dtd html 3 1995-03-24//u-//w3c//dtd html 3.2 draft//u-//w3c//dtd html 3.2 final//u-//w3c//dtd html 3.2//u-//w3c//dtd html 3.2s draft//u-//w3c//dtd html 4.0 frameset//u#-//w3c//dtd html 4.0 transitional//u(-//w3c//dtd html experimental 19960712//u&-//w3c//dtd html experimental 970421//u-//w3c//dtd w3 html//u-//w3o//dtd w3 html 3.0//u#-//webtechs//dtd mozilla html 2.0//u-//webtechs//dtd mozilla html//(u$-//w3o//dtd w3 html strict 3.0//en//u"-/w3c/dtd html 4.0 transitional/enuhtml(u -//w3c//dtd html 4.01 frameset//u$-//w3c//dtd html 4.01 transitional//(u -//w3c//dtd xhtml 1.0 frameset//u$-//w3c//dtd xhtml 1.0 transitional//(u -//w3c//dtd html 4.01 frameset//u$-//w3c//dtd html 4.01 transitional//( R8RCRhR9t insertDoctypeRbR RRQRPR=RV(R>R}R@tpublicIdtsystemIdtcorrect((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRrs              cS`s&d|j_|jjd|j_dS(Nuquirksu beforeHtml(RCRPR=RV(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt anythingElseMs cS`s|jjd|j|S(Nuexpected-doctype-but-got-chars(RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmQs cS`s,|jjdi|dd6|j|S(Nu"expected-doctype-but-got-start-taguname(RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRoVs  cS`s,|jjdi|dd6|j|S(Nu expected-doctype-but-got-end-taguname(RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRp\s  cS`s|jjd|jtS(Nuexpected-doctype-but-got-eof(RCRhRR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtbs ( R4R5RnRqRrRRmRoRpRt(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   _    tBeforeHtmlPhasecB`sGeZdZdZdZdZdZdZdZRS(cS`s3|jjtdd|jjd|j_dS(NuhtmluStartTagu beforeHead(R9t insertRoottimpliedTagTokenRCR=RV(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRWiscS`s|jtS(N(RWR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtns cS`s|jj||jjdS(N(R9RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRqrscS`sdS(N((R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnuscS`s|j|S(N(RW(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmxs cS`s-|ddkrt|j_n|j|S(Nunameuhtml(R[RCRNRW(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRo|s cS`sC|ddkr1|jjdi|dd6n|j|SdS(Nunameuheadubodyuhtmlubruunexpected-end-tag-before-html(uheadubodyuhtmlubr(RCRhRW(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRps   ( R4R5RWRtRqRnRmRoRp(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRgs      tBeforeHeadPhasec`s_eZfdZdZdZdZdZdZdZdZ dZ RS( c`s}j|||tjd|jfd|jfg|_|j|j_tjd|jfg|_ |j |j _dS(Nuhtmluheadubodyubr(uheadubodyuhtmlubr( RBR tMethodDispatcherRt startTagHeadRt startTagOthertdefaulttendTagImplyHeadRt endTagOther(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs cS`s|jtddtS(NuheaduStartTag(RRR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtscS`sdS(N((R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnscS`s|jtdd|S(NuheaduStartTag(RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmscS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s@|jj||jjd|j_|jjd|j_dS(NiuinHead(R9RRgt headPointerRCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jtdd|S(NuheaduStartTag(RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jtdd|S(NuheaduStartTag(RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s"|jjdi|dd6dS(Nuend-tag-after-implied-rootuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs ( R4R5RBRtRnRmRRRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs       t InHeadPhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZRS(c `sj|||tjd|jfd|jfd|jfd|jfd|jfd|jfd |j fd |j fg|_ |j |j _ tjd |jfd|jfg|_|j|j_ dS(Nuhtmlutitleunoframesustyleunoscriptuscriptubaseubasefontubgsounducommandulinkumetauheadubrubody(unoframesustyle(ubaseubasefontubgsounducommandulink(ubruhtmlubody(RBR RRt startTagTitletstartTagNoFramesStyletstartTagNoscripttstartTagScripttstartTagBaseLinkCommandt startTagMetaRRRRt endTagHeadtendTagHtmlBodyBrRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs         cS`s|jtS(N(RR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRts cS`s|j|S(N(R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRms cS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jjddS(Nu!two-heads-are-not-better-than-one(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s.|jj||jjjt|dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jj||jjjt|d<|d}|jjjjddkrd|kry|jjjj |dqd|krd|kr|dj dkrt j |dj d }t j|}|j}|jjjj |qndS( NuselfClosingAcknowledgedudataiu tentativeucharsetucontentu http-equivu content-typeuutf-8(R9RRgRR[RCRGRJR^tchangeEncodingRQRt EncodingBytestencodetContentAttrParserR(R>R}RatdataRCtcodec((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs      cS`s|jj|ddS(NuRCDATA(RCR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jj|ddS(NuRAWTEXT(RCR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`sL|jjr"|jj|dn&|jj||jjd|j_dS(NuRAWTEXTuinHeadNoscript(RCRERR9RR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`sT|jj||jjj|jj_|jj|j_|jjd|j_dS(Nutext( R9RRCRGtscriptDataStateRSRVRR=(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|j|S(N(R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s cS`sQ|jjjj}|jdks7td|j|jjd|j_dS(NuheaduExpected head got %su afterHead(RCR9RgRR@RuR=RV(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs"cS`s|j|S(N(R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s"|jjdi|dd6dS(Nuunexpected-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jtddS(Nuhead(RR(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs(R4R5RBRtRmRRRRRRRRRRRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs               tInHeadNoscriptPhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d ZRS( c`sj|||tjd|jfd |jfd |jfg|_|j|j_tjd |j fd |j fg|_ |j |j _dS( Nuhtmlubasefontubgsoundulinkumetaunoframesustyleuheadunoscriptubr(ubasefontubgsoundulinkumetaunoframesustyle(uheadunoscript( RBR RRRtstartTagHeadNoscriptRRRtendTagNoscripttendTagBrRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRB s   cS`s|jjd|jtS(Nueof-in-head-noscript(RCRhRR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRt0s cS`s|jjdj|S(NuinHead(RCR=Rq(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRq5scS`s|jjd|j|S(Nuchar-in-head-noscript(RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm8s cS`s|jjdj|S(NuinHead(RCR=Rn(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRn=scS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR@scS`s|jjdj|S(NuinHead(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRCscS`s"|jjdi|dd6dS(Nuunexpected-start-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRFscS`s,|jjdi|dd6|j|S(Nuunexpected-inhead-noscript-taguname(RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRIs cS`sQ|jjjj}|jdks7td|j|jjd|j_dS(NunoscriptuExpected noscript got %suinHead(RCR9RgRR@RuR=RV(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRNs"cS`s,|jjdi|dd6|j|S(Nuunexpected-inhead-noscript-taguname(RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRSs cS`s"|jjdi|dd6dS(Nuunexpected-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRXscS`s|jtddS(Nunoscript(RR(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR[s(R4R5RBRtRqRmRnRRRRRRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs           tAfterHeadPhasec`szeZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z RS( c `sj|||tjd|jfd|jfd|jfd|jfd |jfg|_|j |j_ tjd|j fg|_ |j |j _ dS(Nuhtmlubodyuframesetubaseubasefontubgsoundulinkumetaunoframesuscriptustyleutitleuheadubr( ubaseubasefontubgsoundulinkumetaunoframesuscriptustyleutitle(ubodyuhtmlubr(RBR RRt startTagBodytstartTagFramesettstartTagFromHeadRRRRRRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRB`s     cS`s|jtS(N(RR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtqs cS`s|j|S(N(R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmus cS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRyscS`s6t|j_|jj||jjd|j_dS(NuinBody(RMRCR\R9RR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR|s cS`s*|jj||jjd|j_dS(Nu inFrameset(R9RRCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jjdi|dd6|jjj|jj|jjdj|xG|jjdddD],}|jdkrh|jjj |PqhqhWdS(Nu#unexpected-start-tag-out-of-my-headunameuinHeadiuhead( RCRhR9RgRsRR=RoR@tremove(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  cS`s"|jjdi|dd6dS(Nuunexpected-start-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|j|S(N(R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s|j|S(N(R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s"|jjdi|dd6dS(Nuunexpected-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s?|jjtdd|jjd|j_t|j_dS(NubodyuStartTaguinBody(R9RRRCR=RVR[R\(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs(R4R5RBRtRmRRRRRRRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR_s         t InBodyPhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4RS(3c,`sij||||j|_tjd|jfdd|jfd |jfd |jfde|j ft |j fdf|j fd&|j fdg|jfd*|jfd+|jfdh|jfd8|jfd9|jfdi|jfd=|jfd>|jfdj|jfdk|jfdH|jfdI|jfdJ|jfdK|jfdL|jfdM|jfdN|jfdl|j fdQ|j!fdm|j"fdn|j#fdV|j$fdW|j%fdo|j&fg!|_'|j(|j'_)tjd |j*fd|j+fdp|j,fd&|j-fd |j.fdq|j/ft |j0fdr|j1fds|j2fd@|j3fg |_4|j5|j4_)dS(tNuhtmlubaseubasefontubgsounducommandulinkumetauscriptustyleutitleubodyuframesetuaddressuarticleuasideu blockquoteucenterudetailsudirudivudlufieldsetu figcaptionufigureufooteruheaderuhgroupumainumenuunavuolupusectionusummaryuulupreulistinguformuliuddudtu plaintextuaububigucodeuemufontuiususmallustrikeustronguttuuunobrubuttonuappletumarqueeuobjectuxmputableuareaubruembeduimgukeygenuwbruparamusourceutrackuinputuhruimageuisindexutextareauiframeunoscriptunoembedunoframesuselecturpurtuoptionuoptgroupumathusvgucaptionucolucolgroupuframeuheadutbodyutdutfootuthutheadutrudialog( ubaseubasefontubgsounducommandulinkumetauscriptustyleutitle(uaddressuarticleuasideu blockquoteucenterudetailsudirudivudlufieldsetu figcaptionufigureufooteruheaderuhgroupumainumenuunavuolupusectionusummaryuul(upreulisting(uliuddudt( ububigucodeuemufontuiususmallustrikeustronguttuu(uappletumarqueeuobject(uareaubruembeduimgukeygenuwbr(uparamusourceutrack(unoembedunoframes(urpurt(uoptionuoptgroup( ucaptionucolucolgroupuframeuheadutbodyutdutfootuthutheadutr(uaddressuarticleuasideu blockquoteubuttonucenterudetailsudialogudirudivudlufieldsetu figcaptionufigureufooteruheaderuhgroupulistingumainumenuunavuolupreusectionusummaryuul(uddudtuli(uaububigucodeuemufontuiunobrususmallustrikeustronguttuu(uappletumarqueeuobject(6RBtprocessSpaceCharactersNonPreRnR RRtstartTagProcessInHeadRRtstartTagClosePRtstartTagHeadingtstartTagPreListingt startTagFormtstartTagListItemtstartTagPlaintextt startTagAtstartTagFormattingt startTagNobrtstartTagButtontstartTagAppletMarqueeObjectt startTagXmpt startTagTabletstartTagVoidFormattingtstartTagParamSourcet startTagInputt startTagHrt startTagImagetstartTagIsIndextstartTagTextareatstartTagIFrameRtstartTagRawtexttstartTagSelectt startTagRpRtt startTagOptt startTagMatht startTagSvgtstartTagMisplacedRRRt endTagBodyt endTagHtmlt endTagBlockt endTagFormtendTagPtendTagListItemt endTagHeadingtendTagFormattingtendTagAppletMarqueeObjectRRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs~                                          cS`s4|j|jko3|j|jko3|j|jkS(N(R@R`Ra(R>tnode1tnode2((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytisMatchingFormattingElementscS`s|jj||jjd}g}xS|jjdddD]8}|tkrVPq@|j||r@|j|q@q@Wt|dkstt|dkr|jjj |dn|jjj|dS(Nii( R9RRgtactiveFormattingElementsR RRsRjRuR(R>R}RctmatchingElementsR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytaddFormattingElements  c S`sWtd}xD|jjddd D])}|j|kr&|jjdPq&q&WdS(Nuddudtuliuputbodyutdutfootuthutheadutrubodyuhtmliu expected-closing-tag-but-got-eof( uddudtuliuputbodyutdutfootuthutheadutrubodyuhtml(RlR9RgR@RCRh(R>tallowed_elementsR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRts  cS`s|d}|j|_|jdrb|jjdjdkrb|jjdj rb|d}n|r|jj|jj|ndS( Nudatau iupreulistingutextareai(upreulistingutextarea( RRnRR9RgR@t hasContentt#reconstructActiveFormattingElementsR(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt!processSpaceCharactersDropNewline s    cS`s}|ddkrdS|jj|jj|d|jjrytg|dD]}|tk^qOryt|j_ndS(Nudatau(R9R RRCR\tanyR RM(R>R}tchar((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRms  #cS`s%|jj|jj|ddS(Nudata(R9R R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR&s cS`s|jjdj|S(NuinHead(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR*scS`s|jjdidd6t|jjdksK|jjdjdkr`|jjstn`t|j_ xQ|dj D]?\}}||jjdj kr}||jjdj |R}RR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR-s cS`s|jjdidd6t|jjdksK|jjdjdkr`|jjstn|jjson|jjdj r|jjdj j |jjdnx-|jjdjdkr|jjj qW|jj ||jj d|j_dS( Nuunexpected-start-taguframesetunameiubodyiuhtmlu inFrameset(RCRhRjR9RgR@RKRuR\tparentt removeChildRRR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR8s1 'cS`sB|jjdddr.|jtdn|jj|dS(Nuptvariantubutton(R9telementInScopeRRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRFscS`sZ|jjdddr.|jtdn|jj|t|j_|j|_ dS(NupRubutton( R9RRRRRMRCR\R Rn(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRKs  cS`s|jjr)|jjdidd6nT|jjdddrW|jtdn|jj||jjd|j_dS(Nuunexpected-start-taguformunameupRubuttoni( R9t formPointerRCRhRRRRRg(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRRs  cS`st|j_idgd6ddgd6ddgd6}||d}xnt|jjD]Z}|j|kr|jjjt |jdPn|j t krW|jd krWPqWqWW|jj dd d r|jjjt ddn|jj |dS( NuliudtuddunameuEndTaguaddressudivupRubutton(uaddressudivup(RMRCR\treversedR9RgR@RVRpRt nameTupleR RR(R>R}t stopNamesMapt stopNamesR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR[s"     cS`sZ|jjdddr.|jtdn|jj||jjj|jj_dS(NupRubutton( R9RRRRRCRGRURS(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRqscS`s|jjdddr.|jtdn|jjdjtkrx|jjdi|dd6|jjj n|jj |dS(NupRubuttoniuunexpected-start-taguname( R9RRRRgR@RRCRhRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRws cS`s|jjd}|r|jjdidd6dd6|jtd||jjkrt|jjj|n||jjkr|jjj|qn|jj |j |dS(Nuau$unexpected-start-tag-implies-end-tagu startNameuendName( R9t!elementInActiveFormattingElementsRCRhRRRgRRR R(R>R}t afeAElement((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  cS`s|jj|j|dS(N(R9R R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`st|jj|jjdrc|jjdidd6dd6|jtd|jjn|j|dS(Nunobru$unexpected-start-tag-implies-end-tagu startNameuendName(R9R RRCRhRpRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  cS`sw|jjdrJ|jjdidd6dd6|jtd|S|jj|jj|t|j_ dS(Nubuttonu$unexpected-start-tag-implies-end-tagu startNameuendName( R9RRCRhRpRR RRMR\(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  cS`s@|jj|jj||jjjtt|j_dS(N( R9R RRRsR RMRCR\(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s^|jjdddr.|jtdn|jjt|j_|jj|ddS(NupRubuttonuRAWTEXT( R9RRRR RMRCR\R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   cS`sy|jjdkrC|jjdddrC|jtdqCn|jj|t|j_|jj d|j_ dS(NuquirksupRubuttonuinTable( RCRPR9RRpRRRMR\R=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  cS`sG|jj|jj||jjjt|dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   cS`sY|jj}|j|d|dkrU|ddjtdkrU||j_ndS(Nutypeudatauhidden(RCR\RRbR (R>R}R\((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   cS`s.|jj||jjjt|dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`sh|jjdddr.|jtdn|jj||jjjt|dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  c S`sO|jjdidd6dd6|jtddd|dd |d dS( Nuunexpected-start-tag-treated-asuimageu originalNameuimgunewNameuStartTagRaudatat selfClosingu selfClosing(RCRhRoR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   c S`s|jjdidd6|jjr*dSi}d|dkrU|dd|dR}t form_attrstpromptRa((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs6       cS`sD|jj||jjj|jj_|j|_t|j_ dS(N( R9RRCRGRRRSR RnRMR\(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`st|j_|j|dS(N(RMRCR\R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s-|jjr|j|n |j|dS(N(RCRERR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s|jj|ddS(u8iframe, noembed noframes, noscript(if scripting enabled)uRAWTEXTN(RCR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scS`sY|jjdjdkr5|jjjtdn|jj|jjj|dS(Niuoption( R9RgR@RCRVRpRR R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s|jj|jj|t|j_|jj|jjd|jjd|jjd|jjd|jjd|jjdfkr|jjd|j_n|jjd|j_dS( NuinTableu inCaptionu inColumnGroupu inTableBodyuinRowuinCelluinSelectInTableuinSelect(R9R RRMRCR\RVR=(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs      cS`s_|jjdrK|jj|jjdjdkrK|jjqKn|jj|dS(Nurubyi(R9RtgenerateImpliedEndTagsRgR@RCRhR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR%s  cS`sv|jj|jj||jj|td|d<|jj||drr|jjjt |dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR,s  cS`sv|jj|jj||jj|td|d<|jj||drr|jjjt |dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR8s  cS`s"|jjdi|dd6dS(u5 Elements that should be children of other elements that have a different insertion mode; here they are ignored "caption", "col", "colgroup", "frame", "frameset", "head", "option", "optgroup", "tbody", "td", "tfoot", "th", "thead", "tr", "noscript" uunexpected-start-tag-ignoredunameN(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRDscS`s!|jj|jj|dS(N(R9R R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRMs cS`s|jjdddsa|jtdd|jjdidd6|jtddn|jjd|jjdj dkr|jjdidd6n|jjj }x%|j dkr|jjj }qWdS( NupRubuttonuStartTaguunexpected-end-tagunameuEndTagi( R9RRRRCRhRRRgR@R(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRQscS`s|jjds#|jjdS|jjdjdkrxX|jjdD]C}|jtdkrM|jjdidd6|jd6PqMqMWn|jjd|j_dS(Nubodyiiuddudtuliuoptgroupuoptionupurpurtutbodyutdutfootuthutheadutruhtmlu$expected-one-end-tag-but-got-anotherugotNameu expectedNameu afterBody(uddudtuliuoptgroupuoptionupurpurtutbodyutdutfootuthutheadutrubodyuhtml( R9RRCRhRgR@RlR=RV(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR^s     cS`s-|jjdr)|jtd|SdS(Nubody(R9RRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRpscS`s|ddkr|j|_n|jj|d}|rK|jjn|jjdj|dkr|jjdi|dd6n|r|jjj }x,|j|dkr|jjj }qWndS(Nunameupreiuend-tag-too-early( RRnR9RRRgR@RCRhR(R>R}tinScopeR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRvs!cS`s|jj}d|j_|dks7|jj| rT|jjdidd6nS|jj|jjd|kr|jjdidd6n|jjj|dS(Nuunexpected-end-taguformunameiuend-tag-too-early-ignored( R9RR8RRCRhRRgR(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs     cS`s|ddkrd}nd}|jj|dd|s\|jjdi|dd6n|jjd|d|jjdj|dkr|jjdi|dd6n|jjj}x)|j|dkr|jjj}qWdS( NunameuliulistRuunexpected-end-tagtexcludeiuend-tag-too-early( R8R9RRCRhRRgR@R(R>R}RR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs ! cS`sx1tD])}|jj|r|jjPqqW|jjdj|dkrr|jjdi|dd6nx^tD]V}|jj|ry|jjj}x%|jtkr|jjj}qWPqyqyWdS(Niunameuend-tag-too-early( RR9RRRgR@RCRhR(R>R}titem((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs  ! cS`s3d}x&|dkr.|d7}|jj|d}| sd||jjkru|jj|j ru|j|dS||jjkr|jjdi|dd6|jjj |dS|jj|js|jjdi|dd6dS||jjdkr*|jjd i|dd6n|jjj |}d}x1|jj|D]}|j t krV|}PqVqVW|dkr|jjj}x"||kr|jjj}qW|jjj |dS|jj|d}|jjj |}|} } d} |jjj | } x| d kr9| d7} | d8} |jj| } | |jjkr|jjj | q$n| |krPn| |kr|jjj | d}n| j} | |jj|jjj | <| |jj|jjj | <| } | jr#| jj| n| j| | } q$W| jrV| jj| n|jtdkr|jj\}}|j| |n |j| |j} |j| |j| |jjj ||jjj|| |jjj ||jjj|jjj |d| q WdS(u)The much-feared adoption agency algorithmiiiunameNuadoption-agency-1.2uadoption-agency-4.4iuadoption-agency-1.3iutableutbodyutfootutheadutr(utableutbodyutfootutheadutr(R9RRgRR@RRCRhRRtindexR8RR Rt cloneNodeRRt appendChildRltgetTableMisnestedNodePositiont insertBeforetreparentChildrentinsert(R>R}touterLoopCountertformattingElementtafeIndext furthestBlockRctcommonAncestortbookmarktlastNodeRtinnerLoopCounterR"tcloneRR&((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   !                cS`s|jj|dr&|jjn|jjdj|dkrd|jjdi|dd6n|jj|dr|jjj}x)|j|dkr|jjj}qW|jjndS(Nunameiuend-tag-too-early( R9RRRgR@RCRhRtclearActiveFormattingElements(R>R}Rc((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRTs!cS`s[|jjdidd6dd6|jj|jjtdd|jjjdS(Nuunexpected-end-tag-treated-asubru originalNameu br elementunewNameuStartTag(RCRhR9R RRRgR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR`s   cS`sx|jjdddD]}|j|dkr|jjd|d|jjdj|dkr|jjdi|dd6nx|jjj|krqWPq|jtkr|jjdi|dd6PqqWdS(NiunameR uunexpected-end-tag( R9RgR@RRCRhRRR (R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRgs !(5R4R5RBRRRtR RmRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRsfG                                  t TextPhasec`sDeZfdZdZdZdZdZdZRS(c`sej|||tjg|_|j|j_tjd|jfg|_|j|j_dS(Nuscript( RBR RRRRt endTagScriptRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBvs cS`s|jj|ddS(Nudata(R9R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm~scS`sM|jjdi|jjdjd6|jjj|jj|j_tS(Nu&expected-named-closing-tag-but-got-eofiuname( RCRhR9RgR@RRRVR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRts  cS`ststd|ddS(Nu4Tried to process start tag %s in RCDATA/RAWTEXT modeuname(RMRu(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s=|jjj}|jdks't|jj|j_dS(Nuscript(R9RgRR@RuRCRRV(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR4scS`s&|jjj|jj|j_dS(N(R9RgRRCRRV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs(R4R5RBRmRtRR4R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR3us     t InTablePhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZRS(c `sj|||tjd|jfd|jfd|jfd|jfd|jfd|jfd |j fd|j fd|j fd|j fg |_ |j|j _tjd |jfd|jfg|_|j|j_dS(Nuhtmlucaptionucolgroupucolutbodyutfootutheadutduthutrutableustyleuscriptuinputuformubody(utbodyutfootuthead(utduthutr(ustyleuscript( ubodyucaptionucolucolgroupuhtmlutbodyutdutfootuthutheadutr(RBR RRtstartTagCaptiontstartTagColgroupt startTagColtstartTagRowGrouptstartTagImplyTbodyRtstartTagStyleScriptRRRRRt endTagTablet endTagIgnoreRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs$          cS`s4x-|jjdjdkr/|jjjqWdS(Niutableuhtml(utableuhtml(R9RgR@R(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytclearStackToTableContextscS`sB|jjdjdkr,|jjdn|jjs>tdS(Niuhtmlu eof-in-table(R9RgR@RCRhRKRu(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtscS`sH|jj}|jjd|j_||jj_|jjj|dS(Nu inTableText(RCRVR=RRn(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRns cS`sH|jj}|jjd|j_||jj_|jjj|dS(Nu inTableText(RCRVR=RRm(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRms cS`s3t|j_|jjdj|t|j_dS(NuinBody(R[R9tinsertFromTableRCR=RmRM(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`sG|j|jjjt|jj||jjd|j_dS(Nu inCaption( R>R9RRsR RRCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR6s cS`s4|j|jj||jjd|j_dS(Nu inColumnGroup(R>R9RRCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR7s cS`s|jtdd|S(NucolgroupuStartTag(R7R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR8scS`s4|j|jj||jjd|j_dS(Nu inTableBody(R>R9RRCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR9s cS`s|jtdd|S(NutbodyuStartTag(R9R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR:scS`sN|jjdidd6dd6|jjjtd|jjsJ|SdS(Nu$unexpected-start-tag-implies-end-tagutableu startNameuendName(RCRhRVRpRRK(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs   cS`s|jjdj|S(NuinHead(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR;scS`sqd|dkr`|ddjtdkr`|jjd|jj||jjjn |j|dS(Nutypeudatauhiddenu unexpected-hidden-input-in-table( RbR RCRhR9RRgRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s_|jjd|jjdkr[|jj||jjd|j_|jjjndS(Nuunexpected-form-in-tablei(RCRhR9RR8RRgR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`sQ|jjdi|dd6t|j_|jjdj|t|j_dS(Nu)unexpected-start-tag-implies-table-voodoounameuinBody(RCRhR[R9R?R=RoRM(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`s|jjdddr|jj|jjdjdkro|jjdidd6|jjdjd6nx-|jjdjdkr|jjjqrW|jjj|jjn|jj st |jjdS(NutableRiuend-tag-too-early-namedugotNameu expectedName( R9RRRgR@RCRhRRXRKRu(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR< s   cS`s"|jjdi|dd6dS(Nuunexpected-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR=scS`sQ|jjdi|dd6t|j_|jjdj|t|j_dS(Nu'unexpected-end-tag-implies-table-voodoounameuinBody(RCRhR[R9R?R=RpRM(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s (R4R5RBR>RtRnRmRR6R7R8R9R:RR;RRRR<R=R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR5s&               tInTableTextPhasec`sVeZfdZdZdZdZdZdZdZdZ RS(c`s)j|||d|_g|_dS(N(RBR8RtcharacterTokens(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRB(s cS`sdjg|jD]}|d^q}tg|D]}|tk^q3ritdd6|d6}|jjdj|n|r|jj|ng|_dS(Nuudatau CharactersutypeuinTable( tjoinRAR R RRCR=RR9(R>R!RR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytflushCharacters-s)%cS`s|j|j|j_|S(N(RCRRCRV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRq6s cS`s|j|j|j_tS(N(RCRRCRVR[(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRt;s cS`s(|ddkrdS|jj|dS(Nudatau(RARs(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm@scS`s|jj|dS(N(RARs(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnEscS`s|j|j|j_|S(N(RCRRCRV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRoJs cS`s|j|j|j_|S(N(RCRRCRV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRpOs ( R4R5RBRCRqRtRmRnRoRp((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR@'s     tInCaptionPhasec`sheZfdZdZdZdZdZdZdZdZ dZ d Z RS( c `sj|||tjd|jfd |jfg|_|j|j_tjd|jfd |j fd|j fg|_ |j |j _dS(Nuhtmlucaptionucolucolgrouputbodyutdutfootuthutheadutrutableubody( ucaptionucolucolgrouputbodyutdutfootuthutheadutr( ubodyucolucolgroupuhtmlutbodyutdutfootuthutheadutr( RBR RRtstartTagTableElementRRRt endTagCaptionR<R=RR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBVs   cS`s|jjddd S(NucaptionRutable(R9R(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytignoreEndTagCaptionhscS`s|jjdjdS(NuinBody(RCR=Rt(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtkscS`s|jjdj|S(NuinBody(RCR=Rm(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmnscS`s@|jj|j}|jjjtd|s<|SdS(Nucaption(RCRhRGRVRpR(R>R}t ignoreEndTag((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyREqs   cS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRyscS`s|js|jj|jjdjdkrc|jjdidd6|jjdjd6nx-|jjdjdkr|jjjqfW|jjj|jj|jj d|j_ n|jj st |jjdS(Niucaptionu$expected-one-end-tag-but-got-anotherugotNameu expectedNameuinTable( RGR9RRgR@RCRhRR2R=RVRKRu(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRF|s     cS`s@|jj|j}|jjjtd|s<|SdS(Nucaption(RCRhRGRVRpR(R>R}RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR<s   cS`s"|jjdi|dd6dS(Nuunexpected-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR=scS`s|jjdj|S(NuinBody(RCR=Rp(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs( R4R5RBRGRtRmRERRFR<R=R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRDTs        tInColumnGroupPhasec`s_eZfdZdZdZdZdZdZdZdZ dZ RS( c`sj|||tjd|jfd|jfg|_|j|j_tjd|jfd|j fg|_ |j |j _dS(Nuhtmlucolucolgroup( RBR RRR8RRRtendTagColgroupt endTagColRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs  cS`s|jjdjdkS(Niuhtml(R9RgR@(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytignoreEndTagColgroupscS`s\|jjdjdkr/|jjs+tdS|j}|jtd|sXt SdS(Niuhtmlucolgroup( R9RgR@RCRKRuRLRJRR[(R>RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRts cS`s-|j}|jtd|s)|SdS(Nucolgroup(RLRJR(R>R}RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRms cS`s.|jj||jjjt|dR}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR8scS`s-|j}|jtd|s)|SdS(Nucolgroup(RLRJR(R>R}RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs cS`sX|jr.|jjst|jjn&|jjj|jjd|j_ dS(NuinTable( RLRCRKRuRhR9RgRR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRJs  cS`s|jjdidd6dS(Nu no-end-tagucoluname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRKscS`s-|j}|jtd|s)|SdS(Nucolgroup(RLRJR(R>R}RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs ( R4R5RBRLRtRmR8RRJRKR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRIs     tInTableBodyPhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d ZRS( c `sj|||tjd|jfd|jfd |jfd|jfg|_|j|j_ tjd|j fd |j fd|j fg|_ |j|j _ dS(Nuhtmlutrutduthucaptionucolucolgrouputbodyutfootutheadutableubody(utduth(ucaptionucolucolgrouputbodyutfootuthead(utbodyutfootuthead(ubodyucaptionucolucolgroupuhtmlutduthutr(RBR RRt startTagTrtstartTagTableCelltstartTagTableOtherRRRtendTagTableRowGroupR<R=RR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs     cS`sbx-|jjdjdkr/|jjjqW|jjdjdkr^|jjs^tndS(Niutbodyutfootutheaduhtml(utbodyutfootutheaduhtml(R9RgR@RRCRKRu(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytclearStackToTableBodyContexts  cS`s|jjdjdS(NuinTable(RCR=Rt(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtscS`s|jjdj|S(NuinTable(RCR=Rn(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnscS`s|jjdj|S(NuinTable(RCR=Rm(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmscS`s4|j|jj||jjd|j_dS(NuinRow(RRR9RRCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRNs cS`s8|jjdi|dd6|jtdd|S(Nuunexpected-cell-in-table-bodyunameutruStartTag(RCRhRNR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRO s cS`s|jjdddsH|jjdddsH|jjdddrv|j|jt|jjdj|S|jjst |jj dS(NutbodyRutableutheadutfooti( R9RRRRQRRgR@RCRKRuRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRPs cS`s|jjdj|S(NuinTable(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`sq|jj|dddrO|j|jjj|jjd|j_n|jjdi|dd6dS(NunameRutableuinTableu unexpected-end-tag-in-table-body( R9RRRRgRRCR=RVRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRQ"s   cS`s|jjdddsH|jjdddsH|jjdddrv|j|jt|jjdj|S|jjst |jj dS(NutbodyRutableutheadutfooti( R9RRRRQRRgR@RCRKRuRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR<+s cS`s"|jjdi|dd6dS(Nu unexpected-end-tag-in-table-bodyuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR=8s cS`s|jjdj|S(NuinTable(RCR=Rp(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR<s(R4R5RBRRRtRnRmRNRORPRRQR<R=R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRMs        t InRowPhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZRS(c `sj|||tjd|jfd |jfd|jfg|_|j|j_tjd |j fd |j fd|j fd|j fg|_ |j|j _dS(Nuhtmlutduthucaptionucolucolgrouputbodyutfootutheadutrutableubody(utduth(ucaptionucolucolgrouputbodyutfootutheadutr(utbodyutfootuthead(ubodyucaptionucolucolgroupuhtmlutduth(RBR RRRORPRRRtendTagTrR<RQR=RR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBAs     cS`s[xT|jjdjdkrV|jjdi|jjdjd6|jjjqWdS(Niutruhtmlu'unexpected-implied-end-tag-in-table-rowuname(utruhtml(R9RgR@RCRhR(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytclearStackToTableRowContextUs cS`s|jjddd S(NutrRutable(R9R(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytignoreEndTagTr[scS`s|jjdjdS(NuinTable(RCR=Rt(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRt_scS`s|jjdj|S(NuinTable(RCR=Rn(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnbscS`s|jjdj|S(NuinTable(RCR=Rm(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmescS`sG|j|jj||jjd|j_|jjjtdS(NuinCell( RUR9RRCR=RVRRsR (R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyROhs cS`s-|j}|jtd|s)|SdS(Nutr(RVRTR(R>R}RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRPns cS`s|jjdj|S(NuinTable(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRuscS`sb|js?|j|jjj|jjd|j_n|jjsQt |jj dS(Nu inTableBody( RVRUR9RgRRCR=RVRKRuRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRTxs   cS`s-|j}|jtd|s)|SdS(Nutr(RVRTR(R>R}RH((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR<s cS`sD|jj|dddr3|jtd|S|jjdS(NunameRutableutr(R9RRTRRCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRQscS`s"|jjdi|dd6dS(Nuunexpected-end-tag-in-table-rowuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR=s cS`s|jjdj|S(NuinTable(RCR=Rp(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs(R4R5RBRURVRtRnRmRORPRRTR<RQR=R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRS?s           t InCellPhasec`sheZfdZdZdZdZdZdZdZdZ dZ d Z RS( c `sj|||tjd|jfd |jfg|_|j|j_tjd|jfd|j fd|j fg|_ |j |j _dS(Nuhtmlucaptionucolucolgrouputbodyutdutfootuthutheadutrubodyutable( ucaptionucolucolgrouputbodyutdutfootuthutheadutr(utduth(ubodyucaptionucolucolgroupuhtml(utableutbodyutfootutheadutr( RBR RRRPRRRtendTagTableCellR=t endTagImplyRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs   cS`s`|jjdddr.|jtdn.|jjdddr\|jtdndS(NutdRutableuth(R9RRXR(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyt closeCellscS`s|jjdjdS(NuinBody(RCR=Rt(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtscS`s|jjdj|S(NuinBody(RCR=Rm(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRmscS`sa|jjddds0|jjdddr>|j|S|jjsPt|jjdS(NutdRutableuth(R9RRZRCRKRuRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRPs  cS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRscS`s|jj|dddr|jj|d|jjdj|dkr|jjdi|dd6xFtr|jjj}|j|dkrnPqnqnWn|jjj|jj |jj d|j_ n|jjdi|dd6dS(NunameRutableiuunexpected-cell-end-taguinRowuunexpected-end-tag( R9RRRgR@RCRhR[RR2R=RV(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRXs    cS`s"|jjdi|dd6dS(Nuunexpected-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR=scS`s;|jj|dddr*|j|S|jjdS(NunameRutable(R9RRZRCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRYs cS`s|jjdj|S(NuinBody(RCR=Rp(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRs( R4R5RBRZRtRmRPRRXR=RYR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRWs       t InSelectPhasec`seZfdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d ZRS( c`sj|||tjd|jfd|jfd|jfd|jfd |jfd|jfg|_ |j |j _ tjd|j fd|j fd|jfg|_|j|j_ dS( Nuhtmluoptionuoptgroupuselectuinputukeygenutextareauscript(uinputukeygenutextarea(RBR RRtstartTagOptiontstartTagOptgroupRRRRRRt endTagOptiontendTagOptgroupt endTagSelectRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBs       cS`sB|jjdjdkr,|jjdn|jjs>tdS(Niuhtmlu eof-in-select(R9RgR@RCRhRKRu(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtscS`s,|ddkrdS|jj|ddS(Nudatau(R9R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm scS`s@|jjdjdkr,|jjjn|jj|dS(Niuoption(R9RgR@RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR\ scS`sl|jjdjdkr,|jjjn|jjdjdkrX|jjjn|jj|dS(Niuoptionuoptgroup(R9RgR@RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR] s cS`s'|jjd|jtddS(Nuunexpected-select-in-selectuselect(RCRhR`R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scS`sU|jjd|jjdddr?|jtd|S|jjsQtdS(Nuunexpected-input-in-selectuselectR(RCRhR9RR`RRKRu(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s cS`s|jjdj|S(NuinHead(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scS`s"|jjdi|dd6dS(Nuunexpected-start-tag-in-selectuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR! s cS`sJ|jjdjdkr,|jjjn|jjdidd6dS(Niuoptionuunexpected-end-tag-in-selectuname(R9RgR@RRCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR^% s cS`s|jjdjdkrE|jjdjdkrE|jjjn|jjdjdkrq|jjjn|jjdidd6dS(Niuoptioniuoptgroupuunexpected-end-tag-in-selectuname(R9RgR@RRCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR_, s cS`s|jjdddrb|jjj}x%|jdkrQ|jjj}q-W|jjn|jjstt|jj dS(NuselectR( R9RRgRR@RCRXRKRuRh(R>R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR`9 scS`s"|jjdi|dd6dS(Nuunexpected-end-tag-in-selectuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRD s (R4R5RBRtRmR\R]RRRRR^R_R`R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR[s          tInSelectInTablePhasec`sMeZfdZdZdZdZdZdZdZRS(c `sqj|||tjd |jfg|_|j|j_tjd |jfg|_|j |j_dS( Nucaptionutableutbodyutfootutheadutrutduth(ucaptionutableutbodyutfootutheadutrutduth(ucaptionutableutbodyutfootutheadutrutduth( RBR RRRRRR<RR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBI scS`s|jjdjdS(NuinSelect(RCR=Rt(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtX scS`s|jjdj|S(NuinSelect(RCR=Rm(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm[ scS`s5|jjdi|dd6|jtd|S(Nu5unexpected-table-element-start-tag-in-select-in-tableunameuselect(RCRhRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR^ scS`s|jjdj|S(NuinSelect(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRc scS`sU|jjdi|dd6|jj|dddrQ|jtd|SdS(Nu3unexpected-table-element-end-tag-in-select-in-tableunameRutableuselect(RCRhR9RRR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR<f scS`s|jjdj|S(NuinSelect(RCR=Rp(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRl s( R4R5RBRtRmRRR<R((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRaH s     tInForeignContentPhasec-`seZedddddddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+g,Zfd,Zd-Zfd.Zd/Zd0ZRS(1ububigu blockquoteubodyubrucenterucodeuddudivudludtuemuembeduh1uh2uh3uh4uh5uh6uheaduhruiuimguliulistingumenuumetaunobruolupupreurubyususmalluspanustrongustrikeusubusuputableuttuuuuluvarc`sj|||dS(N(RB(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBy scS`s+i$dd6dd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d'd(6d)d*6d+d,6d-d.6d/d06d1d26d3d46d5d66d7d86d9d:6d;d<6d=d>6d?d@6dAdB6dCdD6dEdF6dGdH6}|dI|kr'||dI|dIR}t replacements((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pytadjustSVGTagNames| sL  c`sf|ddkrd|d s(RCR\R RMRm(R>R}(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm s   cS`s|jjd}|d|jks\|ddkrt|djtdddg@r|jjdi|dd6xm|jjdj|jjkr|jj |jjd r|jj |jjd r|jjj q}W|S|jt d kr|jj |n3|jt d krG|j||jj|n|jj||j|d <|jj||d r|jjj t|d R}R((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRo s.)    cS`sZt|jjd}|jjd}|jjt|dkrc|jjdi|dd6nxtrU|jjt|dkr|jj |jj dkr|jj j |jj j |j_ nx.|jjj |kr|jjstqWd}Pn|d8}|jj|}|j|jjkr<qfqf|jj j|}PqfW|S(Niiunameuunexpected-end-tagu inTableText(RjR9RgR@RbR RCRhR[RVR=RCRRRuR8R`RkRp(R>R}t nodeIndexRR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRp s(!  ( R4R5RlReRBRdRmRoRp((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRbo s ) tAfterBodyPhasec`sVeZfdZdZdZdZdZdZdZdZ RS(c`sqj|||tjd|jfg|_|j|j_tjd|jfg|_|j |j_dS(Nuhtml( RBR RRRRRRRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRB s cS`sdS(N((R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRt scS`s!|jj||jjddS(Ni(R9RRg(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRq scS`s*|jjd|jjd|j_|S(Nuunexpected-char-after-bodyuinBody(RCRhR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm scS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scS`s8|jjdi|dd6|jjd|j_|S(Nuunexpected-start-tag-after-bodyunameuinBody(RCRhR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s cS`s9|jjr|jjdn|jjd|j_dS(Nu'unexpected-end-tag-after-body-innerhtmluafterAfterBody(RCRKRhR=RV(R>R@((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s cS`s8|jjdi|dd6|jjd|j_|S(Nuunexpected-end-tag-after-bodyunameuinBody(RCRhR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s ( R4R5RBRtRqRmRRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRi s      tInFramesetPhasec`s_eZfdZdZdZdZdZdZdZdZ dZ RS( c`sj|||tjd|jfd|jfd|jfd|jfg|_|j|j_ tjd|j fg|_ |j |j _ dS(Nuhtmluframesetuframeunoframes( RBR RRRt startTagFrametstartTagNoframesRRRtendTagFramesetRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRB s   cS`sB|jjdjdkr,|jjdn|jjs>tdS(Niuhtmlueof-in-frameset(R9RgR@RCRhRKRu(R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRt# scS`s|jjddS(Nuunexpected-char-in-frameset(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm) scS`s|jj|dS(N(R9R(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR, scS`s$|jj||jjjdS(N(R9RRgR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRk/ scS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRl3 scS`s"|jjdi|dd6dS(Nu unexpected-start-tag-in-framesetuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR6 s cS`s|jjdjdkr,|jjdn|jjj|jj r{|jjdjdkr{|jjd|j_ndS(Niuhtmlu)unexpected-frameset-in-frameset-innerhtmluframesetu afterFrameset( R9RgR@RCRhRRKR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm: s  cS`s"|jjdi|dd6dS(Nuunexpected-end-tag-in-framesetuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRF s ( R4R5RBRtRmRRkRlRRmR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRj s       tAfterFramesetPhasec`sMeZfdZdZdZdZdZdZdZRS(c`s}j|||tjd|jfd|jfg|_|j|j_tjd|jfg|_ |j |j _dS(Nuhtmlunoframes( RBR RRRlRRRRRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBL s cS`sdS(N((R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtZ scS`s|jjddS(Nuunexpected-char-after-frameset(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm^ scS`s|jjdj|S(NuinHead(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRla scS`s"|jjdi|dd6dS(Nu#unexpected-start-tag-after-framesetuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRd s cS`s|jjd|j_dS(NuafterAfterFrameset(RCR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRh scS`s"|jjdi|dd6dS(Nu!unexpected-end-tag-after-framesetuname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRk s ( R4R5RBRtRmRlRRR((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRnJ s     tAfterAfterBodyPhasec`sVeZfdZdZdZdZdZdZdZdZ RS(c`sDj|||tjd|jfg|_|j|j_dS(Nuhtml(RBR RRRRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRBp scS`sdS(N((R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRtx scS`s|jj||jjdS(N(R9RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRq{ scS`s|jjdj|S(NuinBody(RCR=Rn(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRn~ scS`s*|jjd|jjd|j_|S(Nuexpected-eof-but-got-charuinBody(RCRhR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm scS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scS`s8|jjdi|dd6|jjd|j_|S(Nuexpected-eof-but-got-start-tagunameuinBody(RCRhR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s cS`s8|jjdi|dd6|jjd|j_|S(Nuexpected-eof-but-got-end-tagunameuinBody(RCRhR=RV(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRp s ( R4R5RBRtRqRnRmRRRp((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRoo s      tAfterAfterFramesetPhasec`s_eZfdZdZdZdZdZdZdZdZ dZ RS( c`sPj|||tjd|jfd|jfg|_|j|j_dS(Nuhtmlunoframes(RBR RRtstartTagNoFramesRRR(R>RCR9(R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRB s  cS`sdS(N((R>((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRt scS`s|jj||jjdS(N(R9RR(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRq scS`s|jjdj|S(NuinBody(RCR=Rn(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRn scS`s|jjddS(Nuexpected-eof-but-got-char(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRm scS`s|jjdj|S(NuinBody(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR scS`s|jjdj|S(NuinHead(RCR=Ro(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRq scS`s"|jjdi|dd6dS(Nuexpected-eof-but-got-start-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s cS`s"|jjdi|dd6dS(Nuexpected-eof-but-got-end-taguname(RCRh(R>R}((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRp s ( R4R5RBRtRqRnRmRRqRRp((R(s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyRp s       uinitialu beforeHtmlu beforeHeaduinHeaduinHeadNoscriptu afterHeaduinBodyutextuinTableu inTableTextu inCaptionu inColumnGroupu inTableBodyuinRowuinCelluinSelectuinSelectInTableuinForeignContentu afterBodyu inFramesetu afterFramesetuafterAfterBodyuafterAfterFrameset(R(R?RORRRRRRRRR3R5R@RDRIRMRSRWR[RaRbRiRjRnRoRp((Rs?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR<sh  %)#.g@C!-GBbYLd's/9%&%c`sQt|dt@}|rMtfd|djD|d s(RRR'(R}Rctneeds_adjustment((Rcs?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR suEndTagcC`s9|dkri}nit|d6|d6|d6|d6S(Nutypeunameudatau selfClosing(R8R(R@R+RaR((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s  RcB`seZdZRS(uError in parsed document(R4R5R(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyR s(1t __future__RRRtpip._vendor.sixRRR)t collectionsRtRRRttreebuilders.baseR R t constantsR R R RRRRRRRRRRRRRRR[RR%R6tobjectRtmemoizeR<RR8RMRt ExceptionR(((s?/tmp/pip-install-0xiv62/pip/pip/_vendor/html5lib/html5parser.pyts8 j  FC