AlkantarClanX12

Your IP : 18.223.210.249


Current Path : /proc/self/root/lib/python2.7/site-packages/pip/_vendor/html5lib/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyo

�
��abc@`s�ddlmZmZmZddlmZmZmZddlZyddl	m
Z
Wn!ek
r{ddlm
Z
nXddl
mZddl
mZddl
mZdd	lmZdd
l
mZddlmZmZmZmZmZmZmZmZmZmZmZm Z!m"Z"m#Z#m$Z$m%Z%de&d
�Z'dde&d�Z(d�Z)de*fd��YZ+ej,d��Z-d�Z.de/e0d�Z1de2fd��YZ3dS(i(tabsolute_importtdivisiontunicode_literals(twith_metaclasstviewkeystPY3N(tOrderedDicti(t_inputstream(t
_tokenizer(ttreebuilders(tMarker(t_utils(tspaceCharacterstasciiUpper2LowertspecialElementstheadingElementst
cdataElementstrcdataElementst
tokenTypest
tagTokenTypest
namespacesthtmlIntegrationPointElementst"mathmlTextIntegrationPointElementstadjustForeignAttributestadjustMathMLAttributestadjustSVGAttributestEtReparseExceptionuetreecK`s1tj|�}t|d|�}|j||�S(u.Parse a string or file-like object into a treetnamespaceHTMLElements(R	tgetTreeBuildert
HTMLParsertparse(tdocttreebuilderRtkwargsttbtp((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRsudivcK`s7tj|�}t|d|�}|j|d||�S(NRt	container(R	RRt
parseFragment(R R%R!RR"R#R$((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR&&sc`s dtf�fd��Y}|S(Nt	Decoratedc`seZ�fd�ZRS(c`s^xE|j�D]7\}}t|tj�r:�|�}n|||<q
Wtj||||�S(N(titemst
isinstancettypestFunctionTypettypet__new__(tmetat	classnametbasest	classDictt
attributeNamet	attribute(tfunction(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR-.s
(t__name__t
__module__R-((R4(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR'-s(R,(R4R'((R4sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytmethod_decorator_metaclass,sRcB`s�eZdZdeeed�Zeded�Zd�Ze	d��Z
d�Zd�Zd�Z
d	�Zd
�Zd�Zddd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(uZHTML parser. Generates a tree structure from a stream of (possibly
        malformed) HTMLcC`s�||_|dkr'tjd�}n||�|_g|_tgt|�j�D]$\}}||||j�f^qU�|_	dS(u
        strict - raise an exception when a parse error is encountered

        tree - a treebuilder class controlling the type of tree that will be
        returned. Built in treebuilders can be accessed through
        html5lib.treebuilders.getTreeBuilder(treeType)
        uetreeN(
tstricttNoneR	Rttreeterrorstdictt	getPhasesR(tphases(tselfR:R8Rtdebugtnametcls((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyt__init__<s
		udivcK`sz||_||_||_tj|d||�|_|j�y|j�Wn%tk
ru|j�|j�nXdS(Ntparser(	t
innerHTMLModeR%t	scriptingRt
HTMLTokenizert	tokenizertresettmainLoopR(R?tstreamt	innerHTMLR%RFR"((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyt_parsePs			


cC`s|jj�t|_g|_g|_d|_|jr�|jj	�|_
|j
tkrp|jj
|j_nH|j
tkr�|jj|j_n$|j
dkr�|jj|j_n|jd|_|jj�|j�nt|_
|jd|_d|_d|_t|_dS(Nu	no quirksu	plaintextu
beforeHtmluinitial(R:RItFalset
firstStartTagR;tlogt
compatModeRER%tlowerRLRRHtrcdataStatetstateRtrawtextStatetplaintextStateR>tphasetinsertHtmlElementtresetInsertionModeR9t	lastPhasetbeforeRCDataPhasetTruet
framesetOK(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRI^s*
					

			cC`s't|d�sdS|jjjdjS(u�The name of the character encoding
        that was used to decode the input stream,
        or :obj:`None` if that is not determined yet.

        u	tokenizeriN(thasattrR9RHRKtcharEncodingRA(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytdocumentEncoding�scC`se|jdkrK|jtdkrKd|jkoJ|jdjt�dkS|j|jftkSdS(Nuannotation-xmlumathmluencodingu	text/htmluapplication/xhtml+xml(u	text/htmluapplication/xhtml+xml(RAt	namespaceRt
attributest	translateR
R(R?telement((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytisHTMLIntegrationPoint�s
cC`s|j|jftkS(N(RaRAR(R?Rd((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytisMathMLTextIntegrationPoint�scC`s-td}td}td}td}td}td}td}x�|j�D]�}d}	|}
x=|
dk	r�|
}	|jjr�|jjdnd}|r�|jnd}|r�|jnd}
|
d	}||kr|j|
d
|
jdi��d}
qht	|jj�dks�||jj
ks�|j|�rx||krf|d
tddg�ks�|||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
6�qSqSWt}g}x2|r(|j|j�|jj�}|r�q�q�WdS(Nu
CharactersuSpaceCharactersuStartTaguEndTaguCommentuDoctypeu
ParseErrori����utypeudataudatavarsiunameumglyphu
malignmarkumathmluannotation-xmlusvguinForeignContentuselfClosinguselfClosingAcknowledgedu&non-void-element-with-trailing-solidus(RtnormalizedTokensR9R:topenElementsRaRAt
parseErrortgettlentdefaultNamespaceRft	frozensetRReRWR>tprocessCharacterstprocessSpaceCharacterstprocessStartTagt
processEndTagtprocessCommenttprocessDoctypeR\tappendt
processEOF(R?tCharactersTokentSpaceCharactersTokent
StartTagTokentEndTagTokentCommentTokentDoctypeTokentParseErrorTokenttokent
prev_tokent	new_tokentcurrentNodetcurrentNodeNamespacetcurrentNodeNameR,RWt	reprocessR>((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRJ�sp






"
 	
		cc`s&x|jD]}|j|�Vq
WdS(N(RHtnormalizeToken(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRg�scO`s&|j|td||�|jj�S(u�Parse a HTML document into a well-formed tree

        stream - a filelike 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)

        scripting - treat noscript elements as if javascript was turned on
        N(RMRNR9R:tgetDocument(R?RKtargsR"((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scO`s#|j|t||�|jj�S(u2Parse a HTML fragment into a well-formed tree fragment

        container - name of the element we're setting the innerHTML property
        if set to None, default to 'div'

        stream - a filelike 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)

        scripting - treat noscript elements as if javascript was turned on
        (RMR\R:tgetFragment(R?RKR�R"((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR&�suXXX-undefined-errorcC`s^|dkri}n|jj|jjj�||f�|jrZtt||��ndS(N(	R9R;RtRHRKtpositionR8t
ParseErrorR(R?t	errorcodetdatavars((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRis
	%	cC`sr|dtdkrn|d}t|�|d<t|�t|d�krn|dj|ddd��qnn|S(u3 HTML5 specific normalizations to the token stream utypeuStartTagudataNi����(RRRktupdate(R?R}traw((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s
$cC`st|t�dS(N(tadjust_attributesR(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRscC`st|t�dS(N(R�R(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRscC`st|t�dS(N(R�tadjustForeignAttributesMap(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRscC`s|jj�dS(N(RDRW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytreparseTokenNormalscC`s?t}idd6dd6dd6dd6dd	6dd
6dd6dd
6dd6dd6dd6dd6dd6dd6}x�|jjddd�D]�}|j}d}||jjdkr�t}|j}n|dkr�n|r�|j|jjkr�q�n||kr|j	||}Pq�|r�|j	d}Pq�q�W||_
dS(NuinSelectuselectuinCellutduthuinRowutruinTableBodyutbodyutheadutfootu	inCaptionucaptionu
inColumnGroupucolgroupuinTableutableuinBodyuheadubodyu
inFramesetuframesetu
beforeHeaduhtmli����i(uselectucolgroupuheaduhtml(RNR:RhRAR9R\RLRaRlR>RW(R?tlasttnewModestnodetnodeNamet	new_phase((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRY!sB
 	
cC`sc|jj|�|dkr1|jj|j_n|jj|j_|j|_|jd|_dS(uYGeneric RCDATA/RAWTEXT Parsing algorithm
        contentType - RCDATA or RAWTEXT
        uRAWTEXTutextN(	R:t
insertElementRHRURTRSRWt
originalPhaseR>(R?R}tcontentType((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytparseRCDataRawtextMsN(R5R6t__doc__R9RNR\RCRMRItpropertyR`ReRfRJRgRR&RiR�RRRR�RYR�(((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR8s&	"	
		C									,c`sTd�}d�}dt|||��fd��Y�d�fd��Y}d�fd��Y}d	�f�fd
��Y}d�f�fd��Y}d
�f�fd��Y}d�f�fd��Y}d�f�fd��Y}	d�f�fd��Y}
d�f�fd��Y}d�f�fd��Y}d�f�fd��Y}
d�f�fd��Y}d�f�fd��Y}d�f�fd ��Y}d!�f�fd"��Y}d#�f�fd$��Y}d%�f�fd&��Y}d'�f�fd(��Y}d)�f�fd*��Y}d+�f�fd,��Y}d-�f�fd.��Y}d/�f�fd0��Y}d1�f�fd2��Y}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`s2td�tj�D�����fd�}|S(u4Logger that records which phase processes each tokencs`s!|]\}}||fVqdS(N((t.0tkeytvalue((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pys	<genexpr>csc`s��jjd�r�t|�dkr�|d}yi�|dd6}Wn
�nX|dtkru|d|d<n|jjj|jjjj|jj	j
j|j
j�j|f��|||�S�|||�SdS(Nuprocessiutypeuname(R5t
startswithRkRRDRPRtRHRTRWt	__class__(R?R�R"R}tinfo(R4t
type_names(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytwrappedfs$
	
(R<RR((R4R�((R4R�sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRPas	cS`s|rt|�StSdS(N(R7R,(t
use_metaclasstmetaclass_func((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytgetMetaclasszs
tPhasecB`s_eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
uNBase class for helper object that implements each phase of processing
        cS`s||_||_dS(N(RDR:(R?RDR:((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�s	cS`s
t�dS(N(tNotImplementedError(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�scS`s!|jj||jjd�dS(Ni����(R:t
insertCommentRh(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr�scS`s|jjd�dS(Nuunexpected-doctype(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRs�scS`s|jj|d�dS(Nudata(R:t
insertText(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�scS`s|jj|d�dS(Nudata(R:R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo�scS`s|j|d|�S(Nuname(tstartTagHandler(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRp�scS`s�|jjr0|ddkr0|jjd�nxQ|dj�D]?\}}||jjdjkrA||jjdj|<qAqAWt|j_dS(Nunameuhtmlu
non-html-rootudatai(RDRORiR(R:RhRbRN(R?R}tattrR�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytstartTagHtml�scS`s|j|d|�S(Nuname(t
endTagHandler(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRq�s(R5R6R�RCRuRrRsRnRoRpR�Rq(((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s								
tInitialPhasecB`sPeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(cS`sdS(N((R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo�scS`s|jj||jj�dS(N(R:R�tdocument(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr�sc8S`su|d}|d}|d}|d}|dksX|dk	sX|dk	rk|dkrk|jjd�n|dkr�d}n|jj|�|dkr�|jt�}n|s|ddks|jdJ�s|dKks|jdL�r�|dks|r"|j�dDkr"dE|j_	n9|jdM�sL|jdN�r[|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//(R9RDRiR:t
insertDoctypeRcR
R�RRRQR>RW(R?R}RAtpublicIdtsystemIdtcorrect((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRs�s�



						cS`s&d|j_|jjd|j_dS(Nuquirksu
beforeHtml(RDRQR>RW(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytanythingElsescS`s|jjd�|j�|S(Nuexpected-doctype-but-got-chars(RDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRns
cS`s,|jjdi|dd6�|j�|S(Nu"expected-doctype-but-got-start-taguname(RDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRps
cS`s,|jjdi|dd6�|j�|S(Nu expected-doctype-but-got-end-taguname(RDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRqs
cS`s|jjd�|j�tS(Nuexpected-doctype-but-got-eof(RDRiR�R\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu%s
(
R5R6RoRrRsR�RnRpRqRu(((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s			_				tBeforeHtmlPhasecB`sGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cS`s3|jjtdd��|jjd|j_dS(NuhtmluStartTagu
beforeHead(R:t
insertRoottimpliedTagTokenRDR>RW(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRX,scS`s|j�tS(N(RXR\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu1s
cS`s|jj||jj�dS(N(R:R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr5scS`sdS(N((R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo8scS`s|j�|S(N(RX(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn;s
cS`s-|ddkrt|j_n|j�|S(Nunameuhtml(R\RDRORX(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRp?s
cS`sC|ddkr1|jjdi|dd6�n|j�|SdS(Nunameuheadubodyuhtmlubruunexpected-end-tag-before-html(uheadubodyuhtmlubr(RDRiRX(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRqEs

(	R5R6RXRuRrRoRnRpRq(((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�*s						tBeforeHeadPhasec`s_eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	c`s}�j|||�tjd|jfd|jfg�|_|j|j_tjd|jfg�|_	|j
|j	_dS(Nuhtmluheadubodyubr(uheadubodyuhtmlubr(RCRtMethodDispatcherR�tstartTagHeadR�t
startTagOthertdefaulttendTagImplyHeadR�tendTagOther(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRCNscS`s|jtdd��tS(NuheaduStartTag(R�R�R\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu\scS`sdS(N((R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo`scS`s|jtdd��|S(NuheaduStartTag(R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRncscS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�gscS`s@|jj|�|jjd|j_|jjd|j_dS(Ni����uinHead(R:R�RhtheadPointerRDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�jscS`s|jtdd��|S(NuheaduStartTag(R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�oscS`s|jtdd��|S(NuheaduStartTag(R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�sscS`s"|jjdi|dd6�dS(Nuend-tag-after-implied-rootuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�ws(R5R6RCRuRoRnR�R�R�R�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Ms							tInHeadPhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�ZRS(c`s��j|||�tjd|jfd|jfd|jfd|jfd|jfd|jfd|j	fd
|j
fg�|_|j|j_
tjd
|jfd|jfg�|_|j|j_
dS(Nuhtmlutitleunoframesustyleunoscriptuscriptubaseubasefontubgsounducommandulinkumetauheadubrubody(unoframesustyle(ubaseubasefontubgsounducommandulink(ubruhtmlubody(RCRR�R�t
startTagTitletstartTagNoFramesStyletstartTagNoscripttstartTagScripttstartTagBaseLinkCommandtstartTagMetaR�R�R�R�t
endTagHeadtendTagHtmlBodyBrR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC|s 	cS`s|j�tS(N(R�R\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�s
cS`s|j�|S(N(R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�s
cS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s|jjd�dS(Nu!two-heads-are-not-better-than-one(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s.|jj|�|jjj�t|d<dS(NuselfClosingAcknowledged(R:R�RhtpopR\(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s�|jj|�|jjj�t|d<|d}|jjjjddkr�d|kry|jjjj	|d�q�d|kr�d|kr�|dj
�dkr�tj|dj
d	��}tj|�}|j�}|jjjj	|�q�ndS(
NuselfClosingAcknowledgedudataiu	tentativeucharsetucontentu
http-equivucontent-typeuutf-8(R:R�RhR�R\RDRHRKR_tchangeEncodingRRRt
EncodingBytestencodetContentAttrParserR(R?R}RbtdataRDtcodec((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s

cS`s|jj|d�dS(NuRCDATA(RDR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s|jj|d�dS(NuRAWTEXT(RDR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sL|jjr"|jj|d�n&|jj|�|jjd|j_dS(NuRAWTEXTuinHeadNoscript(RDRFR�R:R�R>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sT|jj|�|jjj|jj_|jj|j_|jjd|j_dS(Nutext(	R:R�RDRHtscriptDataStateRTRWR�R>(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s|j�|S(N(R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`s/|jjjj�}|jjd|j_dS(Nu	afterHead(RDR:RhR�R>RW(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s|j�|S(N(R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`s"|jjdi|dd6�dS(Nuunexpected-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s|jtd��dS(Nuhead(R�R�(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s(R5R6RCRuRnR�R�R�R�R�R�R�R�R�R�R�R�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�{s 														tInHeadNoscriptPhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
c`s��j|||�tjd|jfd|jfd|jfg�|_|j|j_tjd	|j	fd
|j
fg�|_|j|j_dS(
Nuhtmlubasefontubgsoundulinkumetaunoframesustyleuheadunoscriptubr(ubasefontubgsoundulinkumetaunoframesustyle(uheadunoscript(
RCRR�R�R�tstartTagHeadNoscriptR�R�R�tendTagNoscripttendTagBrR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�scS`s|jjd�|j�tS(Nueof-in-head-noscript(RDRiR�R\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�s
cS`s|jjdj|�S(NuinHead(RDR>Rr(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr�scS`s|jjd�|j�|S(Nuchar-in-head-noscript(RDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�s
cS`s|jjdj|�S(NuinHead(RDR>Ro(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRoscS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`s|jjdj|�S(NuinHead(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`s"|jjdi|dd6�dS(Nuunexpected-start-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�	scS`s,|jjdi|dd6�|j�|S(Nuunexpected-inhead-noscript-taguname(RDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s
cS`s/|jjjj�}|jjd|j_dS(NuinHead(RDR:RhR�R>RW(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`s,|jjdi|dd6�|j�|S(Nuunexpected-inhead-noscript-taguname(RDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s
cS`s"|jjdi|dd6�dS(Nuunexpected-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`s|jtd��dS(Nunoscript(R�R�(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s(R5R6RCRuRrRnRoR�R�R�R�R�R�R�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s											tAfterHeadPhasec`szeZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(c
`s��j|||�tjd|jfd|jfd|jfd|jfd
|jfg�|_|j	|j_
tjd|jfg�|_|j
|j_
dS(Nuhtmlubodyuframesetubaseubasefontubgsoundulinkumetaunoframesuscriptustyleutitleuheadubr(	ubaseubasefontubgsoundulinkumetaunoframesuscriptustyleutitle(ubodyuhtmlubr(RCRR�R�tstartTagBodytstartTagFramesettstartTagFromHeadR�R�R�R�R�R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC#s		cS`s|j�tS(N(R�R\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu4s
cS`s|j�|S(N(R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn8s
cS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�<scS`s6t|j_|jj|�|jjd|j_dS(NuinBody(RNRDR]R:R�R>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�?scS`s*|jj|�|jjd|j_dS(Nu
inFrameset(R:R�RDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�DscS`s�|jjdi|dd6�|jjj|jj�|jjdj|�xG|jjddd�D],}|jdkrh|jjj	|�PqhqhWdS(Nu#unexpected-start-tag-out-of-my-headunameuinHeadi����uhead(
RDRiR:RhRtR�R>RpRAtremove(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Hs cS`s"|jjdi|dd6�dS(Nuunexpected-start-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�RscS`s|j�|S(N(R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Us
cS`s|j�|S(N(R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Ys
cS`s"|jjdi|dd6�dS(Nuunexpected-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�]scS`s?|jjtdd��|jjd|j_t|j_dS(NubodyuStartTaguinBody(R:R�R�RDR>RWR\R](R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�`s(R5R6RCRuRnR�R�R�R�R�R�R�R�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�"s						
				tInBodyPhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�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,�Z.d-�Z/d.�Z0d/�Z1d0�Z2d1�Z3d2�Z4RS(3c,`si�j|||�|j|_tjd|jfdd|jfd|jfd|jfde|j	ft
|jfdf|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(6RCtprocessSpaceCharactersNonPreRoRR�R�tstartTagProcessInHeadR�R�tstartTagClosePRtstartTagHeadingtstartTagPreListingtstartTagFormtstartTagListItemtstartTagPlaintextt	startTagAtstartTagFormattingtstartTagNobrtstartTagButtontstartTagAppletMarqueeObjecttstartTagXmpt
startTagTabletstartTagVoidFormattingtstartTagParamSourcet
startTagInputt
startTagHrt
startTagImagetstartTagIsIndextstartTagTextareatstartTagIFrameR�tstartTagRawtexttstartTagSelecttstartTagRpRttstartTagOpttstartTagMathtstartTagSvgtstartTagMisplacedR�R�R�t
endTagBodyt
endTagHtmltendTagBlockt
endTagFormtendTagPtendTagListItemt
endTagHeadingtendTagFormattingtendTagAppletMarqueeObjectR�R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRChs~			cS`s4|j|jko3|j|jko3|j|jkS(N(RARaRb(R?tnode1tnode2((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytisMatchingFormattingElement�scS`s�|jj|�|jjd}g}xS|jjddd�D]8}|tkrVPq@|j||�r@|j|�q@q@Wt|�dkr�|jjj|d�n|jjj|�dS(Ni����i(	R:R�RhtactiveFormattingElementsR
RRtRkR�(R?R}RdtmatchingElementsR�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytaddFormattingElement�s c
S`sWtd�}xD|jjddd
�D])}|j|kr&|jjd�Pq&q&WdS(Nuddudtuliuputbodyutdutfootuthutheadutrubodyuhtmli����u expected-closing-tag-but-got-eof(uddudtuliuputbodyutdutfootuthutheadutrubodyuhtml(RmR:RhRARDRi(R?tallowed_elementsR�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�s	 cS`s�|d}|j|_|jd�rb|jjdjdkrb|jjdj�rb|d}n|r�|jj�|jj|�ndS(	Nudatau
i����upreulistingutextareai(upreulistingutextarea(	R�RoR�R:RhRAt
hasContentt#reconstructActiveFormattingElementsR�(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyt!processSpaceCharactersDropNewline�s


cS`s}|ddkrdS|jj�|jj|d�|jjrytg|dD]}|tk^qO�ryt|j_ndS(Nudatau(R:RR�RDR]tanyRRN(R?R}tchar((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�s
#cS`s%|jj�|jj|d�dS(Nudata(R:RR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`s|jjdj|�S(NuinHead(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s�|jjdidd6�t|jj�dks�|jjdjdkrNn`t|j_xQ|dj�D]?\}}||jjdj	krk||jjdj	|<qkqkWdS(Nuunexpected-start-tagubodyunameiudata(
RDRiRkR:RhRARNR]R(Rb(R?R}R�R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s�|jjdidd6�t|jj�dks�|jjdjdkrNn�|jjs]n�|jjdjr�|jjdjj|jjd�nx-|jjdjdkr�|jjj	�q�W|jj
|�|jjd|j_dS(	Nuunexpected-start-taguframesetunameiubodyi����uhtmlu
inFrameset(
RDRiRkR:RhRAR]tparenttremoveChildR�R�R>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s1'cS`sB|jjddd�r.|jtd��n|jj|�dS(Nuptvariantubutton(R:telementInScopeR�R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�	scS`sZ|jjddd�r.|jtd��n|jj|�t|j_|j|_	dS(NupRubutton(
R:RR�R�R�RNRDR]RRo(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s
cS`s�|jjr)|jjdidd6�nT|jjddd�rW|jtd��n|jj|�|jjd|j_dS(Nuunexpected-start-taguformunameupRubuttoni����(	R:tformPointerRDRiRR�R�R�Rh(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`st|j_idgd6ddgd6ddgd6}||d}xnt|jj�D]Z}|j|kr�|jjjt	|jd��Pn|j
tkrW|jdkrWPqWqWW|jjdd	d
�r�|jjjt	dd��n|jj
|�dS(NuliudtuddunameuEndTaguaddressudivupRubutton(uaddressudivup(RNRDR]treversedR:RhRARWRqR�t	nameTupleRRR�(R?R}tstopNamesMapt	stopNamesR�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s"

cS`sZ|jjddd�r.|jtd��n|jj|�|jjj|jj_dS(NupRubutton(	R:RR�R�R�RDRHRVRT(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�4scS`s�|jjddd�r.|jtd��n|jjdjtkrx|jjdi|dd6�|jjj	�n|jj
|�dS(NupRubuttoni����uunexpected-start-taguname(R:RR�R�RhRARRDRiR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�:scS`s�|jjd�}|r�|jjdidd6dd6�|jtd��||jjkrt|jjj|�n||jjkr�|jjj|�q�n|jj	�|j
|�dS(Nuau$unexpected-start-tag-implies-end-tagu	startNameuendName(R:t!elementInActiveFormattingElementsRDRiRR�RhR�RRR(R?R}tafeAElement((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Bs
cS`s|jj�|j|�dS(N(R:RR(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Os
cS`st|jj�|jjd�rc|jjdidd6dd6�|jtd��|jj�n|j|�dS(Nunobru$unexpected-start-tag-implies-end-tagu	startNameuendName(R:RRRDRiRqR�R(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Ss
cS`sw|jjd�rJ|jjdidd6dd6�|jtd��|S|jj�|jj|�t|j_	dS(Nubuttonu$unexpected-start-tag-implies-end-tagu	startNameuendName(
R:RRDRiRqR�RR�RNR](R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�]s
cS`s@|jj�|jj|�|jjjt�t|j_dS(N(	R:RR�RRtR
RNRDR](R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�hs
cS`s^|jjddd�r.|jtd��n|jj�t|j_|jj|d�dS(NupRubuttonuRAWTEXT(	R:RR�R�RRNRDR]R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�ns

cS`sy|jjdkrC|jjddd�rC|jtd��qCn|jj|�t|j_|jj	d|j_
dS(NuquirksupRubuttonuinTable(RDRQR:RRqR�R�RNR]R>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�uscS`sG|jj�|jj|�|jjj�t|d<t|j_dS(NuselfClosingAcknowledged(	R:RR�RhR�R\RNRDR](R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�}s


cS`sY|jj}|j|�d|dkrU|ddjt�dkrU||j_ndS(Nutypeudatauhidden(RDR]R�RcR
(R?R}R]((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s

cS`s.|jj|�|jjj�t|d<dS(NuselfClosingAcknowledged(R:R�RhR�R\(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sh|jjddd�r.|jtd��n|jj|�|jjj�t|d<t|j	_
dS(NupRubuttonuselfClosingAcknowledged(R:RR�R�R�RhR�R\RNRDR](R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
c	S`sO|jjdidd6dd6�|jtddd|dd	|d
��dS(Nuunexpected-start-tag-treated-asuimageuoriginalNameuimgunewNameuStartTagRbudatatselfClosinguselfClosing(RDRiRpR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s

c	S`s�|jjdidd6�|jjr*dSi}d|dkrU|dd|d<n|jtddd|��|jtd	d��|jtd
d��d|dkr�|dd}nd}|jitd
d6|d6�|dj�}d|kr	|d=nd|kr|d=nd|d<|jtddd|d|d��|j	td
��|jtd	d��|j	td��dS(Nudeprecated-taguisindexunameuactionudatauformuStartTagRbuhrulabelupromptu3This is a searchable index. Enter search keywords: u
CharactersutypeuinputRuselfClosing(
RDRiR:RRpR�RnRtcopyRq(R?R}t
form_attrstpromptRb((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s6



cS`sD|jj|�|jjj|jj_|j|_t|j_	dS(N(
R:R�RDRHRSRTRRoRNR](R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`st|j_|j|�dS(N(RNRDR]R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s-|jjr|j|�n
|j|�dS(N(RDRFR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s|jj|d�dS(u8iframe, noembed noframes, noscript(if scripting enabled)uRAWTEXTN(RDR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sY|jjdjdkr5|jjjtd��n|jj�|jjj|�dS(Ni����uoption(	R:RhRARDRWRqR�RR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`s�|jj�|jj|�t|j_|jj|jjd|jjd|jjd|jjd|jjd|jjdfkr�|jjd|j_n|jjd|j_dS(	NuinTableu	inCaptionu
inColumnGroupuinTableBodyuinRowuinCelluinSelectInTableuinSelect(R:RR�RNRDR]RWR>(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s




cS`s_|jjd�rK|jj�|jjdjdkrK|jj�qKn|jj|�dS(Nurubyi����(R:RtgenerateImpliedEndTagsRhRARDRiR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s

cS`sv|jj�|jj|�|jj|�td|d<|jj|�|drr|jjj�t	|d<ndS(Numathmlu	namespaceuselfClosinguselfClosingAcknowledged(
R:RRDRRRR�RhR�R\(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s

cS`sv|jj�|jj|�|jj|�td|d<|jj|�|drr|jjj�t	|d<ndS(Nusvgu	namespaceuselfClosinguselfClosingAcknowledged(
R:RRDRRRR�RhR�R\(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s

cS`s"|jjdi|dd6�dS(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(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`s!|jj�|jj|�dS(N(R:RR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�s
cS`s�|jjddd�sa|jtdd��|jjdidd6�|jtdd��n�|jjd�|jjdj	dkr�|jjdidd6�n|jjj
�}x%|j	dkr�|jjj
�}q�WdS(	NupRubuttonuStartTaguunexpected-end-tagunameuEndTagi����(R:RR�R�RDRiR�RRhRAR�(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�scS`s�|jjd�s#|jj�dS|jjdjdkr�xX|jjdD]C}|jtd�krM|jjdidd6|jd6�PqMqMWn|jjd|j_dS(Nubodyi����iuddudtuliuoptgroupuoptionupurpurtutbodyutdutfootuthutheadutruhtmlu$expected-one-end-tag-but-got-anotherugotNameuexpectedNameu	afterBody(uddudtuliuoptgroupuoptionupurpurtutbodyutdutfootuthutheadutrubodyuhtml(	R:RRDRiRhRARmR>RW(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�!s
		cS`s-|jjd�r)|jtd��|SdS(Nubody(R:RR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�3scS`s�|ddkr|j|_n|jj|d�}|rK|jj�n|jjdj|dkr�|jjdi|dd6�n|r�|jjj	�}x,|j|dkr�|jjj	�}q�WndS(Nunameuprei����uend-tag-too-early(
R�RoR:RRRhRARDRiR�(R?R}tinScopeR�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�9s!cS`s�|jj}d|j_|dks7|jj|�rT|jjdidd6�nS|jj�|jjd|kr�|jjdidd6�n|jjj|�dS(Nuunexpected-end-taguformunamei����uend-tag-too-early-ignored(	R:RR9RRDRiRRhR�(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Gs
cS`s�|ddkrd}nd}|jj|dd|�s\|jjdi|dd6�n�|jjd|d�|jjdj|dkr�|jjdi|dd6�n|jjj�}x)|j|dkr�|jjj�}q�WdS(	NunameuliulistRuunexpected-end-tagtexcludei����uend-tag-too-early(	R9R:RRDRiRRhRAR�(R?R}RR�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Ts	!	cS`s�x1tD])}|jj|�r|jj�PqqW|jjdj|dkrr|jjdi|dd6�nx^tD]V}|jj|�ry|jjj�}x%|jtkr�|jjj�}q�WPqyqyWdS(Ni����unameuend-tag-too-early(	RR:RRRhRARDRiR�(R?R}titem((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRes

!
cS`s3d}x&|dkr.|d7}|jj|d�}|sd||jjkru|jj|j�ru|j|�dS||jjkr�|jjdi|dd6�|jjj	|�dS|jj|j�s�|jjdi|dd6�dS||jjdkr*|jjd	i|dd6�n|jjj
|�}d}x1|jj|D]}|jt
krV|}PqVqVW|dkr�|jjj�}x"||kr�|jjj�}q�W|jjj	|�dS|jj|d}|jjj
|�}|}	}
d}|jjj
|
�}x|d
kr9|d7}|d8}|jj|}
|
|jjkr|jjj	|
�q$n|
|kr�Pn|	|kr�|jjj
|
�d}n|
j�}
|
|jj|jjj
|
�<|
|jj|jjj
|
�<|
}
|	jr#|	jj|	�n|
j|	�|
}	q$W|	jrV|	jj|	�n|jtd�kr�|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.4i����uadoption-agency-1.3iutableutbodyutfootutheadutr(utableutbodyutfootutheadutr(R:RRhRRAR�RDRiRR�tindexR9RRR�t	cloneNodeRRtappendChildRmtgetTableMisnestedNodePositiontinsertBeforetreparentChildrentinsert(R?R}touterLoopCountertformattingElementtafeIndext
furthestBlockRdtcommonAncestortbookmarktlastNodeR�tinnerLoopCounterR"tcloneRR&((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRts�

	

!



	

	


cS`s�|jj|d�r&|jj�n|jjdj|dkrd|jjdi|dd6�n|jj|d�r�|jjj�}x)|j|dkr�|jjj�}q�W|jj�ndS(Nunamei����uend-tag-too-early(	R:RRRhRARDRiR�tclearActiveFormattingElements(R?R}Rd((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRs!cS`s[|jjdidd6dd6�|jj�|jjtdd��|jjj�dS(Nuunexpected-end-tag-treated-asubruoriginalNameu
br elementunewNameuStartTag(RDRiR:RR�R�RhR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�#s

cS`s�x�|jjddd�D]�}|j|dkr�|jjd|d�|jjdj|dkr�|jjdi|dd6�nx|jjj�|kr�q�WPq|jtkr|jjdi|dd6�PqqWdS(Ni����unameR uunexpected-end-tag(	R:RhRARRDRiR�RR(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�*s !(5R5R6RCRRRuRRnR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRR�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�esfG			
	
													
		
																							
				
			�		t	TextPhasec`sDeZ�fd�Zd�Zd�Zd�Zd�Zd�ZRS(c`se�j|||�tjg�|_|j|j_tjd|jfg�|_|j|j_dS(Nuscript(	RCRR�R�R�R�tendTagScriptR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC9scS`s|jj|d�dS(Nudata(R:R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRnAscS`sM|jjdi|jjdjd6�|jjj�|jj|j_tS(Nu&expected-named-closing-tag-but-got-eofi����uname(	RDRiR:RhRAR�R�RWR\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRuDs
cS`sdS(N((R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�KscS`s(|jjj�}|jj|j_dS(N(R:RhR�RDR�RW(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR4NscS`s&|jjj�|jj|j_dS(N(R:RhR�RDR�RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Us(R5R6RCRnRuR�R4R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR38s				tInTablePhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�ZRS(c
`s��j|||�tjd|jfd|jfd|jfd|jfd|jfd|jfd|j	fd|j
fd|jfd|jfg
�|_
|j|j
_tjd|jfd|jfg�|_|j|j_dS(Nuhtmlucaptionucolgroupucolutbodyutfootutheadutduthutrutableustyleuscriptuinputuformubody(utbodyutfootuthead(utduthutr(ustyleuscript(ubodyucaptionucolucolgroupuhtmlutbodyutdutfootuthutheadutr(RCRR�R�tstartTagCaptiontstartTagColgrouptstartTagColtstartTagRowGrouptstartTagImplyTbodyR�tstartTagStyleScriptR�R�R�R�R�tendTagTabletendTagIgnoreR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC[s$cS`s4x-|jjdjdkr/|jjj�qWdS(Ni����utableuhtml(utableuhtml(R:RhRAR�(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytclearStackToTableContextsscS`s0|jjdjdkr,|jjd�ndS(Ni����uhtmlueof-in-table(R:RhRARDRi(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu|scS`sH|jj}|jjd|j_||jj_|jjj|�dS(NuinTableText(RDRWR>R�Ro(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo�scS`sH|jj}|jjd|j_||jj_|jjj|�dS(NuinTableText(RDRWR>R�Rn(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�scS`s3t|j_|jjdj|�t|j_dS(NuinBody(R\R:tinsertFromTableRDR>RnRN(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sG|j�|jjjt�|jj|�|jjd|j_dS(Nu	inCaption(	R>R:RRtR
R�RDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR6�s
cS`s4|j�|jj|�|jjd|j_dS(Nu
inColumnGroup(R>R:R�RDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR7�s
cS`s|jtdd��|S(NucolgroupuStartTag(R7R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR8�scS`s4|j�|jj|�|jjd|j_dS(NuinTableBody(R>R:R�RDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR9�s
cS`s|jtdd��|S(NutbodyuStartTag(R9R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR:�scS`sN|jjdidd6dd6�|jjjtd��|jjsJ|SdS(Nu$unexpected-start-tag-implies-end-tagutableu	startNameuendName(RDRiRWRqR�RL(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`s|jjdj|�S(NuinHead(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR;�scS`sqd|dkr`|ddjt�dkr`|jjd�|jj|�|jjj�n
|j|�dS(Nutypeudatauhiddenu unexpected-hidden-input-in-table(	RcR
RDRiR:R�RhR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s_|jjd�|jjdkr[|jj|�|jjd|j_|jjj�ndS(Nuunexpected-form-in-tablei����(RDRiR:RR9R�RhR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`sQ|jjdi|dd6�t|j_|jjdj|�t|j_dS(Nu)unexpected-start-tag-implies-table-voodoounameuinBody(RDRiR\R:R?R>RpRN(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s�|jjddd�r�|jj�|jjdjdkro|jjdidd6|jjdjd6�nx-|jjdjdkr�|jjj�qrW|jjj�|jj�n
|jj�dS(NutableRi����uend-tag-too-early-namedugotNameuexpectedName(	R:RRRhRARDRiR�RY(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR<�s

cS`s"|jjdi|dd6�dS(Nuunexpected-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR=�scS`sQ|jjdi|dd6�t|j_|jjdj|�t|j_dS(Nu'unexpected-end-tag-implies-table-voodoounameuinBody(RDRiR\R:R?R>RqRN(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s(R5R6RCR>RuRoRnR�R6R7R8R9R:R�R;R�R�R�R<R=R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR5Ys&														
				tInTableTextPhasec`sVeZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(c`s)�j|||�d|_g|_dS(N(RCR9R�tcharacterTokens(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�s	cS`s�djg|jD]}|d^q�}tg|D]}|tk^q3�r�itdd6|d6}|jjdj|�n|r�|jj|�ng|_dS(Nuudatau
CharactersutypeuinTable(	tjoinRAR
RRRDR>R�R:(R?R!R�R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytflushCharacters�s)%cS`s|j�|j|j_|S(N(RCR�RDRW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr�s
cS`s|j�|j|j_tS(N(RCR�RDRWR\(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�s
cS`s(|ddkrdS|jj|�dS(Nudatau(RARt(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRnscS`s|jj|�dS(N(RARt(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRoscS`s|j�|j|j_|S(N(RCR�RDRW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRp
s
cS`s|j�|j|j_|S(N(RCR�RDRW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRqs
(
R5R6RCRCRrRuRnRoRpRq((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR@�s							tInCaptionPhasec`sheZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
c
`s��j|||�tjd|jfd
|jfg�|_|j|j_tjd|jfd|j	fd|j
fg�|_|j|j_dS(Nuhtmlucaptionucolucolgrouputbodyutdutfootuthutheadutrutableubody(	ucaptionucolucolgrouputbodyutdutfootuthutheadutr(
ubodyucolucolgroupuhtmlutbodyutdutfootuthutheadutr(
RCRR�R�tstartTagTableElementR�R�R�t
endTagCaptionR<R=R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRCscS`s|jjddd�S(NucaptionRutable(R:R(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytignoreEndTagCaption+scS`s|jjdj�dS(NuinBody(RDR>Ru(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu.scS`s|jjdj|�S(NuinBody(RDR>Rn(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn1scS`s@|jj�|j�}|jjjtd��|s<|SdS(Nucaption(RDRiRGRWRqR�(R?R}tignoreEndTag((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRE4s

cS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�<scS`s�|j�s�|jj�|jjdjdkrc|jjdidd6|jjdjd6�nx-|jjdjdkr�|jjj�qfW|jjj�|jj�|jj	d|j_
n
|jj�dS(Ni����ucaptionu$expected-one-end-tag-but-got-anotherugotNameuexpectedNameuinTable(RGR:RRhRARDRiR�R2R>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRF?s


cS`s@|jj�|j�}|jjjtd��|s<|SdS(Nucaption(RDRiRGRWRqR�(R?R}RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR<Qs

cS`s"|jjdi|dd6�dS(Nuunexpected-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR=XscS`s|jjdj|�S(NuinBody(RDR>Rq(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�[s(R5R6RCRGRuRnRER�RFR<R=R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRDs								tInColumnGroupPhasec`s_eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	c`s��j|||�tjd|jfd|jfg�|_|j|j_tjd|jfd|j	fg�|_
|j|j
_dS(Nuhtmlucolucolgroup(RCRR�R�R8R�R�R�tendTagColgroupt	endTagColR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRCascS`s|jjdjdkS(Ni����uhtml(R:RhRA(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytignoreEndTagColgrouppscS`sJ|jjdjdkrdS|j�}|jtd��|sFtSdS(Ni����uhtmlucolgroup(R:RhRARLRJR�R\(R?RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRusscS`s-|j�}|jtd��|s)|SdS(Nucolgroup(RLRJR�(R?R}RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn}scS`s.|jj|�|jjj�t|d<dS(NuselfClosingAcknowledged(R:R�RhR�R\(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR8�scS`s-|j�}|jtd��|s)|SdS(Nucolgroup(RLRJR�(R?R}RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sF|j�r|jj�n&|jjj�|jjd|j_dS(NuinTable(RLRDRiR:RhR�R>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRJ�scS`s|jjdidd6�dS(Nu
no-end-tagucoluname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRK�scS`s-|j�}|jtd��|s)|SdS(Nucolgroup(RLRJR�(R?R}RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s(R5R6RCRLRuRnR8R�RJRKR�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRI^s		
						tInTableBodyPhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
c`s��j|||�tjd|jfd|jfd
|jfd|jfg�|_|j|j_	tjd|j
fd|jfd|jfg�|_
|j|j
_	dS(Nuhtmlutrutduthucaptionucolucolgrouputbodyutfootutheadutableubody(utduth(ucaptionucolucolgrouputbodyutfootuthead(utbodyutfootuthead(ubodyucaptionucolucolgroupuhtmlutduthutr(RCRR�R�t
startTagTrtstartTagTableCelltstartTagTableOtherR�R�R�tendTagTableRowGroupR<R=R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�scS`sPx-|jjdjdkr/|jjj�qW|jjdjdkrLndS(Ni����utbodyutfootutheaduhtml(utbodyutfootutheaduhtml(R:RhRAR�(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytclearStackToTableBodyContext�s
	cS`s|jjdj�dS(NuinTable(RDR>Ru(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�scS`s|jjdj|�S(NuinTable(RDR>Ro(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo�scS`s|jjdj|�S(NuinTable(RDR>Rn(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�scS`s4|j�|jj|�|jjd|j_dS(NuinRow(RRR:R�RDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRN�s
cS`s8|jjdi|dd6�|jtdd��|S(Nuunexpected-cell-in-table-bodyunameutruStartTag(RDRiRNR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRO�scS`s�|jjddd�sH|jjddd�sH|jjddd�rv|j�|jt|jjdj��|S|jj�dS(NutbodyRutableutheadutfooti����(	R:RRRRQR�RhRARDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRP�s
cS`s|jjdj|�S(NuinTable(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sq|jj|ddd�rO|j�|jjj�|jjd|j_n|jjdi|dd6�dS(NunameRutableuinTableu unexpected-end-tag-in-table-body(	R:RRRRhR�RDR>RWRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRQ�s
cS`s�|jjddd�sH|jjddd�sH|jjddd�rv|j�|jt|jjdj��|S|jj�dS(NutbodyRutableutheadutfooti����(	R:RRRRQR�RhRARDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR<�s
cS`s"|jjdi|dd6�dS(Nu unexpected-end-tag-in-table-bodyuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR=�scS`s|jjdj|�S(NuinTable(RDR>Rq(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s(R5R6RCRRRuRoRnRNRORPR�RQR<R=R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRM�s	
										
	t
InRowPhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(c`s��j|||�tjd|jfd
|jfd|jfg�|_|j|j_tjd
|j	fd|j
fd|jfd|jfg�|_
|j|j
_dS(Nuhtmlutduthucaptionucolucolgrouputbodyutfootutheadutrutableubody(utduth(ucaptionucolucolgrouputbodyutfootutheadutr(utbodyutfootuthead(ubodyucaptionucolucolgroupuhtmlutduth(RCRR�R�RORPR�R�R�tendTagTrR<RQR=R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRCscS`s[xT|jjdjdkrV|jjdi|jjdjd6�|jjj�qWdS(Ni����utruhtmlu'unexpected-implied-end-tag-in-table-rowuname(utruhtml(R:RhRARDRiR�(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytclearStackToTableRowContextscS`s|jjddd�S(NutrRutable(R:R(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytignoreEndTagTrscS`s|jjdj�dS(NuinTable(RDR>Ru(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu"scS`s|jjdj|�S(NuinTable(RDR>Ro(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo%scS`s|jjdj|�S(NuinTable(RDR>Rn(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn(scS`sG|j�|jj|�|jjd|j_|jjjt�dS(NuinCell(	RUR:R�RDR>RWRRtR
(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRO+s
cS`s-|j�}|jtd��|s)|SdS(Nutr(RVRTR�(R?R}RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRP1scS`s|jjdj|�S(NuinTable(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�8scS`sP|j�s?|j�|jjj�|jjd|j_n
|jj�dS(NuinTableBody(	RVRUR:RhR�RDR>RWRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRT;s

cS`s-|j�}|jtd��|s)|SdS(Nutr(RVRTR�(R?R}RH((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR<EscS`sD|jj|ddd�r3|jtd��|S|jj�dS(NunameRutableutr(R:RRTR�RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRQMscS`s"|jjdi|dd6�dS(Nuunexpected-end-tag-in-table-rowuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR=TscS`s|jjdj|�S(NuinTable(RDR>Rq(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�Xs(R5R6RCRURVRuRoRnRORPR�RTR<RQR=R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRSs									
			tInCellPhasec`sheZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
c`s��j|||�tjd|jfd
|jfg�|_|j|j_tjd|jfd|j	fd|j
fg�|_|j|j_dS(Nuhtmlucaptionucolucolgrouputbodyutdutfootuthutheadutrubodyutable(	ucaptionucolucolgrouputbodyutdutfootuthutheadutr(utduth(ubodyucaptionucolucolgroupuhtml(utableutbodyutfootutheadutr(
RCRR�R�RPR�R�R�tendTagTableCellR=tendTagImplyR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC]scS`s`|jjddd�r.|jtd��n.|jjddd�r\|jtd��ndS(NutdRutableuth(R:RRXR�(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyt	closeCellnscS`s|jjdj�dS(NuinBody(RDR>Ru(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRuuscS`s|jjdj|�S(NuinBody(RDR>Rn(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRnxscS`sO|jjddd�s0|jjddd�r>|j�|S|jj�dS(NutdRutableuth(R:RRZRDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRP{s

cS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s�|jj|ddd�r�|jj|d�|jjdj|dkr�|jjdi|dd6�xFtr�|jjj�}|j|dkrnPqnqnWn|jjj�|jj	�|jj
d|j_n|jjdi|dd6�dS(NunameRutablei����uunexpected-cell-end-taguinRowuunexpected-end-tag(R:RRRhRARDRiR\R�R2R>RW(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRX�s	
cS`s"|jjdi|dd6�dS(Nuunexpected-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR=�scS`s;|jj|ddd�r*|j�|S|jj�dS(NunameRutable(R:RRZRDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRY�s
cS`s|jjdj|�S(NuinBody(RDR>Rq(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s(R5R6RCRZRuRnRPR�RXR=RYR�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRW[s				
				t
InSelectPhasec`s�eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
c`s��j|||�tjd|jfd|jfd|jfd|jfd	|jfd|jfg�|_	|j
|j	_tjd|jfd|j
fd|jfg�|_|j|j_dS(
Nuhtmluoptionuoptgroupuselectuinputukeygenutextareauscript(uinputukeygenutextarea(RCRR�R�tstartTagOptiontstartTagOptgroupR�R�R�R�R�R�tendTagOptiontendTagOptgrouptendTagSelectR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�scS`s0|jjdjdkr,|jjd�ndS(Ni����uhtmlu
eof-in-select(R:RhRARDRi(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�scS`s,|ddkrdS|jj|d�dS(Nudatau(R:R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�scS`s@|jjdjdkr,|jjj�n|jj|�dS(Ni����uoption(R:RhRAR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR\�scS`sl|jjdjdkr,|jjj�n|jjdjdkrX|jjj�n|jj|�dS(Ni����uoptionuoptgroup(R:RhRAR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR]�s
cS`s'|jjd�|jtd��dS(Nuunexpected-select-in-selectuselect(RDRiR`R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sC|jjd�|jjddd�r?|jtd��|SdS(Nuunexpected-input-in-selectuselectR(RDRiR:RR`R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��s
cS`s|jjdj|�S(NuinHead(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`s"|jjdi|dd6�dS(Nuunexpected-start-tag-in-selectuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��scS`sJ|jjdjdkr,|jjj�n|jjdidd6�dS(Ni����uoptionuunexpected-end-tag-in-selectuname(R:RhRAR�RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR^�scS`s�|jjdjdkrE|jjdjdkrE|jjj�n|jjdjdkrq|jjj�n|jjdidd6�dS(Ni����uoptioni����uoptgroupuunexpected-end-tag-in-selectuname(R:RhRAR�RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR_�scS`ss|jjddd�rb|jjj�}x%|jdkrQ|jjj�}q-W|jj�n
|jj�dS(NuselectR(R:RRhR�RARDRYRi(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR`�scS`s"|jjdi|dd6�dS(Nuunexpected-end-tag-in-selectuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�	s(R5R6RCRuRnR\R]R�R�R�R�R^R_R`R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR[�s										
	tInSelectInTablePhasec`sMeZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(c	`sq�j|||�tjd	|jfg�|_|j|j_tjd
|jfg�|_|j	|j_dS(Nucaptionutableutbodyutfootutheadutrutduth(ucaptionutableutbodyutfootutheadutrutduth(ucaptionutableutbodyutfootutheadutrutduth(
RCRR�R�R�R�R�R<R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC	scS`s|jjdj�dS(NuinSelect(RDR>Ru(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu	scS`s|jjdj|�S(NuinSelect(RDR>Rn(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn	scS`s5|jjdi|dd6�|jtd��|S(Nu5unexpected-table-element-start-tag-in-select-in-tableunameuselect(RDRiR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�!	scS`s|jjdj|�S(NuinSelect(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�&	scS`sU|jjdi|dd6�|jj|ddd�rQ|jtd��|SdS(Nu3unexpected-table-element-end-tag-in-select-in-tableunameRutableuselect(RDRiR:RR�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR<)	scS`s|jjdj|�S(NuinSelect(RDR>Rq(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�/	s(	R5R6RCRuRnR�R�R<R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRa	s					tInForeignContentPhasec-`s�eZedddddddddd	d
ddd
ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+g,�Z�fd,�Zd-�Z�fd.�Zd/�Zd0�ZRS(1ububigu
blockquoteubodyubrucenterucodeuddudivudludtuemuembeduh1uh2uh3uh4uh5uh6uheaduhruiuimguliulistingumenuumetaunobruolupupreurubyususmalluspanustrongustrikeusubusuputableuttuuuuluvarc`s�j|||�dS(N(RC(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC<	scS`s+i$dd6dd6dd6dd6d	d
6dd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|dI<ndS(JNualtGlyphualtglyphualtGlyphDefualtglyphdefualtGlyphItemualtglyphitemuanimateColoruanimatecoloru
animateMotionu
animatemotionuanimateTransformuanimatetransformuclipPathuclippathufeBlendufeblendu
feColorMatrixu
fecolormatrixufeComponentTransferufecomponenttransferufeCompositeufecompositeufeConvolveMatrixufeconvolvematrixufeDiffuseLightingufediffuselightingufeDisplacementMapufedisplacementmapufeDistantLightufedistantlightufeFloodufefloodufeFuncAufefuncaufeFuncBufefuncbufeFuncGufefuncgufeFuncRufefuncrufeGaussianBlurufegaussianblurufeImageufeimageufeMergeufemergeufeMergeNodeufemergenodeufeMorphologyufemorphologyufeOffsetufeoffsetufePointLightufepointlightufeSpecularLightingufespecularlightingufeSpotLightufespotlightufeTileufetileufeTurbulenceufeturbulenceu
foreignObjectu
foreignobjectuglyphRefuglyphrefulinearGradientulineargradienturadialGradienturadialgradientutextPathutextpathuname((R?R}treplacements((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pytadjustSVGTagNames?	sL

c`sf|ddkrd|d<n5|jjrRtd�|dD��rRt|j_n�j||�dS(Nudatauu�cs`s|]}|tkVqdS(N(R(R�R((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pys	<genexpr>l	s(RDR]R
RNRn(R?R}(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRnh	s
cS`s�|jjd}|d|jks\|ddkr�t|dj��tdddg�@r�|jjdi|dd6�xm|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
<ndS(Ni����unameufontudataucolorufaceusizeu*unexpected-html-element-in-foreign-contentumathmlusvgu	namespaceuselfClosinguselfClosingAcknowledged(R:RhtbreakoutElementstsettkeysRDRiRaRlReRfR�RRRdRRR�R\(R?R}R�((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRpp	s.)


cS`sHt|jj�d}|jjd}|jjt�|dkrc|jjdi|dd6�nx�trC|jjt�|dkr�|jj	|jj
dkr�|jj	j�|jj	j|j_	nx|jjj
�|kr�q�Wd}Pn|d8}|jj|}|j|jjkr*qfqf|jj	j|�}PqfW|S(Nii����unameuunexpected-end-taguinTableText(RkR:RhRARcR
RDRiR\RWR>RCR�R�R9RaRlRq(R?R}t	nodeIndexR�R((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRq�	s(!	
(	R5R6RmReRCRdRnRpRq((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRb2	s	)	tAfterBodyPhasec`sVeZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(c`sq�j|||�tjd|jfg�|_|j|j_tjd|jfg�|_|j	|j_dS(Nuhtml(
RCRR�R�R�R�R�R�R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�	scS`sdS(N((R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�	scS`s!|jj||jjd�dS(Ni(R:R�Rh(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr�	scS`s*|jjd�|jjd|j_|S(Nuunexpected-char-after-bodyuinBody(RDRiR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�	scS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��	scS`s8|jjdi|dd6�|jjd|j_|S(Nuunexpected-start-tag-after-bodyunameuinBody(RDRiR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��	scS`s9|jjr|jjd�n|jjd|j_dS(Nu'unexpected-end-tag-after-body-innerhtmluafterAfterBody(RDRLRiR>RW(R?RA((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��	scS`s8|jjdi|dd6�|jjd|j_|S(Nuunexpected-end-tag-after-bodyunameuinBody(RDRiR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��	s(
R5R6RCRuRrRnR�R�R�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRi�	s						tInFramesetPhasec`s_eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	c`s��j|||�tjd|jfd|jfd|jfd|jfg�|_|j|j_	tjd|j
fg�|_|j|j_	dS(Nuhtmluframesetuframeunoframes(
RCRR�R�R�t
startTagFrametstartTagNoframesR�R�R�tendTagFramesetR�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC�	scS`s0|jjdjdkr,|jjd�ndS(Ni����uhtmlueof-in-frameset(R:RhRARDRi(R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu�	scS`s|jjd�dS(Nuunexpected-char-in-frameset(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn�	scS`s|jj|�dS(N(R:R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��	scS`s$|jj|�|jjj�dS(N(R:R�RhR�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRk�	scS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRl�	scS`s"|jjdi|dd6�dS(Nu unexpected-start-tag-in-framesetuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��	scS`s|jjdjdkr,|jjd�n|jjj�|jjr{|jjdjdkr{|jjd|j_ndS(Ni����uhtmlu)unexpected-frameset-in-frameset-innerhtmluframesetu
afterFrameset(	R:RhRARDRiR�RLR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRm�	s
cS`s"|jjdi|dd6�dS(Nuunexpected-end-tag-in-framesetuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�	
s(R5R6RCRuRnR�RkRlR�RmR�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRj�	s							tAfterFramesetPhasec`sMeZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(c`s}�j|||�tjd|jfd|jfg�|_|j|j_tjd|jfg�|_	|j
|j	_dS(Nuhtmlunoframes(RCRR�R�RlR�R�R�R�R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC
scS`sdS(N((R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu
scS`s|jjd�dS(Nuunexpected-char-after-frameset(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn!
scS`s|jjdj|�S(NuinHead(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRl$
scS`s"|jjdi|dd6�dS(Nu#unexpected-start-tag-after-framesetuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�'
scS`s|jjd|j_dS(NuafterAfterFrameset(RDR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�+
scS`s"|jjdi|dd6�dS(Nu!unexpected-end-tag-after-framesetuname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�.
s(	R5R6RCRuRnRlR�R�R�((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRn
s					tAfterAfterBodyPhasec`sVeZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(c`sD�j|||�tjd|jfg�|_|j|j_dS(Nuhtml(RCRR�R�R�R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRC3
scS`sdS(N((R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRu;
scS`s|jj||jj�dS(N(R:R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRr>
scS`s|jjdj|�S(NuinBody(RDR>Ro(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRoA
scS`s*|jjd�|jjd|j_|S(Nuexpected-eof-but-got-charuinBody(RDRiR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRnD
scS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�I
scS`s8|jjdi|dd6�|jjd|j_|S(Nuexpected-eof-but-got-start-tagunameuinBody(RDRiR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�L
scS`s8|jjdi|dd6�|jjd|j_|S(Nuexpected-eof-but-got-end-tagunameuinBody(RDRiR>RW(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRqR
s(
R5R6RCRuRrRoRnR�R�Rq((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRo2
s						tAfterAfterFramesetPhasec`s_eZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	c`sP�j|||�tjd|jfd|jfg�|_|j|j_dS(Nuhtmlunoframes(RCRR�R�tstartTagNoFramesR�R�R�(R?RDR:(R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRCY
s
cS`sdS(N((R?((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRub
scS`s|jj||jj�dS(N(R:R�R�(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRre
scS`s|jjdj|�S(NuinBody(RDR>Ro(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRoh
scS`s|jjd�dS(Nuexpected-eof-but-got-char(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRnk
scS`s|jjdj|�S(NuinBody(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�n
scS`s|jjdj|�S(NuinHead(RDR>Rp(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRqq
scS`s"|jjdi|dd6�dS(Nuexpected-eof-but-got-start-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR�t
scS`s"|jjdi|dd6�dS(Nuexpected-eof-but-got-end-taguname(RDRi(R?R}((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRqx
s(R5R6RCRuRrRoRnR�RqR�Rq((R�(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyRpX
s								uinitialu
beforeHtmlu
beforeHeaduinHeaduinHeadNoscriptu	afterHeaduinBodyutextuinTableuinTableTextu	inCaptionu
inColumnGroupuinTableBodyuinRowuinCelluinSelectuinSelectInTableuinForeignContentu	afterBodyu
inFramesetu
afterFramesetuafterAfterBodyuafterAfterFrameset(R(R@RPR�R�R�R�R�R�R�R�R3R5R@RDRIRMRSRWR[RaRbRiRjRnRoRp((R�sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR=_sh		%)�#.g@C���!�-GBbYLd's/9%&%c`s}tstjr,t|d�t��@}nt|d�t��@}|ryt�fd�|dj�D��|d<ndS(Nudatac3`s-|]#\}}�j||�|fVqdS(N(Rj(R�tktv(Rc(sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pys	<genexpr>�
s(RRtPY27RRmRR((R}Rctneeds_adjustment((RcsD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��
suEndTagcC`s9|dkri}nit|d6|d6|d6|d6S(NutypeunameudatauselfClosing(R9R(RAR,RbR((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��
s	R�cB`seZdZRS(uError in parsed document(R5R6R�(((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyR��
s(4t
__future__RRRtpip._vendor.sixRRRR*tcollectionsRtImportErrortpip._vendor.ordereddicttRRR	ttreebuilders.baseR
Rt	constantsRR
RRRRRRRRRRR�RRRRR\RR&R7tobjectRtmemoizeR=R�R9RNR�t	ExceptionR�(((sD/usr/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.pyt<module>s>
j
	�(���������C