;il:ddlmZddlZddlZddlZddlZddlm Z ddlmZddlm Z ddlm Z ddlm Z ddl mZdd lmZdd l mZdd l mZdd lmZdd lmZddlmZddlmZddlmZejrddlmZedZ ej!dZ"egdZ#egdZ$idddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8id9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZid[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dddddddddddd Z%GddeZ&GddeZ'd$d%dZ(d&dZ)d'dZ*d(dZ+d)dZ,d*dZ-d+dZ.ej!dej/Z0ej!dej/Z1ej!dej/ej2zZ3ej!dej/Z4d,dZ5ej!dej/Z6ej7ddZ8ej9d-dZ:ej9d.dZ: d/d0dZ:ej7ddZ;ej9 d/d1dZej9 d2d7dƄZ> d4d8dȄZ> d/d9d˄Z?d:d̈́Z@ d$d;dЄZA d/ddׄZCej9d?dلZDej9d@d܄ZDdAdބZDdBdZEdCdZFdDdZG d/dEdZHd/dFdZId/dGdZJ dHdIdZK dJdKdZLdLdZMdMdZNdMdZO d/dNdZPej!dejQZRej!dejQZSdddZTeTUdgeVdd eVd d D dOdPdZWdQd!ZXdd"lYmZZ[dd#l\m]Z^dS(R) annotationsNdate)datetime)time) timedelta)timezone)Enum)sha1)mktime) struct_time)quote)unquote)parse_http_list) _dt_as_utc) _plain_int)WSGIEnvironmentzM!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~z&([Ww]/)?(?:"(.*?)"|(.*?))(?:\s*,\s*|$)) allowzcontent-encodingzcontent-languagezcontent-lengthcontent-locationz content-md5z content-rangez content-typeexpiresz last-modified) connectionz keep-alivezproxy-authenticatezproxy-authorizationtetrailerztransfer-encodingupgradedContinueezSwitching Protocolsf Processinggz Early HintsOKCreatedAcceptedzNon Authoritative Informationz No Contentz Reset ContentzPartial Contentz Multi StatuszAlready ReportedzIM Usedi,zMultiple Choicesi-zMoved Permanentlyi.Foundi/z See Otheri0z Not Modifiedi1z Use Proxyi2z Switch Proxyi3zTemporary Redirecti4zPermanent Redirectiz Bad Requesti UnauthorizedizPayment Requiredi Forbiddeniz Not FoundizMethod Not AllowedizNot AcceptableizProxy Authentication RequiredizRequest TimeoutiConflictiGoneizLength RequiredizPrecondition FailedizRequest Entity Too LargeizRequest URI Too LongizUnsupported Media TypeizRequested Range Not SatisfiableizExpectation Failediz I'm a teapotizMisdirected RequestizUnprocessable EntityiLockedizFailed Dependencyiz Too EarlyizUpgrade RequiredizPrecondition RequiredizToo Many RequestsizRequest Header Fields Too Largez Retry WithzUnavailable For Legal ReasonszInternal Server ErrorzNot Implementedz Bad GatewayzService UnavailablezGateway TimeoutzHTTP Version Not SupportedzVariant Also NegotiateszInsufficient Storagez Loop Detectedz Not ExtendedzNetwork Authentication Failed) iiiiiiiiiiiiiceZdZdZdZdZdS)COEPzCross Origin Embedder Policies unsafe-nonez require-corpN)__name__ __module__ __qualname____doc__ UNSAFE_NONE REQUIRE_CORPAC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\werkzeug/http.pyr6r6|s((K!LLLr?r6ceZdZdZdZdZdZdS)COOPzCross Origin Opener Policiesr7zsame-origin-allow-popupsz same-originN)r8r9r:r;r<SAME_ORIGIN_ALLOW_POPUPS SAME_ORIGINr>r?r@rBrBs$&&K9KKKr?rBTvaluet.Any allow_tokenboolreturnstrct|}|sdS|rt}||r|S|dddd}d|dS)aAdd double quotes around a header value. If the header contains only ASCII token characters, it will be returned unchanged. If the header contains ``"`` or ``\`` characters, they will be escaped with an additional ``\`` character. This is the reverse of :func:`unquote_header_value`. :param value: The value to quote. Will be converted to a string. :param allow_token: Disable to quote the value even if it only has token characters. .. versionchanged:: 3.0 Passing bytes is not supported. .. versionchanged:: 3.0 The ``extra_chars`` parameter is removed. .. versionchanged:: 2.3 The value is quoted if it is the empty string. .. versionadded:: 0.5 z""\\\"\")rJ _token_chars issupersetreplace)rErG value_str token_charss r@quote_header_valuerUs{*E I t"  ! !) , ,  !!$//77UCCI y   r?ct|dkrP|d|dcxkrdkr7nn4|dd}|ddddS|S) aRemove double quotes and decode slash-escaped ``"`` and ``\`` characters in a header value. This is the reverse of :func:`quote_header_value`. :param value: The header value to unquote. .. versionchanged:: 3.0 The ``is_filename`` parameter is removed. rrNrrMrLrO)lenrRrEs r@unquote_header_valuer[sr 5zzQ58uRy7777C77777ad }}VT**225#>>> Lr?header str | Noneoptionst.Mapping[str, t.Any]c4g}||||D]V\}}||ddkr||d|/||dt|Wd|S)aAProduce a header value and ``key=value`` parameters separated by semicolons ``;``. For example, the ``Content-Type`` header. .. code-block:: python dump_options_header("text/html", {"charset": "UTF-8"}) 'text/html; charset=UTF-8' This is the reverse of :func:`parse_options_header`. If a value contains non-token characters, it will be quoted. If a value is ``None``, the parameter is skipped. In some keys for some headers, a UTF-8 value can be encoded using a special ``key*=UTF-8''value`` form, where ``value`` is percent encoded. This function will not produce that format automatically, but if a given key ends with an asterisk ``*``, the value is assumed to have that form and will not be quoted further. :param header: The primary header value. :param options: Parameters to encode as ``key=value`` pairs. .. versionchanged:: 2.3 Keys with ``None`` values are skipped rather than treated as a bare key. .. versionchanged:: 2.2.3 If a key ends with ``*``, its value will not be quoted. NrX*=; )appenditemsrUjoin)r\r^segmentskeyrEs r@dump_options_headerris:H mmooBB U =  r7c>> OOs,,U,, - - - - OOs@@%7%>%>@@ A A A A 99X  r?iterable$dict[str, t.Any] | t.Iterable[t.Any]ctt|trg}|D]k\}}||||ddkr||d|D||dt |ln d|D}d|S)a'Produce a header value from a list of items or ``key=value`` pairs, separated by commas ``,``. This is the reverse of :func:`parse_list_header`, :func:`parse_dict_header`, and :func:`parse_set_header`. If a value contains non-token characters, it will be quoted. If a value is ``None``, the key is output alone. In some keys for some headers, a UTF-8 value can be encoded using a special ``key*=UTF-8''value`` form, where ``value`` is percent encoded. This function will not produce that format automatically, but if a given key ends with an asterisk ``*``, the value is assumed to have that form and will not be quoted further. .. code-block:: python dump_header(["foo", "bar baz"]) 'foo, "bar baz"' dump_header({"foo": "bar baz"}) 'foo="bar baz"' :param iterable: The items to create a header from. .. versionchanged:: 3.0 The ``allow_token`` parameter is removed. .. versionchanged:: 2.2.3 If a key ends with ``*``, its value will not be quoted. NrXrarbc,g|]}t|Sr>)rU.0xs r@ zdump_header..s!9991#A&&999r?z, ) isinstancedictrerdrUrf)rjrerhrEs r@ dump_headerrts@(D!! :"..** C CJC} S!!!!RC --e--.... AA&8&?&?AABBBB  C:9999 99U  r?ds.ContentSecurityPolicycddd|DS)zDump a Content Security Policy header. These are structured into policies such as "default-src 'self'; script-src 'self'". .. versionadded:: 1.0.0 Support for Content Security Policy headers was added. rcc3*K|]\}}|d|VdS) Nr>rorhrEs r@ z"dump_csp_header..)s4GG*#u%%e%%GGGGGGr?)rfrer\s r@dump_csp_headerr|s- 99GG GGG G GGr? list[str]cg}t|D]P}t|dkr&|d|dcxkrdkr nn |dd}||Q|S)aParse a header value that consists of a list of comma separated items according to `RFC 9110 `__. This extends :func:`urllib.request.parse_http_list` to remove surrounding quotes from values. .. code-block:: python parse_list_header('token, "quoted value"') ['token', 'quoted value'] This is the reverse of :func:`dump_header`. :param value: The header value to parse. rWrrXrNr)_parse_list_headerrYrd)rEresultitems r@parse_list_headerr,s F"5)) t99>>d1gb8888S88888":D d Mr?dict[str, str | None]c.i}t|D]}|d\}}}|}|s3|sd||<;|}d}|ddkrf|dd}t|}|r+|\}}|}|dvrt||}t|dkr&|d|dcxkrd kr nn |d d}|||<|S) a~Parse a list header using :func:`parse_list_header`, then parse each item as a ``key=value`` pair. .. code-block:: python parse_dict_header('a=b, c="d, e", f') {"a": "b", "c": "d, e", "f": None} This is the reverse of :func:`dump_header`. If a key does not have a value, it is ``None``. This handles charsets for values as described in `RFC 2231 `__. Only ASCII, UTF-8, and ISO-8859-1 charsets are accepted, otherwise the value remains quoted. :param value: The header value to parse. .. versionchanged:: 3.0 Passing bytes is not supported. .. versionchanged:: 3.0 The ``cls`` argument is removed. .. versionchanged:: 2.3 Added support for ``key*=charset''value`` encoded items. .. versionchanged:: 0.9 The ``cls`` argument was added. rbNrXra>asciiutf-8us-ascii iso-8859-1encodingrWrrNr) r partitionstrip_charset_value_rematchgroupslowerrrY)rErrrh has_valuerrs r@parse_dict_headerrGsB>%'F!%(($$ $s 3 3Yiikk   F3K  # r7c>>crc(C%++E22E ,"',,..%#>>++ GGG999 u::??uQx59;;;;;;;;;!B$KEs Mr?z([\w!#$%&'*+\-.^`|~]+)=)flagsz[\w!#$%&'*+\-.^`|~]+z ([\w!#$%&*+\-.^`|~]*)' # charset part, could be empty [\w!#$%&*+\-.^`|~]*' # don't care about language part, usually empty ([\w!#$%&'*+\-.^`|~]+) # one or more token chars with percent encoding z\*(\d+)$tuple[str, dict[str, str]]c|difS|d\}}}|}|}|r|s|ifSg} t|x} |d}||d}t|x}*|||fn|dddkrsd}t|}||kr\|||dzdvr|dz }nA||dkr0|||d|dzf||dzd}n |dz }||k\| dx}d krn!||dzd }di} d} d} |D];\}} |d d krl|dd }t| } | r+| \} } | } | s| } | d vr| } t| | } | d | d cxkrdkrInnF| dd dddddd} t |} | r:|d| }| |d| z| |<6| | |<=|| fS)aParse a header that consists of a value with ``key=value`` parameters separated by semicolons ``;``. For example, the ``Content-Type`` header. .. code-block:: python parse_options_header("text/html; charset=UTF-8") ('text/html', {'charset': 'UTF-8'}) parse_options_header("") ("", {}) This is the reverse of :func:`dump_options_header`. This parses valid parameter parts as described in `RFC 9110 `__. Invalid parts are skipped. This handles continuations and charsets as described in `RFC 2231 `__, although not as strictly as the RFC. Only ASCII, UTF-8, and ISO-8859-1 charsets are accepted, otherwise the value remains quoted. Clients may not be consistent in how they handle a quote character within a quoted value. The `HTML Standard `__ replaces it with ``%22`` in multipart form data. `RFC 9110 `__ uses backslash escapes in HTTP headers. Both are decoded to the ``"`` character. Clients may not be consistent in how they handle non-ASCII characters. HTML documents must declare ````, otherwise browsers may replace with HTML character references, which can be decoded using :func:`html.unescape`. :param value: The header value to parse. :return: ``(value, options)``, where ``options`` is a dict .. versionchanged:: 2.3 Invalid parts, such as keys with no value, quoted keys, and incorrectly quoted values, are discarded instead of treating as ``None``. .. versionchanged:: 2.3 Only ASCII, UTF-8, and ISO-8859-1 are accepted for charset values. .. versionchanged:: 2.3 Escaped quotes in quoted values, like ``%22`` and ``\"``, are handled. .. versionchanged:: 2.2 Option names are always converted to lowercase. .. versionchanged:: 2.2 The ``multiple`` parameter was removed. .. versionchanged:: 0.15 :rfc:`2231` parameter continuations are handled. .. versionadded:: 0.5 N;TrrNrW>rOrMrXra>rrrrrrrMrLrOz%22)rr_parameter_key_rergrouprend_parameter_token_value_rerdrYfindlstriprrrrR_continuation_researchstartget)rE_restpartsmpkposlengthrr^rcontinued_encodingpvrs r@parse_options_headerrs\r }2v __S))NE1d KKMME ::<> !Cb ( ( C!GII%%''?(B!GH%)((B b6S==CRCB%++B//E ,$||~~ "#>>++ .- GGG &."R(333 a5BrF ! ! ! !c ! ! ! ! !AbD!!&$//77sCCKKESVWWB ''++  OekkmmO$B!++b"--2GBKKGBKK '>r?z -?\d+(\.\d+)? _TAnyAccept ds.Accept)boundcdSNr>rZs r@parse_accept_headerr@s9<r?clstype[_TAnyAccept]cdSrr>)rErs r@rrDsSVSVr?type[_TAnyAccept] | Nonec|/tjtttj}|s |dSg}t |D]}t|\}}d|vr_|d }t |Zt|}|dks|dkrvnd}|rt||}|||f||S)akParse an ``Accept`` header according to `RFC 9110 `__. Returns an :class:`.Accept` instance, which can sort and inspect items based on their quality parameter. When parsing ``Accept-Charset``, ``Accept-Encoding``, or ``Accept-Language``, pass the appropriate :class:`.Accept` subclass. :param value: The header value to parse. :param cls: The :class:`.Accept` class to wrap the result in. :return: An instance of ``cls``. .. versionchanged:: 2.3 Parse according to RFC 9110. Items with invalid ``q`` values are skipped. Nqrr)tcasttyperdsAcceptrrpopr _q_value_re fullmatchfloatrird)rErrrr^q_strrs r@rrHs " {fT+& 22 s4yy F!%((!!,T22 g '>>KK$$**,,E$$U++3e A1uuAA  6&tW55D tQi    3v;;r?_TAnyCCzds.cache_control._CacheControl on_update9t.Callable[[ds.cache_control._CacheControl], None] | Noneds.RequestCacheControlcdSrr>rErs r@parse_cache_control_headerrs !Sr?. type[_TAnyCC]cdSrr>rErrs r@rrs cr?type[_TAnyCC] | Nonec|tjdtj}|s |d|S|t ||S)aParse a cache control header. The RFC differs between response and request cache control, this method does not. It's your responsibility to not use the wrong control statements. .. versionadded:: 0.5 The `cls` was added. If not specified an immutable :class:`~werkzeug.datastructures.RequestCacheControl` is returned. :param value: a cache control header to be parsed. :param on_update: an optional callable that is called every time a value on the :class:`~werkzeug.datastructures.CacheControl` object is changed. :param cls: the class for the returned object. By default :class:`~werkzeug.datastructures.RequestCacheControl` is used. :return: a `cls` object. Nrr>)rrrRequestCacheControlrrs r@rrsR* {f_b&<== "s2y!!! 3 '' 3 33r?_TAnyCSP3t.Callable[[ds.ContentSecurityPolicy], None] | NonecdSrr>rs r@parse_csp_headerrs  #sr?type[_TAnyCSP]cdSrr>rs r@rrs sr?type[_TAnyCSP] | Nonec|tjdtj}| |d|Sg}|dD]}|}d|vrf|dd\}}|||f|||S)aParse a Content Security Policy header. .. versionadded:: 1.0.0 Support for Content Security Policy headers was added. :param value: a csp header to be parsed. :param on_update: an optional callable that is called every time a value on the object is changed. :param cls: the class for the returned object. By default :class:`~werkzeug.datastructures.ContentSecurityPolicy` is used. :return: a `cls` object. Nrr>rrxr)rrrContentSecurityPolicysplitrrd)rErrrepolicy directives r@rrs" {f%r'?@@ }s2y!!! E++c""== &==%||~~33C;; Iu LL)//++U[[]]; < < < 3ui  r?'t.Callable[[ds.HeaderSet], None] | None ds.HeaderSetct|stjd|Stjt||S)aParse a set-like header and return a :class:`~werkzeug.datastructures.HeaderSet` object: >>> hs = parse_set_header('token, "quoted value"') The return value is an object that treats the items case-insensitively and keeps the order of the items: >>> 'TOKEN' in hs True >>> hs.index('quoted value') 1 >>> hs HeaderSet(['token', 'quoted value']) To create a header from the :class:`HeaderSet` again, use the :func:`dump_header` function. :param value: a set header to be parsed. :param on_update: an optional callable that is called every time a value on the :class:`~werkzeug.datastructures.HeaderSet` object is changed. :return: a :class:`~werkzeug.datastructures.HeaderSet` N)r HeaderSetrrs r@parse_set_headerrs98 -|D),,, <)%00) < <>xx tt (tnnS!,,OCS  ++FF   44  czz"4v66 4udD&INNNN Ct))C++Ix9%%(##a' tt5$//PueT6YOOOO 4s3-4 AA.A>> B  B !!D DDFetagweakcFd|vrtdd|d}|rd|}|S)ziQuote an etag. :param etag: the etag to quote. :param weak: set to `True` to tag it "weak". rNz invalid etagW/)rrrs r@ quote_etagrs@  d{{((( t;;;D D{{ Kr?tuple[str, bool]cdSrr>rs r@rrs14r?Nonetuple[None, None]cdSrr>r s r@rrs363r?$tuple[str, bool] | tuple[None, None]c|sdS|}d}|dr d}|dd}|dd|ddcxkrd kr nn |dd}||fS) zUnquote a single etag: >>> unquote_etag('W/"bar"') ('bar', True) >>> unquote_etag('"bar"') ('bar', False) :param etag: the etag identifier to unquote. :return: a ``(etag, weak)`` tuple. NNF)rzw/TrWNrrXrN)rrrs r@rrs z ::<)rrns r@ z(remove_entity_headers..us ***Qqwwyy***r?chg|].\}}t|r|v*||f/Sr>)is_entity_headerr)rorhrErRs r@rqz)remove_entity_headers..vsP C$$), w(>(> e (>(>(>r?Nr>)rPrRs `r@remove_entity_headersrYesL +*'***G!GAAAJJJr?c(d|D|dd<dS)zRemove all HTTP/1.1 "Hop-by-Hop" headers from a list or :class:`Headers` object. This operation works in-place. .. versionadded:: 0.5 :param headers: a list or :class:`Headers` object. c:g|]\}}t|||fSr>)is_hop_by_hop_headerrys r@rqz-remove_hop_by_hop_headers..s>#e6J36O6O e r?Nr>)rPs r@remove_hop_by_hop_headersr]}s,'.GAAAJJJr?c8|tvS)zCheck if a header is an entity header. .. versionadded:: 0.5 :param header: the header to test. :return: `True` if it's an entity header, `False` otherwise. )r_entity_headersr{s r@rXrXs <<>>_ ,,r?c8|tvS)zCheck if a header is an HTTP/1.1 "Hop-by-Hop" header. .. versionadded:: 0.5 :param header: the header to test. :return: `True` if it's an HTTP/1.1 "Hop-by-Hop" header, `False` otherwise. )r_hop_by_hop_headersr{s r@r\r\s <<>>0 00r?WSGIEnvironment | str | None#type[ds.MultiDict[str, str]] | Noneds.MultiDict[str, str]ct|tr|d}n|}|r'|d}t j||S)aOParse a cookie from a string or WSGI environ. The same key can be provided multiple times, the values are stored in-order. The default :class:`MultiDict` will have the first value first, and all values can be retrieved with :meth:`MultiDict.getlist`. :param header: The cookie header as a string, or a WSGI environ dict with a ``HTTP_COOKIE`` key. :param cls: A dict-like class to store the parsed cookies in. Defaults to :class:`MultiDict`. .. versionchanged:: 3.0 Passing bytes, and the ``charset`` and ``errors`` parameters, were removed. .. versionchanged:: 1.0 Returns a :class:`MultiDict` instead of a ``TypeConversionDict``. .. versionchanged:: 0.5 Returns a :class:`TypeConversionDict` instead of a regular dict. The ``cls`` parameter was added. HTTP_COOKIElatin1)cookier)rrrsrencodedecoderM parse_cookie)r\rrhs r@rkrksi4&$M** 2x((//11  $F < < <?@\[\]^`{|}~]*s[\x00-\x19\",;\\\x7f-\xff]s\"s\\)"\c#LK|]}|ddd|zfV dS)rbigs\%03oN)to_bytes)rovs r@rzrzsM ZZ59q=)r? s,;rrrhmax_ager#str | datetime | int | float | Nonepathdomainsecurehttponly sync_expiresmax_sizer5samesite partitionedc |t|d}|rT|ddddd}t |t r!t|}|%t |tst|}nE|C|rAttj tj |z}| '| } | d vrt#d | rd }t$|sGt(d |d}d|d}|dd|g} d|fd|fd|fd|fd|fd|fd| fd| ffD]@\} }||dur |d ur| | &| | d|Ad| }t1|}| r>|| kr8t1|}t3jd|d|d||z d|d| d d!"|S)#a: Create a Set-Cookie header without the ``Set-Cookie`` prefix. The return value is usually restricted to ascii as the vast majority of values are properly escaped, but that is no guarantee. It's tunneled through latin1 as required by :pep:`3333`. The return value is not ASCII safe if the key contains unicode characters. This is technically against the specification but happens in the wild. It's strongly recommended to not use non-ASCII values for the keys. :param max_age: should be a number of seconds, or `None` (default) if the cookie should last only as long as the client's browser session. Additionally `timedelta` objects are accepted, too. :param expires: should be a `datetime` object or unix timestamp. :param path: limits the cookie to a given path, per default it will span the whole domain. :param domain: Use this if you want to set a cross-domain cookie. For example, ``domain="example.com"`` will set a cookie that is readable by the domain ``www.example.com``, ``foo.example.com`` etc. Otherwise, a cookie will only be readable by the domain that set it. :param secure: The cookie will only be available via HTTPS :param httponly: disallow JavaScript to access the cookie. This is an extension to the cookie standard and probably not supported by all browsers. :param charset: the encoding for string values. :param sync_expires: automatically set expires if max_age is defined but expires not. :param max_size: Warn if the final header value exceeds this size. The default, 4093, should be safely `supported by most browsers `_. Set to 0 to disable this check. :param samesite: Limits the scope of the cookie such that it will only be attached to requests if those requests are same-site. :param partitioned: Opts the cookie into partitioned storage. This will also set secure to True .. _`cookie`: http://browsercookielimits.squawky.net/ .. versionchanged:: 3.1 The ``partitioned`` parameter was added. .. versionchanged:: 3.0 Passing bytes, and the ``charset`` parameter, were removed. .. versionchanged:: 2.3.3 The ``path`` parameter is ``/`` by default. .. versionchanged:: 2.3.1 The value allows more characters without quoting. .. versionchanged:: 2.3 ``localhost`` and other names without a dot are allowed for the domain. A leading dot is ignored. .. versionchanged:: 2.3 The ``path`` parameter is ``None`` by default. .. versionchanged:: 1.0.0 The string ``'None'`` is accepted for ``samesite``. Nz%!$&'()*+,/:=@)safe:r.idnar)tz>Laxr Strictz,SameSite must be 'Strict', 'Lax', or 'None'.Tc@t|Sr)_cookie_slash_mapr)rs r@zdump_cookie..:s' 2r?rNrgrbDomainExpireszMax-AgeSecureHttpOnlyPathSameSite PartitionedFrczThe 'z%' cookie is too large: the value was z bytes but the header required z! extra bytes. The final size was z bytes but the limit is z> bytes. Browsers may silently ignore cookies larger than this.rW) stacklevel)rrrrirjrrrr5r;rJr1rnowr r(r*titler_cookie_no_quote_rer_cookie_slash_resubrdrfrYwarningswarn)rhrErvrrxryrzr{r|r}r~rbufkrqrv cookie_size value_sizes r@ dump_cookiersX T 0111 U!!#&&q)0055<>## 4 4 4KLL L  ( ( / / $$ 2 2ELLNN  &// E jjll!!(++ 5 5e 5 5 6C 6 G G 6 X  X  $ 1 9U  99 JJqMMM  a::!:: 3B b''K K(**ZZ   9C 9 9j 9 9 +j 8 9 9 9 99A 9 9 9      Ir?r int | Nonerrc|du|dukrdS| |dup|dkS|d|cxko|kncS||krdSd|cxko|kncS)zcChecks if a given byte content range is valid for the given length. .. versionadded:: 0.7 NFrr>)rrrs r@rris  44<((u ~,1, E    D     $u         r?)datastructures)http)T)rErFrGrHrIrJ)rErJrIrJ)r\r]r^r_rIrJ)rjrkrIrJ)r\rurIrJ)rErJrIr})rErJrIr)rEr]rIr)rEr]rIr)rEr]rrrIrr)rEr]rrrIr)rEr]rrrIr)N.)rEr]rrrrrIrr)rEr]rrrrrIr)rEr]rrrIru)rEr]rrrrrIr)rEr]rrrrrIr)rEr]rrrIr)rEr]rIr)rEr]rrHrIr)rEr]rrrIr)F)rrJrrHrIrJ)rrJrIr)rr rIr )rr]rIr)rEr]rIr)rrrIrJ)rEr]rIr )r*r+rIrJ)rEr]rIr2)r8r9rIr])NNNT) r=rrr]rr>r?r@rArHrIrH)rO)rPrQrRrSrIr )rPrQrIr )r\rJrIrH)r\rbrrcrIrd) rNNrNFFTruNF)rhrJrErJrvr9rrwrxr]ryr]rzrHr{rHr|rHr}r5r~r]rrHrIrJ)rrrrrrrIrH)_ __future__r email.utilsr$retypingrrrrrrr enumr hashlibr r r urllib.parserrurllib.requestrr _internalrr TYPE_CHECKING_typeshed.wsgir frozensetrPcompilerr_raHTTP_STATUS_CODESr6rBrUr[rirtr|rrASCIIrrVERBOSErrrrTypeVarroverloadrrrrrrrrrrrrrrr1r7r<rNrYr]rXr\rkArrrupdaterangerrrrrsansiorrMr>r?r@rsH """"""  @@@@@@!!!!!!!!!!!!?/......yS  2:? @ @)      i     AA AA A  A  AA (AAA AA AA A  !A"#AA$%A&'A()A*+A, -A. /A01A23A4 5A67A89A: ;A< =A> (?A@ AABCADEAAAF GAH IAJ #KAL MAN !OAP *QAR SATUAV WAX YAZ[A\ ]A^_A` aAb cAd eAf *gAAh  (     % "    (AAAAH"""""4"""     4   !!!!!H$++++\----` H H H H6GGGGVBJ9JJJ&BJ'>bhOOOBJ Hrz 2:k2844XXXXvbj)2844 ai [999 <<< <VVV V8<22222j !)I%E F F FLP!!!! ! LP LP $44444< 19Z'A B B BFJ#### # FJ FJ!%!!!!!!!!!!L:>=====B....&/38#8#8#8#8#z=A33333l     444 4666 62"""":""""<EI:::::@,,+/ #####P ?0    ----111104"="="="="=J!bj!GNN2: