
    yf                        d Z ddlZddlZddlZddlZddlZddlZddlZ	ddl
Z	ddlZ	ddlZ	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmc mZ ddlZddlZddlmZ ddlm Z! ddlm"Z# ddl$m%Z%m&Z&m'Z' ddl(m)Z) d	d
l*m+Z, d	dl*m-Z. d	dl/m0Z1 d	dl2m3Z4  e)e5dd       d Z6ejn                  fdZ8ejr                  Z:e;Z<e;jz                  Z>e?Z@ej                  ZBe	j                  xZDZEe	j                  j                  xZGZHe	j                  xZJZKe	j                  j                  xZMZNej                  xZPZQej                  xZSZTeUZVej                  ZXej                  ZZej                  xZ[Z\ej                  Z^ej                  j                  Z`e&Zaej                  j                  xZdZee	j                  Zge	j                  ZiejZkelfZmej                  Zod ZpeqZrelesetfZue%Zve'ZwexZyej                  Z{ej                  Z}ej                  Zej                   Zej                  Zd Zej(                  Zej                  Ze4Zej                  Zej                  j                  Zej                  j                  Zej                  j                  Zej                  j"                  Zej                  j&                  Zej                  j*                  Zej.                  Zej.                  j2                  Zej6                  Zej.                  j:                  xZZej@                  xZZd ZeZd Zg Zy)z Do not use!     N)run)Pattern)match   )compat_expandusercompat_HTMLParseErrorcompat_realpath)passthrough_module   )brotli)
websockets)AES)	HTTPErrorz...utils)WINDOWS_VT_MODEwindows_enable_vt_modec                  ,    t        j                  | i |S N)ctypesWINFUNCTYPE)argskwargss     7/usr/lib/python3/dist-packages/yt_dlp/compat/_legacy.pycompat_ctypes_WINFUNCTYPEr   -   s    t.v..    c                     ||| <   y r    )keyvalueenvs      r   compat_setenvr    1   s    CHr   c                     | S r   r   )r   s    r   <lambda>r"   M   s    v r   c                  "    t         j                  S r   )
subprocessDEVNULLr   r   r   r"   r"   X   s    
(:(: r   c                     | S r   r   )xpaths    r   r"   r"   h   s    U r   c                       y r   r   r   r   r   r"   r"   j   s    r   )__doc__base64collectionsr   getpasshtml.entitieshtmlhtml.parserhttp.clienthttphttp.cookiejarhttp.cookieshttp.server	itertoolsosshlexshutilsocketstructr$   tokenizeurllib.errorurlliburllib.parseurllib.requestxml.etree.ElementTreeetreeElementTreeasynciorer   compat_asyncio_runr   compat_Patternr   compat_Match r   r   r	   compat_utilsr
   dependenciesr   compat_brotlir   compat_websocketsdependencies.Cryptodomer   compat_pycrypto_AESnetworking.exceptionsr   compat_HTTPError__name__r   environr    	b64decodecompat_base64_b64decodestrcompat_basestringcasefoldcompat_casefoldchr
compat_chrabccompat_collections_abc	cookiejarcompat_cookiejarcompat_http_cookiejarCookiecompat_cookiejar_Cookiecompat_http_cookiejar_Cookiecookiescompat_cookiescompat_http_cookiesSimpleCookiecompat_cookies_SimpleCookie compat_http_cookies_SimpleCookieElementcompat_etree_Element$compat_xml_etree_ElementTree_Elementregister_namespacecompat_etree_register_namespace#compat_xml_etree_register_namespacefiltercompat_filterget_terminal_sizecompat_get_terminal_sizegetenvcompat_getenvcompat_getpasscompat_getpass_getpassentitiescompat_html_entitieshtml5compat_html_entities_html5!compat_html_parser_HTMLParseErrorparser
HTMLParsercompat_HTMLParsercompat_html_parser_HTMLParserclientcompat_http_clientservercompat_http_serverinputcompat_inputintcompat_integer_typescountcompat_itertools_countcompat_kwargsmap
compat_mapfloatcomplexcompat_numeric_typescompat_os_path_expandusercompat_os_path_realpathprintcompat_printsplitcompat_shlex_splitcreate_connectioncompat_socket_create_connectionStructcompat_Structpackcompat_struct_packunpackcompat_struct_unpackcompat_subprocess_get_DEVNULLcompat_tokenize_tokenizeerrorcompat_urllib_errorcompat_urllib_HTTPErrorparsecompat_urllib_parseparse_qscompat_urllib_parse_parse_qsquotecompat_urllib_parse_quote
quote_pluscompat_urllib_parse_quote_plusunquote_plus compat_urllib_parse_unquote_plusunquote_to_bytes$compat_urllib_parse_unquote_to_bytes
urlunparsecompat_urllib_parse_urlunparserequestcompat_urllib_requestDataHandler!compat_urllib_request_DataHandlerresponsecompat_urllib_responseurlretrievecompat_urlretrieve!compat_urllib_request_urlretrieve
ParseErrorcompat_xml_parse_error'compat_xml_etree_ElementTree_ParseErrorcompat_xpathzip
compat_zipworkaround_optparse_bug9161legacyr   r   r   <module>r      s               	          % %  	 - ( $ G G , 2 : @ A 8Z)V W
/ #%**  !**  ,,
$ +/>> 9 (9=9N9N N 6'+|| 3$AEAZAZ Z >>Cmm K ;HMH`H` ` "E!33 		*1// 9'}} !]]00 $9 !48KK4J4J J 1[[ [[ w " %
UG, - ) [[ "(":": [[ }}  : #,, ll * ll %||44 "LL.. !'!8!8 #)<<#<#<  '-||'D'D $!'!8!8  $*NN$>$> ! 9?9S9S S 6CHCSCS S @"
* 	r   