Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py +119 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/certifi/LICENSE +20 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/certifi/py.typed +0 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/dependency_groups/_implementation.py +209 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py +62 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/dependency_groups/_toml_compat.py +9 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/distro/__main__.py +4 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/LICENSE.md +31 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/compat.py +15 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/idnadata.py +4243 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/uts46data.py +0 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/msgpack/COPYING +14 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/msgpack/__init__.py +55 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/packaging/LICENSE.APACHE +177 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py +1019 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/pkg_resources/LICENSE +17 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/LICENSE +21 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/__init__.py +631 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/__main__.py +55 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/android.py +249 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py +146 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/py.typed +0 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/unix.py +272 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/version.py +34 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/windows.py +272 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/pygments/__init__.py +82 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__init__.py +940 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/pygments/lexers/__init__.py +362 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py +389 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/requests/cookies.py +561 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/resolvelib/LICENSE +13 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py +27 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py +57 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/LICENSE +19 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_codes.py +0 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_replace.py +32 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_export_format.py +76 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_extension.py +10 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_inspect.py +268 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_palettes.py +309 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py +17 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_stack.py +16 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/ansi.py +241 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/box.py +474 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/columns.py +187 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/default_styles.py +193 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/json.py +139 -0
- env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/layout.py +442 -0
env_gptq3/lib/python3.12/site-packages/pip/_vendor/cachecontrol/filewrapper.py
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: 2015 Eric Larson
|
| 2 |
+
#
|
| 3 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import mmap
|
| 7 |
+
from tempfile import NamedTemporaryFile
|
| 8 |
+
from typing import TYPE_CHECKING, Any, Callable
|
| 9 |
+
|
| 10 |
+
if TYPE_CHECKING:
|
| 11 |
+
from http.client import HTTPResponse
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class CallbackFileWrapper:
|
| 15 |
+
"""
|
| 16 |
+
Small wrapper around a fp object which will tee everything read into a
|
| 17 |
+
buffer, and when that file is closed it will execute a callback with the
|
| 18 |
+
contents of that buffer.
|
| 19 |
+
|
| 20 |
+
All attributes are proxied to the underlying file object.
|
| 21 |
+
|
| 22 |
+
This class uses members with a double underscore (__) leading prefix so as
|
| 23 |
+
not to accidentally shadow an attribute.
|
| 24 |
+
|
| 25 |
+
The data is stored in a temporary file until it is all available. As long
|
| 26 |
+
as the temporary files directory is disk-based (sometimes it's a
|
| 27 |
+
memory-backed-``tmpfs`` on Linux), data will be unloaded to disk if memory
|
| 28 |
+
pressure is high. For small files the disk usually won't be used at all,
|
| 29 |
+
it'll all be in the filesystem memory cache, so there should be no
|
| 30 |
+
performance impact.
|
| 31 |
+
"""
|
| 32 |
+
|
| 33 |
+
def __init__(
|
| 34 |
+
self, fp: HTTPResponse, callback: Callable[[bytes], None] | None
|
| 35 |
+
) -> None:
|
| 36 |
+
self.__buf = NamedTemporaryFile("rb+", delete=True)
|
| 37 |
+
self.__fp = fp
|
| 38 |
+
self.__callback = callback
|
| 39 |
+
|
| 40 |
+
def __getattr__(self, name: str) -> Any:
|
| 41 |
+
# The vagaries of garbage collection means that self.__fp is
|
| 42 |
+
# not always set. By using __getattribute__ and the private
|
| 43 |
+
# name[0] allows looking up the attribute value and raising an
|
| 44 |
+
# AttributeError when it doesn't exist. This stop things from
|
| 45 |
+
# infinitely recursing calls to getattr in the case where
|
| 46 |
+
# self.__fp hasn't been set.
|
| 47 |
+
#
|
| 48 |
+
# [0] https://docs.python.org/2/reference/expressions.html#atom-identifiers
|
| 49 |
+
fp = self.__getattribute__("_CallbackFileWrapper__fp")
|
| 50 |
+
return getattr(fp, name)
|
| 51 |
+
|
| 52 |
+
def __is_fp_closed(self) -> bool:
|
| 53 |
+
try:
|
| 54 |
+
return self.__fp.fp is None
|
| 55 |
+
|
| 56 |
+
except AttributeError:
|
| 57 |
+
pass
|
| 58 |
+
|
| 59 |
+
try:
|
| 60 |
+
closed: bool = self.__fp.closed
|
| 61 |
+
return closed
|
| 62 |
+
|
| 63 |
+
except AttributeError:
|
| 64 |
+
pass
|
| 65 |
+
|
| 66 |
+
# We just don't cache it then.
|
| 67 |
+
# TODO: Add some logging here...
|
| 68 |
+
return False
|
| 69 |
+
|
| 70 |
+
def _close(self) -> None:
|
| 71 |
+
if self.__callback:
|
| 72 |
+
if self.__buf.tell() == 0:
|
| 73 |
+
# Empty file:
|
| 74 |
+
result = b""
|
| 75 |
+
else:
|
| 76 |
+
# Return the data without actually loading it into memory,
|
| 77 |
+
# relying on Python's buffer API and mmap(). mmap() just gives
|
| 78 |
+
# a view directly into the filesystem's memory cache, so it
|
| 79 |
+
# doesn't result in duplicate memory use.
|
| 80 |
+
self.__buf.seek(0, 0)
|
| 81 |
+
result = memoryview(
|
| 82 |
+
mmap.mmap(self.__buf.fileno(), 0, access=mmap.ACCESS_READ)
|
| 83 |
+
)
|
| 84 |
+
self.__callback(result)
|
| 85 |
+
|
| 86 |
+
# We assign this to None here, because otherwise we can get into
|
| 87 |
+
# really tricky problems where the CPython interpreter dead locks
|
| 88 |
+
# because the callback is holding a reference to something which
|
| 89 |
+
# has a __del__ method. Setting this to None breaks the cycle
|
| 90 |
+
# and allows the garbage collector to do it's thing normally.
|
| 91 |
+
self.__callback = None
|
| 92 |
+
|
| 93 |
+
# Closing the temporary file releases memory and frees disk space.
|
| 94 |
+
# Important when caching big files.
|
| 95 |
+
self.__buf.close()
|
| 96 |
+
|
| 97 |
+
def read(self, amt: int | None = None) -> bytes:
|
| 98 |
+
data: bytes = self.__fp.read(amt)
|
| 99 |
+
if data:
|
| 100 |
+
# We may be dealing with b'', a sign that things are over:
|
| 101 |
+
# it's passed e.g. after we've already closed self.__buf.
|
| 102 |
+
self.__buf.write(data)
|
| 103 |
+
if self.__is_fp_closed():
|
| 104 |
+
self._close()
|
| 105 |
+
|
| 106 |
+
return data
|
| 107 |
+
|
| 108 |
+
def _safe_read(self, amt: int) -> bytes:
|
| 109 |
+
data: bytes = self.__fp._safe_read(amt) # type: ignore[attr-defined]
|
| 110 |
+
if amt == 2 and data == b"\r\n":
|
| 111 |
+
# urllib executes this read to toss the CRLF at the end
|
| 112 |
+
# of the chunk.
|
| 113 |
+
return data
|
| 114 |
+
|
| 115 |
+
self.__buf.write(data)
|
| 116 |
+
if self.__is_fp_closed():
|
| 117 |
+
self._close()
|
| 118 |
+
|
| 119 |
+
return data
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/certifi/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This package contains a modified version of ca-bundle.crt:
|
| 2 |
+
|
| 3 |
+
ca-bundle.crt -- Bundle of CA Root Certificates
|
| 4 |
+
|
| 5 |
+
This is a bundle of X.509 certificates of public Certificate Authorities
|
| 6 |
+
(CA). These were automatically extracted from Mozilla's root certificates
|
| 7 |
+
file (certdata.txt). This file can be found in the mozilla source tree:
|
| 8 |
+
https://hg.mozilla.org/mozilla-central/file/tip/security/nss/lib/ckfw/builtins/certdata.txt
|
| 9 |
+
It contains the certificates in PEM format and therefore
|
| 10 |
+
can be directly used with curl / libcurl / php_curl, or with
|
| 11 |
+
an Apache+mod_ssl webserver for SSL client authentication.
|
| 12 |
+
Just configure this file as the SSLCACertificateFile.#
|
| 13 |
+
|
| 14 |
+
***** BEGIN LICENSE BLOCK *****
|
| 15 |
+
This Source Code Form is subject to the terms of the Mozilla Public License,
|
| 16 |
+
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain
|
| 17 |
+
one at http://mozilla.org/MPL/2.0/.
|
| 18 |
+
|
| 19 |
+
***** END LICENSE BLOCK *****
|
| 20 |
+
@(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/certifi/py.typed
ADDED
|
File without changes
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/dependency_groups/_implementation.py
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import dataclasses
|
| 4 |
+
import re
|
| 5 |
+
from collections.abc import Mapping
|
| 6 |
+
|
| 7 |
+
from pip._vendor.packaging.requirements import Requirement
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def _normalize_name(name: str) -> str:
|
| 11 |
+
return re.sub(r"[-_.]+", "-", name).lower()
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def _normalize_group_names(
|
| 15 |
+
dependency_groups: Mapping[str, str | Mapping[str, str]],
|
| 16 |
+
) -> Mapping[str, str | Mapping[str, str]]:
|
| 17 |
+
original_names: dict[str, list[str]] = {}
|
| 18 |
+
normalized_groups = {}
|
| 19 |
+
|
| 20 |
+
for group_name, value in dependency_groups.items():
|
| 21 |
+
normed_group_name = _normalize_name(group_name)
|
| 22 |
+
original_names.setdefault(normed_group_name, []).append(group_name)
|
| 23 |
+
normalized_groups[normed_group_name] = value
|
| 24 |
+
|
| 25 |
+
errors = []
|
| 26 |
+
for normed_name, names in original_names.items():
|
| 27 |
+
if len(names) > 1:
|
| 28 |
+
errors.append(f"{normed_name} ({', '.join(names)})")
|
| 29 |
+
if errors:
|
| 30 |
+
raise ValueError(f"Duplicate dependency group names: {', '.join(errors)}")
|
| 31 |
+
|
| 32 |
+
return normalized_groups
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
@dataclasses.dataclass
|
| 36 |
+
class DependencyGroupInclude:
|
| 37 |
+
include_group: str
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
class CyclicDependencyError(ValueError):
|
| 41 |
+
"""
|
| 42 |
+
An error representing the detection of a cycle.
|
| 43 |
+
"""
|
| 44 |
+
|
| 45 |
+
def __init__(self, requested_group: str, group: str, include_group: str) -> None:
|
| 46 |
+
self.requested_group = requested_group
|
| 47 |
+
self.group = group
|
| 48 |
+
self.include_group = include_group
|
| 49 |
+
|
| 50 |
+
if include_group == group:
|
| 51 |
+
reason = f"{group} includes itself"
|
| 52 |
+
else:
|
| 53 |
+
reason = f"{include_group} -> {group}, {group} -> {include_group}"
|
| 54 |
+
super().__init__(
|
| 55 |
+
"Cyclic dependency group include while resolving "
|
| 56 |
+
f"{requested_group}: {reason}"
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
class DependencyGroupResolver:
|
| 61 |
+
"""
|
| 62 |
+
A resolver for Dependency Group data.
|
| 63 |
+
|
| 64 |
+
This class handles caching, name normalization, cycle detection, and other
|
| 65 |
+
parsing requirements. There are only two public methods for exploring the data:
|
| 66 |
+
``lookup()`` and ``resolve()``.
|
| 67 |
+
|
| 68 |
+
:param dependency_groups: A mapping, as provided via pyproject
|
| 69 |
+
``[dependency-groups]``.
|
| 70 |
+
"""
|
| 71 |
+
|
| 72 |
+
def __init__(
|
| 73 |
+
self,
|
| 74 |
+
dependency_groups: Mapping[str, str | Mapping[str, str]],
|
| 75 |
+
) -> None:
|
| 76 |
+
if not isinstance(dependency_groups, Mapping):
|
| 77 |
+
raise TypeError("Dependency Groups table is not a mapping")
|
| 78 |
+
self.dependency_groups = _normalize_group_names(dependency_groups)
|
| 79 |
+
# a map of group names to parsed data
|
| 80 |
+
self._parsed_groups: dict[
|
| 81 |
+
str, tuple[Requirement | DependencyGroupInclude, ...]
|
| 82 |
+
] = {}
|
| 83 |
+
# a map of group names to their ancestors, used for cycle detection
|
| 84 |
+
self._include_graph_ancestors: dict[str, tuple[str, ...]] = {}
|
| 85 |
+
# a cache of completed resolutions to Requirement lists
|
| 86 |
+
self._resolve_cache: dict[str, tuple[Requirement, ...]] = {}
|
| 87 |
+
|
| 88 |
+
def lookup(self, group: str) -> tuple[Requirement | DependencyGroupInclude, ...]:
|
| 89 |
+
"""
|
| 90 |
+
Lookup a group name, returning the parsed dependency data for that group.
|
| 91 |
+
This will not resolve includes.
|
| 92 |
+
|
| 93 |
+
:param group: the name of the group to lookup
|
| 94 |
+
|
| 95 |
+
:raises ValueError: if the data does not appear to be valid dependency group
|
| 96 |
+
data
|
| 97 |
+
:raises TypeError: if the data is not a string
|
| 98 |
+
:raises LookupError: if group name is absent
|
| 99 |
+
:raises packaging.requirements.InvalidRequirement: if a specifier is not valid
|
| 100 |
+
"""
|
| 101 |
+
if not isinstance(group, str):
|
| 102 |
+
raise TypeError("Dependency group name is not a str")
|
| 103 |
+
group = _normalize_name(group)
|
| 104 |
+
return self._parse_group(group)
|
| 105 |
+
|
| 106 |
+
def resolve(self, group: str) -> tuple[Requirement, ...]:
|
| 107 |
+
"""
|
| 108 |
+
Resolve a dependency group to a list of requirements.
|
| 109 |
+
|
| 110 |
+
:param group: the name of the group to resolve
|
| 111 |
+
|
| 112 |
+
:raises TypeError: if the inputs appear to be the wrong types
|
| 113 |
+
:raises ValueError: if the data does not appear to be valid dependency group
|
| 114 |
+
data
|
| 115 |
+
:raises LookupError: if group name is absent
|
| 116 |
+
:raises packaging.requirements.InvalidRequirement: if a specifier is not valid
|
| 117 |
+
"""
|
| 118 |
+
if not isinstance(group, str):
|
| 119 |
+
raise TypeError("Dependency group name is not a str")
|
| 120 |
+
group = _normalize_name(group)
|
| 121 |
+
return self._resolve(group, group)
|
| 122 |
+
|
| 123 |
+
def _parse_group(
|
| 124 |
+
self, group: str
|
| 125 |
+
) -> tuple[Requirement | DependencyGroupInclude, ...]:
|
| 126 |
+
# short circuit -- never do the work twice
|
| 127 |
+
if group in self._parsed_groups:
|
| 128 |
+
return self._parsed_groups[group]
|
| 129 |
+
|
| 130 |
+
if group not in self.dependency_groups:
|
| 131 |
+
raise LookupError(f"Dependency group '{group}' not found")
|
| 132 |
+
|
| 133 |
+
raw_group = self.dependency_groups[group]
|
| 134 |
+
if not isinstance(raw_group, list):
|
| 135 |
+
raise TypeError(f"Dependency group '{group}' is not a list")
|
| 136 |
+
|
| 137 |
+
elements: list[Requirement | DependencyGroupInclude] = []
|
| 138 |
+
for item in raw_group:
|
| 139 |
+
if isinstance(item, str):
|
| 140 |
+
# packaging.requirements.Requirement parsing ensures that this is a
|
| 141 |
+
# valid PEP 508 Dependency Specifier
|
| 142 |
+
# raises InvalidRequirement on failure
|
| 143 |
+
elements.append(Requirement(item))
|
| 144 |
+
elif isinstance(item, dict):
|
| 145 |
+
if tuple(item.keys()) != ("include-group",):
|
| 146 |
+
raise ValueError(f"Invalid dependency group item: {item}")
|
| 147 |
+
|
| 148 |
+
include_group = next(iter(item.values()))
|
| 149 |
+
elements.append(DependencyGroupInclude(include_group=include_group))
|
| 150 |
+
else:
|
| 151 |
+
raise ValueError(f"Invalid dependency group item: {item}")
|
| 152 |
+
|
| 153 |
+
self._parsed_groups[group] = tuple(elements)
|
| 154 |
+
return self._parsed_groups[group]
|
| 155 |
+
|
| 156 |
+
def _resolve(self, group: str, requested_group: str) -> tuple[Requirement, ...]:
|
| 157 |
+
"""
|
| 158 |
+
This is a helper for cached resolution to strings.
|
| 159 |
+
|
| 160 |
+
:param group: The name of the group to resolve.
|
| 161 |
+
:param requested_group: The group which was used in the original, user-facing
|
| 162 |
+
request.
|
| 163 |
+
"""
|
| 164 |
+
if group in self._resolve_cache:
|
| 165 |
+
return self._resolve_cache[group]
|
| 166 |
+
|
| 167 |
+
parsed = self._parse_group(group)
|
| 168 |
+
|
| 169 |
+
resolved_group = []
|
| 170 |
+
for item in parsed:
|
| 171 |
+
if isinstance(item, Requirement):
|
| 172 |
+
resolved_group.append(item)
|
| 173 |
+
elif isinstance(item, DependencyGroupInclude):
|
| 174 |
+
include_group = _normalize_name(item.include_group)
|
| 175 |
+
if include_group in self._include_graph_ancestors.get(group, ()):
|
| 176 |
+
raise CyclicDependencyError(
|
| 177 |
+
requested_group, group, item.include_group
|
| 178 |
+
)
|
| 179 |
+
self._include_graph_ancestors[include_group] = (
|
| 180 |
+
*self._include_graph_ancestors.get(group, ()),
|
| 181 |
+
group,
|
| 182 |
+
)
|
| 183 |
+
resolved_group.extend(self._resolve(include_group, requested_group))
|
| 184 |
+
else: # unreachable
|
| 185 |
+
raise NotImplementedError(
|
| 186 |
+
f"Invalid dependency group item after parse: {item}"
|
| 187 |
+
)
|
| 188 |
+
|
| 189 |
+
self._resolve_cache[group] = tuple(resolved_group)
|
| 190 |
+
return self._resolve_cache[group]
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
def resolve(
|
| 194 |
+
dependency_groups: Mapping[str, str | Mapping[str, str]], /, *groups: str
|
| 195 |
+
) -> tuple[str, ...]:
|
| 196 |
+
"""
|
| 197 |
+
Resolve a dependency group to a tuple of requirements, as strings.
|
| 198 |
+
|
| 199 |
+
:param dependency_groups: the parsed contents of the ``[dependency-groups]`` table
|
| 200 |
+
from ``pyproject.toml``
|
| 201 |
+
:param groups: the name of the group(s) to resolve
|
| 202 |
+
|
| 203 |
+
:raises TypeError: if the inputs appear to be the wrong types
|
| 204 |
+
:raises ValueError: if the data does not appear to be valid dependency group data
|
| 205 |
+
:raises LookupError: if group name is absent
|
| 206 |
+
:raises packaging.requirements.InvalidRequirement: if a specifier is not valid
|
| 207 |
+
"""
|
| 208 |
+
resolver = DependencyGroupResolver(dependency_groups)
|
| 209 |
+
return tuple(str(r) for group in groups for r in resolver.resolve(group))
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/dependency_groups/_pip_wrapper.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import subprocess
|
| 5 |
+
import sys
|
| 6 |
+
|
| 7 |
+
from ._implementation import DependencyGroupResolver
|
| 8 |
+
from ._toml_compat import tomllib
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def _invoke_pip(deps: list[str]) -> None:
|
| 12 |
+
subprocess.check_call([sys.executable, "-m", "pip", "install", *deps])
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def main(*, argv: list[str] | None = None) -> None:
|
| 16 |
+
if tomllib is None:
|
| 17 |
+
print(
|
| 18 |
+
"Usage error: dependency-groups CLI requires tomli or Python 3.11+",
|
| 19 |
+
file=sys.stderr,
|
| 20 |
+
)
|
| 21 |
+
raise SystemExit(2)
|
| 22 |
+
|
| 23 |
+
parser = argparse.ArgumentParser(description="Install Dependency Groups.")
|
| 24 |
+
parser.add_argument(
|
| 25 |
+
"DEPENDENCY_GROUP", nargs="+", help="The dependency groups to install."
|
| 26 |
+
)
|
| 27 |
+
parser.add_argument(
|
| 28 |
+
"-f",
|
| 29 |
+
"--pyproject-file",
|
| 30 |
+
default="pyproject.toml",
|
| 31 |
+
help="The pyproject.toml file. Defaults to trying in the current directory.",
|
| 32 |
+
)
|
| 33 |
+
args = parser.parse_args(argv if argv is not None else sys.argv[1:])
|
| 34 |
+
|
| 35 |
+
with open(args.pyproject_file, "rb") as fp:
|
| 36 |
+
pyproject = tomllib.load(fp)
|
| 37 |
+
dependency_groups_raw = pyproject.get("dependency-groups", {})
|
| 38 |
+
|
| 39 |
+
errors: list[str] = []
|
| 40 |
+
resolved: list[str] = []
|
| 41 |
+
try:
|
| 42 |
+
resolver = DependencyGroupResolver(dependency_groups_raw)
|
| 43 |
+
except (ValueError, TypeError) as e:
|
| 44 |
+
errors.append(f"{type(e).__name__}: {e}")
|
| 45 |
+
else:
|
| 46 |
+
for groupname in args.DEPENDENCY_GROUP:
|
| 47 |
+
try:
|
| 48 |
+
resolved.extend(str(r) for r in resolver.resolve(groupname))
|
| 49 |
+
except (LookupError, ValueError, TypeError) as e:
|
| 50 |
+
errors.append(f"{type(e).__name__}: {e}")
|
| 51 |
+
|
| 52 |
+
if errors:
|
| 53 |
+
print("errors encountered while examining dependency groups:")
|
| 54 |
+
for msg in errors:
|
| 55 |
+
print(f" {msg}")
|
| 56 |
+
sys.exit(1)
|
| 57 |
+
|
| 58 |
+
_invoke_pip(resolved)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
if __name__ == "__main__":
|
| 62 |
+
main()
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/dependency_groups/_toml_compat.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
try:
|
| 2 |
+
import tomllib
|
| 3 |
+
except ImportError:
|
| 4 |
+
try:
|
| 5 |
+
from pip._vendor import tomli as tomllib # type: ignore[no-redef, unused-ignore]
|
| 6 |
+
except ModuleNotFoundError: # pragma: no cover
|
| 7 |
+
tomllib = None # type: ignore[assignment, unused-ignore]
|
| 8 |
+
|
| 9 |
+
__all__ = ("tomllib",)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/distlib/t32.exe
ADDED
|
Binary file (97.8 kB). View file
|
|
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/distlib/w32.exe
ADDED
|
Binary file (91.6 kB). View file
|
|
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/distro/__main__.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .distro import main
|
| 2 |
+
|
| 3 |
+
if __name__ == "__main__":
|
| 4 |
+
main()
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/LICENSE.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BSD 3-Clause License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2013-2024, Kim Davies and contributors.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without
|
| 7 |
+
modification, are permitted provided that the following conditions are
|
| 8 |
+
met:
|
| 9 |
+
|
| 10 |
+
1. Redistributions of source code must retain the above copyright
|
| 11 |
+
notice, this list of conditions and the following disclaimer.
|
| 12 |
+
|
| 13 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 14 |
+
notice, this list of conditions and the following disclaimer in the
|
| 15 |
+
documentation and/or other materials provided with the distribution.
|
| 16 |
+
|
| 17 |
+
3. Neither the name of the copyright holder nor the names of its
|
| 18 |
+
contributors may be used to endorse or promote products derived from
|
| 19 |
+
this software without specific prior written permission.
|
| 20 |
+
|
| 21 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 22 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 23 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 24 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 25 |
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 26 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
| 27 |
+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 28 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
| 29 |
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
| 30 |
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 31 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/compat.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Union
|
| 2 |
+
|
| 3 |
+
from .core import decode, encode
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def ToASCII(label: str) -> bytes:
|
| 7 |
+
return encode(label)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def ToUnicode(label: Union[bytes, bytearray]) -> str:
|
| 11 |
+
return decode(label)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def nameprep(s: Any) -> None:
|
| 15 |
+
raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol")
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/idnadata.py
ADDED
|
@@ -0,0 +1,4243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is automatically generated by tools/idna-data
|
| 2 |
+
|
| 3 |
+
__version__ = "15.1.0"
|
| 4 |
+
scripts = {
|
| 5 |
+
"Greek": (
|
| 6 |
+
0x37000000374,
|
| 7 |
+
0x37500000378,
|
| 8 |
+
0x37A0000037E,
|
| 9 |
+
0x37F00000380,
|
| 10 |
+
0x38400000385,
|
| 11 |
+
0x38600000387,
|
| 12 |
+
0x3880000038B,
|
| 13 |
+
0x38C0000038D,
|
| 14 |
+
0x38E000003A2,
|
| 15 |
+
0x3A3000003E2,
|
| 16 |
+
0x3F000000400,
|
| 17 |
+
0x1D2600001D2B,
|
| 18 |
+
0x1D5D00001D62,
|
| 19 |
+
0x1D6600001D6B,
|
| 20 |
+
0x1DBF00001DC0,
|
| 21 |
+
0x1F0000001F16,
|
| 22 |
+
0x1F1800001F1E,
|
| 23 |
+
0x1F2000001F46,
|
| 24 |
+
0x1F4800001F4E,
|
| 25 |
+
0x1F5000001F58,
|
| 26 |
+
0x1F5900001F5A,
|
| 27 |
+
0x1F5B00001F5C,
|
| 28 |
+
0x1F5D00001F5E,
|
| 29 |
+
0x1F5F00001F7E,
|
| 30 |
+
0x1F8000001FB5,
|
| 31 |
+
0x1FB600001FC5,
|
| 32 |
+
0x1FC600001FD4,
|
| 33 |
+
0x1FD600001FDC,
|
| 34 |
+
0x1FDD00001FF0,
|
| 35 |
+
0x1FF200001FF5,
|
| 36 |
+
0x1FF600001FFF,
|
| 37 |
+
0x212600002127,
|
| 38 |
+
0xAB650000AB66,
|
| 39 |
+
0x101400001018F,
|
| 40 |
+
0x101A0000101A1,
|
| 41 |
+
0x1D2000001D246,
|
| 42 |
+
),
|
| 43 |
+
"Han": (
|
| 44 |
+
0x2E8000002E9A,
|
| 45 |
+
0x2E9B00002EF4,
|
| 46 |
+
0x2F0000002FD6,
|
| 47 |
+
0x300500003006,
|
| 48 |
+
0x300700003008,
|
| 49 |
+
0x30210000302A,
|
| 50 |
+
0x30380000303C,
|
| 51 |
+
0x340000004DC0,
|
| 52 |
+
0x4E000000A000,
|
| 53 |
+
0xF9000000FA6E,
|
| 54 |
+
0xFA700000FADA,
|
| 55 |
+
0x16FE200016FE4,
|
| 56 |
+
0x16FF000016FF2,
|
| 57 |
+
0x200000002A6E0,
|
| 58 |
+
0x2A7000002B73A,
|
| 59 |
+
0x2B7400002B81E,
|
| 60 |
+
0x2B8200002CEA2,
|
| 61 |
+
0x2CEB00002EBE1,
|
| 62 |
+
0x2EBF00002EE5E,
|
| 63 |
+
0x2F8000002FA1E,
|
| 64 |
+
0x300000003134B,
|
| 65 |
+
0x31350000323B0,
|
| 66 |
+
),
|
| 67 |
+
"Hebrew": (
|
| 68 |
+
0x591000005C8,
|
| 69 |
+
0x5D0000005EB,
|
| 70 |
+
0x5EF000005F5,
|
| 71 |
+
0xFB1D0000FB37,
|
| 72 |
+
0xFB380000FB3D,
|
| 73 |
+
0xFB3E0000FB3F,
|
| 74 |
+
0xFB400000FB42,
|
| 75 |
+
0xFB430000FB45,
|
| 76 |
+
0xFB460000FB50,
|
| 77 |
+
),
|
| 78 |
+
"Hiragana": (
|
| 79 |
+
0x304100003097,
|
| 80 |
+
0x309D000030A0,
|
| 81 |
+
0x1B0010001B120,
|
| 82 |
+
0x1B1320001B133,
|
| 83 |
+
0x1B1500001B153,
|
| 84 |
+
0x1F2000001F201,
|
| 85 |
+
),
|
| 86 |
+
"Katakana": (
|
| 87 |
+
0x30A1000030FB,
|
| 88 |
+
0x30FD00003100,
|
| 89 |
+
0x31F000003200,
|
| 90 |
+
0x32D0000032FF,
|
| 91 |
+
0x330000003358,
|
| 92 |
+
0xFF660000FF70,
|
| 93 |
+
0xFF710000FF9E,
|
| 94 |
+
0x1AFF00001AFF4,
|
| 95 |
+
0x1AFF50001AFFC,
|
| 96 |
+
0x1AFFD0001AFFF,
|
| 97 |
+
0x1B0000001B001,
|
| 98 |
+
0x1B1200001B123,
|
| 99 |
+
0x1B1550001B156,
|
| 100 |
+
0x1B1640001B168,
|
| 101 |
+
),
|
| 102 |
+
}
|
| 103 |
+
joining_types = {
|
| 104 |
+
0xAD: 84,
|
| 105 |
+
0x300: 84,
|
| 106 |
+
0x301: 84,
|
| 107 |
+
0x302: 84,
|
| 108 |
+
0x303: 84,
|
| 109 |
+
0x304: 84,
|
| 110 |
+
0x305: 84,
|
| 111 |
+
0x306: 84,
|
| 112 |
+
0x307: 84,
|
| 113 |
+
0x308: 84,
|
| 114 |
+
0x309: 84,
|
| 115 |
+
0x30A: 84,
|
| 116 |
+
0x30B: 84,
|
| 117 |
+
0x30C: 84,
|
| 118 |
+
0x30D: 84,
|
| 119 |
+
0x30E: 84,
|
| 120 |
+
0x30F: 84,
|
| 121 |
+
0x310: 84,
|
| 122 |
+
0x311: 84,
|
| 123 |
+
0x312: 84,
|
| 124 |
+
0x313: 84,
|
| 125 |
+
0x314: 84,
|
| 126 |
+
0x315: 84,
|
| 127 |
+
0x316: 84,
|
| 128 |
+
0x317: 84,
|
| 129 |
+
0x318: 84,
|
| 130 |
+
0x319: 84,
|
| 131 |
+
0x31A: 84,
|
| 132 |
+
0x31B: 84,
|
| 133 |
+
0x31C: 84,
|
| 134 |
+
0x31D: 84,
|
| 135 |
+
0x31E: 84,
|
| 136 |
+
0x31F: 84,
|
| 137 |
+
0x320: 84,
|
| 138 |
+
0x321: 84,
|
| 139 |
+
0x322: 84,
|
| 140 |
+
0x323: 84,
|
| 141 |
+
0x324: 84,
|
| 142 |
+
0x325: 84,
|
| 143 |
+
0x326: 84,
|
| 144 |
+
0x327: 84,
|
| 145 |
+
0x328: 84,
|
| 146 |
+
0x329: 84,
|
| 147 |
+
0x32A: 84,
|
| 148 |
+
0x32B: 84,
|
| 149 |
+
0x32C: 84,
|
| 150 |
+
0x32D: 84,
|
| 151 |
+
0x32E: 84,
|
| 152 |
+
0x32F: 84,
|
| 153 |
+
0x330: 84,
|
| 154 |
+
0x331: 84,
|
| 155 |
+
0x332: 84,
|
| 156 |
+
0x333: 84,
|
| 157 |
+
0x334: 84,
|
| 158 |
+
0x335: 84,
|
| 159 |
+
0x336: 84,
|
| 160 |
+
0x337: 84,
|
| 161 |
+
0x338: 84,
|
| 162 |
+
0x339: 84,
|
| 163 |
+
0x33A: 84,
|
| 164 |
+
0x33B: 84,
|
| 165 |
+
0x33C: 84,
|
| 166 |
+
0x33D: 84,
|
| 167 |
+
0x33E: 84,
|
| 168 |
+
0x33F: 84,
|
| 169 |
+
0x340: 84,
|
| 170 |
+
0x341: 84,
|
| 171 |
+
0x342: 84,
|
| 172 |
+
0x343: 84,
|
| 173 |
+
0x344: 84,
|
| 174 |
+
0x345: 84,
|
| 175 |
+
0x346: 84,
|
| 176 |
+
0x347: 84,
|
| 177 |
+
0x348: 84,
|
| 178 |
+
0x349: 84,
|
| 179 |
+
0x34A: 84,
|
| 180 |
+
0x34B: 84,
|
| 181 |
+
0x34C: 84,
|
| 182 |
+
0x34D: 84,
|
| 183 |
+
0x34E: 84,
|
| 184 |
+
0x34F: 84,
|
| 185 |
+
0x350: 84,
|
| 186 |
+
0x351: 84,
|
| 187 |
+
0x352: 84,
|
| 188 |
+
0x353: 84,
|
| 189 |
+
0x354: 84,
|
| 190 |
+
0x355: 84,
|
| 191 |
+
0x356: 84,
|
| 192 |
+
0x357: 84,
|
| 193 |
+
0x358: 84,
|
| 194 |
+
0x359: 84,
|
| 195 |
+
0x35A: 84,
|
| 196 |
+
0x35B: 84,
|
| 197 |
+
0x35C: 84,
|
| 198 |
+
0x35D: 84,
|
| 199 |
+
0x35E: 84,
|
| 200 |
+
0x35F: 84,
|
| 201 |
+
0x360: 84,
|
| 202 |
+
0x361: 84,
|
| 203 |
+
0x362: 84,
|
| 204 |
+
0x363: 84,
|
| 205 |
+
0x364: 84,
|
| 206 |
+
0x365: 84,
|
| 207 |
+
0x366: 84,
|
| 208 |
+
0x367: 84,
|
| 209 |
+
0x368: 84,
|
| 210 |
+
0x369: 84,
|
| 211 |
+
0x36A: 84,
|
| 212 |
+
0x36B: 84,
|
| 213 |
+
0x36C: 84,
|
| 214 |
+
0x36D: 84,
|
| 215 |
+
0x36E: 84,
|
| 216 |
+
0x36F: 84,
|
| 217 |
+
0x483: 84,
|
| 218 |
+
0x484: 84,
|
| 219 |
+
0x485: 84,
|
| 220 |
+
0x486: 84,
|
| 221 |
+
0x487: 84,
|
| 222 |
+
0x488: 84,
|
| 223 |
+
0x489: 84,
|
| 224 |
+
0x591: 84,
|
| 225 |
+
0x592: 84,
|
| 226 |
+
0x593: 84,
|
| 227 |
+
0x594: 84,
|
| 228 |
+
0x595: 84,
|
| 229 |
+
0x596: 84,
|
| 230 |
+
0x597: 84,
|
| 231 |
+
0x598: 84,
|
| 232 |
+
0x599: 84,
|
| 233 |
+
0x59A: 84,
|
| 234 |
+
0x59B: 84,
|
| 235 |
+
0x59C: 84,
|
| 236 |
+
0x59D: 84,
|
| 237 |
+
0x59E: 84,
|
| 238 |
+
0x59F: 84,
|
| 239 |
+
0x5A0: 84,
|
| 240 |
+
0x5A1: 84,
|
| 241 |
+
0x5A2: 84,
|
| 242 |
+
0x5A3: 84,
|
| 243 |
+
0x5A4: 84,
|
| 244 |
+
0x5A5: 84,
|
| 245 |
+
0x5A6: 84,
|
| 246 |
+
0x5A7: 84,
|
| 247 |
+
0x5A8: 84,
|
| 248 |
+
0x5A9: 84,
|
| 249 |
+
0x5AA: 84,
|
| 250 |
+
0x5AB: 84,
|
| 251 |
+
0x5AC: 84,
|
| 252 |
+
0x5AD: 84,
|
| 253 |
+
0x5AE: 84,
|
| 254 |
+
0x5AF: 84,
|
| 255 |
+
0x5B0: 84,
|
| 256 |
+
0x5B1: 84,
|
| 257 |
+
0x5B2: 84,
|
| 258 |
+
0x5B3: 84,
|
| 259 |
+
0x5B4: 84,
|
| 260 |
+
0x5B5: 84,
|
| 261 |
+
0x5B6: 84,
|
| 262 |
+
0x5B7: 84,
|
| 263 |
+
0x5B8: 84,
|
| 264 |
+
0x5B9: 84,
|
| 265 |
+
0x5BA: 84,
|
| 266 |
+
0x5BB: 84,
|
| 267 |
+
0x5BC: 84,
|
| 268 |
+
0x5BD: 84,
|
| 269 |
+
0x5BF: 84,
|
| 270 |
+
0x5C1: 84,
|
| 271 |
+
0x5C2: 84,
|
| 272 |
+
0x5C4: 84,
|
| 273 |
+
0x5C5: 84,
|
| 274 |
+
0x5C7: 84,
|
| 275 |
+
0x610: 84,
|
| 276 |
+
0x611: 84,
|
| 277 |
+
0x612: 84,
|
| 278 |
+
0x613: 84,
|
| 279 |
+
0x614: 84,
|
| 280 |
+
0x615: 84,
|
| 281 |
+
0x616: 84,
|
| 282 |
+
0x617: 84,
|
| 283 |
+
0x618: 84,
|
| 284 |
+
0x619: 84,
|
| 285 |
+
0x61A: 84,
|
| 286 |
+
0x61C: 84,
|
| 287 |
+
0x620: 68,
|
| 288 |
+
0x622: 82,
|
| 289 |
+
0x623: 82,
|
| 290 |
+
0x624: 82,
|
| 291 |
+
0x625: 82,
|
| 292 |
+
0x626: 68,
|
| 293 |
+
0x627: 82,
|
| 294 |
+
0x628: 68,
|
| 295 |
+
0x629: 82,
|
| 296 |
+
0x62A: 68,
|
| 297 |
+
0x62B: 68,
|
| 298 |
+
0x62C: 68,
|
| 299 |
+
0x62D: 68,
|
| 300 |
+
0x62E: 68,
|
| 301 |
+
0x62F: 82,
|
| 302 |
+
0x630: 82,
|
| 303 |
+
0x631: 82,
|
| 304 |
+
0x632: 82,
|
| 305 |
+
0x633: 68,
|
| 306 |
+
0x634: 68,
|
| 307 |
+
0x635: 68,
|
| 308 |
+
0x636: 68,
|
| 309 |
+
0x637: 68,
|
| 310 |
+
0x638: 68,
|
| 311 |
+
0x639: 68,
|
| 312 |
+
0x63A: 68,
|
| 313 |
+
0x63B: 68,
|
| 314 |
+
0x63C: 68,
|
| 315 |
+
0x63D: 68,
|
| 316 |
+
0x63E: 68,
|
| 317 |
+
0x63F: 68,
|
| 318 |
+
0x640: 67,
|
| 319 |
+
0x641: 68,
|
| 320 |
+
0x642: 68,
|
| 321 |
+
0x643: 68,
|
| 322 |
+
0x644: 68,
|
| 323 |
+
0x645: 68,
|
| 324 |
+
0x646: 68,
|
| 325 |
+
0x647: 68,
|
| 326 |
+
0x648: 82,
|
| 327 |
+
0x649: 68,
|
| 328 |
+
0x64A: 68,
|
| 329 |
+
0x64B: 84,
|
| 330 |
+
0x64C: 84,
|
| 331 |
+
0x64D: 84,
|
| 332 |
+
0x64E: 84,
|
| 333 |
+
0x64F: 84,
|
| 334 |
+
0x650: 84,
|
| 335 |
+
0x651: 84,
|
| 336 |
+
0x652: 84,
|
| 337 |
+
0x653: 84,
|
| 338 |
+
0x654: 84,
|
| 339 |
+
0x655: 84,
|
| 340 |
+
0x656: 84,
|
| 341 |
+
0x657: 84,
|
| 342 |
+
0x658: 84,
|
| 343 |
+
0x659: 84,
|
| 344 |
+
0x65A: 84,
|
| 345 |
+
0x65B: 84,
|
| 346 |
+
0x65C: 84,
|
| 347 |
+
0x65D: 84,
|
| 348 |
+
0x65E: 84,
|
| 349 |
+
0x65F: 84,
|
| 350 |
+
0x66E: 68,
|
| 351 |
+
0x66F: 68,
|
| 352 |
+
0x670: 84,
|
| 353 |
+
0x671: 82,
|
| 354 |
+
0x672: 82,
|
| 355 |
+
0x673: 82,
|
| 356 |
+
0x675: 82,
|
| 357 |
+
0x676: 82,
|
| 358 |
+
0x677: 82,
|
| 359 |
+
0x678: 68,
|
| 360 |
+
0x679: 68,
|
| 361 |
+
0x67A: 68,
|
| 362 |
+
0x67B: 68,
|
| 363 |
+
0x67C: 68,
|
| 364 |
+
0x67D: 68,
|
| 365 |
+
0x67E: 68,
|
| 366 |
+
0x67F: 68,
|
| 367 |
+
0x680: 68,
|
| 368 |
+
0x681: 68,
|
| 369 |
+
0x682: 68,
|
| 370 |
+
0x683: 68,
|
| 371 |
+
0x684: 68,
|
| 372 |
+
0x685: 68,
|
| 373 |
+
0x686: 68,
|
| 374 |
+
0x687: 68,
|
| 375 |
+
0x688: 82,
|
| 376 |
+
0x689: 82,
|
| 377 |
+
0x68A: 82,
|
| 378 |
+
0x68B: 82,
|
| 379 |
+
0x68C: 82,
|
| 380 |
+
0x68D: 82,
|
| 381 |
+
0x68E: 82,
|
| 382 |
+
0x68F: 82,
|
| 383 |
+
0x690: 82,
|
| 384 |
+
0x691: 82,
|
| 385 |
+
0x692: 82,
|
| 386 |
+
0x693: 82,
|
| 387 |
+
0x694: 82,
|
| 388 |
+
0x695: 82,
|
| 389 |
+
0x696: 82,
|
| 390 |
+
0x697: 82,
|
| 391 |
+
0x698: 82,
|
| 392 |
+
0x699: 82,
|
| 393 |
+
0x69A: 68,
|
| 394 |
+
0x69B: 68,
|
| 395 |
+
0x69C: 68,
|
| 396 |
+
0x69D: 68,
|
| 397 |
+
0x69E: 68,
|
| 398 |
+
0x69F: 68,
|
| 399 |
+
0x6A0: 68,
|
| 400 |
+
0x6A1: 68,
|
| 401 |
+
0x6A2: 68,
|
| 402 |
+
0x6A3: 68,
|
| 403 |
+
0x6A4: 68,
|
| 404 |
+
0x6A5: 68,
|
| 405 |
+
0x6A6: 68,
|
| 406 |
+
0x6A7: 68,
|
| 407 |
+
0x6A8: 68,
|
| 408 |
+
0x6A9: 68,
|
| 409 |
+
0x6AA: 68,
|
| 410 |
+
0x6AB: 68,
|
| 411 |
+
0x6AC: 68,
|
| 412 |
+
0x6AD: 68,
|
| 413 |
+
0x6AE: 68,
|
| 414 |
+
0x6AF: 68,
|
| 415 |
+
0x6B0: 68,
|
| 416 |
+
0x6B1: 68,
|
| 417 |
+
0x6B2: 68,
|
| 418 |
+
0x6B3: 68,
|
| 419 |
+
0x6B4: 68,
|
| 420 |
+
0x6B5: 68,
|
| 421 |
+
0x6B6: 68,
|
| 422 |
+
0x6B7: 68,
|
| 423 |
+
0x6B8: 68,
|
| 424 |
+
0x6B9: 68,
|
| 425 |
+
0x6BA: 68,
|
| 426 |
+
0x6BB: 68,
|
| 427 |
+
0x6BC: 68,
|
| 428 |
+
0x6BD: 68,
|
| 429 |
+
0x6BE: 68,
|
| 430 |
+
0x6BF: 68,
|
| 431 |
+
0x6C0: 82,
|
| 432 |
+
0x6C1: 68,
|
| 433 |
+
0x6C2: 68,
|
| 434 |
+
0x6C3: 82,
|
| 435 |
+
0x6C4: 82,
|
| 436 |
+
0x6C5: 82,
|
| 437 |
+
0x6C6: 82,
|
| 438 |
+
0x6C7: 82,
|
| 439 |
+
0x6C8: 82,
|
| 440 |
+
0x6C9: 82,
|
| 441 |
+
0x6CA: 82,
|
| 442 |
+
0x6CB: 82,
|
| 443 |
+
0x6CC: 68,
|
| 444 |
+
0x6CD: 82,
|
| 445 |
+
0x6CE: 68,
|
| 446 |
+
0x6CF: 82,
|
| 447 |
+
0x6D0: 68,
|
| 448 |
+
0x6D1: 68,
|
| 449 |
+
0x6D2: 82,
|
| 450 |
+
0x6D3: 82,
|
| 451 |
+
0x6D5: 82,
|
| 452 |
+
0x6D6: 84,
|
| 453 |
+
0x6D7: 84,
|
| 454 |
+
0x6D8: 84,
|
| 455 |
+
0x6D9: 84,
|
| 456 |
+
0x6DA: 84,
|
| 457 |
+
0x6DB: 84,
|
| 458 |
+
0x6DC: 84,
|
| 459 |
+
0x6DF: 84,
|
| 460 |
+
0x6E0: 84,
|
| 461 |
+
0x6E1: 84,
|
| 462 |
+
0x6E2: 84,
|
| 463 |
+
0x6E3: 84,
|
| 464 |
+
0x6E4: 84,
|
| 465 |
+
0x6E7: 84,
|
| 466 |
+
0x6E8: 84,
|
| 467 |
+
0x6EA: 84,
|
| 468 |
+
0x6EB: 84,
|
| 469 |
+
0x6EC: 84,
|
| 470 |
+
0x6ED: 84,
|
| 471 |
+
0x6EE: 82,
|
| 472 |
+
0x6EF: 82,
|
| 473 |
+
0x6FA: 68,
|
| 474 |
+
0x6FB: 68,
|
| 475 |
+
0x6FC: 68,
|
| 476 |
+
0x6FF: 68,
|
| 477 |
+
0x70F: 84,
|
| 478 |
+
0x710: 82,
|
| 479 |
+
0x711: 84,
|
| 480 |
+
0x712: 68,
|
| 481 |
+
0x713: 68,
|
| 482 |
+
0x714: 68,
|
| 483 |
+
0x715: 82,
|
| 484 |
+
0x716: 82,
|
| 485 |
+
0x717: 82,
|
| 486 |
+
0x718: 82,
|
| 487 |
+
0x719: 82,
|
| 488 |
+
0x71A: 68,
|
| 489 |
+
0x71B: 68,
|
| 490 |
+
0x71C: 68,
|
| 491 |
+
0x71D: 68,
|
| 492 |
+
0x71E: 82,
|
| 493 |
+
0x71F: 68,
|
| 494 |
+
0x720: 68,
|
| 495 |
+
0x721: 68,
|
| 496 |
+
0x722: 68,
|
| 497 |
+
0x723: 68,
|
| 498 |
+
0x724: 68,
|
| 499 |
+
0x725: 68,
|
| 500 |
+
0x726: 68,
|
| 501 |
+
0x727: 68,
|
| 502 |
+
0x728: 82,
|
| 503 |
+
0x729: 68,
|
| 504 |
+
0x72A: 82,
|
| 505 |
+
0x72B: 68,
|
| 506 |
+
0x72C: 82,
|
| 507 |
+
0x72D: 68,
|
| 508 |
+
0x72E: 68,
|
| 509 |
+
0x72F: 82,
|
| 510 |
+
0x730: 84,
|
| 511 |
+
0x731: 84,
|
| 512 |
+
0x732: 84,
|
| 513 |
+
0x733: 84,
|
| 514 |
+
0x734: 84,
|
| 515 |
+
0x735: 84,
|
| 516 |
+
0x736: 84,
|
| 517 |
+
0x737: 84,
|
| 518 |
+
0x738: 84,
|
| 519 |
+
0x739: 84,
|
| 520 |
+
0x73A: 84,
|
| 521 |
+
0x73B: 84,
|
| 522 |
+
0x73C: 84,
|
| 523 |
+
0x73D: 84,
|
| 524 |
+
0x73E: 84,
|
| 525 |
+
0x73F: 84,
|
| 526 |
+
0x740: 84,
|
| 527 |
+
0x741: 84,
|
| 528 |
+
0x742: 84,
|
| 529 |
+
0x743: 84,
|
| 530 |
+
0x744: 84,
|
| 531 |
+
0x745: 84,
|
| 532 |
+
0x746: 84,
|
| 533 |
+
0x747: 84,
|
| 534 |
+
0x748: 84,
|
| 535 |
+
0x749: 84,
|
| 536 |
+
0x74A: 84,
|
| 537 |
+
0x74D: 82,
|
| 538 |
+
0x74E: 68,
|
| 539 |
+
0x74F: 68,
|
| 540 |
+
0x750: 68,
|
| 541 |
+
0x751: 68,
|
| 542 |
+
0x752: 68,
|
| 543 |
+
0x753: 68,
|
| 544 |
+
0x754: 68,
|
| 545 |
+
0x755: 68,
|
| 546 |
+
0x756: 68,
|
| 547 |
+
0x757: 68,
|
| 548 |
+
0x758: 68,
|
| 549 |
+
0x759: 82,
|
| 550 |
+
0x75A: 82,
|
| 551 |
+
0x75B: 82,
|
| 552 |
+
0x75C: 68,
|
| 553 |
+
0x75D: 68,
|
| 554 |
+
0x75E: 68,
|
| 555 |
+
0x75F: 68,
|
| 556 |
+
0x760: 68,
|
| 557 |
+
0x761: 68,
|
| 558 |
+
0x762: 68,
|
| 559 |
+
0x763: 68,
|
| 560 |
+
0x764: 68,
|
| 561 |
+
0x765: 68,
|
| 562 |
+
0x766: 68,
|
| 563 |
+
0x767: 68,
|
| 564 |
+
0x768: 68,
|
| 565 |
+
0x769: 68,
|
| 566 |
+
0x76A: 68,
|
| 567 |
+
0x76B: 82,
|
| 568 |
+
0x76C: 82,
|
| 569 |
+
0x76D: 68,
|
| 570 |
+
0x76E: 68,
|
| 571 |
+
0x76F: 68,
|
| 572 |
+
0x770: 68,
|
| 573 |
+
0x771: 82,
|
| 574 |
+
0x772: 68,
|
| 575 |
+
0x773: 82,
|
| 576 |
+
0x774: 82,
|
| 577 |
+
0x775: 68,
|
| 578 |
+
0x776: 68,
|
| 579 |
+
0x777: 68,
|
| 580 |
+
0x778: 82,
|
| 581 |
+
0x779: 82,
|
| 582 |
+
0x77A: 68,
|
| 583 |
+
0x77B: 68,
|
| 584 |
+
0x77C: 68,
|
| 585 |
+
0x77D: 68,
|
| 586 |
+
0x77E: 68,
|
| 587 |
+
0x77F: 68,
|
| 588 |
+
0x7A6: 84,
|
| 589 |
+
0x7A7: 84,
|
| 590 |
+
0x7A8: 84,
|
| 591 |
+
0x7A9: 84,
|
| 592 |
+
0x7AA: 84,
|
| 593 |
+
0x7AB: 84,
|
| 594 |
+
0x7AC: 84,
|
| 595 |
+
0x7AD: 84,
|
| 596 |
+
0x7AE: 84,
|
| 597 |
+
0x7AF: 84,
|
| 598 |
+
0x7B0: 84,
|
| 599 |
+
0x7CA: 68,
|
| 600 |
+
0x7CB: 68,
|
| 601 |
+
0x7CC: 68,
|
| 602 |
+
0x7CD: 68,
|
| 603 |
+
0x7CE: 68,
|
| 604 |
+
0x7CF: 68,
|
| 605 |
+
0x7D0: 68,
|
| 606 |
+
0x7D1: 68,
|
| 607 |
+
0x7D2: 68,
|
| 608 |
+
0x7D3: 68,
|
| 609 |
+
0x7D4: 68,
|
| 610 |
+
0x7D5: 68,
|
| 611 |
+
0x7D6: 68,
|
| 612 |
+
0x7D7: 68,
|
| 613 |
+
0x7D8: 68,
|
| 614 |
+
0x7D9: 68,
|
| 615 |
+
0x7DA: 68,
|
| 616 |
+
0x7DB: 68,
|
| 617 |
+
0x7DC: 68,
|
| 618 |
+
0x7DD: 68,
|
| 619 |
+
0x7DE: 68,
|
| 620 |
+
0x7DF: 68,
|
| 621 |
+
0x7E0: 68,
|
| 622 |
+
0x7E1: 68,
|
| 623 |
+
0x7E2: 68,
|
| 624 |
+
0x7E3: 68,
|
| 625 |
+
0x7E4: 68,
|
| 626 |
+
0x7E5: 68,
|
| 627 |
+
0x7E6: 68,
|
| 628 |
+
0x7E7: 68,
|
| 629 |
+
0x7E8: 68,
|
| 630 |
+
0x7E9: 68,
|
| 631 |
+
0x7EA: 68,
|
| 632 |
+
0x7EB: 84,
|
| 633 |
+
0x7EC: 84,
|
| 634 |
+
0x7ED: 84,
|
| 635 |
+
0x7EE: 84,
|
| 636 |
+
0x7EF: 84,
|
| 637 |
+
0x7F0: 84,
|
| 638 |
+
0x7F1: 84,
|
| 639 |
+
0x7F2: 84,
|
| 640 |
+
0x7F3: 84,
|
| 641 |
+
0x7FA: 67,
|
| 642 |
+
0x7FD: 84,
|
| 643 |
+
0x816: 84,
|
| 644 |
+
0x817: 84,
|
| 645 |
+
0x818: 84,
|
| 646 |
+
0x819: 84,
|
| 647 |
+
0x81B: 84,
|
| 648 |
+
0x81C: 84,
|
| 649 |
+
0x81D: 84,
|
| 650 |
+
0x81E: 84,
|
| 651 |
+
0x81F: 84,
|
| 652 |
+
0x820: 84,
|
| 653 |
+
0x821: 84,
|
| 654 |
+
0x822: 84,
|
| 655 |
+
0x823: 84,
|
| 656 |
+
0x825: 84,
|
| 657 |
+
0x826: 84,
|
| 658 |
+
0x827: 84,
|
| 659 |
+
0x829: 84,
|
| 660 |
+
0x82A: 84,
|
| 661 |
+
0x82B: 84,
|
| 662 |
+
0x82C: 84,
|
| 663 |
+
0x82D: 84,
|
| 664 |
+
0x840: 82,
|
| 665 |
+
0x841: 68,
|
| 666 |
+
0x842: 68,
|
| 667 |
+
0x843: 68,
|
| 668 |
+
0x844: 68,
|
| 669 |
+
0x845: 68,
|
| 670 |
+
0x846: 82,
|
| 671 |
+
0x847: 82,
|
| 672 |
+
0x848: 68,
|
| 673 |
+
0x849: 82,
|
| 674 |
+
0x84A: 68,
|
| 675 |
+
0x84B: 68,
|
| 676 |
+
0x84C: 68,
|
| 677 |
+
0x84D: 68,
|
| 678 |
+
0x84E: 68,
|
| 679 |
+
0x84F: 68,
|
| 680 |
+
0x850: 68,
|
| 681 |
+
0x851: 68,
|
| 682 |
+
0x852: 68,
|
| 683 |
+
0x853: 68,
|
| 684 |
+
0x854: 82,
|
| 685 |
+
0x855: 68,
|
| 686 |
+
0x856: 82,
|
| 687 |
+
0x857: 82,
|
| 688 |
+
0x858: 82,
|
| 689 |
+
0x859: 84,
|
| 690 |
+
0x85A: 84,
|
| 691 |
+
0x85B: 84,
|
| 692 |
+
0x860: 68,
|
| 693 |
+
0x862: 68,
|
| 694 |
+
0x863: 68,
|
| 695 |
+
0x864: 68,
|
| 696 |
+
0x865: 68,
|
| 697 |
+
0x867: 82,
|
| 698 |
+
0x868: 68,
|
| 699 |
+
0x869: 82,
|
| 700 |
+
0x86A: 82,
|
| 701 |
+
0x870: 82,
|
| 702 |
+
0x871: 82,
|
| 703 |
+
0x872: 82,
|
| 704 |
+
0x873: 82,
|
| 705 |
+
0x874: 82,
|
| 706 |
+
0x875: 82,
|
| 707 |
+
0x876: 82,
|
| 708 |
+
0x877: 82,
|
| 709 |
+
0x878: 82,
|
| 710 |
+
0x879: 82,
|
| 711 |
+
0x87A: 82,
|
| 712 |
+
0x87B: 82,
|
| 713 |
+
0x87C: 82,
|
| 714 |
+
0x87D: 82,
|
| 715 |
+
0x87E: 82,
|
| 716 |
+
0x87F: 82,
|
| 717 |
+
0x880: 82,
|
| 718 |
+
0x881: 82,
|
| 719 |
+
0x882: 82,
|
| 720 |
+
0x883: 67,
|
| 721 |
+
0x884: 67,
|
| 722 |
+
0x885: 67,
|
| 723 |
+
0x886: 68,
|
| 724 |
+
0x889: 68,
|
| 725 |
+
0x88A: 68,
|
| 726 |
+
0x88B: 68,
|
| 727 |
+
0x88C: 68,
|
| 728 |
+
0x88D: 68,
|
| 729 |
+
0x88E: 82,
|
| 730 |
+
0x898: 84,
|
| 731 |
+
0x899: 84,
|
| 732 |
+
0x89A: 84,
|
| 733 |
+
0x89B: 84,
|
| 734 |
+
0x89C: 84,
|
| 735 |
+
0x89D: 84,
|
| 736 |
+
0x89E: 84,
|
| 737 |
+
0x89F: 84,
|
| 738 |
+
0x8A0: 68,
|
| 739 |
+
0x8A1: 68,
|
| 740 |
+
0x8A2: 68,
|
| 741 |
+
0x8A3: 68,
|
| 742 |
+
0x8A4: 68,
|
| 743 |
+
0x8A5: 68,
|
| 744 |
+
0x8A6: 68,
|
| 745 |
+
0x8A7: 68,
|
| 746 |
+
0x8A8: 68,
|
| 747 |
+
0x8A9: 68,
|
| 748 |
+
0x8AA: 82,
|
| 749 |
+
0x8AB: 82,
|
| 750 |
+
0x8AC: 82,
|
| 751 |
+
0x8AE: 82,
|
| 752 |
+
0x8AF: 68,
|
| 753 |
+
0x8B0: 68,
|
| 754 |
+
0x8B1: 82,
|
| 755 |
+
0x8B2: 82,
|
| 756 |
+
0x8B3: 68,
|
| 757 |
+
0x8B4: 68,
|
| 758 |
+
0x8B5: 68,
|
| 759 |
+
0x8B6: 68,
|
| 760 |
+
0x8B7: 68,
|
| 761 |
+
0x8B8: 68,
|
| 762 |
+
0x8B9: 82,
|
| 763 |
+
0x8BA: 68,
|
| 764 |
+
0x8BB: 68,
|
| 765 |
+
0x8BC: 68,
|
| 766 |
+
0x8BD: 68,
|
| 767 |
+
0x8BE: 68,
|
| 768 |
+
0x8BF: 68,
|
| 769 |
+
0x8C0: 68,
|
| 770 |
+
0x8C1: 68,
|
| 771 |
+
0x8C2: 68,
|
| 772 |
+
0x8C3: 68,
|
| 773 |
+
0x8C4: 68,
|
| 774 |
+
0x8C5: 68,
|
| 775 |
+
0x8C6: 68,
|
| 776 |
+
0x8C7: 68,
|
| 777 |
+
0x8C8: 68,
|
| 778 |
+
0x8CA: 84,
|
| 779 |
+
0x8CB: 84,
|
| 780 |
+
0x8CC: 84,
|
| 781 |
+
0x8CD: 84,
|
| 782 |
+
0x8CE: 84,
|
| 783 |
+
0x8CF: 84,
|
| 784 |
+
0x8D0: 84,
|
| 785 |
+
0x8D1: 84,
|
| 786 |
+
0x8D2: 84,
|
| 787 |
+
0x8D3: 84,
|
| 788 |
+
0x8D4: 84,
|
| 789 |
+
0x8D5: 84,
|
| 790 |
+
0x8D6: 84,
|
| 791 |
+
0x8D7: 84,
|
| 792 |
+
0x8D8: 84,
|
| 793 |
+
0x8D9: 84,
|
| 794 |
+
0x8DA: 84,
|
| 795 |
+
0x8DB: 84,
|
| 796 |
+
0x8DC: 84,
|
| 797 |
+
0x8DD: 84,
|
| 798 |
+
0x8DE: 84,
|
| 799 |
+
0x8DF: 84,
|
| 800 |
+
0x8E0: 84,
|
| 801 |
+
0x8E1: 84,
|
| 802 |
+
0x8E3: 84,
|
| 803 |
+
0x8E4: 84,
|
| 804 |
+
0x8E5: 84,
|
| 805 |
+
0x8E6: 84,
|
| 806 |
+
0x8E7: 84,
|
| 807 |
+
0x8E8: 84,
|
| 808 |
+
0x8E9: 84,
|
| 809 |
+
0x8EA: 84,
|
| 810 |
+
0x8EB: 84,
|
| 811 |
+
0x8EC: 84,
|
| 812 |
+
0x8ED: 84,
|
| 813 |
+
0x8EE: 84,
|
| 814 |
+
0x8EF: 84,
|
| 815 |
+
0x8F0: 84,
|
| 816 |
+
0x8F1: 84,
|
| 817 |
+
0x8F2: 84,
|
| 818 |
+
0x8F3: 84,
|
| 819 |
+
0x8F4: 84,
|
| 820 |
+
0x8F5: 84,
|
| 821 |
+
0x8F6: 84,
|
| 822 |
+
0x8F7: 84,
|
| 823 |
+
0x8F8: 84,
|
| 824 |
+
0x8F9: 84,
|
| 825 |
+
0x8FA: 84,
|
| 826 |
+
0x8FB: 84,
|
| 827 |
+
0x8FC: 84,
|
| 828 |
+
0x8FD: 84,
|
| 829 |
+
0x8FE: 84,
|
| 830 |
+
0x8FF: 84,
|
| 831 |
+
0x900: 84,
|
| 832 |
+
0x901: 84,
|
| 833 |
+
0x902: 84,
|
| 834 |
+
0x93A: 84,
|
| 835 |
+
0x93C: 84,
|
| 836 |
+
0x941: 84,
|
| 837 |
+
0x942: 84,
|
| 838 |
+
0x943: 84,
|
| 839 |
+
0x944: 84,
|
| 840 |
+
0x945: 84,
|
| 841 |
+
0x946: 84,
|
| 842 |
+
0x947: 84,
|
| 843 |
+
0x948: 84,
|
| 844 |
+
0x94D: 84,
|
| 845 |
+
0x951: 84,
|
| 846 |
+
0x952: 84,
|
| 847 |
+
0x953: 84,
|
| 848 |
+
0x954: 84,
|
| 849 |
+
0x955: 84,
|
| 850 |
+
0x956: 84,
|
| 851 |
+
0x957: 84,
|
| 852 |
+
0x962: 84,
|
| 853 |
+
0x963: 84,
|
| 854 |
+
0x981: 84,
|
| 855 |
+
0x9BC: 84,
|
| 856 |
+
0x9C1: 84,
|
| 857 |
+
0x9C2: 84,
|
| 858 |
+
0x9C3: 84,
|
| 859 |
+
0x9C4: 84,
|
| 860 |
+
0x9CD: 84,
|
| 861 |
+
0x9E2: 84,
|
| 862 |
+
0x9E3: 84,
|
| 863 |
+
0x9FE: 84,
|
| 864 |
+
0xA01: 84,
|
| 865 |
+
0xA02: 84,
|
| 866 |
+
0xA3C: 84,
|
| 867 |
+
0xA41: 84,
|
| 868 |
+
0xA42: 84,
|
| 869 |
+
0xA47: 84,
|
| 870 |
+
0xA48: 84,
|
| 871 |
+
0xA4B: 84,
|
| 872 |
+
0xA4C: 84,
|
| 873 |
+
0xA4D: 84,
|
| 874 |
+
0xA51: 84,
|
| 875 |
+
0xA70: 84,
|
| 876 |
+
0xA71: 84,
|
| 877 |
+
0xA75: 84,
|
| 878 |
+
0xA81: 84,
|
| 879 |
+
0xA82: 84,
|
| 880 |
+
0xABC: 84,
|
| 881 |
+
0xAC1: 84,
|
| 882 |
+
0xAC2: 84,
|
| 883 |
+
0xAC3: 84,
|
| 884 |
+
0xAC4: 84,
|
| 885 |
+
0xAC5: 84,
|
| 886 |
+
0xAC7: 84,
|
| 887 |
+
0xAC8: 84,
|
| 888 |
+
0xACD: 84,
|
| 889 |
+
0xAE2: 84,
|
| 890 |
+
0xAE3: 84,
|
| 891 |
+
0xAFA: 84,
|
| 892 |
+
0xAFB: 84,
|
| 893 |
+
0xAFC: 84,
|
| 894 |
+
0xAFD: 84,
|
| 895 |
+
0xAFE: 84,
|
| 896 |
+
0xAFF: 84,
|
| 897 |
+
0xB01: 84,
|
| 898 |
+
0xB3C: 84,
|
| 899 |
+
0xB3F: 84,
|
| 900 |
+
0xB41: 84,
|
| 901 |
+
0xB42: 84,
|
| 902 |
+
0xB43: 84,
|
| 903 |
+
0xB44: 84,
|
| 904 |
+
0xB4D: 84,
|
| 905 |
+
0xB55: 84,
|
| 906 |
+
0xB56: 84,
|
| 907 |
+
0xB62: 84,
|
| 908 |
+
0xB63: 84,
|
| 909 |
+
0xB82: 84,
|
| 910 |
+
0xBC0: 84,
|
| 911 |
+
0xBCD: 84,
|
| 912 |
+
0xC00: 84,
|
| 913 |
+
0xC04: 84,
|
| 914 |
+
0xC3C: 84,
|
| 915 |
+
0xC3E: 84,
|
| 916 |
+
0xC3F: 84,
|
| 917 |
+
0xC40: 84,
|
| 918 |
+
0xC46: 84,
|
| 919 |
+
0xC47: 84,
|
| 920 |
+
0xC48: 84,
|
| 921 |
+
0xC4A: 84,
|
| 922 |
+
0xC4B: 84,
|
| 923 |
+
0xC4C: 84,
|
| 924 |
+
0xC4D: 84,
|
| 925 |
+
0xC55: 84,
|
| 926 |
+
0xC56: 84,
|
| 927 |
+
0xC62: 84,
|
| 928 |
+
0xC63: 84,
|
| 929 |
+
0xC81: 84,
|
| 930 |
+
0xCBC: 84,
|
| 931 |
+
0xCBF: 84,
|
| 932 |
+
0xCC6: 84,
|
| 933 |
+
0xCCC: 84,
|
| 934 |
+
0xCCD: 84,
|
| 935 |
+
0xCE2: 84,
|
| 936 |
+
0xCE3: 84,
|
| 937 |
+
0xD00: 84,
|
| 938 |
+
0xD01: 84,
|
| 939 |
+
0xD3B: 84,
|
| 940 |
+
0xD3C: 84,
|
| 941 |
+
0xD41: 84,
|
| 942 |
+
0xD42: 84,
|
| 943 |
+
0xD43: 84,
|
| 944 |
+
0xD44: 84,
|
| 945 |
+
0xD4D: 84,
|
| 946 |
+
0xD62: 84,
|
| 947 |
+
0xD63: 84,
|
| 948 |
+
0xD81: 84,
|
| 949 |
+
0xDCA: 84,
|
| 950 |
+
0xDD2: 84,
|
| 951 |
+
0xDD3: 84,
|
| 952 |
+
0xDD4: 84,
|
| 953 |
+
0xDD6: 84,
|
| 954 |
+
0xE31: 84,
|
| 955 |
+
0xE34: 84,
|
| 956 |
+
0xE35: 84,
|
| 957 |
+
0xE36: 84,
|
| 958 |
+
0xE37: 84,
|
| 959 |
+
0xE38: 84,
|
| 960 |
+
0xE39: 84,
|
| 961 |
+
0xE3A: 84,
|
| 962 |
+
0xE47: 84,
|
| 963 |
+
0xE48: 84,
|
| 964 |
+
0xE49: 84,
|
| 965 |
+
0xE4A: 84,
|
| 966 |
+
0xE4B: 84,
|
| 967 |
+
0xE4C: 84,
|
| 968 |
+
0xE4D: 84,
|
| 969 |
+
0xE4E: 84,
|
| 970 |
+
0xEB1: 84,
|
| 971 |
+
0xEB4: 84,
|
| 972 |
+
0xEB5: 84,
|
| 973 |
+
0xEB6: 84,
|
| 974 |
+
0xEB7: 84,
|
| 975 |
+
0xEB8: 84,
|
| 976 |
+
0xEB9: 84,
|
| 977 |
+
0xEBA: 84,
|
| 978 |
+
0xEBB: 84,
|
| 979 |
+
0xEBC: 84,
|
| 980 |
+
0xEC8: 84,
|
| 981 |
+
0xEC9: 84,
|
| 982 |
+
0xECA: 84,
|
| 983 |
+
0xECB: 84,
|
| 984 |
+
0xECC: 84,
|
| 985 |
+
0xECD: 84,
|
| 986 |
+
0xECE: 84,
|
| 987 |
+
0xF18: 84,
|
| 988 |
+
0xF19: 84,
|
| 989 |
+
0xF35: 84,
|
| 990 |
+
0xF37: 84,
|
| 991 |
+
0xF39: 84,
|
| 992 |
+
0xF71: 84,
|
| 993 |
+
0xF72: 84,
|
| 994 |
+
0xF73: 84,
|
| 995 |
+
0xF74: 84,
|
| 996 |
+
0xF75: 84,
|
| 997 |
+
0xF76: 84,
|
| 998 |
+
0xF77: 84,
|
| 999 |
+
0xF78: 84,
|
| 1000 |
+
0xF79: 84,
|
| 1001 |
+
0xF7A: 84,
|
| 1002 |
+
0xF7B: 84,
|
| 1003 |
+
0xF7C: 84,
|
| 1004 |
+
0xF7D: 84,
|
| 1005 |
+
0xF7E: 84,
|
| 1006 |
+
0xF80: 84,
|
| 1007 |
+
0xF81: 84,
|
| 1008 |
+
0xF82: 84,
|
| 1009 |
+
0xF83: 84,
|
| 1010 |
+
0xF84: 84,
|
| 1011 |
+
0xF86: 84,
|
| 1012 |
+
0xF87: 84,
|
| 1013 |
+
0xF8D: 84,
|
| 1014 |
+
0xF8E: 84,
|
| 1015 |
+
0xF8F: 84,
|
| 1016 |
+
0xF90: 84,
|
| 1017 |
+
0xF91: 84,
|
| 1018 |
+
0xF92: 84,
|
| 1019 |
+
0xF93: 84,
|
| 1020 |
+
0xF94: 84,
|
| 1021 |
+
0xF95: 84,
|
| 1022 |
+
0xF96: 84,
|
| 1023 |
+
0xF97: 84,
|
| 1024 |
+
0xF99: 84,
|
| 1025 |
+
0xF9A: 84,
|
| 1026 |
+
0xF9B: 84,
|
| 1027 |
+
0xF9C: 84,
|
| 1028 |
+
0xF9D: 84,
|
| 1029 |
+
0xF9E: 84,
|
| 1030 |
+
0xF9F: 84,
|
| 1031 |
+
0xFA0: 84,
|
| 1032 |
+
0xFA1: 84,
|
| 1033 |
+
0xFA2: 84,
|
| 1034 |
+
0xFA3: 84,
|
| 1035 |
+
0xFA4: 84,
|
| 1036 |
+
0xFA5: 84,
|
| 1037 |
+
0xFA6: 84,
|
| 1038 |
+
0xFA7: 84,
|
| 1039 |
+
0xFA8: 84,
|
| 1040 |
+
0xFA9: 84,
|
| 1041 |
+
0xFAA: 84,
|
| 1042 |
+
0xFAB: 84,
|
| 1043 |
+
0xFAC: 84,
|
| 1044 |
+
0xFAD: 84,
|
| 1045 |
+
0xFAE: 84,
|
| 1046 |
+
0xFAF: 84,
|
| 1047 |
+
0xFB0: 84,
|
| 1048 |
+
0xFB1: 84,
|
| 1049 |
+
0xFB2: 84,
|
| 1050 |
+
0xFB3: 84,
|
| 1051 |
+
0xFB4: 84,
|
| 1052 |
+
0xFB5: 84,
|
| 1053 |
+
0xFB6: 84,
|
| 1054 |
+
0xFB7: 84,
|
| 1055 |
+
0xFB8: 84,
|
| 1056 |
+
0xFB9: 84,
|
| 1057 |
+
0xFBA: 84,
|
| 1058 |
+
0xFBB: 84,
|
| 1059 |
+
0xFBC: 84,
|
| 1060 |
+
0xFC6: 84,
|
| 1061 |
+
0x102D: 84,
|
| 1062 |
+
0x102E: 84,
|
| 1063 |
+
0x102F: 84,
|
| 1064 |
+
0x1030: 84,
|
| 1065 |
+
0x1032: 84,
|
| 1066 |
+
0x1033: 84,
|
| 1067 |
+
0x1034: 84,
|
| 1068 |
+
0x1035: 84,
|
| 1069 |
+
0x1036: 84,
|
| 1070 |
+
0x1037: 84,
|
| 1071 |
+
0x1039: 84,
|
| 1072 |
+
0x103A: 84,
|
| 1073 |
+
0x103D: 84,
|
| 1074 |
+
0x103E: 84,
|
| 1075 |
+
0x1058: 84,
|
| 1076 |
+
0x1059: 84,
|
| 1077 |
+
0x105E: 84,
|
| 1078 |
+
0x105F: 84,
|
| 1079 |
+
0x1060: 84,
|
| 1080 |
+
0x1071: 84,
|
| 1081 |
+
0x1072: 84,
|
| 1082 |
+
0x1073: 84,
|
| 1083 |
+
0x1074: 84,
|
| 1084 |
+
0x1082: 84,
|
| 1085 |
+
0x1085: 84,
|
| 1086 |
+
0x1086: 84,
|
| 1087 |
+
0x108D: 84,
|
| 1088 |
+
0x109D: 84,
|
| 1089 |
+
0x135D: 84,
|
| 1090 |
+
0x135E: 84,
|
| 1091 |
+
0x135F: 84,
|
| 1092 |
+
0x1712: 84,
|
| 1093 |
+
0x1713: 84,
|
| 1094 |
+
0x1714: 84,
|
| 1095 |
+
0x1732: 84,
|
| 1096 |
+
0x1733: 84,
|
| 1097 |
+
0x1752: 84,
|
| 1098 |
+
0x1753: 84,
|
| 1099 |
+
0x1772: 84,
|
| 1100 |
+
0x1773: 84,
|
| 1101 |
+
0x17B4: 84,
|
| 1102 |
+
0x17B5: 84,
|
| 1103 |
+
0x17B7: 84,
|
| 1104 |
+
0x17B8: 84,
|
| 1105 |
+
0x17B9: 84,
|
| 1106 |
+
0x17BA: 84,
|
| 1107 |
+
0x17BB: 84,
|
| 1108 |
+
0x17BC: 84,
|
| 1109 |
+
0x17BD: 84,
|
| 1110 |
+
0x17C6: 84,
|
| 1111 |
+
0x17C9: 84,
|
| 1112 |
+
0x17CA: 84,
|
| 1113 |
+
0x17CB: 84,
|
| 1114 |
+
0x17CC: 84,
|
| 1115 |
+
0x17CD: 84,
|
| 1116 |
+
0x17CE: 84,
|
| 1117 |
+
0x17CF: 84,
|
| 1118 |
+
0x17D0: 84,
|
| 1119 |
+
0x17D1: 84,
|
| 1120 |
+
0x17D2: 84,
|
| 1121 |
+
0x17D3: 84,
|
| 1122 |
+
0x17DD: 84,
|
| 1123 |
+
0x1807: 68,
|
| 1124 |
+
0x180A: 67,
|
| 1125 |
+
0x180B: 84,
|
| 1126 |
+
0x180C: 84,
|
| 1127 |
+
0x180D: 84,
|
| 1128 |
+
0x180F: 84,
|
| 1129 |
+
0x1820: 68,
|
| 1130 |
+
0x1821: 68,
|
| 1131 |
+
0x1822: 68,
|
| 1132 |
+
0x1823: 68,
|
| 1133 |
+
0x1824: 68,
|
| 1134 |
+
0x1825: 68,
|
| 1135 |
+
0x1826: 68,
|
| 1136 |
+
0x1827: 68,
|
| 1137 |
+
0x1828: 68,
|
| 1138 |
+
0x1829: 68,
|
| 1139 |
+
0x182A: 68,
|
| 1140 |
+
0x182B: 68,
|
| 1141 |
+
0x182C: 68,
|
| 1142 |
+
0x182D: 68,
|
| 1143 |
+
0x182E: 68,
|
| 1144 |
+
0x182F: 68,
|
| 1145 |
+
0x1830: 68,
|
| 1146 |
+
0x1831: 68,
|
| 1147 |
+
0x1832: 68,
|
| 1148 |
+
0x1833: 68,
|
| 1149 |
+
0x1834: 68,
|
| 1150 |
+
0x1835: 68,
|
| 1151 |
+
0x1836: 68,
|
| 1152 |
+
0x1837: 68,
|
| 1153 |
+
0x1838: 68,
|
| 1154 |
+
0x1839: 68,
|
| 1155 |
+
0x183A: 68,
|
| 1156 |
+
0x183B: 68,
|
| 1157 |
+
0x183C: 68,
|
| 1158 |
+
0x183D: 68,
|
| 1159 |
+
0x183E: 68,
|
| 1160 |
+
0x183F: 68,
|
| 1161 |
+
0x1840: 68,
|
| 1162 |
+
0x1841: 68,
|
| 1163 |
+
0x1842: 68,
|
| 1164 |
+
0x1843: 68,
|
| 1165 |
+
0x1844: 68,
|
| 1166 |
+
0x1845: 68,
|
| 1167 |
+
0x1846: 68,
|
| 1168 |
+
0x1847: 68,
|
| 1169 |
+
0x1848: 68,
|
| 1170 |
+
0x1849: 68,
|
| 1171 |
+
0x184A: 68,
|
| 1172 |
+
0x184B: 68,
|
| 1173 |
+
0x184C: 68,
|
| 1174 |
+
0x184D: 68,
|
| 1175 |
+
0x184E: 68,
|
| 1176 |
+
0x184F: 68,
|
| 1177 |
+
0x1850: 68,
|
| 1178 |
+
0x1851: 68,
|
| 1179 |
+
0x1852: 68,
|
| 1180 |
+
0x1853: 68,
|
| 1181 |
+
0x1854: 68,
|
| 1182 |
+
0x1855: 68,
|
| 1183 |
+
0x1856: 68,
|
| 1184 |
+
0x1857: 68,
|
| 1185 |
+
0x1858: 68,
|
| 1186 |
+
0x1859: 68,
|
| 1187 |
+
0x185A: 68,
|
| 1188 |
+
0x185B: 68,
|
| 1189 |
+
0x185C: 68,
|
| 1190 |
+
0x185D: 68,
|
| 1191 |
+
0x185E: 68,
|
| 1192 |
+
0x185F: 68,
|
| 1193 |
+
0x1860: 68,
|
| 1194 |
+
0x1861: 68,
|
| 1195 |
+
0x1862: 68,
|
| 1196 |
+
0x1863: 68,
|
| 1197 |
+
0x1864: 68,
|
| 1198 |
+
0x1865: 68,
|
| 1199 |
+
0x1866: 68,
|
| 1200 |
+
0x1867: 68,
|
| 1201 |
+
0x1868: 68,
|
| 1202 |
+
0x1869: 68,
|
| 1203 |
+
0x186A: 68,
|
| 1204 |
+
0x186B: 68,
|
| 1205 |
+
0x186C: 68,
|
| 1206 |
+
0x186D: 68,
|
| 1207 |
+
0x186E: 68,
|
| 1208 |
+
0x186F: 68,
|
| 1209 |
+
0x1870: 68,
|
| 1210 |
+
0x1871: 68,
|
| 1211 |
+
0x1872: 68,
|
| 1212 |
+
0x1873: 68,
|
| 1213 |
+
0x1874: 68,
|
| 1214 |
+
0x1875: 68,
|
| 1215 |
+
0x1876: 68,
|
| 1216 |
+
0x1877: 68,
|
| 1217 |
+
0x1878: 68,
|
| 1218 |
+
0x1885: 84,
|
| 1219 |
+
0x1886: 84,
|
| 1220 |
+
0x1887: 68,
|
| 1221 |
+
0x1888: 68,
|
| 1222 |
+
0x1889: 68,
|
| 1223 |
+
0x188A: 68,
|
| 1224 |
+
0x188B: 68,
|
| 1225 |
+
0x188C: 68,
|
| 1226 |
+
0x188D: 68,
|
| 1227 |
+
0x188E: 68,
|
| 1228 |
+
0x188F: 68,
|
| 1229 |
+
0x1890: 68,
|
| 1230 |
+
0x1891: 68,
|
| 1231 |
+
0x1892: 68,
|
| 1232 |
+
0x1893: 68,
|
| 1233 |
+
0x1894: 68,
|
| 1234 |
+
0x1895: 68,
|
| 1235 |
+
0x1896: 68,
|
| 1236 |
+
0x1897: 68,
|
| 1237 |
+
0x1898: 68,
|
| 1238 |
+
0x1899: 68,
|
| 1239 |
+
0x189A: 68,
|
| 1240 |
+
0x189B: 68,
|
| 1241 |
+
0x189C: 68,
|
| 1242 |
+
0x189D: 68,
|
| 1243 |
+
0x189E: 68,
|
| 1244 |
+
0x189F: 68,
|
| 1245 |
+
0x18A0: 68,
|
| 1246 |
+
0x18A1: 68,
|
| 1247 |
+
0x18A2: 68,
|
| 1248 |
+
0x18A3: 68,
|
| 1249 |
+
0x18A4: 68,
|
| 1250 |
+
0x18A5: 68,
|
| 1251 |
+
0x18A6: 68,
|
| 1252 |
+
0x18A7: 68,
|
| 1253 |
+
0x18A8: 68,
|
| 1254 |
+
0x18A9: 84,
|
| 1255 |
+
0x18AA: 68,
|
| 1256 |
+
0x1920: 84,
|
| 1257 |
+
0x1921: 84,
|
| 1258 |
+
0x1922: 84,
|
| 1259 |
+
0x1927: 84,
|
| 1260 |
+
0x1928: 84,
|
| 1261 |
+
0x1932: 84,
|
| 1262 |
+
0x1939: 84,
|
| 1263 |
+
0x193A: 84,
|
| 1264 |
+
0x193B: 84,
|
| 1265 |
+
0x1A17: 84,
|
| 1266 |
+
0x1A18: 84,
|
| 1267 |
+
0x1A1B: 84,
|
| 1268 |
+
0x1A56: 84,
|
| 1269 |
+
0x1A58: 84,
|
| 1270 |
+
0x1A59: 84,
|
| 1271 |
+
0x1A5A: 84,
|
| 1272 |
+
0x1A5B: 84,
|
| 1273 |
+
0x1A5C: 84,
|
| 1274 |
+
0x1A5D: 84,
|
| 1275 |
+
0x1A5E: 84,
|
| 1276 |
+
0x1A60: 84,
|
| 1277 |
+
0x1A62: 84,
|
| 1278 |
+
0x1A65: 84,
|
| 1279 |
+
0x1A66: 84,
|
| 1280 |
+
0x1A67: 84,
|
| 1281 |
+
0x1A68: 84,
|
| 1282 |
+
0x1A69: 84,
|
| 1283 |
+
0x1A6A: 84,
|
| 1284 |
+
0x1A6B: 84,
|
| 1285 |
+
0x1A6C: 84,
|
| 1286 |
+
0x1A73: 84,
|
| 1287 |
+
0x1A74: 84,
|
| 1288 |
+
0x1A75: 84,
|
| 1289 |
+
0x1A76: 84,
|
| 1290 |
+
0x1A77: 84,
|
| 1291 |
+
0x1A78: 84,
|
| 1292 |
+
0x1A79: 84,
|
| 1293 |
+
0x1A7A: 84,
|
| 1294 |
+
0x1A7B: 84,
|
| 1295 |
+
0x1A7C: 84,
|
| 1296 |
+
0x1A7F: 84,
|
| 1297 |
+
0x1AB0: 84,
|
| 1298 |
+
0x1AB1: 84,
|
| 1299 |
+
0x1AB2: 84,
|
| 1300 |
+
0x1AB3: 84,
|
| 1301 |
+
0x1AB4: 84,
|
| 1302 |
+
0x1AB5: 84,
|
| 1303 |
+
0x1AB6: 84,
|
| 1304 |
+
0x1AB7: 84,
|
| 1305 |
+
0x1AB8: 84,
|
| 1306 |
+
0x1AB9: 84,
|
| 1307 |
+
0x1ABA: 84,
|
| 1308 |
+
0x1ABB: 84,
|
| 1309 |
+
0x1ABC: 84,
|
| 1310 |
+
0x1ABD: 84,
|
| 1311 |
+
0x1ABE: 84,
|
| 1312 |
+
0x1ABF: 84,
|
| 1313 |
+
0x1AC0: 84,
|
| 1314 |
+
0x1AC1: 84,
|
| 1315 |
+
0x1AC2: 84,
|
| 1316 |
+
0x1AC3: 84,
|
| 1317 |
+
0x1AC4: 84,
|
| 1318 |
+
0x1AC5: 84,
|
| 1319 |
+
0x1AC6: 84,
|
| 1320 |
+
0x1AC7: 84,
|
| 1321 |
+
0x1AC8: 84,
|
| 1322 |
+
0x1AC9: 84,
|
| 1323 |
+
0x1ACA: 84,
|
| 1324 |
+
0x1ACB: 84,
|
| 1325 |
+
0x1ACC: 84,
|
| 1326 |
+
0x1ACD: 84,
|
| 1327 |
+
0x1ACE: 84,
|
| 1328 |
+
0x1B00: 84,
|
| 1329 |
+
0x1B01: 84,
|
| 1330 |
+
0x1B02: 84,
|
| 1331 |
+
0x1B03: 84,
|
| 1332 |
+
0x1B34: 84,
|
| 1333 |
+
0x1B36: 84,
|
| 1334 |
+
0x1B37: 84,
|
| 1335 |
+
0x1B38: 84,
|
| 1336 |
+
0x1B39: 84,
|
| 1337 |
+
0x1B3A: 84,
|
| 1338 |
+
0x1B3C: 84,
|
| 1339 |
+
0x1B42: 84,
|
| 1340 |
+
0x1B6B: 84,
|
| 1341 |
+
0x1B6C: 84,
|
| 1342 |
+
0x1B6D: 84,
|
| 1343 |
+
0x1B6E: 84,
|
| 1344 |
+
0x1B6F: 84,
|
| 1345 |
+
0x1B70: 84,
|
| 1346 |
+
0x1B71: 84,
|
| 1347 |
+
0x1B72: 84,
|
| 1348 |
+
0x1B73: 84,
|
| 1349 |
+
0x1B80: 84,
|
| 1350 |
+
0x1B81: 84,
|
| 1351 |
+
0x1BA2: 84,
|
| 1352 |
+
0x1BA3: 84,
|
| 1353 |
+
0x1BA4: 84,
|
| 1354 |
+
0x1BA5: 84,
|
| 1355 |
+
0x1BA8: 84,
|
| 1356 |
+
0x1BA9: 84,
|
| 1357 |
+
0x1BAB: 84,
|
| 1358 |
+
0x1BAC: 84,
|
| 1359 |
+
0x1BAD: 84,
|
| 1360 |
+
0x1BE6: 84,
|
| 1361 |
+
0x1BE8: 84,
|
| 1362 |
+
0x1BE9: 84,
|
| 1363 |
+
0x1BED: 84,
|
| 1364 |
+
0x1BEF: 84,
|
| 1365 |
+
0x1BF0: 84,
|
| 1366 |
+
0x1BF1: 84,
|
| 1367 |
+
0x1C2C: 84,
|
| 1368 |
+
0x1C2D: 84,
|
| 1369 |
+
0x1C2E: 84,
|
| 1370 |
+
0x1C2F: 84,
|
| 1371 |
+
0x1C30: 84,
|
| 1372 |
+
0x1C31: 84,
|
| 1373 |
+
0x1C32: 84,
|
| 1374 |
+
0x1C33: 84,
|
| 1375 |
+
0x1C36: 84,
|
| 1376 |
+
0x1C37: 84,
|
| 1377 |
+
0x1CD0: 84,
|
| 1378 |
+
0x1CD1: 84,
|
| 1379 |
+
0x1CD2: 84,
|
| 1380 |
+
0x1CD4: 84,
|
| 1381 |
+
0x1CD5: 84,
|
| 1382 |
+
0x1CD6: 84,
|
| 1383 |
+
0x1CD7: 84,
|
| 1384 |
+
0x1CD8: 84,
|
| 1385 |
+
0x1CD9: 84,
|
| 1386 |
+
0x1CDA: 84,
|
| 1387 |
+
0x1CDB: 84,
|
| 1388 |
+
0x1CDC: 84,
|
| 1389 |
+
0x1CDD: 84,
|
| 1390 |
+
0x1CDE: 84,
|
| 1391 |
+
0x1CDF: 84,
|
| 1392 |
+
0x1CE0: 84,
|
| 1393 |
+
0x1CE2: 84,
|
| 1394 |
+
0x1CE3: 84,
|
| 1395 |
+
0x1CE4: 84,
|
| 1396 |
+
0x1CE5: 84,
|
| 1397 |
+
0x1CE6: 84,
|
| 1398 |
+
0x1CE7: 84,
|
| 1399 |
+
0x1CE8: 84,
|
| 1400 |
+
0x1CED: 84,
|
| 1401 |
+
0x1CF4: 84,
|
| 1402 |
+
0x1CF8: 84,
|
| 1403 |
+
0x1CF9: 84,
|
| 1404 |
+
0x1DC0: 84,
|
| 1405 |
+
0x1DC1: 84,
|
| 1406 |
+
0x1DC2: 84,
|
| 1407 |
+
0x1DC3: 84,
|
| 1408 |
+
0x1DC4: 84,
|
| 1409 |
+
0x1DC5: 84,
|
| 1410 |
+
0x1DC6: 84,
|
| 1411 |
+
0x1DC7: 84,
|
| 1412 |
+
0x1DC8: 84,
|
| 1413 |
+
0x1DC9: 84,
|
| 1414 |
+
0x1DCA: 84,
|
| 1415 |
+
0x1DCB: 84,
|
| 1416 |
+
0x1DCC: 84,
|
| 1417 |
+
0x1DCD: 84,
|
| 1418 |
+
0x1DCE: 84,
|
| 1419 |
+
0x1DCF: 84,
|
| 1420 |
+
0x1DD0: 84,
|
| 1421 |
+
0x1DD1: 84,
|
| 1422 |
+
0x1DD2: 84,
|
| 1423 |
+
0x1DD3: 84,
|
| 1424 |
+
0x1DD4: 84,
|
| 1425 |
+
0x1DD5: 84,
|
| 1426 |
+
0x1DD6: 84,
|
| 1427 |
+
0x1DD7: 84,
|
| 1428 |
+
0x1DD8: 84,
|
| 1429 |
+
0x1DD9: 84,
|
| 1430 |
+
0x1DDA: 84,
|
| 1431 |
+
0x1DDB: 84,
|
| 1432 |
+
0x1DDC: 84,
|
| 1433 |
+
0x1DDD: 84,
|
| 1434 |
+
0x1DDE: 84,
|
| 1435 |
+
0x1DDF: 84,
|
| 1436 |
+
0x1DE0: 84,
|
| 1437 |
+
0x1DE1: 84,
|
| 1438 |
+
0x1DE2: 84,
|
| 1439 |
+
0x1DE3: 84,
|
| 1440 |
+
0x1DE4: 84,
|
| 1441 |
+
0x1DE5: 84,
|
| 1442 |
+
0x1DE6: 84,
|
| 1443 |
+
0x1DE7: 84,
|
| 1444 |
+
0x1DE8: 84,
|
| 1445 |
+
0x1DE9: 84,
|
| 1446 |
+
0x1DEA: 84,
|
| 1447 |
+
0x1DEB: 84,
|
| 1448 |
+
0x1DEC: 84,
|
| 1449 |
+
0x1DED: 84,
|
| 1450 |
+
0x1DEE: 84,
|
| 1451 |
+
0x1DEF: 84,
|
| 1452 |
+
0x1DF0: 84,
|
| 1453 |
+
0x1DF1: 84,
|
| 1454 |
+
0x1DF2: 84,
|
| 1455 |
+
0x1DF3: 84,
|
| 1456 |
+
0x1DF4: 84,
|
| 1457 |
+
0x1DF5: 84,
|
| 1458 |
+
0x1DF6: 84,
|
| 1459 |
+
0x1DF7: 84,
|
| 1460 |
+
0x1DF8: 84,
|
| 1461 |
+
0x1DF9: 84,
|
| 1462 |
+
0x1DFA: 84,
|
| 1463 |
+
0x1DFB: 84,
|
| 1464 |
+
0x1DFC: 84,
|
| 1465 |
+
0x1DFD: 84,
|
| 1466 |
+
0x1DFE: 84,
|
| 1467 |
+
0x1DFF: 84,
|
| 1468 |
+
0x200B: 84,
|
| 1469 |
+
0x200D: 67,
|
| 1470 |
+
0x200E: 84,
|
| 1471 |
+
0x200F: 84,
|
| 1472 |
+
0x202A: 84,
|
| 1473 |
+
0x202B: 84,
|
| 1474 |
+
0x202C: 84,
|
| 1475 |
+
0x202D: 84,
|
| 1476 |
+
0x202E: 84,
|
| 1477 |
+
0x2060: 84,
|
| 1478 |
+
0x2061: 84,
|
| 1479 |
+
0x2062: 84,
|
| 1480 |
+
0x2063: 84,
|
| 1481 |
+
0x2064: 84,
|
| 1482 |
+
0x206A: 84,
|
| 1483 |
+
0x206B: 84,
|
| 1484 |
+
0x206C: 84,
|
| 1485 |
+
0x206D: 84,
|
| 1486 |
+
0x206E: 84,
|
| 1487 |
+
0x206F: 84,
|
| 1488 |
+
0x20D0: 84,
|
| 1489 |
+
0x20D1: 84,
|
| 1490 |
+
0x20D2: 84,
|
| 1491 |
+
0x20D3: 84,
|
| 1492 |
+
0x20D4: 84,
|
| 1493 |
+
0x20D5: 84,
|
| 1494 |
+
0x20D6: 84,
|
| 1495 |
+
0x20D7: 84,
|
| 1496 |
+
0x20D8: 84,
|
| 1497 |
+
0x20D9: 84,
|
| 1498 |
+
0x20DA: 84,
|
| 1499 |
+
0x20DB: 84,
|
| 1500 |
+
0x20DC: 84,
|
| 1501 |
+
0x20DD: 84,
|
| 1502 |
+
0x20DE: 84,
|
| 1503 |
+
0x20DF: 84,
|
| 1504 |
+
0x20E0: 84,
|
| 1505 |
+
0x20E1: 84,
|
| 1506 |
+
0x20E2: 84,
|
| 1507 |
+
0x20E3: 84,
|
| 1508 |
+
0x20E4: 84,
|
| 1509 |
+
0x20E5: 84,
|
| 1510 |
+
0x20E6: 84,
|
| 1511 |
+
0x20E7: 84,
|
| 1512 |
+
0x20E8: 84,
|
| 1513 |
+
0x20E9: 84,
|
| 1514 |
+
0x20EA: 84,
|
| 1515 |
+
0x20EB: 84,
|
| 1516 |
+
0x20EC: 84,
|
| 1517 |
+
0x20ED: 84,
|
| 1518 |
+
0x20EE: 84,
|
| 1519 |
+
0x20EF: 84,
|
| 1520 |
+
0x20F0: 84,
|
| 1521 |
+
0x2CEF: 84,
|
| 1522 |
+
0x2CF0: 84,
|
| 1523 |
+
0x2CF1: 84,
|
| 1524 |
+
0x2D7F: 84,
|
| 1525 |
+
0x2DE0: 84,
|
| 1526 |
+
0x2DE1: 84,
|
| 1527 |
+
0x2DE2: 84,
|
| 1528 |
+
0x2DE3: 84,
|
| 1529 |
+
0x2DE4: 84,
|
| 1530 |
+
0x2DE5: 84,
|
| 1531 |
+
0x2DE6: 84,
|
| 1532 |
+
0x2DE7: 84,
|
| 1533 |
+
0x2DE8: 84,
|
| 1534 |
+
0x2DE9: 84,
|
| 1535 |
+
0x2DEA: 84,
|
| 1536 |
+
0x2DEB: 84,
|
| 1537 |
+
0x2DEC: 84,
|
| 1538 |
+
0x2DED: 84,
|
| 1539 |
+
0x2DEE: 84,
|
| 1540 |
+
0x2DEF: 84,
|
| 1541 |
+
0x2DF0: 84,
|
| 1542 |
+
0x2DF1: 84,
|
| 1543 |
+
0x2DF2: 84,
|
| 1544 |
+
0x2DF3: 84,
|
| 1545 |
+
0x2DF4: 84,
|
| 1546 |
+
0x2DF5: 84,
|
| 1547 |
+
0x2DF6: 84,
|
| 1548 |
+
0x2DF7: 84,
|
| 1549 |
+
0x2DF8: 84,
|
| 1550 |
+
0x2DF9: 84,
|
| 1551 |
+
0x2DFA: 84,
|
| 1552 |
+
0x2DFB: 84,
|
| 1553 |
+
0x2DFC: 84,
|
| 1554 |
+
0x2DFD: 84,
|
| 1555 |
+
0x2DFE: 84,
|
| 1556 |
+
0x2DFF: 84,
|
| 1557 |
+
0x302A: 84,
|
| 1558 |
+
0x302B: 84,
|
| 1559 |
+
0x302C: 84,
|
| 1560 |
+
0x302D: 84,
|
| 1561 |
+
0x3099: 84,
|
| 1562 |
+
0x309A: 84,
|
| 1563 |
+
0xA66F: 84,
|
| 1564 |
+
0xA670: 84,
|
| 1565 |
+
0xA671: 84,
|
| 1566 |
+
0xA672: 84,
|
| 1567 |
+
0xA674: 84,
|
| 1568 |
+
0xA675: 84,
|
| 1569 |
+
0xA676: 84,
|
| 1570 |
+
0xA677: 84,
|
| 1571 |
+
0xA678: 84,
|
| 1572 |
+
0xA679: 84,
|
| 1573 |
+
0xA67A: 84,
|
| 1574 |
+
0xA67B: 84,
|
| 1575 |
+
0xA67C: 84,
|
| 1576 |
+
0xA67D: 84,
|
| 1577 |
+
0xA69E: 84,
|
| 1578 |
+
0xA69F: 84,
|
| 1579 |
+
0xA6F0: 84,
|
| 1580 |
+
0xA6F1: 84,
|
| 1581 |
+
0xA802: 84,
|
| 1582 |
+
0xA806: 84,
|
| 1583 |
+
0xA80B: 84,
|
| 1584 |
+
0xA825: 84,
|
| 1585 |
+
0xA826: 84,
|
| 1586 |
+
0xA82C: 84,
|
| 1587 |
+
0xA840: 68,
|
| 1588 |
+
0xA841: 68,
|
| 1589 |
+
0xA842: 68,
|
| 1590 |
+
0xA843: 68,
|
| 1591 |
+
0xA844: 68,
|
| 1592 |
+
0xA845: 68,
|
| 1593 |
+
0xA846: 68,
|
| 1594 |
+
0xA847: 68,
|
| 1595 |
+
0xA848: 68,
|
| 1596 |
+
0xA849: 68,
|
| 1597 |
+
0xA84A: 68,
|
| 1598 |
+
0xA84B: 68,
|
| 1599 |
+
0xA84C: 68,
|
| 1600 |
+
0xA84D: 68,
|
| 1601 |
+
0xA84E: 68,
|
| 1602 |
+
0xA84F: 68,
|
| 1603 |
+
0xA850: 68,
|
| 1604 |
+
0xA851: 68,
|
| 1605 |
+
0xA852: 68,
|
| 1606 |
+
0xA853: 68,
|
| 1607 |
+
0xA854: 68,
|
| 1608 |
+
0xA855: 68,
|
| 1609 |
+
0xA856: 68,
|
| 1610 |
+
0xA857: 68,
|
| 1611 |
+
0xA858: 68,
|
| 1612 |
+
0xA859: 68,
|
| 1613 |
+
0xA85A: 68,
|
| 1614 |
+
0xA85B: 68,
|
| 1615 |
+
0xA85C: 68,
|
| 1616 |
+
0xA85D: 68,
|
| 1617 |
+
0xA85E: 68,
|
| 1618 |
+
0xA85F: 68,
|
| 1619 |
+
0xA860: 68,
|
| 1620 |
+
0xA861: 68,
|
| 1621 |
+
0xA862: 68,
|
| 1622 |
+
0xA863: 68,
|
| 1623 |
+
0xA864: 68,
|
| 1624 |
+
0xA865: 68,
|
| 1625 |
+
0xA866: 68,
|
| 1626 |
+
0xA867: 68,
|
| 1627 |
+
0xA868: 68,
|
| 1628 |
+
0xA869: 68,
|
| 1629 |
+
0xA86A: 68,
|
| 1630 |
+
0xA86B: 68,
|
| 1631 |
+
0xA86C: 68,
|
| 1632 |
+
0xA86D: 68,
|
| 1633 |
+
0xA86E: 68,
|
| 1634 |
+
0xA86F: 68,
|
| 1635 |
+
0xA870: 68,
|
| 1636 |
+
0xA871: 68,
|
| 1637 |
+
0xA872: 76,
|
| 1638 |
+
0xA8C4: 84,
|
| 1639 |
+
0xA8C5: 84,
|
| 1640 |
+
0xA8E0: 84,
|
| 1641 |
+
0xA8E1: 84,
|
| 1642 |
+
0xA8E2: 84,
|
| 1643 |
+
0xA8E3: 84,
|
| 1644 |
+
0xA8E4: 84,
|
| 1645 |
+
0xA8E5: 84,
|
| 1646 |
+
0xA8E6: 84,
|
| 1647 |
+
0xA8E7: 84,
|
| 1648 |
+
0xA8E8: 84,
|
| 1649 |
+
0xA8E9: 84,
|
| 1650 |
+
0xA8EA: 84,
|
| 1651 |
+
0xA8EB: 84,
|
| 1652 |
+
0xA8EC: 84,
|
| 1653 |
+
0xA8ED: 84,
|
| 1654 |
+
0xA8EE: 84,
|
| 1655 |
+
0xA8EF: 84,
|
| 1656 |
+
0xA8F0: 84,
|
| 1657 |
+
0xA8F1: 84,
|
| 1658 |
+
0xA8FF: 84,
|
| 1659 |
+
0xA926: 84,
|
| 1660 |
+
0xA927: 84,
|
| 1661 |
+
0xA928: 84,
|
| 1662 |
+
0xA929: 84,
|
| 1663 |
+
0xA92A: 84,
|
| 1664 |
+
0xA92B: 84,
|
| 1665 |
+
0xA92C: 84,
|
| 1666 |
+
0xA92D: 84,
|
| 1667 |
+
0xA947: 84,
|
| 1668 |
+
0xA948: 84,
|
| 1669 |
+
0xA949: 84,
|
| 1670 |
+
0xA94A: 84,
|
| 1671 |
+
0xA94B: 84,
|
| 1672 |
+
0xA94C: 84,
|
| 1673 |
+
0xA94D: 84,
|
| 1674 |
+
0xA94E: 84,
|
| 1675 |
+
0xA94F: 84,
|
| 1676 |
+
0xA950: 84,
|
| 1677 |
+
0xA951: 84,
|
| 1678 |
+
0xA980: 84,
|
| 1679 |
+
0xA981: 84,
|
| 1680 |
+
0xA982: 84,
|
| 1681 |
+
0xA9B3: 84,
|
| 1682 |
+
0xA9B6: 84,
|
| 1683 |
+
0xA9B7: 84,
|
| 1684 |
+
0xA9B8: 84,
|
| 1685 |
+
0xA9B9: 84,
|
| 1686 |
+
0xA9BC: 84,
|
| 1687 |
+
0xA9BD: 84,
|
| 1688 |
+
0xA9E5: 84,
|
| 1689 |
+
0xAA29: 84,
|
| 1690 |
+
0xAA2A: 84,
|
| 1691 |
+
0xAA2B: 84,
|
| 1692 |
+
0xAA2C: 84,
|
| 1693 |
+
0xAA2D: 84,
|
| 1694 |
+
0xAA2E: 84,
|
| 1695 |
+
0xAA31: 84,
|
| 1696 |
+
0xAA32: 84,
|
| 1697 |
+
0xAA35: 84,
|
| 1698 |
+
0xAA36: 84,
|
| 1699 |
+
0xAA43: 84,
|
| 1700 |
+
0xAA4C: 84,
|
| 1701 |
+
0xAA7C: 84,
|
| 1702 |
+
0xAAB0: 84,
|
| 1703 |
+
0xAAB2: 84,
|
| 1704 |
+
0xAAB3: 84,
|
| 1705 |
+
0xAAB4: 84,
|
| 1706 |
+
0xAAB7: 84,
|
| 1707 |
+
0xAAB8: 84,
|
| 1708 |
+
0xAABE: 84,
|
| 1709 |
+
0xAABF: 84,
|
| 1710 |
+
0xAAC1: 84,
|
| 1711 |
+
0xAAEC: 84,
|
| 1712 |
+
0xAAED: 84,
|
| 1713 |
+
0xAAF6: 84,
|
| 1714 |
+
0xABE5: 84,
|
| 1715 |
+
0xABE8: 84,
|
| 1716 |
+
0xABED: 84,
|
| 1717 |
+
0xFB1E: 84,
|
| 1718 |
+
0xFE00: 84,
|
| 1719 |
+
0xFE01: 84,
|
| 1720 |
+
0xFE02: 84,
|
| 1721 |
+
0xFE03: 84,
|
| 1722 |
+
0xFE04: 84,
|
| 1723 |
+
0xFE05: 84,
|
| 1724 |
+
0xFE06: 84,
|
| 1725 |
+
0xFE07: 84,
|
| 1726 |
+
0xFE08: 84,
|
| 1727 |
+
0xFE09: 84,
|
| 1728 |
+
0xFE0A: 84,
|
| 1729 |
+
0xFE0B: 84,
|
| 1730 |
+
0xFE0C: 84,
|
| 1731 |
+
0xFE0D: 84,
|
| 1732 |
+
0xFE0E: 84,
|
| 1733 |
+
0xFE0F: 84,
|
| 1734 |
+
0xFE20: 84,
|
| 1735 |
+
0xFE21: 84,
|
| 1736 |
+
0xFE22: 84,
|
| 1737 |
+
0xFE23: 84,
|
| 1738 |
+
0xFE24: 84,
|
| 1739 |
+
0xFE25: 84,
|
| 1740 |
+
0xFE26: 84,
|
| 1741 |
+
0xFE27: 84,
|
| 1742 |
+
0xFE28: 84,
|
| 1743 |
+
0xFE29: 84,
|
| 1744 |
+
0xFE2A: 84,
|
| 1745 |
+
0xFE2B: 84,
|
| 1746 |
+
0xFE2C: 84,
|
| 1747 |
+
0xFE2D: 84,
|
| 1748 |
+
0xFE2E: 84,
|
| 1749 |
+
0xFE2F: 84,
|
| 1750 |
+
0xFEFF: 84,
|
| 1751 |
+
0xFFF9: 84,
|
| 1752 |
+
0xFFFA: 84,
|
| 1753 |
+
0xFFFB: 84,
|
| 1754 |
+
0x101FD: 84,
|
| 1755 |
+
0x102E0: 84,
|
| 1756 |
+
0x10376: 84,
|
| 1757 |
+
0x10377: 84,
|
| 1758 |
+
0x10378: 84,
|
| 1759 |
+
0x10379: 84,
|
| 1760 |
+
0x1037A: 84,
|
| 1761 |
+
0x10A01: 84,
|
| 1762 |
+
0x10A02: 84,
|
| 1763 |
+
0x10A03: 84,
|
| 1764 |
+
0x10A05: 84,
|
| 1765 |
+
0x10A06: 84,
|
| 1766 |
+
0x10A0C: 84,
|
| 1767 |
+
0x10A0D: 84,
|
| 1768 |
+
0x10A0E: 84,
|
| 1769 |
+
0x10A0F: 84,
|
| 1770 |
+
0x10A38: 84,
|
| 1771 |
+
0x10A39: 84,
|
| 1772 |
+
0x10A3A: 84,
|
| 1773 |
+
0x10A3F: 84,
|
| 1774 |
+
0x10AC0: 68,
|
| 1775 |
+
0x10AC1: 68,
|
| 1776 |
+
0x10AC2: 68,
|
| 1777 |
+
0x10AC3: 68,
|
| 1778 |
+
0x10AC4: 68,
|
| 1779 |
+
0x10AC5: 82,
|
| 1780 |
+
0x10AC7: 82,
|
| 1781 |
+
0x10AC9: 82,
|
| 1782 |
+
0x10ACA: 82,
|
| 1783 |
+
0x10ACD: 76,
|
| 1784 |
+
0x10ACE: 82,
|
| 1785 |
+
0x10ACF: 82,
|
| 1786 |
+
0x10AD0: 82,
|
| 1787 |
+
0x10AD1: 82,
|
| 1788 |
+
0x10AD2: 82,
|
| 1789 |
+
0x10AD3: 68,
|
| 1790 |
+
0x10AD4: 68,
|
| 1791 |
+
0x10AD5: 68,
|
| 1792 |
+
0x10AD6: 68,
|
| 1793 |
+
0x10AD7: 76,
|
| 1794 |
+
0x10AD8: 68,
|
| 1795 |
+
0x10AD9: 68,
|
| 1796 |
+
0x10ADA: 68,
|
| 1797 |
+
0x10ADB: 68,
|
| 1798 |
+
0x10ADC: 68,
|
| 1799 |
+
0x10ADD: 82,
|
| 1800 |
+
0x10ADE: 68,
|
| 1801 |
+
0x10ADF: 68,
|
| 1802 |
+
0x10AE0: 68,
|
| 1803 |
+
0x10AE1: 82,
|
| 1804 |
+
0x10AE4: 82,
|
| 1805 |
+
0x10AE5: 84,
|
| 1806 |
+
0x10AE6: 84,
|
| 1807 |
+
0x10AEB: 68,
|
| 1808 |
+
0x10AEC: 68,
|
| 1809 |
+
0x10AED: 68,
|
| 1810 |
+
0x10AEE: 68,
|
| 1811 |
+
0x10AEF: 82,
|
| 1812 |
+
0x10B80: 68,
|
| 1813 |
+
0x10B81: 82,
|
| 1814 |
+
0x10B82: 68,
|
| 1815 |
+
0x10B83: 82,
|
| 1816 |
+
0x10B84: 82,
|
| 1817 |
+
0x10B85: 82,
|
| 1818 |
+
0x10B86: 68,
|
| 1819 |
+
0x10B87: 68,
|
| 1820 |
+
0x10B88: 68,
|
| 1821 |
+
0x10B89: 82,
|
| 1822 |
+
0x10B8A: 68,
|
| 1823 |
+
0x10B8B: 68,
|
| 1824 |
+
0x10B8C: 82,
|
| 1825 |
+
0x10B8D: 68,
|
| 1826 |
+
0x10B8E: 82,
|
| 1827 |
+
0x10B8F: 82,
|
| 1828 |
+
0x10B90: 68,
|
| 1829 |
+
0x10B91: 82,
|
| 1830 |
+
0x10BA9: 82,
|
| 1831 |
+
0x10BAA: 82,
|
| 1832 |
+
0x10BAB: 82,
|
| 1833 |
+
0x10BAC: 82,
|
| 1834 |
+
0x10BAD: 68,
|
| 1835 |
+
0x10BAE: 68,
|
| 1836 |
+
0x10D00: 76,
|
| 1837 |
+
0x10D01: 68,
|
| 1838 |
+
0x10D02: 68,
|
| 1839 |
+
0x10D03: 68,
|
| 1840 |
+
0x10D04: 68,
|
| 1841 |
+
0x10D05: 68,
|
| 1842 |
+
0x10D06: 68,
|
| 1843 |
+
0x10D07: 68,
|
| 1844 |
+
0x10D08: 68,
|
| 1845 |
+
0x10D09: 68,
|
| 1846 |
+
0x10D0A: 68,
|
| 1847 |
+
0x10D0B: 68,
|
| 1848 |
+
0x10D0C: 68,
|
| 1849 |
+
0x10D0D: 68,
|
| 1850 |
+
0x10D0E: 68,
|
| 1851 |
+
0x10D0F: 68,
|
| 1852 |
+
0x10D10: 68,
|
| 1853 |
+
0x10D11: 68,
|
| 1854 |
+
0x10D12: 68,
|
| 1855 |
+
0x10D13: 68,
|
| 1856 |
+
0x10D14: 68,
|
| 1857 |
+
0x10D15: 68,
|
| 1858 |
+
0x10D16: 68,
|
| 1859 |
+
0x10D17: 68,
|
| 1860 |
+
0x10D18: 68,
|
| 1861 |
+
0x10D19: 68,
|
| 1862 |
+
0x10D1A: 68,
|
| 1863 |
+
0x10D1B: 68,
|
| 1864 |
+
0x10D1C: 68,
|
| 1865 |
+
0x10D1D: 68,
|
| 1866 |
+
0x10D1E: 68,
|
| 1867 |
+
0x10D1F: 68,
|
| 1868 |
+
0x10D20: 68,
|
| 1869 |
+
0x10D21: 68,
|
| 1870 |
+
0x10D22: 82,
|
| 1871 |
+
0x10D23: 68,
|
| 1872 |
+
0x10D24: 84,
|
| 1873 |
+
0x10D25: 84,
|
| 1874 |
+
0x10D26: 84,
|
| 1875 |
+
0x10D27: 84,
|
| 1876 |
+
0x10EAB: 84,
|
| 1877 |
+
0x10EAC: 84,
|
| 1878 |
+
0x10EFD: 84,
|
| 1879 |
+
0x10EFE: 84,
|
| 1880 |
+
0x10EFF: 84,
|
| 1881 |
+
0x10F30: 68,
|
| 1882 |
+
0x10F31: 68,
|
| 1883 |
+
0x10F32: 68,
|
| 1884 |
+
0x10F33: 82,
|
| 1885 |
+
0x10F34: 68,
|
| 1886 |
+
0x10F35: 68,
|
| 1887 |
+
0x10F36: 68,
|
| 1888 |
+
0x10F37: 68,
|
| 1889 |
+
0x10F38: 68,
|
| 1890 |
+
0x10F39: 68,
|
| 1891 |
+
0x10F3A: 68,
|
| 1892 |
+
0x10F3B: 68,
|
| 1893 |
+
0x10F3C: 68,
|
| 1894 |
+
0x10F3D: 68,
|
| 1895 |
+
0x10F3E: 68,
|
| 1896 |
+
0x10F3F: 68,
|
| 1897 |
+
0x10F40: 68,
|
| 1898 |
+
0x10F41: 68,
|
| 1899 |
+
0x10F42: 68,
|
| 1900 |
+
0x10F43: 68,
|
| 1901 |
+
0x10F44: 68,
|
| 1902 |
+
0x10F46: 84,
|
| 1903 |
+
0x10F47: 84,
|
| 1904 |
+
0x10F48: 84,
|
| 1905 |
+
0x10F49: 84,
|
| 1906 |
+
0x10F4A: 84,
|
| 1907 |
+
0x10F4B: 84,
|
| 1908 |
+
0x10F4C: 84,
|
| 1909 |
+
0x10F4D: 84,
|
| 1910 |
+
0x10F4E: 84,
|
| 1911 |
+
0x10F4F: 84,
|
| 1912 |
+
0x10F50: 84,
|
| 1913 |
+
0x10F51: 68,
|
| 1914 |
+
0x10F52: 68,
|
| 1915 |
+
0x10F53: 68,
|
| 1916 |
+
0x10F54: 82,
|
| 1917 |
+
0x10F70: 68,
|
| 1918 |
+
0x10F71: 68,
|
| 1919 |
+
0x10F72: 68,
|
| 1920 |
+
0x10F73: 68,
|
| 1921 |
+
0x10F74: 82,
|
| 1922 |
+
0x10F75: 82,
|
| 1923 |
+
0x10F76: 68,
|
| 1924 |
+
0x10F77: 68,
|
| 1925 |
+
0x10F78: 68,
|
| 1926 |
+
0x10F79: 68,
|
| 1927 |
+
0x10F7A: 68,
|
| 1928 |
+
0x10F7B: 68,
|
| 1929 |
+
0x10F7C: 68,
|
| 1930 |
+
0x10F7D: 68,
|
| 1931 |
+
0x10F7E: 68,
|
| 1932 |
+
0x10F7F: 68,
|
| 1933 |
+
0x10F80: 68,
|
| 1934 |
+
0x10F81: 68,
|
| 1935 |
+
0x10F82: 84,
|
| 1936 |
+
0x10F83: 84,
|
| 1937 |
+
0x10F84: 84,
|
| 1938 |
+
0x10F85: 84,
|
| 1939 |
+
0x10FB0: 68,
|
| 1940 |
+
0x10FB2: 68,
|
| 1941 |
+
0x10FB3: 68,
|
| 1942 |
+
0x10FB4: 82,
|
| 1943 |
+
0x10FB5: 82,
|
| 1944 |
+
0x10FB6: 82,
|
| 1945 |
+
0x10FB8: 68,
|
| 1946 |
+
0x10FB9: 82,
|
| 1947 |
+
0x10FBA: 82,
|
| 1948 |
+
0x10FBB: 68,
|
| 1949 |
+
0x10FBC: 68,
|
| 1950 |
+
0x10FBD: 82,
|
| 1951 |
+
0x10FBE: 68,
|
| 1952 |
+
0x10FBF: 68,
|
| 1953 |
+
0x10FC1: 68,
|
| 1954 |
+
0x10FC2: 82,
|
| 1955 |
+
0x10FC3: 82,
|
| 1956 |
+
0x10FC4: 68,
|
| 1957 |
+
0x10FC9: 82,
|
| 1958 |
+
0x10FCA: 68,
|
| 1959 |
+
0x10FCB: 76,
|
| 1960 |
+
0x11001: 84,
|
| 1961 |
+
0x11038: 84,
|
| 1962 |
+
0x11039: 84,
|
| 1963 |
+
0x1103A: 84,
|
| 1964 |
+
0x1103B: 84,
|
| 1965 |
+
0x1103C: 84,
|
| 1966 |
+
0x1103D: 84,
|
| 1967 |
+
0x1103E: 84,
|
| 1968 |
+
0x1103F: 84,
|
| 1969 |
+
0x11040: 84,
|
| 1970 |
+
0x11041: 84,
|
| 1971 |
+
0x11042: 84,
|
| 1972 |
+
0x11043: 84,
|
| 1973 |
+
0x11044: 84,
|
| 1974 |
+
0x11045: 84,
|
| 1975 |
+
0x11046: 84,
|
| 1976 |
+
0x11070: 84,
|
| 1977 |
+
0x11073: 84,
|
| 1978 |
+
0x11074: 84,
|
| 1979 |
+
0x1107F: 84,
|
| 1980 |
+
0x11080: 84,
|
| 1981 |
+
0x11081: 84,
|
| 1982 |
+
0x110B3: 84,
|
| 1983 |
+
0x110B4: 84,
|
| 1984 |
+
0x110B5: 84,
|
| 1985 |
+
0x110B6: 84,
|
| 1986 |
+
0x110B9: 84,
|
| 1987 |
+
0x110BA: 84,
|
| 1988 |
+
0x110C2: 84,
|
| 1989 |
+
0x11100: 84,
|
| 1990 |
+
0x11101: 84,
|
| 1991 |
+
0x11102: 84,
|
| 1992 |
+
0x11127: 84,
|
| 1993 |
+
0x11128: 84,
|
| 1994 |
+
0x11129: 84,
|
| 1995 |
+
0x1112A: 84,
|
| 1996 |
+
0x1112B: 84,
|
| 1997 |
+
0x1112D: 84,
|
| 1998 |
+
0x1112E: 84,
|
| 1999 |
+
0x1112F: 84,
|
| 2000 |
+
0x11130: 84,
|
| 2001 |
+
0x11131: 84,
|
| 2002 |
+
0x11132: 84,
|
| 2003 |
+
0x11133: 84,
|
| 2004 |
+
0x11134: 84,
|
| 2005 |
+
0x11173: 84,
|
| 2006 |
+
0x11180: 84,
|
| 2007 |
+
0x11181: 84,
|
| 2008 |
+
0x111B6: 84,
|
| 2009 |
+
0x111B7: 84,
|
| 2010 |
+
0x111B8: 84,
|
| 2011 |
+
0x111B9: 84,
|
| 2012 |
+
0x111BA: 84,
|
| 2013 |
+
0x111BB: 84,
|
| 2014 |
+
0x111BC: 84,
|
| 2015 |
+
0x111BD: 84,
|
| 2016 |
+
0x111BE: 84,
|
| 2017 |
+
0x111C9: 84,
|
| 2018 |
+
0x111CA: 84,
|
| 2019 |
+
0x111CB: 84,
|
| 2020 |
+
0x111CC: 84,
|
| 2021 |
+
0x111CF: 84,
|
| 2022 |
+
0x1122F: 84,
|
| 2023 |
+
0x11230: 84,
|
| 2024 |
+
0x11231: 84,
|
| 2025 |
+
0x11234: 84,
|
| 2026 |
+
0x11236: 84,
|
| 2027 |
+
0x11237: 84,
|
| 2028 |
+
0x1123E: 84,
|
| 2029 |
+
0x11241: 84,
|
| 2030 |
+
0x112DF: 84,
|
| 2031 |
+
0x112E3: 84,
|
| 2032 |
+
0x112E4: 84,
|
| 2033 |
+
0x112E5: 84,
|
| 2034 |
+
0x112E6: 84,
|
| 2035 |
+
0x112E7: 84,
|
| 2036 |
+
0x112E8: 84,
|
| 2037 |
+
0x112E9: 84,
|
| 2038 |
+
0x112EA: 84,
|
| 2039 |
+
0x11300: 84,
|
| 2040 |
+
0x11301: 84,
|
| 2041 |
+
0x1133B: 84,
|
| 2042 |
+
0x1133C: 84,
|
| 2043 |
+
0x11340: 84,
|
| 2044 |
+
0x11366: 84,
|
| 2045 |
+
0x11367: 84,
|
| 2046 |
+
0x11368: 84,
|
| 2047 |
+
0x11369: 84,
|
| 2048 |
+
0x1136A: 84,
|
| 2049 |
+
0x1136B: 84,
|
| 2050 |
+
0x1136C: 84,
|
| 2051 |
+
0x11370: 84,
|
| 2052 |
+
0x11371: 84,
|
| 2053 |
+
0x11372: 84,
|
| 2054 |
+
0x11373: 84,
|
| 2055 |
+
0x11374: 84,
|
| 2056 |
+
0x11438: 84,
|
| 2057 |
+
0x11439: 84,
|
| 2058 |
+
0x1143A: 84,
|
| 2059 |
+
0x1143B: 84,
|
| 2060 |
+
0x1143C: 84,
|
| 2061 |
+
0x1143D: 84,
|
| 2062 |
+
0x1143E: 84,
|
| 2063 |
+
0x1143F: 84,
|
| 2064 |
+
0x11442: 84,
|
| 2065 |
+
0x11443: 84,
|
| 2066 |
+
0x11444: 84,
|
| 2067 |
+
0x11446: 84,
|
| 2068 |
+
0x1145E: 84,
|
| 2069 |
+
0x114B3: 84,
|
| 2070 |
+
0x114B4: 84,
|
| 2071 |
+
0x114B5: 84,
|
| 2072 |
+
0x114B6: 84,
|
| 2073 |
+
0x114B7: 84,
|
| 2074 |
+
0x114B8: 84,
|
| 2075 |
+
0x114BA: 84,
|
| 2076 |
+
0x114BF: 84,
|
| 2077 |
+
0x114C0: 84,
|
| 2078 |
+
0x114C2: 84,
|
| 2079 |
+
0x114C3: 84,
|
| 2080 |
+
0x115B2: 84,
|
| 2081 |
+
0x115B3: 84,
|
| 2082 |
+
0x115B4: 84,
|
| 2083 |
+
0x115B5: 84,
|
| 2084 |
+
0x115BC: 84,
|
| 2085 |
+
0x115BD: 84,
|
| 2086 |
+
0x115BF: 84,
|
| 2087 |
+
0x115C0: 84,
|
| 2088 |
+
0x115DC: 84,
|
| 2089 |
+
0x115DD: 84,
|
| 2090 |
+
0x11633: 84,
|
| 2091 |
+
0x11634: 84,
|
| 2092 |
+
0x11635: 84,
|
| 2093 |
+
0x11636: 84,
|
| 2094 |
+
0x11637: 84,
|
| 2095 |
+
0x11638: 84,
|
| 2096 |
+
0x11639: 84,
|
| 2097 |
+
0x1163A: 84,
|
| 2098 |
+
0x1163D: 84,
|
| 2099 |
+
0x1163F: 84,
|
| 2100 |
+
0x11640: 84,
|
| 2101 |
+
0x116AB: 84,
|
| 2102 |
+
0x116AD: 84,
|
| 2103 |
+
0x116B0: 84,
|
| 2104 |
+
0x116B1: 84,
|
| 2105 |
+
0x116B2: 84,
|
| 2106 |
+
0x116B3: 84,
|
| 2107 |
+
0x116B4: 84,
|
| 2108 |
+
0x116B5: 84,
|
| 2109 |
+
0x116B7: 84,
|
| 2110 |
+
0x1171D: 84,
|
| 2111 |
+
0x1171E: 84,
|
| 2112 |
+
0x1171F: 84,
|
| 2113 |
+
0x11722: 84,
|
| 2114 |
+
0x11723: 84,
|
| 2115 |
+
0x11724: 84,
|
| 2116 |
+
0x11725: 84,
|
| 2117 |
+
0x11727: 84,
|
| 2118 |
+
0x11728: 84,
|
| 2119 |
+
0x11729: 84,
|
| 2120 |
+
0x1172A: 84,
|
| 2121 |
+
0x1172B: 84,
|
| 2122 |
+
0x1182F: 84,
|
| 2123 |
+
0x11830: 84,
|
| 2124 |
+
0x11831: 84,
|
| 2125 |
+
0x11832: 84,
|
| 2126 |
+
0x11833: 84,
|
| 2127 |
+
0x11834: 84,
|
| 2128 |
+
0x11835: 84,
|
| 2129 |
+
0x11836: 84,
|
| 2130 |
+
0x11837: 84,
|
| 2131 |
+
0x11839: 84,
|
| 2132 |
+
0x1183A: 84,
|
| 2133 |
+
0x1193B: 84,
|
| 2134 |
+
0x1193C: 84,
|
| 2135 |
+
0x1193E: 84,
|
| 2136 |
+
0x11943: 84,
|
| 2137 |
+
0x119D4: 84,
|
| 2138 |
+
0x119D5: 84,
|
| 2139 |
+
0x119D6: 84,
|
| 2140 |
+
0x119D7: 84,
|
| 2141 |
+
0x119DA: 84,
|
| 2142 |
+
0x119DB: 84,
|
| 2143 |
+
0x119E0: 84,
|
| 2144 |
+
0x11A01: 84,
|
| 2145 |
+
0x11A02: 84,
|
| 2146 |
+
0x11A03: 84,
|
| 2147 |
+
0x11A04: 84,
|
| 2148 |
+
0x11A05: 84,
|
| 2149 |
+
0x11A06: 84,
|
| 2150 |
+
0x11A07: 84,
|
| 2151 |
+
0x11A08: 84,
|
| 2152 |
+
0x11A09: 84,
|
| 2153 |
+
0x11A0A: 84,
|
| 2154 |
+
0x11A33: 84,
|
| 2155 |
+
0x11A34: 84,
|
| 2156 |
+
0x11A35: 84,
|
| 2157 |
+
0x11A36: 84,
|
| 2158 |
+
0x11A37: 84,
|
| 2159 |
+
0x11A38: 84,
|
| 2160 |
+
0x11A3B: 84,
|
| 2161 |
+
0x11A3C: 84,
|
| 2162 |
+
0x11A3D: 84,
|
| 2163 |
+
0x11A3E: 84,
|
| 2164 |
+
0x11A47: 84,
|
| 2165 |
+
0x11A51: 84,
|
| 2166 |
+
0x11A52: 84,
|
| 2167 |
+
0x11A53: 84,
|
| 2168 |
+
0x11A54: 84,
|
| 2169 |
+
0x11A55: 84,
|
| 2170 |
+
0x11A56: 84,
|
| 2171 |
+
0x11A59: 84,
|
| 2172 |
+
0x11A5A: 84,
|
| 2173 |
+
0x11A5B: 84,
|
| 2174 |
+
0x11A8A: 84,
|
| 2175 |
+
0x11A8B: 84,
|
| 2176 |
+
0x11A8C: 84,
|
| 2177 |
+
0x11A8D: 84,
|
| 2178 |
+
0x11A8E: 84,
|
| 2179 |
+
0x11A8F: 84,
|
| 2180 |
+
0x11A90: 84,
|
| 2181 |
+
0x11A91: 84,
|
| 2182 |
+
0x11A92: 84,
|
| 2183 |
+
0x11A93: 84,
|
| 2184 |
+
0x11A94: 84,
|
| 2185 |
+
0x11A95: 84,
|
| 2186 |
+
0x11A96: 84,
|
| 2187 |
+
0x11A98: 84,
|
| 2188 |
+
0x11A99: 84,
|
| 2189 |
+
0x11C30: 84,
|
| 2190 |
+
0x11C31: 84,
|
| 2191 |
+
0x11C32: 84,
|
| 2192 |
+
0x11C33: 84,
|
| 2193 |
+
0x11C34: 84,
|
| 2194 |
+
0x11C35: 84,
|
| 2195 |
+
0x11C36: 84,
|
| 2196 |
+
0x11C38: 84,
|
| 2197 |
+
0x11C39: 84,
|
| 2198 |
+
0x11C3A: 84,
|
| 2199 |
+
0x11C3B: 84,
|
| 2200 |
+
0x11C3C: 84,
|
| 2201 |
+
0x11C3D: 84,
|
| 2202 |
+
0x11C3F: 84,
|
| 2203 |
+
0x11C92: 84,
|
| 2204 |
+
0x11C93: 84,
|
| 2205 |
+
0x11C94: 84,
|
| 2206 |
+
0x11C95: 84,
|
| 2207 |
+
0x11C96: 84,
|
| 2208 |
+
0x11C97: 84,
|
| 2209 |
+
0x11C98: 84,
|
| 2210 |
+
0x11C99: 84,
|
| 2211 |
+
0x11C9A: 84,
|
| 2212 |
+
0x11C9B: 84,
|
| 2213 |
+
0x11C9C: 84,
|
| 2214 |
+
0x11C9D: 84,
|
| 2215 |
+
0x11C9E: 84,
|
| 2216 |
+
0x11C9F: 84,
|
| 2217 |
+
0x11CA0: 84,
|
| 2218 |
+
0x11CA1: 84,
|
| 2219 |
+
0x11CA2: 84,
|
| 2220 |
+
0x11CA3: 84,
|
| 2221 |
+
0x11CA4: 84,
|
| 2222 |
+
0x11CA5: 84,
|
| 2223 |
+
0x11CA6: 84,
|
| 2224 |
+
0x11CA7: 84,
|
| 2225 |
+
0x11CAA: 84,
|
| 2226 |
+
0x11CAB: 84,
|
| 2227 |
+
0x11CAC: 84,
|
| 2228 |
+
0x11CAD: 84,
|
| 2229 |
+
0x11CAE: 84,
|
| 2230 |
+
0x11CAF: 84,
|
| 2231 |
+
0x11CB0: 84,
|
| 2232 |
+
0x11CB2: 84,
|
| 2233 |
+
0x11CB3: 84,
|
| 2234 |
+
0x11CB5: 84,
|
| 2235 |
+
0x11CB6: 84,
|
| 2236 |
+
0x11D31: 84,
|
| 2237 |
+
0x11D32: 84,
|
| 2238 |
+
0x11D33: 84,
|
| 2239 |
+
0x11D34: 84,
|
| 2240 |
+
0x11D35: 84,
|
| 2241 |
+
0x11D36: 84,
|
| 2242 |
+
0x11D3A: 84,
|
| 2243 |
+
0x11D3C: 84,
|
| 2244 |
+
0x11D3D: 84,
|
| 2245 |
+
0x11D3F: 84,
|
| 2246 |
+
0x11D40: 84,
|
| 2247 |
+
0x11D41: 84,
|
| 2248 |
+
0x11D42: 84,
|
| 2249 |
+
0x11D43: 84,
|
| 2250 |
+
0x11D44: 84,
|
| 2251 |
+
0x11D45: 84,
|
| 2252 |
+
0x11D47: 84,
|
| 2253 |
+
0x11D90: 84,
|
| 2254 |
+
0x11D91: 84,
|
| 2255 |
+
0x11D95: 84,
|
| 2256 |
+
0x11D97: 84,
|
| 2257 |
+
0x11EF3: 84,
|
| 2258 |
+
0x11EF4: 84,
|
| 2259 |
+
0x11F00: 84,
|
| 2260 |
+
0x11F01: 84,
|
| 2261 |
+
0x11F36: 84,
|
| 2262 |
+
0x11F37: 84,
|
| 2263 |
+
0x11F38: 84,
|
| 2264 |
+
0x11F39: 84,
|
| 2265 |
+
0x11F3A: 84,
|
| 2266 |
+
0x11F40: 84,
|
| 2267 |
+
0x11F42: 84,
|
| 2268 |
+
0x13430: 84,
|
| 2269 |
+
0x13431: 84,
|
| 2270 |
+
0x13432: 84,
|
| 2271 |
+
0x13433: 84,
|
| 2272 |
+
0x13434: 84,
|
| 2273 |
+
0x13435: 84,
|
| 2274 |
+
0x13436: 84,
|
| 2275 |
+
0x13437: 84,
|
| 2276 |
+
0x13438: 84,
|
| 2277 |
+
0x13439: 84,
|
| 2278 |
+
0x1343A: 84,
|
| 2279 |
+
0x1343B: 84,
|
| 2280 |
+
0x1343C: 84,
|
| 2281 |
+
0x1343D: 84,
|
| 2282 |
+
0x1343E: 84,
|
| 2283 |
+
0x1343F: 84,
|
| 2284 |
+
0x13440: 84,
|
| 2285 |
+
0x13447: 84,
|
| 2286 |
+
0x13448: 84,
|
| 2287 |
+
0x13449: 84,
|
| 2288 |
+
0x1344A: 84,
|
| 2289 |
+
0x1344B: 84,
|
| 2290 |
+
0x1344C: 84,
|
| 2291 |
+
0x1344D: 84,
|
| 2292 |
+
0x1344E: 84,
|
| 2293 |
+
0x1344F: 84,
|
| 2294 |
+
0x13450: 84,
|
| 2295 |
+
0x13451: 84,
|
| 2296 |
+
0x13452: 84,
|
| 2297 |
+
0x13453: 84,
|
| 2298 |
+
0x13454: 84,
|
| 2299 |
+
0x13455: 84,
|
| 2300 |
+
0x16AF0: 84,
|
| 2301 |
+
0x16AF1: 84,
|
| 2302 |
+
0x16AF2: 84,
|
| 2303 |
+
0x16AF3: 84,
|
| 2304 |
+
0x16AF4: 84,
|
| 2305 |
+
0x16B30: 84,
|
| 2306 |
+
0x16B31: 84,
|
| 2307 |
+
0x16B32: 84,
|
| 2308 |
+
0x16B33: 84,
|
| 2309 |
+
0x16B34: 84,
|
| 2310 |
+
0x16B35: 84,
|
| 2311 |
+
0x16B36: 84,
|
| 2312 |
+
0x16F4F: 84,
|
| 2313 |
+
0x16F8F: 84,
|
| 2314 |
+
0x16F90: 84,
|
| 2315 |
+
0x16F91: 84,
|
| 2316 |
+
0x16F92: 84,
|
| 2317 |
+
0x16FE4: 84,
|
| 2318 |
+
0x1BC9D: 84,
|
| 2319 |
+
0x1BC9E: 84,
|
| 2320 |
+
0x1BCA0: 84,
|
| 2321 |
+
0x1BCA1: 84,
|
| 2322 |
+
0x1BCA2: 84,
|
| 2323 |
+
0x1BCA3: 84,
|
| 2324 |
+
0x1CF00: 84,
|
| 2325 |
+
0x1CF01: 84,
|
| 2326 |
+
0x1CF02: 84,
|
| 2327 |
+
0x1CF03: 84,
|
| 2328 |
+
0x1CF04: 84,
|
| 2329 |
+
0x1CF05: 84,
|
| 2330 |
+
0x1CF06: 84,
|
| 2331 |
+
0x1CF07: 84,
|
| 2332 |
+
0x1CF08: 84,
|
| 2333 |
+
0x1CF09: 84,
|
| 2334 |
+
0x1CF0A: 84,
|
| 2335 |
+
0x1CF0B: 84,
|
| 2336 |
+
0x1CF0C: 84,
|
| 2337 |
+
0x1CF0D: 84,
|
| 2338 |
+
0x1CF0E: 84,
|
| 2339 |
+
0x1CF0F: 84,
|
| 2340 |
+
0x1CF10: 84,
|
| 2341 |
+
0x1CF11: 84,
|
| 2342 |
+
0x1CF12: 84,
|
| 2343 |
+
0x1CF13: 84,
|
| 2344 |
+
0x1CF14: 84,
|
| 2345 |
+
0x1CF15: 84,
|
| 2346 |
+
0x1CF16: 84,
|
| 2347 |
+
0x1CF17: 84,
|
| 2348 |
+
0x1CF18: 84,
|
| 2349 |
+
0x1CF19: 84,
|
| 2350 |
+
0x1CF1A: 84,
|
| 2351 |
+
0x1CF1B: 84,
|
| 2352 |
+
0x1CF1C: 84,
|
| 2353 |
+
0x1CF1D: 84,
|
| 2354 |
+
0x1CF1E: 84,
|
| 2355 |
+
0x1CF1F: 84,
|
| 2356 |
+
0x1CF20: 84,
|
| 2357 |
+
0x1CF21: 84,
|
| 2358 |
+
0x1CF22: 84,
|
| 2359 |
+
0x1CF23: 84,
|
| 2360 |
+
0x1CF24: 84,
|
| 2361 |
+
0x1CF25: 84,
|
| 2362 |
+
0x1CF26: 84,
|
| 2363 |
+
0x1CF27: 84,
|
| 2364 |
+
0x1CF28: 84,
|
| 2365 |
+
0x1CF29: 84,
|
| 2366 |
+
0x1CF2A: 84,
|
| 2367 |
+
0x1CF2B: 84,
|
| 2368 |
+
0x1CF2C: 84,
|
| 2369 |
+
0x1CF2D: 84,
|
| 2370 |
+
0x1CF30: 84,
|
| 2371 |
+
0x1CF31: 84,
|
| 2372 |
+
0x1CF32: 84,
|
| 2373 |
+
0x1CF33: 84,
|
| 2374 |
+
0x1CF34: 84,
|
| 2375 |
+
0x1CF35: 84,
|
| 2376 |
+
0x1CF36: 84,
|
| 2377 |
+
0x1CF37: 84,
|
| 2378 |
+
0x1CF38: 84,
|
| 2379 |
+
0x1CF39: 84,
|
| 2380 |
+
0x1CF3A: 84,
|
| 2381 |
+
0x1CF3B: 84,
|
| 2382 |
+
0x1CF3C: 84,
|
| 2383 |
+
0x1CF3D: 84,
|
| 2384 |
+
0x1CF3E: 84,
|
| 2385 |
+
0x1CF3F: 84,
|
| 2386 |
+
0x1CF40: 84,
|
| 2387 |
+
0x1CF41: 84,
|
| 2388 |
+
0x1CF42: 84,
|
| 2389 |
+
0x1CF43: 84,
|
| 2390 |
+
0x1CF44: 84,
|
| 2391 |
+
0x1CF45: 84,
|
| 2392 |
+
0x1CF46: 84,
|
| 2393 |
+
0x1D167: 84,
|
| 2394 |
+
0x1D168: 84,
|
| 2395 |
+
0x1D169: 84,
|
| 2396 |
+
0x1D173: 84,
|
| 2397 |
+
0x1D174: 84,
|
| 2398 |
+
0x1D175: 84,
|
| 2399 |
+
0x1D176: 84,
|
| 2400 |
+
0x1D177: 84,
|
| 2401 |
+
0x1D178: 84,
|
| 2402 |
+
0x1D179: 84,
|
| 2403 |
+
0x1D17A: 84,
|
| 2404 |
+
0x1D17B: 84,
|
| 2405 |
+
0x1D17C: 84,
|
| 2406 |
+
0x1D17D: 84,
|
| 2407 |
+
0x1D17E: 84,
|
| 2408 |
+
0x1D17F: 84,
|
| 2409 |
+
0x1D180: 84,
|
| 2410 |
+
0x1D181: 84,
|
| 2411 |
+
0x1D182: 84,
|
| 2412 |
+
0x1D185: 84,
|
| 2413 |
+
0x1D186: 84,
|
| 2414 |
+
0x1D187: 84,
|
| 2415 |
+
0x1D188: 84,
|
| 2416 |
+
0x1D189: 84,
|
| 2417 |
+
0x1D18A: 84,
|
| 2418 |
+
0x1D18B: 84,
|
| 2419 |
+
0x1D1AA: 84,
|
| 2420 |
+
0x1D1AB: 84,
|
| 2421 |
+
0x1D1AC: 84,
|
| 2422 |
+
0x1D1AD: 84,
|
| 2423 |
+
0x1D242: 84,
|
| 2424 |
+
0x1D243: 84,
|
| 2425 |
+
0x1D244: 84,
|
| 2426 |
+
0x1DA00: 84,
|
| 2427 |
+
0x1DA01: 84,
|
| 2428 |
+
0x1DA02: 84,
|
| 2429 |
+
0x1DA03: 84,
|
| 2430 |
+
0x1DA04: 84,
|
| 2431 |
+
0x1DA05: 84,
|
| 2432 |
+
0x1DA06: 84,
|
| 2433 |
+
0x1DA07: 84,
|
| 2434 |
+
0x1DA08: 84,
|
| 2435 |
+
0x1DA09: 84,
|
| 2436 |
+
0x1DA0A: 84,
|
| 2437 |
+
0x1DA0B: 84,
|
| 2438 |
+
0x1DA0C: 84,
|
| 2439 |
+
0x1DA0D: 84,
|
| 2440 |
+
0x1DA0E: 84,
|
| 2441 |
+
0x1DA0F: 84,
|
| 2442 |
+
0x1DA10: 84,
|
| 2443 |
+
0x1DA11: 84,
|
| 2444 |
+
0x1DA12: 84,
|
| 2445 |
+
0x1DA13: 84,
|
| 2446 |
+
0x1DA14: 84,
|
| 2447 |
+
0x1DA15: 84,
|
| 2448 |
+
0x1DA16: 84,
|
| 2449 |
+
0x1DA17: 84,
|
| 2450 |
+
0x1DA18: 84,
|
| 2451 |
+
0x1DA19: 84,
|
| 2452 |
+
0x1DA1A: 84,
|
| 2453 |
+
0x1DA1B: 84,
|
| 2454 |
+
0x1DA1C: 84,
|
| 2455 |
+
0x1DA1D: 84,
|
| 2456 |
+
0x1DA1E: 84,
|
| 2457 |
+
0x1DA1F: 84,
|
| 2458 |
+
0x1DA20: 84,
|
| 2459 |
+
0x1DA21: 84,
|
| 2460 |
+
0x1DA22: 84,
|
| 2461 |
+
0x1DA23: 84,
|
| 2462 |
+
0x1DA24: 84,
|
| 2463 |
+
0x1DA25: 84,
|
| 2464 |
+
0x1DA26: 84,
|
| 2465 |
+
0x1DA27: 84,
|
| 2466 |
+
0x1DA28: 84,
|
| 2467 |
+
0x1DA29: 84,
|
| 2468 |
+
0x1DA2A: 84,
|
| 2469 |
+
0x1DA2B: 84,
|
| 2470 |
+
0x1DA2C: 84,
|
| 2471 |
+
0x1DA2D: 84,
|
| 2472 |
+
0x1DA2E: 84,
|
| 2473 |
+
0x1DA2F: 84,
|
| 2474 |
+
0x1DA30: 84,
|
| 2475 |
+
0x1DA31: 84,
|
| 2476 |
+
0x1DA32: 84,
|
| 2477 |
+
0x1DA33: 84,
|
| 2478 |
+
0x1DA34: 84,
|
| 2479 |
+
0x1DA35: 84,
|
| 2480 |
+
0x1DA36: 84,
|
| 2481 |
+
0x1DA3B: 84,
|
| 2482 |
+
0x1DA3C: 84,
|
| 2483 |
+
0x1DA3D: 84,
|
| 2484 |
+
0x1DA3E: 84,
|
| 2485 |
+
0x1DA3F: 84,
|
| 2486 |
+
0x1DA40: 84,
|
| 2487 |
+
0x1DA41: 84,
|
| 2488 |
+
0x1DA42: 84,
|
| 2489 |
+
0x1DA43: 84,
|
| 2490 |
+
0x1DA44: 84,
|
| 2491 |
+
0x1DA45: 84,
|
| 2492 |
+
0x1DA46: 84,
|
| 2493 |
+
0x1DA47: 84,
|
| 2494 |
+
0x1DA48: 84,
|
| 2495 |
+
0x1DA49: 84,
|
| 2496 |
+
0x1DA4A: 84,
|
| 2497 |
+
0x1DA4B: 84,
|
| 2498 |
+
0x1DA4C: 84,
|
| 2499 |
+
0x1DA4D: 84,
|
| 2500 |
+
0x1DA4E: 84,
|
| 2501 |
+
0x1DA4F: 84,
|
| 2502 |
+
0x1DA50: 84,
|
| 2503 |
+
0x1DA51: 84,
|
| 2504 |
+
0x1DA52: 84,
|
| 2505 |
+
0x1DA53: 84,
|
| 2506 |
+
0x1DA54: 84,
|
| 2507 |
+
0x1DA55: 84,
|
| 2508 |
+
0x1DA56: 84,
|
| 2509 |
+
0x1DA57: 84,
|
| 2510 |
+
0x1DA58: 84,
|
| 2511 |
+
0x1DA59: 84,
|
| 2512 |
+
0x1DA5A: 84,
|
| 2513 |
+
0x1DA5B: 84,
|
| 2514 |
+
0x1DA5C: 84,
|
| 2515 |
+
0x1DA5D: 84,
|
| 2516 |
+
0x1DA5E: 84,
|
| 2517 |
+
0x1DA5F: 84,
|
| 2518 |
+
0x1DA60: 84,
|
| 2519 |
+
0x1DA61: 84,
|
| 2520 |
+
0x1DA62: 84,
|
| 2521 |
+
0x1DA63: 84,
|
| 2522 |
+
0x1DA64: 84,
|
| 2523 |
+
0x1DA65: 84,
|
| 2524 |
+
0x1DA66: 84,
|
| 2525 |
+
0x1DA67: 84,
|
| 2526 |
+
0x1DA68: 84,
|
| 2527 |
+
0x1DA69: 84,
|
| 2528 |
+
0x1DA6A: 84,
|
| 2529 |
+
0x1DA6B: 84,
|
| 2530 |
+
0x1DA6C: 84,
|
| 2531 |
+
0x1DA75: 84,
|
| 2532 |
+
0x1DA84: 84,
|
| 2533 |
+
0x1DA9B: 84,
|
| 2534 |
+
0x1DA9C: 84,
|
| 2535 |
+
0x1DA9D: 84,
|
| 2536 |
+
0x1DA9E: 84,
|
| 2537 |
+
0x1DA9F: 84,
|
| 2538 |
+
0x1DAA1: 84,
|
| 2539 |
+
0x1DAA2: 84,
|
| 2540 |
+
0x1DAA3: 84,
|
| 2541 |
+
0x1DAA4: 84,
|
| 2542 |
+
0x1DAA5: 84,
|
| 2543 |
+
0x1DAA6: 84,
|
| 2544 |
+
0x1DAA7: 84,
|
| 2545 |
+
0x1DAA8: 84,
|
| 2546 |
+
0x1DAA9: 84,
|
| 2547 |
+
0x1DAAA: 84,
|
| 2548 |
+
0x1DAAB: 84,
|
| 2549 |
+
0x1DAAC: 84,
|
| 2550 |
+
0x1DAAD: 84,
|
| 2551 |
+
0x1DAAE: 84,
|
| 2552 |
+
0x1DAAF: 84,
|
| 2553 |
+
0x1E000: 84,
|
| 2554 |
+
0x1E001: 84,
|
| 2555 |
+
0x1E002: 84,
|
| 2556 |
+
0x1E003: 84,
|
| 2557 |
+
0x1E004: 84,
|
| 2558 |
+
0x1E005: 84,
|
| 2559 |
+
0x1E006: 84,
|
| 2560 |
+
0x1E008: 84,
|
| 2561 |
+
0x1E009: 84,
|
| 2562 |
+
0x1E00A: 84,
|
| 2563 |
+
0x1E00B: 84,
|
| 2564 |
+
0x1E00C: 84,
|
| 2565 |
+
0x1E00D: 84,
|
| 2566 |
+
0x1E00E: 84,
|
| 2567 |
+
0x1E00F: 84,
|
| 2568 |
+
0x1E010: 84,
|
| 2569 |
+
0x1E011: 84,
|
| 2570 |
+
0x1E012: 84,
|
| 2571 |
+
0x1E013: 84,
|
| 2572 |
+
0x1E014: 84,
|
| 2573 |
+
0x1E015: 84,
|
| 2574 |
+
0x1E016: 84,
|
| 2575 |
+
0x1E017: 84,
|
| 2576 |
+
0x1E018: 84,
|
| 2577 |
+
0x1E01B: 84,
|
| 2578 |
+
0x1E01C: 84,
|
| 2579 |
+
0x1E01D: 84,
|
| 2580 |
+
0x1E01E: 84,
|
| 2581 |
+
0x1E01F: 84,
|
| 2582 |
+
0x1E020: 84,
|
| 2583 |
+
0x1E021: 84,
|
| 2584 |
+
0x1E023: 84,
|
| 2585 |
+
0x1E024: 84,
|
| 2586 |
+
0x1E026: 84,
|
| 2587 |
+
0x1E027: 84,
|
| 2588 |
+
0x1E028: 84,
|
| 2589 |
+
0x1E029: 84,
|
| 2590 |
+
0x1E02A: 84,
|
| 2591 |
+
0x1E08F: 84,
|
| 2592 |
+
0x1E130: 84,
|
| 2593 |
+
0x1E131: 84,
|
| 2594 |
+
0x1E132: 84,
|
| 2595 |
+
0x1E133: 84,
|
| 2596 |
+
0x1E134: 84,
|
| 2597 |
+
0x1E135: 84,
|
| 2598 |
+
0x1E136: 84,
|
| 2599 |
+
0x1E2AE: 84,
|
| 2600 |
+
0x1E2EC: 84,
|
| 2601 |
+
0x1E2ED: 84,
|
| 2602 |
+
0x1E2EE: 84,
|
| 2603 |
+
0x1E2EF: 84,
|
| 2604 |
+
0x1E4EC: 84,
|
| 2605 |
+
0x1E4ED: 84,
|
| 2606 |
+
0x1E4EE: 84,
|
| 2607 |
+
0x1E4EF: 84,
|
| 2608 |
+
0x1E8D0: 84,
|
| 2609 |
+
0x1E8D1: 84,
|
| 2610 |
+
0x1E8D2: 84,
|
| 2611 |
+
0x1E8D3: 84,
|
| 2612 |
+
0x1E8D4: 84,
|
| 2613 |
+
0x1E8D5: 84,
|
| 2614 |
+
0x1E8D6: 84,
|
| 2615 |
+
0x1E900: 68,
|
| 2616 |
+
0x1E901: 68,
|
| 2617 |
+
0x1E902: 68,
|
| 2618 |
+
0x1E903: 68,
|
| 2619 |
+
0x1E904: 68,
|
| 2620 |
+
0x1E905: 68,
|
| 2621 |
+
0x1E906: 68,
|
| 2622 |
+
0x1E907: 68,
|
| 2623 |
+
0x1E908: 68,
|
| 2624 |
+
0x1E909: 68,
|
| 2625 |
+
0x1E90A: 68,
|
| 2626 |
+
0x1E90B: 68,
|
| 2627 |
+
0x1E90C: 68,
|
| 2628 |
+
0x1E90D: 68,
|
| 2629 |
+
0x1E90E: 68,
|
| 2630 |
+
0x1E90F: 68,
|
| 2631 |
+
0x1E910: 68,
|
| 2632 |
+
0x1E911: 68,
|
| 2633 |
+
0x1E912: 68,
|
| 2634 |
+
0x1E913: 68,
|
| 2635 |
+
0x1E914: 68,
|
| 2636 |
+
0x1E915: 68,
|
| 2637 |
+
0x1E916: 68,
|
| 2638 |
+
0x1E917: 68,
|
| 2639 |
+
0x1E918: 68,
|
| 2640 |
+
0x1E919: 68,
|
| 2641 |
+
0x1E91A: 68,
|
| 2642 |
+
0x1E91B: 68,
|
| 2643 |
+
0x1E91C: 68,
|
| 2644 |
+
0x1E91D: 68,
|
| 2645 |
+
0x1E91E: 68,
|
| 2646 |
+
0x1E91F: 68,
|
| 2647 |
+
0x1E920: 68,
|
| 2648 |
+
0x1E921: 68,
|
| 2649 |
+
0x1E922: 68,
|
| 2650 |
+
0x1E923: 68,
|
| 2651 |
+
0x1E924: 68,
|
| 2652 |
+
0x1E925: 68,
|
| 2653 |
+
0x1E926: 68,
|
| 2654 |
+
0x1E927: 68,
|
| 2655 |
+
0x1E928: 68,
|
| 2656 |
+
0x1E929: 68,
|
| 2657 |
+
0x1E92A: 68,
|
| 2658 |
+
0x1E92B: 68,
|
| 2659 |
+
0x1E92C: 68,
|
| 2660 |
+
0x1E92D: 68,
|
| 2661 |
+
0x1E92E: 68,
|
| 2662 |
+
0x1E92F: 68,
|
| 2663 |
+
0x1E930: 68,
|
| 2664 |
+
0x1E931: 68,
|
| 2665 |
+
0x1E932: 68,
|
| 2666 |
+
0x1E933: 68,
|
| 2667 |
+
0x1E934: 68,
|
| 2668 |
+
0x1E935: 68,
|
| 2669 |
+
0x1E936: 68,
|
| 2670 |
+
0x1E937: 68,
|
| 2671 |
+
0x1E938: 68,
|
| 2672 |
+
0x1E939: 68,
|
| 2673 |
+
0x1E93A: 68,
|
| 2674 |
+
0x1E93B: 68,
|
| 2675 |
+
0x1E93C: 68,
|
| 2676 |
+
0x1E93D: 68,
|
| 2677 |
+
0x1E93E: 68,
|
| 2678 |
+
0x1E93F: 68,
|
| 2679 |
+
0x1E940: 68,
|
| 2680 |
+
0x1E941: 68,
|
| 2681 |
+
0x1E942: 68,
|
| 2682 |
+
0x1E943: 68,
|
| 2683 |
+
0x1E944: 84,
|
| 2684 |
+
0x1E945: 84,
|
| 2685 |
+
0x1E946: 84,
|
| 2686 |
+
0x1E947: 84,
|
| 2687 |
+
0x1E948: 84,
|
| 2688 |
+
0x1E949: 84,
|
| 2689 |
+
0x1E94A: 84,
|
| 2690 |
+
0x1E94B: 84,
|
| 2691 |
+
0xE0001: 84,
|
| 2692 |
+
0xE0020: 84,
|
| 2693 |
+
0xE0021: 84,
|
| 2694 |
+
0xE0022: 84,
|
| 2695 |
+
0xE0023: 84,
|
| 2696 |
+
0xE0024: 84,
|
| 2697 |
+
0xE0025: 84,
|
| 2698 |
+
0xE0026: 84,
|
| 2699 |
+
0xE0027: 84,
|
| 2700 |
+
0xE0028: 84,
|
| 2701 |
+
0xE0029: 84,
|
| 2702 |
+
0xE002A: 84,
|
| 2703 |
+
0xE002B: 84,
|
| 2704 |
+
0xE002C: 84,
|
| 2705 |
+
0xE002D: 84,
|
| 2706 |
+
0xE002E: 84,
|
| 2707 |
+
0xE002F: 84,
|
| 2708 |
+
0xE0030: 84,
|
| 2709 |
+
0xE0031: 84,
|
| 2710 |
+
0xE0032: 84,
|
| 2711 |
+
0xE0033: 84,
|
| 2712 |
+
0xE0034: 84,
|
| 2713 |
+
0xE0035: 84,
|
| 2714 |
+
0xE0036: 84,
|
| 2715 |
+
0xE0037: 84,
|
| 2716 |
+
0xE0038: 84,
|
| 2717 |
+
0xE0039: 84,
|
| 2718 |
+
0xE003A: 84,
|
| 2719 |
+
0xE003B: 84,
|
| 2720 |
+
0xE003C: 84,
|
| 2721 |
+
0xE003D: 84,
|
| 2722 |
+
0xE003E: 84,
|
| 2723 |
+
0xE003F: 84,
|
| 2724 |
+
0xE0040: 84,
|
| 2725 |
+
0xE0041: 84,
|
| 2726 |
+
0xE0042: 84,
|
| 2727 |
+
0xE0043: 84,
|
| 2728 |
+
0xE0044: 84,
|
| 2729 |
+
0xE0045: 84,
|
| 2730 |
+
0xE0046: 84,
|
| 2731 |
+
0xE0047: 84,
|
| 2732 |
+
0xE0048: 84,
|
| 2733 |
+
0xE0049: 84,
|
| 2734 |
+
0xE004A: 84,
|
| 2735 |
+
0xE004B: 84,
|
| 2736 |
+
0xE004C: 84,
|
| 2737 |
+
0xE004D: 84,
|
| 2738 |
+
0xE004E: 84,
|
| 2739 |
+
0xE004F: 84,
|
| 2740 |
+
0xE0050: 84,
|
| 2741 |
+
0xE0051: 84,
|
| 2742 |
+
0xE0052: 84,
|
| 2743 |
+
0xE0053: 84,
|
| 2744 |
+
0xE0054: 84,
|
| 2745 |
+
0xE0055: 84,
|
| 2746 |
+
0xE0056: 84,
|
| 2747 |
+
0xE0057: 84,
|
| 2748 |
+
0xE0058: 84,
|
| 2749 |
+
0xE0059: 84,
|
| 2750 |
+
0xE005A: 84,
|
| 2751 |
+
0xE005B: 84,
|
| 2752 |
+
0xE005C: 84,
|
| 2753 |
+
0xE005D: 84,
|
| 2754 |
+
0xE005E: 84,
|
| 2755 |
+
0xE005F: 84,
|
| 2756 |
+
0xE0060: 84,
|
| 2757 |
+
0xE0061: 84,
|
| 2758 |
+
0xE0062: 84,
|
| 2759 |
+
0xE0063: 84,
|
| 2760 |
+
0xE0064: 84,
|
| 2761 |
+
0xE0065: 84,
|
| 2762 |
+
0xE0066: 84,
|
| 2763 |
+
0xE0067: 84,
|
| 2764 |
+
0xE0068: 84,
|
| 2765 |
+
0xE0069: 84,
|
| 2766 |
+
0xE006A: 84,
|
| 2767 |
+
0xE006B: 84,
|
| 2768 |
+
0xE006C: 84,
|
| 2769 |
+
0xE006D: 84,
|
| 2770 |
+
0xE006E: 84,
|
| 2771 |
+
0xE006F: 84,
|
| 2772 |
+
0xE0070: 84,
|
| 2773 |
+
0xE0071: 84,
|
| 2774 |
+
0xE0072: 84,
|
| 2775 |
+
0xE0073: 84,
|
| 2776 |
+
0xE0074: 84,
|
| 2777 |
+
0xE0075: 84,
|
| 2778 |
+
0xE0076: 84,
|
| 2779 |
+
0xE0077: 84,
|
| 2780 |
+
0xE0078: 84,
|
| 2781 |
+
0xE0079: 84,
|
| 2782 |
+
0xE007A: 84,
|
| 2783 |
+
0xE007B: 84,
|
| 2784 |
+
0xE007C: 84,
|
| 2785 |
+
0xE007D: 84,
|
| 2786 |
+
0xE007E: 84,
|
| 2787 |
+
0xE007F: 84,
|
| 2788 |
+
0xE0100: 84,
|
| 2789 |
+
0xE0101: 84,
|
| 2790 |
+
0xE0102: 84,
|
| 2791 |
+
0xE0103: 84,
|
| 2792 |
+
0xE0104: 84,
|
| 2793 |
+
0xE0105: 84,
|
| 2794 |
+
0xE0106: 84,
|
| 2795 |
+
0xE0107: 84,
|
| 2796 |
+
0xE0108: 84,
|
| 2797 |
+
0xE0109: 84,
|
| 2798 |
+
0xE010A: 84,
|
| 2799 |
+
0xE010B: 84,
|
| 2800 |
+
0xE010C: 84,
|
| 2801 |
+
0xE010D: 84,
|
| 2802 |
+
0xE010E: 84,
|
| 2803 |
+
0xE010F: 84,
|
| 2804 |
+
0xE0110: 84,
|
| 2805 |
+
0xE0111: 84,
|
| 2806 |
+
0xE0112: 84,
|
| 2807 |
+
0xE0113: 84,
|
| 2808 |
+
0xE0114: 84,
|
| 2809 |
+
0xE0115: 84,
|
| 2810 |
+
0xE0116: 84,
|
| 2811 |
+
0xE0117: 84,
|
| 2812 |
+
0xE0118: 84,
|
| 2813 |
+
0xE0119: 84,
|
| 2814 |
+
0xE011A: 84,
|
| 2815 |
+
0xE011B: 84,
|
| 2816 |
+
0xE011C: 84,
|
| 2817 |
+
0xE011D: 84,
|
| 2818 |
+
0xE011E: 84,
|
| 2819 |
+
0xE011F: 84,
|
| 2820 |
+
0xE0120: 84,
|
| 2821 |
+
0xE0121: 84,
|
| 2822 |
+
0xE0122: 84,
|
| 2823 |
+
0xE0123: 84,
|
| 2824 |
+
0xE0124: 84,
|
| 2825 |
+
0xE0125: 84,
|
| 2826 |
+
0xE0126: 84,
|
| 2827 |
+
0xE0127: 84,
|
| 2828 |
+
0xE0128: 84,
|
| 2829 |
+
0xE0129: 84,
|
| 2830 |
+
0xE012A: 84,
|
| 2831 |
+
0xE012B: 84,
|
| 2832 |
+
0xE012C: 84,
|
| 2833 |
+
0xE012D: 84,
|
| 2834 |
+
0xE012E: 84,
|
| 2835 |
+
0xE012F: 84,
|
| 2836 |
+
0xE0130: 84,
|
| 2837 |
+
0xE0131: 84,
|
| 2838 |
+
0xE0132: 84,
|
| 2839 |
+
0xE0133: 84,
|
| 2840 |
+
0xE0134: 84,
|
| 2841 |
+
0xE0135: 84,
|
| 2842 |
+
0xE0136: 84,
|
| 2843 |
+
0xE0137: 84,
|
| 2844 |
+
0xE0138: 84,
|
| 2845 |
+
0xE0139: 84,
|
| 2846 |
+
0xE013A: 84,
|
| 2847 |
+
0xE013B: 84,
|
| 2848 |
+
0xE013C: 84,
|
| 2849 |
+
0xE013D: 84,
|
| 2850 |
+
0xE013E: 84,
|
| 2851 |
+
0xE013F: 84,
|
| 2852 |
+
0xE0140: 84,
|
| 2853 |
+
0xE0141: 84,
|
| 2854 |
+
0xE0142: 84,
|
| 2855 |
+
0xE0143: 84,
|
| 2856 |
+
0xE0144: 84,
|
| 2857 |
+
0xE0145: 84,
|
| 2858 |
+
0xE0146: 84,
|
| 2859 |
+
0xE0147: 84,
|
| 2860 |
+
0xE0148: 84,
|
| 2861 |
+
0xE0149: 84,
|
| 2862 |
+
0xE014A: 84,
|
| 2863 |
+
0xE014B: 84,
|
| 2864 |
+
0xE014C: 84,
|
| 2865 |
+
0xE014D: 84,
|
| 2866 |
+
0xE014E: 84,
|
| 2867 |
+
0xE014F: 84,
|
| 2868 |
+
0xE0150: 84,
|
| 2869 |
+
0xE0151: 84,
|
| 2870 |
+
0xE0152: 84,
|
| 2871 |
+
0xE0153: 84,
|
| 2872 |
+
0xE0154: 84,
|
| 2873 |
+
0xE0155: 84,
|
| 2874 |
+
0xE0156: 84,
|
| 2875 |
+
0xE0157: 84,
|
| 2876 |
+
0xE0158: 84,
|
| 2877 |
+
0xE0159: 84,
|
| 2878 |
+
0xE015A: 84,
|
| 2879 |
+
0xE015B: 84,
|
| 2880 |
+
0xE015C: 84,
|
| 2881 |
+
0xE015D: 84,
|
| 2882 |
+
0xE015E: 84,
|
| 2883 |
+
0xE015F: 84,
|
| 2884 |
+
0xE0160: 84,
|
| 2885 |
+
0xE0161: 84,
|
| 2886 |
+
0xE0162: 84,
|
| 2887 |
+
0xE0163: 84,
|
| 2888 |
+
0xE0164: 84,
|
| 2889 |
+
0xE0165: 84,
|
| 2890 |
+
0xE0166: 84,
|
| 2891 |
+
0xE0167: 84,
|
| 2892 |
+
0xE0168: 84,
|
| 2893 |
+
0xE0169: 84,
|
| 2894 |
+
0xE016A: 84,
|
| 2895 |
+
0xE016B: 84,
|
| 2896 |
+
0xE016C: 84,
|
| 2897 |
+
0xE016D: 84,
|
| 2898 |
+
0xE016E: 84,
|
| 2899 |
+
0xE016F: 84,
|
| 2900 |
+
0xE0170: 84,
|
| 2901 |
+
0xE0171: 84,
|
| 2902 |
+
0xE0172: 84,
|
| 2903 |
+
0xE0173: 84,
|
| 2904 |
+
0xE0174: 84,
|
| 2905 |
+
0xE0175: 84,
|
| 2906 |
+
0xE0176: 84,
|
| 2907 |
+
0xE0177: 84,
|
| 2908 |
+
0xE0178: 84,
|
| 2909 |
+
0xE0179: 84,
|
| 2910 |
+
0xE017A: 84,
|
| 2911 |
+
0xE017B: 84,
|
| 2912 |
+
0xE017C: 84,
|
| 2913 |
+
0xE017D: 84,
|
| 2914 |
+
0xE017E: 84,
|
| 2915 |
+
0xE017F: 84,
|
| 2916 |
+
0xE0180: 84,
|
| 2917 |
+
0xE0181: 84,
|
| 2918 |
+
0xE0182: 84,
|
| 2919 |
+
0xE0183: 84,
|
| 2920 |
+
0xE0184: 84,
|
| 2921 |
+
0xE0185: 84,
|
| 2922 |
+
0xE0186: 84,
|
| 2923 |
+
0xE0187: 84,
|
| 2924 |
+
0xE0188: 84,
|
| 2925 |
+
0xE0189: 84,
|
| 2926 |
+
0xE018A: 84,
|
| 2927 |
+
0xE018B: 84,
|
| 2928 |
+
0xE018C: 84,
|
| 2929 |
+
0xE018D: 84,
|
| 2930 |
+
0xE018E: 84,
|
| 2931 |
+
0xE018F: 84,
|
| 2932 |
+
0xE0190: 84,
|
| 2933 |
+
0xE0191: 84,
|
| 2934 |
+
0xE0192: 84,
|
| 2935 |
+
0xE0193: 84,
|
| 2936 |
+
0xE0194: 84,
|
| 2937 |
+
0xE0195: 84,
|
| 2938 |
+
0xE0196: 84,
|
| 2939 |
+
0xE0197: 84,
|
| 2940 |
+
0xE0198: 84,
|
| 2941 |
+
0xE0199: 84,
|
| 2942 |
+
0xE019A: 84,
|
| 2943 |
+
0xE019B: 84,
|
| 2944 |
+
0xE019C: 84,
|
| 2945 |
+
0xE019D: 84,
|
| 2946 |
+
0xE019E: 84,
|
| 2947 |
+
0xE019F: 84,
|
| 2948 |
+
0xE01A0: 84,
|
| 2949 |
+
0xE01A1: 84,
|
| 2950 |
+
0xE01A2: 84,
|
| 2951 |
+
0xE01A3: 84,
|
| 2952 |
+
0xE01A4: 84,
|
| 2953 |
+
0xE01A5: 84,
|
| 2954 |
+
0xE01A6: 84,
|
| 2955 |
+
0xE01A7: 84,
|
| 2956 |
+
0xE01A8: 84,
|
| 2957 |
+
0xE01A9: 84,
|
| 2958 |
+
0xE01AA: 84,
|
| 2959 |
+
0xE01AB: 84,
|
| 2960 |
+
0xE01AC: 84,
|
| 2961 |
+
0xE01AD: 84,
|
| 2962 |
+
0xE01AE: 84,
|
| 2963 |
+
0xE01AF: 84,
|
| 2964 |
+
0xE01B0: 84,
|
| 2965 |
+
0xE01B1: 84,
|
| 2966 |
+
0xE01B2: 84,
|
| 2967 |
+
0xE01B3: 84,
|
| 2968 |
+
0xE01B4: 84,
|
| 2969 |
+
0xE01B5: 84,
|
| 2970 |
+
0xE01B6: 84,
|
| 2971 |
+
0xE01B7: 84,
|
| 2972 |
+
0xE01B8: 84,
|
| 2973 |
+
0xE01B9: 84,
|
| 2974 |
+
0xE01BA: 84,
|
| 2975 |
+
0xE01BB: 84,
|
| 2976 |
+
0xE01BC: 84,
|
| 2977 |
+
0xE01BD: 84,
|
| 2978 |
+
0xE01BE: 84,
|
| 2979 |
+
0xE01BF: 84,
|
| 2980 |
+
0xE01C0: 84,
|
| 2981 |
+
0xE01C1: 84,
|
| 2982 |
+
0xE01C2: 84,
|
| 2983 |
+
0xE01C3: 84,
|
| 2984 |
+
0xE01C4: 84,
|
| 2985 |
+
0xE01C5: 84,
|
| 2986 |
+
0xE01C6: 84,
|
| 2987 |
+
0xE01C7: 84,
|
| 2988 |
+
0xE01C8: 84,
|
| 2989 |
+
0xE01C9: 84,
|
| 2990 |
+
0xE01CA: 84,
|
| 2991 |
+
0xE01CB: 84,
|
| 2992 |
+
0xE01CC: 84,
|
| 2993 |
+
0xE01CD: 84,
|
| 2994 |
+
0xE01CE: 84,
|
| 2995 |
+
0xE01CF: 84,
|
| 2996 |
+
0xE01D0: 84,
|
| 2997 |
+
0xE01D1: 84,
|
| 2998 |
+
0xE01D2: 84,
|
| 2999 |
+
0xE01D3: 84,
|
| 3000 |
+
0xE01D4: 84,
|
| 3001 |
+
0xE01D5: 84,
|
| 3002 |
+
0xE01D6: 84,
|
| 3003 |
+
0xE01D7: 84,
|
| 3004 |
+
0xE01D8: 84,
|
| 3005 |
+
0xE01D9: 84,
|
| 3006 |
+
0xE01DA: 84,
|
| 3007 |
+
0xE01DB: 84,
|
| 3008 |
+
0xE01DC: 84,
|
| 3009 |
+
0xE01DD: 84,
|
| 3010 |
+
0xE01DE: 84,
|
| 3011 |
+
0xE01DF: 84,
|
| 3012 |
+
0xE01E0: 84,
|
| 3013 |
+
0xE01E1: 84,
|
| 3014 |
+
0xE01E2: 84,
|
| 3015 |
+
0xE01E3: 84,
|
| 3016 |
+
0xE01E4: 84,
|
| 3017 |
+
0xE01E5: 84,
|
| 3018 |
+
0xE01E6: 84,
|
| 3019 |
+
0xE01E7: 84,
|
| 3020 |
+
0xE01E8: 84,
|
| 3021 |
+
0xE01E9: 84,
|
| 3022 |
+
0xE01EA: 84,
|
| 3023 |
+
0xE01EB: 84,
|
| 3024 |
+
0xE01EC: 84,
|
| 3025 |
+
0xE01ED: 84,
|
| 3026 |
+
0xE01EE: 84,
|
| 3027 |
+
0xE01EF: 84,
|
| 3028 |
+
}
|
| 3029 |
+
codepoint_classes = {
|
| 3030 |
+
"PVALID": (
|
| 3031 |
+
0x2D0000002E,
|
| 3032 |
+
0x300000003A,
|
| 3033 |
+
0x610000007B,
|
| 3034 |
+
0xDF000000F7,
|
| 3035 |
+
0xF800000100,
|
| 3036 |
+
0x10100000102,
|
| 3037 |
+
0x10300000104,
|
| 3038 |
+
0x10500000106,
|
| 3039 |
+
0x10700000108,
|
| 3040 |
+
0x1090000010A,
|
| 3041 |
+
0x10B0000010C,
|
| 3042 |
+
0x10D0000010E,
|
| 3043 |
+
0x10F00000110,
|
| 3044 |
+
0x11100000112,
|
| 3045 |
+
0x11300000114,
|
| 3046 |
+
0x11500000116,
|
| 3047 |
+
0x11700000118,
|
| 3048 |
+
0x1190000011A,
|
| 3049 |
+
0x11B0000011C,
|
| 3050 |
+
0x11D0000011E,
|
| 3051 |
+
0x11F00000120,
|
| 3052 |
+
0x12100000122,
|
| 3053 |
+
0x12300000124,
|
| 3054 |
+
0x12500000126,
|
| 3055 |
+
0x12700000128,
|
| 3056 |
+
0x1290000012A,
|
| 3057 |
+
0x12B0000012C,
|
| 3058 |
+
0x12D0000012E,
|
| 3059 |
+
0x12F00000130,
|
| 3060 |
+
0x13100000132,
|
| 3061 |
+
0x13500000136,
|
| 3062 |
+
0x13700000139,
|
| 3063 |
+
0x13A0000013B,
|
| 3064 |
+
0x13C0000013D,
|
| 3065 |
+
0x13E0000013F,
|
| 3066 |
+
0x14200000143,
|
| 3067 |
+
0x14400000145,
|
| 3068 |
+
0x14600000147,
|
| 3069 |
+
0x14800000149,
|
| 3070 |
+
0x14B0000014C,
|
| 3071 |
+
0x14D0000014E,
|
| 3072 |
+
0x14F00000150,
|
| 3073 |
+
0x15100000152,
|
| 3074 |
+
0x15300000154,
|
| 3075 |
+
0x15500000156,
|
| 3076 |
+
0x15700000158,
|
| 3077 |
+
0x1590000015A,
|
| 3078 |
+
0x15B0000015C,
|
| 3079 |
+
0x15D0000015E,
|
| 3080 |
+
0x15F00000160,
|
| 3081 |
+
0x16100000162,
|
| 3082 |
+
0x16300000164,
|
| 3083 |
+
0x16500000166,
|
| 3084 |
+
0x16700000168,
|
| 3085 |
+
0x1690000016A,
|
| 3086 |
+
0x16B0000016C,
|
| 3087 |
+
0x16D0000016E,
|
| 3088 |
+
0x16F00000170,
|
| 3089 |
+
0x17100000172,
|
| 3090 |
+
0x17300000174,
|
| 3091 |
+
0x17500000176,
|
| 3092 |
+
0x17700000178,
|
| 3093 |
+
0x17A0000017B,
|
| 3094 |
+
0x17C0000017D,
|
| 3095 |
+
0x17E0000017F,
|
| 3096 |
+
0x18000000181,
|
| 3097 |
+
0x18300000184,
|
| 3098 |
+
0x18500000186,
|
| 3099 |
+
0x18800000189,
|
| 3100 |
+
0x18C0000018E,
|
| 3101 |
+
0x19200000193,
|
| 3102 |
+
0x19500000196,
|
| 3103 |
+
0x1990000019C,
|
| 3104 |
+
0x19E0000019F,
|
| 3105 |
+
0x1A1000001A2,
|
| 3106 |
+
0x1A3000001A4,
|
| 3107 |
+
0x1A5000001A6,
|
| 3108 |
+
0x1A8000001A9,
|
| 3109 |
+
0x1AA000001AC,
|
| 3110 |
+
0x1AD000001AE,
|
| 3111 |
+
0x1B0000001B1,
|
| 3112 |
+
0x1B4000001B5,
|
| 3113 |
+
0x1B6000001B7,
|
| 3114 |
+
0x1B9000001BC,
|
| 3115 |
+
0x1BD000001C4,
|
| 3116 |
+
0x1CE000001CF,
|
| 3117 |
+
0x1D0000001D1,
|
| 3118 |
+
0x1D2000001D3,
|
| 3119 |
+
0x1D4000001D5,
|
| 3120 |
+
0x1D6000001D7,
|
| 3121 |
+
0x1D8000001D9,
|
| 3122 |
+
0x1DA000001DB,
|
| 3123 |
+
0x1DC000001DE,
|
| 3124 |
+
0x1DF000001E0,
|
| 3125 |
+
0x1E1000001E2,
|
| 3126 |
+
0x1E3000001E4,
|
| 3127 |
+
0x1E5000001E6,
|
| 3128 |
+
0x1E7000001E8,
|
| 3129 |
+
0x1E9000001EA,
|
| 3130 |
+
0x1EB000001EC,
|
| 3131 |
+
0x1ED000001EE,
|
| 3132 |
+
0x1EF000001F1,
|
| 3133 |
+
0x1F5000001F6,
|
| 3134 |
+
0x1F9000001FA,
|
| 3135 |
+
0x1FB000001FC,
|
| 3136 |
+
0x1FD000001FE,
|
| 3137 |
+
0x1FF00000200,
|
| 3138 |
+
0x20100000202,
|
| 3139 |
+
0x20300000204,
|
| 3140 |
+
0x20500000206,
|
| 3141 |
+
0x20700000208,
|
| 3142 |
+
0x2090000020A,
|
| 3143 |
+
0x20B0000020C,
|
| 3144 |
+
0x20D0000020E,
|
| 3145 |
+
0x20F00000210,
|
| 3146 |
+
0x21100000212,
|
| 3147 |
+
0x21300000214,
|
| 3148 |
+
0x21500000216,
|
| 3149 |
+
0x21700000218,
|
| 3150 |
+
0x2190000021A,
|
| 3151 |
+
0x21B0000021C,
|
| 3152 |
+
0x21D0000021E,
|
| 3153 |
+
0x21F00000220,
|
| 3154 |
+
0x22100000222,
|
| 3155 |
+
0x22300000224,
|
| 3156 |
+
0x22500000226,
|
| 3157 |
+
0x22700000228,
|
| 3158 |
+
0x2290000022A,
|
| 3159 |
+
0x22B0000022C,
|
| 3160 |
+
0x22D0000022E,
|
| 3161 |
+
0x22F00000230,
|
| 3162 |
+
0x23100000232,
|
| 3163 |
+
0x2330000023A,
|
| 3164 |
+
0x23C0000023D,
|
| 3165 |
+
0x23F00000241,
|
| 3166 |
+
0x24200000243,
|
| 3167 |
+
0x24700000248,
|
| 3168 |
+
0x2490000024A,
|
| 3169 |
+
0x24B0000024C,
|
| 3170 |
+
0x24D0000024E,
|
| 3171 |
+
0x24F000002B0,
|
| 3172 |
+
0x2B9000002C2,
|
| 3173 |
+
0x2C6000002D2,
|
| 3174 |
+
0x2EC000002ED,
|
| 3175 |
+
0x2EE000002EF,
|
| 3176 |
+
0x30000000340,
|
| 3177 |
+
0x34200000343,
|
| 3178 |
+
0x3460000034F,
|
| 3179 |
+
0x35000000370,
|
| 3180 |
+
0x37100000372,
|
| 3181 |
+
0x37300000374,
|
| 3182 |
+
0x37700000378,
|
| 3183 |
+
0x37B0000037E,
|
| 3184 |
+
0x39000000391,
|
| 3185 |
+
0x3AC000003CF,
|
| 3186 |
+
0x3D7000003D8,
|
| 3187 |
+
0x3D9000003DA,
|
| 3188 |
+
0x3DB000003DC,
|
| 3189 |
+
0x3DD000003DE,
|
| 3190 |
+
0x3DF000003E0,
|
| 3191 |
+
0x3E1000003E2,
|
| 3192 |
+
0x3E3000003E4,
|
| 3193 |
+
0x3E5000003E6,
|
| 3194 |
+
0x3E7000003E8,
|
| 3195 |
+
0x3E9000003EA,
|
| 3196 |
+
0x3EB000003EC,
|
| 3197 |
+
0x3ED000003EE,
|
| 3198 |
+
0x3EF000003F0,
|
| 3199 |
+
0x3F3000003F4,
|
| 3200 |
+
0x3F8000003F9,
|
| 3201 |
+
0x3FB000003FD,
|
| 3202 |
+
0x43000000460,
|
| 3203 |
+
0x46100000462,
|
| 3204 |
+
0x46300000464,
|
| 3205 |
+
0x46500000466,
|
| 3206 |
+
0x46700000468,
|
| 3207 |
+
0x4690000046A,
|
| 3208 |
+
0x46B0000046C,
|
| 3209 |
+
0x46D0000046E,
|
| 3210 |
+
0x46F00000470,
|
| 3211 |
+
0x47100000472,
|
| 3212 |
+
0x47300000474,
|
| 3213 |
+
0x47500000476,
|
| 3214 |
+
0x47700000478,
|
| 3215 |
+
0x4790000047A,
|
| 3216 |
+
0x47B0000047C,
|
| 3217 |
+
0x47D0000047E,
|
| 3218 |
+
0x47F00000480,
|
| 3219 |
+
0x48100000482,
|
| 3220 |
+
0x48300000488,
|
| 3221 |
+
0x48B0000048C,
|
| 3222 |
+
0x48D0000048E,
|
| 3223 |
+
0x48F00000490,
|
| 3224 |
+
0x49100000492,
|
| 3225 |
+
0x49300000494,
|
| 3226 |
+
0x49500000496,
|
| 3227 |
+
0x49700000498,
|
| 3228 |
+
0x4990000049A,
|
| 3229 |
+
0x49B0000049C,
|
| 3230 |
+
0x49D0000049E,
|
| 3231 |
+
0x49F000004A0,
|
| 3232 |
+
0x4A1000004A2,
|
| 3233 |
+
0x4A3000004A4,
|
| 3234 |
+
0x4A5000004A6,
|
| 3235 |
+
0x4A7000004A8,
|
| 3236 |
+
0x4A9000004AA,
|
| 3237 |
+
0x4AB000004AC,
|
| 3238 |
+
0x4AD000004AE,
|
| 3239 |
+
0x4AF000004B0,
|
| 3240 |
+
0x4B1000004B2,
|
| 3241 |
+
0x4B3000004B4,
|
| 3242 |
+
0x4B5000004B6,
|
| 3243 |
+
0x4B7000004B8,
|
| 3244 |
+
0x4B9000004BA,
|
| 3245 |
+
0x4BB000004BC,
|
| 3246 |
+
0x4BD000004BE,
|
| 3247 |
+
0x4BF000004C0,
|
| 3248 |
+
0x4C2000004C3,
|
| 3249 |
+
0x4C4000004C5,
|
| 3250 |
+
0x4C6000004C7,
|
| 3251 |
+
0x4C8000004C9,
|
| 3252 |
+
0x4CA000004CB,
|
| 3253 |
+
0x4CC000004CD,
|
| 3254 |
+
0x4CE000004D0,
|
| 3255 |
+
0x4D1000004D2,
|
| 3256 |
+
0x4D3000004D4,
|
| 3257 |
+
0x4D5000004D6,
|
| 3258 |
+
0x4D7000004D8,
|
| 3259 |
+
0x4D9000004DA,
|
| 3260 |
+
0x4DB000004DC,
|
| 3261 |
+
0x4DD000004DE,
|
| 3262 |
+
0x4DF000004E0,
|
| 3263 |
+
0x4E1000004E2,
|
| 3264 |
+
0x4E3000004E4,
|
| 3265 |
+
0x4E5000004E6,
|
| 3266 |
+
0x4E7000004E8,
|
| 3267 |
+
0x4E9000004EA,
|
| 3268 |
+
0x4EB000004EC,
|
| 3269 |
+
0x4ED000004EE,
|
| 3270 |
+
0x4EF000004F0,
|
| 3271 |
+
0x4F1000004F2,
|
| 3272 |
+
0x4F3000004F4,
|
| 3273 |
+
0x4F5000004F6,
|
| 3274 |
+
0x4F7000004F8,
|
| 3275 |
+
0x4F9000004FA,
|
| 3276 |
+
0x4FB000004FC,
|
| 3277 |
+
0x4FD000004FE,
|
| 3278 |
+
0x4FF00000500,
|
| 3279 |
+
0x50100000502,
|
| 3280 |
+
0x50300000504,
|
| 3281 |
+
0x50500000506,
|
| 3282 |
+
0x50700000508,
|
| 3283 |
+
0x5090000050A,
|
| 3284 |
+
0x50B0000050C,
|
| 3285 |
+
0x50D0000050E,
|
| 3286 |
+
0x50F00000510,
|
| 3287 |
+
0x51100000512,
|
| 3288 |
+
0x51300000514,
|
| 3289 |
+
0x51500000516,
|
| 3290 |
+
0x51700000518,
|
| 3291 |
+
0x5190000051A,
|
| 3292 |
+
0x51B0000051C,
|
| 3293 |
+
0x51D0000051E,
|
| 3294 |
+
0x51F00000520,
|
| 3295 |
+
0x52100000522,
|
| 3296 |
+
0x52300000524,
|
| 3297 |
+
0x52500000526,
|
| 3298 |
+
0x52700000528,
|
| 3299 |
+
0x5290000052A,
|
| 3300 |
+
0x52B0000052C,
|
| 3301 |
+
0x52D0000052E,
|
| 3302 |
+
0x52F00000530,
|
| 3303 |
+
0x5590000055A,
|
| 3304 |
+
0x56000000587,
|
| 3305 |
+
0x58800000589,
|
| 3306 |
+
0x591000005BE,
|
| 3307 |
+
0x5BF000005C0,
|
| 3308 |
+
0x5C1000005C3,
|
| 3309 |
+
0x5C4000005C6,
|
| 3310 |
+
0x5C7000005C8,
|
| 3311 |
+
0x5D0000005EB,
|
| 3312 |
+
0x5EF000005F3,
|
| 3313 |
+
0x6100000061B,
|
| 3314 |
+
0x62000000640,
|
| 3315 |
+
0x64100000660,
|
| 3316 |
+
0x66E00000675,
|
| 3317 |
+
0x679000006D4,
|
| 3318 |
+
0x6D5000006DD,
|
| 3319 |
+
0x6DF000006E9,
|
| 3320 |
+
0x6EA000006F0,
|
| 3321 |
+
0x6FA00000700,
|
| 3322 |
+
0x7100000074B,
|
| 3323 |
+
0x74D000007B2,
|
| 3324 |
+
0x7C0000007F6,
|
| 3325 |
+
0x7FD000007FE,
|
| 3326 |
+
0x8000000082E,
|
| 3327 |
+
0x8400000085C,
|
| 3328 |
+
0x8600000086B,
|
| 3329 |
+
0x87000000888,
|
| 3330 |
+
0x8890000088F,
|
| 3331 |
+
0x898000008E2,
|
| 3332 |
+
0x8E300000958,
|
| 3333 |
+
0x96000000964,
|
| 3334 |
+
0x96600000970,
|
| 3335 |
+
0x97100000984,
|
| 3336 |
+
0x9850000098D,
|
| 3337 |
+
0x98F00000991,
|
| 3338 |
+
0x993000009A9,
|
| 3339 |
+
0x9AA000009B1,
|
| 3340 |
+
0x9B2000009B3,
|
| 3341 |
+
0x9B6000009BA,
|
| 3342 |
+
0x9BC000009C5,
|
| 3343 |
+
0x9C7000009C9,
|
| 3344 |
+
0x9CB000009CF,
|
| 3345 |
+
0x9D7000009D8,
|
| 3346 |
+
0x9E0000009E4,
|
| 3347 |
+
0x9E6000009F2,
|
| 3348 |
+
0x9FC000009FD,
|
| 3349 |
+
0x9FE000009FF,
|
| 3350 |
+
0xA0100000A04,
|
| 3351 |
+
0xA0500000A0B,
|
| 3352 |
+
0xA0F00000A11,
|
| 3353 |
+
0xA1300000A29,
|
| 3354 |
+
0xA2A00000A31,
|
| 3355 |
+
0xA3200000A33,
|
| 3356 |
+
0xA3500000A36,
|
| 3357 |
+
0xA3800000A3A,
|
| 3358 |
+
0xA3C00000A3D,
|
| 3359 |
+
0xA3E00000A43,
|
| 3360 |
+
0xA4700000A49,
|
| 3361 |
+
0xA4B00000A4E,
|
| 3362 |
+
0xA5100000A52,
|
| 3363 |
+
0xA5C00000A5D,
|
| 3364 |
+
0xA6600000A76,
|
| 3365 |
+
0xA8100000A84,
|
| 3366 |
+
0xA8500000A8E,
|
| 3367 |
+
0xA8F00000A92,
|
| 3368 |
+
0xA9300000AA9,
|
| 3369 |
+
0xAAA00000AB1,
|
| 3370 |
+
0xAB200000AB4,
|
| 3371 |
+
0xAB500000ABA,
|
| 3372 |
+
0xABC00000AC6,
|
| 3373 |
+
0xAC700000ACA,
|
| 3374 |
+
0xACB00000ACE,
|
| 3375 |
+
0xAD000000AD1,
|
| 3376 |
+
0xAE000000AE4,
|
| 3377 |
+
0xAE600000AF0,
|
| 3378 |
+
0xAF900000B00,
|
| 3379 |
+
0xB0100000B04,
|
| 3380 |
+
0xB0500000B0D,
|
| 3381 |
+
0xB0F00000B11,
|
| 3382 |
+
0xB1300000B29,
|
| 3383 |
+
0xB2A00000B31,
|
| 3384 |
+
0xB3200000B34,
|
| 3385 |
+
0xB3500000B3A,
|
| 3386 |
+
0xB3C00000B45,
|
| 3387 |
+
0xB4700000B49,
|
| 3388 |
+
0xB4B00000B4E,
|
| 3389 |
+
0xB5500000B58,
|
| 3390 |
+
0xB5F00000B64,
|
| 3391 |
+
0xB6600000B70,
|
| 3392 |
+
0xB7100000B72,
|
| 3393 |
+
0xB8200000B84,
|
| 3394 |
+
0xB8500000B8B,
|
| 3395 |
+
0xB8E00000B91,
|
| 3396 |
+
0xB9200000B96,
|
| 3397 |
+
0xB9900000B9B,
|
| 3398 |
+
0xB9C00000B9D,
|
| 3399 |
+
0xB9E00000BA0,
|
| 3400 |
+
0xBA300000BA5,
|
| 3401 |
+
0xBA800000BAB,
|
| 3402 |
+
0xBAE00000BBA,
|
| 3403 |
+
0xBBE00000BC3,
|
| 3404 |
+
0xBC600000BC9,
|
| 3405 |
+
0xBCA00000BCE,
|
| 3406 |
+
0xBD000000BD1,
|
| 3407 |
+
0xBD700000BD8,
|
| 3408 |
+
0xBE600000BF0,
|
| 3409 |
+
0xC0000000C0D,
|
| 3410 |
+
0xC0E00000C11,
|
| 3411 |
+
0xC1200000C29,
|
| 3412 |
+
0xC2A00000C3A,
|
| 3413 |
+
0xC3C00000C45,
|
| 3414 |
+
0xC4600000C49,
|
| 3415 |
+
0xC4A00000C4E,
|
| 3416 |
+
0xC5500000C57,
|
| 3417 |
+
0xC5800000C5B,
|
| 3418 |
+
0xC5D00000C5E,
|
| 3419 |
+
0xC6000000C64,
|
| 3420 |
+
0xC6600000C70,
|
| 3421 |
+
0xC8000000C84,
|
| 3422 |
+
0xC8500000C8D,
|
| 3423 |
+
0xC8E00000C91,
|
| 3424 |
+
0xC9200000CA9,
|
| 3425 |
+
0xCAA00000CB4,
|
| 3426 |
+
0xCB500000CBA,
|
| 3427 |
+
0xCBC00000CC5,
|
| 3428 |
+
0xCC600000CC9,
|
| 3429 |
+
0xCCA00000CCE,
|
| 3430 |
+
0xCD500000CD7,
|
| 3431 |
+
0xCDD00000CDF,
|
| 3432 |
+
0xCE000000CE4,
|
| 3433 |
+
0xCE600000CF0,
|
| 3434 |
+
0xCF100000CF4,
|
| 3435 |
+
0xD0000000D0D,
|
| 3436 |
+
0xD0E00000D11,
|
| 3437 |
+
0xD1200000D45,
|
| 3438 |
+
0xD4600000D49,
|
| 3439 |
+
0xD4A00000D4F,
|
| 3440 |
+
0xD5400000D58,
|
| 3441 |
+
0xD5F00000D64,
|
| 3442 |
+
0xD6600000D70,
|
| 3443 |
+
0xD7A00000D80,
|
| 3444 |
+
0xD8100000D84,
|
| 3445 |
+
0xD8500000D97,
|
| 3446 |
+
0xD9A00000DB2,
|
| 3447 |
+
0xDB300000DBC,
|
| 3448 |
+
0xDBD00000DBE,
|
| 3449 |
+
0xDC000000DC7,
|
| 3450 |
+
0xDCA00000DCB,
|
| 3451 |
+
0xDCF00000DD5,
|
| 3452 |
+
0xDD600000DD7,
|
| 3453 |
+
0xDD800000DE0,
|
| 3454 |
+
0xDE600000DF0,
|
| 3455 |
+
0xDF200000DF4,
|
| 3456 |
+
0xE0100000E33,
|
| 3457 |
+
0xE3400000E3B,
|
| 3458 |
+
0xE4000000E4F,
|
| 3459 |
+
0xE5000000E5A,
|
| 3460 |
+
0xE8100000E83,
|
| 3461 |
+
0xE8400000E85,
|
| 3462 |
+
0xE8600000E8B,
|
| 3463 |
+
0xE8C00000EA4,
|
| 3464 |
+
0xEA500000EA6,
|
| 3465 |
+
0xEA700000EB3,
|
| 3466 |
+
0xEB400000EBE,
|
| 3467 |
+
0xEC000000EC5,
|
| 3468 |
+
0xEC600000EC7,
|
| 3469 |
+
0xEC800000ECF,
|
| 3470 |
+
0xED000000EDA,
|
| 3471 |
+
0xEDE00000EE0,
|
| 3472 |
+
0xF0000000F01,
|
| 3473 |
+
0xF0B00000F0C,
|
| 3474 |
+
0xF1800000F1A,
|
| 3475 |
+
0xF2000000F2A,
|
| 3476 |
+
0xF3500000F36,
|
| 3477 |
+
0xF3700000F38,
|
| 3478 |
+
0xF3900000F3A,
|
| 3479 |
+
0xF3E00000F43,
|
| 3480 |
+
0xF4400000F48,
|
| 3481 |
+
0xF4900000F4D,
|
| 3482 |
+
0xF4E00000F52,
|
| 3483 |
+
0xF5300000F57,
|
| 3484 |
+
0xF5800000F5C,
|
| 3485 |
+
0xF5D00000F69,
|
| 3486 |
+
0xF6A00000F6D,
|
| 3487 |
+
0xF7100000F73,
|
| 3488 |
+
0xF7400000F75,
|
| 3489 |
+
0xF7A00000F81,
|
| 3490 |
+
0xF8200000F85,
|
| 3491 |
+
0xF8600000F93,
|
| 3492 |
+
0xF9400000F98,
|
| 3493 |
+
0xF9900000F9D,
|
| 3494 |
+
0xF9E00000FA2,
|
| 3495 |
+
0xFA300000FA7,
|
| 3496 |
+
0xFA800000FAC,
|
| 3497 |
+
0xFAD00000FB9,
|
| 3498 |
+
0xFBA00000FBD,
|
| 3499 |
+
0xFC600000FC7,
|
| 3500 |
+
0x10000000104A,
|
| 3501 |
+
0x10500000109E,
|
| 3502 |
+
0x10D0000010FB,
|
| 3503 |
+
0x10FD00001100,
|
| 3504 |
+
0x120000001249,
|
| 3505 |
+
0x124A0000124E,
|
| 3506 |
+
0x125000001257,
|
| 3507 |
+
0x125800001259,
|
| 3508 |
+
0x125A0000125E,
|
| 3509 |
+
0x126000001289,
|
| 3510 |
+
0x128A0000128E,
|
| 3511 |
+
0x1290000012B1,
|
| 3512 |
+
0x12B2000012B6,
|
| 3513 |
+
0x12B8000012BF,
|
| 3514 |
+
0x12C0000012C1,
|
| 3515 |
+
0x12C2000012C6,
|
| 3516 |
+
0x12C8000012D7,
|
| 3517 |
+
0x12D800001311,
|
| 3518 |
+
0x131200001316,
|
| 3519 |
+
0x13180000135B,
|
| 3520 |
+
0x135D00001360,
|
| 3521 |
+
0x138000001390,
|
| 3522 |
+
0x13A0000013F6,
|
| 3523 |
+
0x14010000166D,
|
| 3524 |
+
0x166F00001680,
|
| 3525 |
+
0x16810000169B,
|
| 3526 |
+
0x16A0000016EB,
|
| 3527 |
+
0x16F1000016F9,
|
| 3528 |
+
0x170000001716,
|
| 3529 |
+
0x171F00001735,
|
| 3530 |
+
0x174000001754,
|
| 3531 |
+
0x17600000176D,
|
| 3532 |
+
0x176E00001771,
|
| 3533 |
+
0x177200001774,
|
| 3534 |
+
0x1780000017B4,
|
| 3535 |
+
0x17B6000017D4,
|
| 3536 |
+
0x17D7000017D8,
|
| 3537 |
+
0x17DC000017DE,
|
| 3538 |
+
0x17E0000017EA,
|
| 3539 |
+
0x18100000181A,
|
| 3540 |
+
0x182000001879,
|
| 3541 |
+
0x1880000018AB,
|
| 3542 |
+
0x18B0000018F6,
|
| 3543 |
+
0x19000000191F,
|
| 3544 |
+
0x19200000192C,
|
| 3545 |
+
0x19300000193C,
|
| 3546 |
+
0x19460000196E,
|
| 3547 |
+
0x197000001975,
|
| 3548 |
+
0x1980000019AC,
|
| 3549 |
+
0x19B0000019CA,
|
| 3550 |
+
0x19D0000019DA,
|
| 3551 |
+
0x1A0000001A1C,
|
| 3552 |
+
0x1A2000001A5F,
|
| 3553 |
+
0x1A6000001A7D,
|
| 3554 |
+
0x1A7F00001A8A,
|
| 3555 |
+
0x1A9000001A9A,
|
| 3556 |
+
0x1AA700001AA8,
|
| 3557 |
+
0x1AB000001ABE,
|
| 3558 |
+
0x1ABF00001ACF,
|
| 3559 |
+
0x1B0000001B4D,
|
| 3560 |
+
0x1B5000001B5A,
|
| 3561 |
+
0x1B6B00001B74,
|
| 3562 |
+
0x1B8000001BF4,
|
| 3563 |
+
0x1C0000001C38,
|
| 3564 |
+
0x1C4000001C4A,
|
| 3565 |
+
0x1C4D00001C7E,
|
| 3566 |
+
0x1CD000001CD3,
|
| 3567 |
+
0x1CD400001CFB,
|
| 3568 |
+
0x1D0000001D2C,
|
| 3569 |
+
0x1D2F00001D30,
|
| 3570 |
+
0x1D3B00001D3C,
|
| 3571 |
+
0x1D4E00001D4F,
|
| 3572 |
+
0x1D6B00001D78,
|
| 3573 |
+
0x1D7900001D9B,
|
| 3574 |
+
0x1DC000001E00,
|
| 3575 |
+
0x1E0100001E02,
|
| 3576 |
+
0x1E0300001E04,
|
| 3577 |
+
0x1E0500001E06,
|
| 3578 |
+
0x1E0700001E08,
|
| 3579 |
+
0x1E0900001E0A,
|
| 3580 |
+
0x1E0B00001E0C,
|
| 3581 |
+
0x1E0D00001E0E,
|
| 3582 |
+
0x1E0F00001E10,
|
| 3583 |
+
0x1E1100001E12,
|
| 3584 |
+
0x1E1300001E14,
|
| 3585 |
+
0x1E1500001E16,
|
| 3586 |
+
0x1E1700001E18,
|
| 3587 |
+
0x1E1900001E1A,
|
| 3588 |
+
0x1E1B00001E1C,
|
| 3589 |
+
0x1E1D00001E1E,
|
| 3590 |
+
0x1E1F00001E20,
|
| 3591 |
+
0x1E2100001E22,
|
| 3592 |
+
0x1E2300001E24,
|
| 3593 |
+
0x1E2500001E26,
|
| 3594 |
+
0x1E2700001E28,
|
| 3595 |
+
0x1E2900001E2A,
|
| 3596 |
+
0x1E2B00001E2C,
|
| 3597 |
+
0x1E2D00001E2E,
|
| 3598 |
+
0x1E2F00001E30,
|
| 3599 |
+
0x1E3100001E32,
|
| 3600 |
+
0x1E3300001E34,
|
| 3601 |
+
0x1E3500001E36,
|
| 3602 |
+
0x1E3700001E38,
|
| 3603 |
+
0x1E3900001E3A,
|
| 3604 |
+
0x1E3B00001E3C,
|
| 3605 |
+
0x1E3D00001E3E,
|
| 3606 |
+
0x1E3F00001E40,
|
| 3607 |
+
0x1E4100001E42,
|
| 3608 |
+
0x1E4300001E44,
|
| 3609 |
+
0x1E4500001E46,
|
| 3610 |
+
0x1E4700001E48,
|
| 3611 |
+
0x1E4900001E4A,
|
| 3612 |
+
0x1E4B00001E4C,
|
| 3613 |
+
0x1E4D00001E4E,
|
| 3614 |
+
0x1E4F00001E50,
|
| 3615 |
+
0x1E5100001E52,
|
| 3616 |
+
0x1E5300001E54,
|
| 3617 |
+
0x1E5500001E56,
|
| 3618 |
+
0x1E5700001E58,
|
| 3619 |
+
0x1E5900001E5A,
|
| 3620 |
+
0x1E5B00001E5C,
|
| 3621 |
+
0x1E5D00001E5E,
|
| 3622 |
+
0x1E5F00001E60,
|
| 3623 |
+
0x1E6100001E62,
|
| 3624 |
+
0x1E6300001E64,
|
| 3625 |
+
0x1E6500001E66,
|
| 3626 |
+
0x1E6700001E68,
|
| 3627 |
+
0x1E6900001E6A,
|
| 3628 |
+
0x1E6B00001E6C,
|
| 3629 |
+
0x1E6D00001E6E,
|
| 3630 |
+
0x1E6F00001E70,
|
| 3631 |
+
0x1E7100001E72,
|
| 3632 |
+
0x1E7300001E74,
|
| 3633 |
+
0x1E7500001E76,
|
| 3634 |
+
0x1E7700001E78,
|
| 3635 |
+
0x1E7900001E7A,
|
| 3636 |
+
0x1E7B00001E7C,
|
| 3637 |
+
0x1E7D00001E7E,
|
| 3638 |
+
0x1E7F00001E80,
|
| 3639 |
+
0x1E8100001E82,
|
| 3640 |
+
0x1E8300001E84,
|
| 3641 |
+
0x1E8500001E86,
|
| 3642 |
+
0x1E8700001E88,
|
| 3643 |
+
0x1E8900001E8A,
|
| 3644 |
+
0x1E8B00001E8C,
|
| 3645 |
+
0x1E8D00001E8E,
|
| 3646 |
+
0x1E8F00001E90,
|
| 3647 |
+
0x1E9100001E92,
|
| 3648 |
+
0x1E9300001E94,
|
| 3649 |
+
0x1E9500001E9A,
|
| 3650 |
+
0x1E9C00001E9E,
|
| 3651 |
+
0x1E9F00001EA0,
|
| 3652 |
+
0x1EA100001EA2,
|
| 3653 |
+
0x1EA300001EA4,
|
| 3654 |
+
0x1EA500001EA6,
|
| 3655 |
+
0x1EA700001EA8,
|
| 3656 |
+
0x1EA900001EAA,
|
| 3657 |
+
0x1EAB00001EAC,
|
| 3658 |
+
0x1EAD00001EAE,
|
| 3659 |
+
0x1EAF00001EB0,
|
| 3660 |
+
0x1EB100001EB2,
|
| 3661 |
+
0x1EB300001EB4,
|
| 3662 |
+
0x1EB500001EB6,
|
| 3663 |
+
0x1EB700001EB8,
|
| 3664 |
+
0x1EB900001EBA,
|
| 3665 |
+
0x1EBB00001EBC,
|
| 3666 |
+
0x1EBD00001EBE,
|
| 3667 |
+
0x1EBF00001EC0,
|
| 3668 |
+
0x1EC100001EC2,
|
| 3669 |
+
0x1EC300001EC4,
|
| 3670 |
+
0x1EC500001EC6,
|
| 3671 |
+
0x1EC700001EC8,
|
| 3672 |
+
0x1EC900001ECA,
|
| 3673 |
+
0x1ECB00001ECC,
|
| 3674 |
+
0x1ECD00001ECE,
|
| 3675 |
+
0x1ECF00001ED0,
|
| 3676 |
+
0x1ED100001ED2,
|
| 3677 |
+
0x1ED300001ED4,
|
| 3678 |
+
0x1ED500001ED6,
|
| 3679 |
+
0x1ED700001ED8,
|
| 3680 |
+
0x1ED900001EDA,
|
| 3681 |
+
0x1EDB00001EDC,
|
| 3682 |
+
0x1EDD00001EDE,
|
| 3683 |
+
0x1EDF00001EE0,
|
| 3684 |
+
0x1EE100001EE2,
|
| 3685 |
+
0x1EE300001EE4,
|
| 3686 |
+
0x1EE500001EE6,
|
| 3687 |
+
0x1EE700001EE8,
|
| 3688 |
+
0x1EE900001EEA,
|
| 3689 |
+
0x1EEB00001EEC,
|
| 3690 |
+
0x1EED00001EEE,
|
| 3691 |
+
0x1EEF00001EF0,
|
| 3692 |
+
0x1EF100001EF2,
|
| 3693 |
+
0x1EF300001EF4,
|
| 3694 |
+
0x1EF500001EF6,
|
| 3695 |
+
0x1EF700001EF8,
|
| 3696 |
+
0x1EF900001EFA,
|
| 3697 |
+
0x1EFB00001EFC,
|
| 3698 |
+
0x1EFD00001EFE,
|
| 3699 |
+
0x1EFF00001F08,
|
| 3700 |
+
0x1F1000001F16,
|
| 3701 |
+
0x1F2000001F28,
|
| 3702 |
+
0x1F3000001F38,
|
| 3703 |
+
0x1F4000001F46,
|
| 3704 |
+
0x1F5000001F58,
|
| 3705 |
+
0x1F6000001F68,
|
| 3706 |
+
0x1F7000001F71,
|
| 3707 |
+
0x1F7200001F73,
|
| 3708 |
+
0x1F7400001F75,
|
| 3709 |
+
0x1F7600001F77,
|
| 3710 |
+
0x1F7800001F79,
|
| 3711 |
+
0x1F7A00001F7B,
|
| 3712 |
+
0x1F7C00001F7D,
|
| 3713 |
+
0x1FB000001FB2,
|
| 3714 |
+
0x1FB600001FB7,
|
| 3715 |
+
0x1FC600001FC7,
|
| 3716 |
+
0x1FD000001FD3,
|
| 3717 |
+
0x1FD600001FD8,
|
| 3718 |
+
0x1FE000001FE3,
|
| 3719 |
+
0x1FE400001FE8,
|
| 3720 |
+
0x1FF600001FF7,
|
| 3721 |
+
0x214E0000214F,
|
| 3722 |
+
0x218400002185,
|
| 3723 |
+
0x2C3000002C60,
|
| 3724 |
+
0x2C6100002C62,
|
| 3725 |
+
0x2C6500002C67,
|
| 3726 |
+
0x2C6800002C69,
|
| 3727 |
+
0x2C6A00002C6B,
|
| 3728 |
+
0x2C6C00002C6D,
|
| 3729 |
+
0x2C7100002C72,
|
| 3730 |
+
0x2C7300002C75,
|
| 3731 |
+
0x2C7600002C7C,
|
| 3732 |
+
0x2C8100002C82,
|
| 3733 |
+
0x2C8300002C84,
|
| 3734 |
+
0x2C8500002C86,
|
| 3735 |
+
0x2C8700002C88,
|
| 3736 |
+
0x2C8900002C8A,
|
| 3737 |
+
0x2C8B00002C8C,
|
| 3738 |
+
0x2C8D00002C8E,
|
| 3739 |
+
0x2C8F00002C90,
|
| 3740 |
+
0x2C9100002C92,
|
| 3741 |
+
0x2C9300002C94,
|
| 3742 |
+
0x2C9500002C96,
|
| 3743 |
+
0x2C9700002C98,
|
| 3744 |
+
0x2C9900002C9A,
|
| 3745 |
+
0x2C9B00002C9C,
|
| 3746 |
+
0x2C9D00002C9E,
|
| 3747 |
+
0x2C9F00002CA0,
|
| 3748 |
+
0x2CA100002CA2,
|
| 3749 |
+
0x2CA300002CA4,
|
| 3750 |
+
0x2CA500002CA6,
|
| 3751 |
+
0x2CA700002CA8,
|
| 3752 |
+
0x2CA900002CAA,
|
| 3753 |
+
0x2CAB00002CAC,
|
| 3754 |
+
0x2CAD00002CAE,
|
| 3755 |
+
0x2CAF00002CB0,
|
| 3756 |
+
0x2CB100002CB2,
|
| 3757 |
+
0x2CB300002CB4,
|
| 3758 |
+
0x2CB500002CB6,
|
| 3759 |
+
0x2CB700002CB8,
|
| 3760 |
+
0x2CB900002CBA,
|
| 3761 |
+
0x2CBB00002CBC,
|
| 3762 |
+
0x2CBD00002CBE,
|
| 3763 |
+
0x2CBF00002CC0,
|
| 3764 |
+
0x2CC100002CC2,
|
| 3765 |
+
0x2CC300002CC4,
|
| 3766 |
+
0x2CC500002CC6,
|
| 3767 |
+
0x2CC700002CC8,
|
| 3768 |
+
0x2CC900002CCA,
|
| 3769 |
+
0x2CCB00002CCC,
|
| 3770 |
+
0x2CCD00002CCE,
|
| 3771 |
+
0x2CCF00002CD0,
|
| 3772 |
+
0x2CD100002CD2,
|
| 3773 |
+
0x2CD300002CD4,
|
| 3774 |
+
0x2CD500002CD6,
|
| 3775 |
+
0x2CD700002CD8,
|
| 3776 |
+
0x2CD900002CDA,
|
| 3777 |
+
0x2CDB00002CDC,
|
| 3778 |
+
0x2CDD00002CDE,
|
| 3779 |
+
0x2CDF00002CE0,
|
| 3780 |
+
0x2CE100002CE2,
|
| 3781 |
+
0x2CE300002CE5,
|
| 3782 |
+
0x2CEC00002CED,
|
| 3783 |
+
0x2CEE00002CF2,
|
| 3784 |
+
0x2CF300002CF4,
|
| 3785 |
+
0x2D0000002D26,
|
| 3786 |
+
0x2D2700002D28,
|
| 3787 |
+
0x2D2D00002D2E,
|
| 3788 |
+
0x2D3000002D68,
|
| 3789 |
+
0x2D7F00002D97,
|
| 3790 |
+
0x2DA000002DA7,
|
| 3791 |
+
0x2DA800002DAF,
|
| 3792 |
+
0x2DB000002DB7,
|
| 3793 |
+
0x2DB800002DBF,
|
| 3794 |
+
0x2DC000002DC7,
|
| 3795 |
+
0x2DC800002DCF,
|
| 3796 |
+
0x2DD000002DD7,
|
| 3797 |
+
0x2DD800002DDF,
|
| 3798 |
+
0x2DE000002E00,
|
| 3799 |
+
0x2E2F00002E30,
|
| 3800 |
+
0x300500003008,
|
| 3801 |
+
0x302A0000302E,
|
| 3802 |
+
0x303C0000303D,
|
| 3803 |
+
0x304100003097,
|
| 3804 |
+
0x30990000309B,
|
| 3805 |
+
0x309D0000309F,
|
| 3806 |
+
0x30A1000030FB,
|
| 3807 |
+
0x30FC000030FF,
|
| 3808 |
+
0x310500003130,
|
| 3809 |
+
0x31A0000031C0,
|
| 3810 |
+
0x31F000003200,
|
| 3811 |
+
0x340000004DC0,
|
| 3812 |
+
0x4E000000A48D,
|
| 3813 |
+
0xA4D00000A4FE,
|
| 3814 |
+
0xA5000000A60D,
|
| 3815 |
+
0xA6100000A62C,
|
| 3816 |
+
0xA6410000A642,
|
| 3817 |
+
0xA6430000A644,
|
| 3818 |
+
0xA6450000A646,
|
| 3819 |
+
0xA6470000A648,
|
| 3820 |
+
0xA6490000A64A,
|
| 3821 |
+
0xA64B0000A64C,
|
| 3822 |
+
0xA64D0000A64E,
|
| 3823 |
+
0xA64F0000A650,
|
| 3824 |
+
0xA6510000A652,
|
| 3825 |
+
0xA6530000A654,
|
| 3826 |
+
0xA6550000A656,
|
| 3827 |
+
0xA6570000A658,
|
| 3828 |
+
0xA6590000A65A,
|
| 3829 |
+
0xA65B0000A65C,
|
| 3830 |
+
0xA65D0000A65E,
|
| 3831 |
+
0xA65F0000A660,
|
| 3832 |
+
0xA6610000A662,
|
| 3833 |
+
0xA6630000A664,
|
| 3834 |
+
0xA6650000A666,
|
| 3835 |
+
0xA6670000A668,
|
| 3836 |
+
0xA6690000A66A,
|
| 3837 |
+
0xA66B0000A66C,
|
| 3838 |
+
0xA66D0000A670,
|
| 3839 |
+
0xA6740000A67E,
|
| 3840 |
+
0xA67F0000A680,
|
| 3841 |
+
0xA6810000A682,
|
| 3842 |
+
0xA6830000A684,
|
| 3843 |
+
0xA6850000A686,
|
| 3844 |
+
0xA6870000A688,
|
| 3845 |
+
0xA6890000A68A,
|
| 3846 |
+
0xA68B0000A68C,
|
| 3847 |
+
0xA68D0000A68E,
|
| 3848 |
+
0xA68F0000A690,
|
| 3849 |
+
0xA6910000A692,
|
| 3850 |
+
0xA6930000A694,
|
| 3851 |
+
0xA6950000A696,
|
| 3852 |
+
0xA6970000A698,
|
| 3853 |
+
0xA6990000A69A,
|
| 3854 |
+
0xA69B0000A69C,
|
| 3855 |
+
0xA69E0000A6E6,
|
| 3856 |
+
0xA6F00000A6F2,
|
| 3857 |
+
0xA7170000A720,
|
| 3858 |
+
0xA7230000A724,
|
| 3859 |
+
0xA7250000A726,
|
| 3860 |
+
0xA7270000A728,
|
| 3861 |
+
0xA7290000A72A,
|
| 3862 |
+
0xA72B0000A72C,
|
| 3863 |
+
0xA72D0000A72E,
|
| 3864 |
+
0xA72F0000A732,
|
| 3865 |
+
0xA7330000A734,
|
| 3866 |
+
0xA7350000A736,
|
| 3867 |
+
0xA7370000A738,
|
| 3868 |
+
0xA7390000A73A,
|
| 3869 |
+
0xA73B0000A73C,
|
| 3870 |
+
0xA73D0000A73E,
|
| 3871 |
+
0xA73F0000A740,
|
| 3872 |
+
0xA7410000A742,
|
| 3873 |
+
0xA7430000A744,
|
| 3874 |
+
0xA7450000A746,
|
| 3875 |
+
0xA7470000A748,
|
| 3876 |
+
0xA7490000A74A,
|
| 3877 |
+
0xA74B0000A74C,
|
| 3878 |
+
0xA74D0000A74E,
|
| 3879 |
+
0xA74F0000A750,
|
| 3880 |
+
0xA7510000A752,
|
| 3881 |
+
0xA7530000A754,
|
| 3882 |
+
0xA7550000A756,
|
| 3883 |
+
0xA7570000A758,
|
| 3884 |
+
0xA7590000A75A,
|
| 3885 |
+
0xA75B0000A75C,
|
| 3886 |
+
0xA75D0000A75E,
|
| 3887 |
+
0xA75F0000A760,
|
| 3888 |
+
0xA7610000A762,
|
| 3889 |
+
0xA7630000A764,
|
| 3890 |
+
0xA7650000A766,
|
| 3891 |
+
0xA7670000A768,
|
| 3892 |
+
0xA7690000A76A,
|
| 3893 |
+
0xA76B0000A76C,
|
| 3894 |
+
0xA76D0000A76E,
|
| 3895 |
+
0xA76F0000A770,
|
| 3896 |
+
0xA7710000A779,
|
| 3897 |
+
0xA77A0000A77B,
|
| 3898 |
+
0xA77C0000A77D,
|
| 3899 |
+
0xA77F0000A780,
|
| 3900 |
+
0xA7810000A782,
|
| 3901 |
+
0xA7830000A784,
|
| 3902 |
+
0xA7850000A786,
|
| 3903 |
+
0xA7870000A789,
|
| 3904 |
+
0xA78C0000A78D,
|
| 3905 |
+
0xA78E0000A790,
|
| 3906 |
+
0xA7910000A792,
|
| 3907 |
+
0xA7930000A796,
|
| 3908 |
+
0xA7970000A798,
|
| 3909 |
+
0xA7990000A79A,
|
| 3910 |
+
0xA79B0000A79C,
|
| 3911 |
+
0xA79D0000A79E,
|
| 3912 |
+
0xA79F0000A7A0,
|
| 3913 |
+
0xA7A10000A7A2,
|
| 3914 |
+
0xA7A30000A7A4,
|
| 3915 |
+
0xA7A50000A7A6,
|
| 3916 |
+
0xA7A70000A7A8,
|
| 3917 |
+
0xA7A90000A7AA,
|
| 3918 |
+
0xA7AF0000A7B0,
|
| 3919 |
+
0xA7B50000A7B6,
|
| 3920 |
+
0xA7B70000A7B8,
|
| 3921 |
+
0xA7B90000A7BA,
|
| 3922 |
+
0xA7BB0000A7BC,
|
| 3923 |
+
0xA7BD0000A7BE,
|
| 3924 |
+
0xA7BF0000A7C0,
|
| 3925 |
+
0xA7C10000A7C2,
|
| 3926 |
+
0xA7C30000A7C4,
|
| 3927 |
+
0xA7C80000A7C9,
|
| 3928 |
+
0xA7CA0000A7CB,
|
| 3929 |
+
0xA7D10000A7D2,
|
| 3930 |
+
0xA7D30000A7D4,
|
| 3931 |
+
0xA7D50000A7D6,
|
| 3932 |
+
0xA7D70000A7D8,
|
| 3933 |
+
0xA7D90000A7DA,
|
| 3934 |
+
0xA7F60000A7F8,
|
| 3935 |
+
0xA7FA0000A828,
|
| 3936 |
+
0xA82C0000A82D,
|
| 3937 |
+
0xA8400000A874,
|
| 3938 |
+
0xA8800000A8C6,
|
| 3939 |
+
0xA8D00000A8DA,
|
| 3940 |
+
0xA8E00000A8F8,
|
| 3941 |
+
0xA8FB0000A8FC,
|
| 3942 |
+
0xA8FD0000A92E,
|
| 3943 |
+
0xA9300000A954,
|
| 3944 |
+
0xA9800000A9C1,
|
| 3945 |
+
0xA9CF0000A9DA,
|
| 3946 |
+
0xA9E00000A9FF,
|
| 3947 |
+
0xAA000000AA37,
|
| 3948 |
+
0xAA400000AA4E,
|
| 3949 |
+
0xAA500000AA5A,
|
| 3950 |
+
0xAA600000AA77,
|
| 3951 |
+
0xAA7A0000AAC3,
|
| 3952 |
+
0xAADB0000AADE,
|
| 3953 |
+
0xAAE00000AAF0,
|
| 3954 |
+
0xAAF20000AAF7,
|
| 3955 |
+
0xAB010000AB07,
|
| 3956 |
+
0xAB090000AB0F,
|
| 3957 |
+
0xAB110000AB17,
|
| 3958 |
+
0xAB200000AB27,
|
| 3959 |
+
0xAB280000AB2F,
|
| 3960 |
+
0xAB300000AB5B,
|
| 3961 |
+
0xAB600000AB69,
|
| 3962 |
+
0xABC00000ABEB,
|
| 3963 |
+
0xABEC0000ABEE,
|
| 3964 |
+
0xABF00000ABFA,
|
| 3965 |
+
0xAC000000D7A4,
|
| 3966 |
+
0xFA0E0000FA10,
|
| 3967 |
+
0xFA110000FA12,
|
| 3968 |
+
0xFA130000FA15,
|
| 3969 |
+
0xFA1F0000FA20,
|
| 3970 |
+
0xFA210000FA22,
|
| 3971 |
+
0xFA230000FA25,
|
| 3972 |
+
0xFA270000FA2A,
|
| 3973 |
+
0xFB1E0000FB1F,
|
| 3974 |
+
0xFE200000FE30,
|
| 3975 |
+
0xFE730000FE74,
|
| 3976 |
+
0x100000001000C,
|
| 3977 |
+
0x1000D00010027,
|
| 3978 |
+
0x100280001003B,
|
| 3979 |
+
0x1003C0001003E,
|
| 3980 |
+
0x1003F0001004E,
|
| 3981 |
+
0x100500001005E,
|
| 3982 |
+
0x10080000100FB,
|
| 3983 |
+
0x101FD000101FE,
|
| 3984 |
+
0x102800001029D,
|
| 3985 |
+
0x102A0000102D1,
|
| 3986 |
+
0x102E0000102E1,
|
| 3987 |
+
0x1030000010320,
|
| 3988 |
+
0x1032D00010341,
|
| 3989 |
+
0x103420001034A,
|
| 3990 |
+
0x103500001037B,
|
| 3991 |
+
0x103800001039E,
|
| 3992 |
+
0x103A0000103C4,
|
| 3993 |
+
0x103C8000103D0,
|
| 3994 |
+
0x104280001049E,
|
| 3995 |
+
0x104A0000104AA,
|
| 3996 |
+
0x104D8000104FC,
|
| 3997 |
+
0x1050000010528,
|
| 3998 |
+
0x1053000010564,
|
| 3999 |
+
0x10597000105A2,
|
| 4000 |
+
0x105A3000105B2,
|
| 4001 |
+
0x105B3000105BA,
|
| 4002 |
+
0x105BB000105BD,
|
| 4003 |
+
0x1060000010737,
|
| 4004 |
+
0x1074000010756,
|
| 4005 |
+
0x1076000010768,
|
| 4006 |
+
0x1078000010781,
|
| 4007 |
+
0x1080000010806,
|
| 4008 |
+
0x1080800010809,
|
| 4009 |
+
0x1080A00010836,
|
| 4010 |
+
0x1083700010839,
|
| 4011 |
+
0x1083C0001083D,
|
| 4012 |
+
0x1083F00010856,
|
| 4013 |
+
0x1086000010877,
|
| 4014 |
+
0x108800001089F,
|
| 4015 |
+
0x108E0000108F3,
|
| 4016 |
+
0x108F4000108F6,
|
| 4017 |
+
0x1090000010916,
|
| 4018 |
+
0x109200001093A,
|
| 4019 |
+
0x10980000109B8,
|
| 4020 |
+
0x109BE000109C0,
|
| 4021 |
+
0x10A0000010A04,
|
| 4022 |
+
0x10A0500010A07,
|
| 4023 |
+
0x10A0C00010A14,
|
| 4024 |
+
0x10A1500010A18,
|
| 4025 |
+
0x10A1900010A36,
|
| 4026 |
+
0x10A3800010A3B,
|
| 4027 |
+
0x10A3F00010A40,
|
| 4028 |
+
0x10A6000010A7D,
|
| 4029 |
+
0x10A8000010A9D,
|
| 4030 |
+
0x10AC000010AC8,
|
| 4031 |
+
0x10AC900010AE7,
|
| 4032 |
+
0x10B0000010B36,
|
| 4033 |
+
0x10B4000010B56,
|
| 4034 |
+
0x10B6000010B73,
|
| 4035 |
+
0x10B8000010B92,
|
| 4036 |
+
0x10C0000010C49,
|
| 4037 |
+
0x10CC000010CF3,
|
| 4038 |
+
0x10D0000010D28,
|
| 4039 |
+
0x10D3000010D3A,
|
| 4040 |
+
0x10E8000010EAA,
|
| 4041 |
+
0x10EAB00010EAD,
|
| 4042 |
+
0x10EB000010EB2,
|
| 4043 |
+
0x10EFD00010F1D,
|
| 4044 |
+
0x10F2700010F28,
|
| 4045 |
+
0x10F3000010F51,
|
| 4046 |
+
0x10F7000010F86,
|
| 4047 |
+
0x10FB000010FC5,
|
| 4048 |
+
0x10FE000010FF7,
|
| 4049 |
+
0x1100000011047,
|
| 4050 |
+
0x1106600011076,
|
| 4051 |
+
0x1107F000110BB,
|
| 4052 |
+
0x110C2000110C3,
|
| 4053 |
+
0x110D0000110E9,
|
| 4054 |
+
0x110F0000110FA,
|
| 4055 |
+
0x1110000011135,
|
| 4056 |
+
0x1113600011140,
|
| 4057 |
+
0x1114400011148,
|
| 4058 |
+
0x1115000011174,
|
| 4059 |
+
0x1117600011177,
|
| 4060 |
+
0x11180000111C5,
|
| 4061 |
+
0x111C9000111CD,
|
| 4062 |
+
0x111CE000111DB,
|
| 4063 |
+
0x111DC000111DD,
|
| 4064 |
+
0x1120000011212,
|
| 4065 |
+
0x1121300011238,
|
| 4066 |
+
0x1123E00011242,
|
| 4067 |
+
0x1128000011287,
|
| 4068 |
+
0x1128800011289,
|
| 4069 |
+
0x1128A0001128E,
|
| 4070 |
+
0x1128F0001129E,
|
| 4071 |
+
0x1129F000112A9,
|
| 4072 |
+
0x112B0000112EB,
|
| 4073 |
+
0x112F0000112FA,
|
| 4074 |
+
0x1130000011304,
|
| 4075 |
+
0x113050001130D,
|
| 4076 |
+
0x1130F00011311,
|
| 4077 |
+
0x1131300011329,
|
| 4078 |
+
0x1132A00011331,
|
| 4079 |
+
0x1133200011334,
|
| 4080 |
+
0x113350001133A,
|
| 4081 |
+
0x1133B00011345,
|
| 4082 |
+
0x1134700011349,
|
| 4083 |
+
0x1134B0001134E,
|
| 4084 |
+
0x1135000011351,
|
| 4085 |
+
0x1135700011358,
|
| 4086 |
+
0x1135D00011364,
|
| 4087 |
+
0x113660001136D,
|
| 4088 |
+
0x1137000011375,
|
| 4089 |
+
0x114000001144B,
|
| 4090 |
+
0x114500001145A,
|
| 4091 |
+
0x1145E00011462,
|
| 4092 |
+
0x11480000114C6,
|
| 4093 |
+
0x114C7000114C8,
|
| 4094 |
+
0x114D0000114DA,
|
| 4095 |
+
0x11580000115B6,
|
| 4096 |
+
0x115B8000115C1,
|
| 4097 |
+
0x115D8000115DE,
|
| 4098 |
+
0x1160000011641,
|
| 4099 |
+
0x1164400011645,
|
| 4100 |
+
0x116500001165A,
|
| 4101 |
+
0x11680000116B9,
|
| 4102 |
+
0x116C0000116CA,
|
| 4103 |
+
0x117000001171B,
|
| 4104 |
+
0x1171D0001172C,
|
| 4105 |
+
0x117300001173A,
|
| 4106 |
+
0x1174000011747,
|
| 4107 |
+
0x118000001183B,
|
| 4108 |
+
0x118C0000118EA,
|
| 4109 |
+
0x118FF00011907,
|
| 4110 |
+
0x119090001190A,
|
| 4111 |
+
0x1190C00011914,
|
| 4112 |
+
0x1191500011917,
|
| 4113 |
+
0x1191800011936,
|
| 4114 |
+
0x1193700011939,
|
| 4115 |
+
0x1193B00011944,
|
| 4116 |
+
0x119500001195A,
|
| 4117 |
+
0x119A0000119A8,
|
| 4118 |
+
0x119AA000119D8,
|
| 4119 |
+
0x119DA000119E2,
|
| 4120 |
+
0x119E3000119E5,
|
| 4121 |
+
0x11A0000011A3F,
|
| 4122 |
+
0x11A4700011A48,
|
| 4123 |
+
0x11A5000011A9A,
|
| 4124 |
+
0x11A9D00011A9E,
|
| 4125 |
+
0x11AB000011AF9,
|
| 4126 |
+
0x11C0000011C09,
|
| 4127 |
+
0x11C0A00011C37,
|
| 4128 |
+
0x11C3800011C41,
|
| 4129 |
+
0x11C5000011C5A,
|
| 4130 |
+
0x11C7200011C90,
|
| 4131 |
+
0x11C9200011CA8,
|
| 4132 |
+
0x11CA900011CB7,
|
| 4133 |
+
0x11D0000011D07,
|
| 4134 |
+
0x11D0800011D0A,
|
| 4135 |
+
0x11D0B00011D37,
|
| 4136 |
+
0x11D3A00011D3B,
|
| 4137 |
+
0x11D3C00011D3E,
|
| 4138 |
+
0x11D3F00011D48,
|
| 4139 |
+
0x11D5000011D5A,
|
| 4140 |
+
0x11D6000011D66,
|
| 4141 |
+
0x11D6700011D69,
|
| 4142 |
+
0x11D6A00011D8F,
|
| 4143 |
+
0x11D9000011D92,
|
| 4144 |
+
0x11D9300011D99,
|
| 4145 |
+
0x11DA000011DAA,
|
| 4146 |
+
0x11EE000011EF7,
|
| 4147 |
+
0x11F0000011F11,
|
| 4148 |
+
0x11F1200011F3B,
|
| 4149 |
+
0x11F3E00011F43,
|
| 4150 |
+
0x11F5000011F5A,
|
| 4151 |
+
0x11FB000011FB1,
|
| 4152 |
+
0x120000001239A,
|
| 4153 |
+
0x1248000012544,
|
| 4154 |
+
0x12F9000012FF1,
|
| 4155 |
+
0x1300000013430,
|
| 4156 |
+
0x1344000013456,
|
| 4157 |
+
0x1440000014647,
|
| 4158 |
+
0x1680000016A39,
|
| 4159 |
+
0x16A4000016A5F,
|
| 4160 |
+
0x16A6000016A6A,
|
| 4161 |
+
0x16A7000016ABF,
|
| 4162 |
+
0x16AC000016ACA,
|
| 4163 |
+
0x16AD000016AEE,
|
| 4164 |
+
0x16AF000016AF5,
|
| 4165 |
+
0x16B0000016B37,
|
| 4166 |
+
0x16B4000016B44,
|
| 4167 |
+
0x16B5000016B5A,
|
| 4168 |
+
0x16B6300016B78,
|
| 4169 |
+
0x16B7D00016B90,
|
| 4170 |
+
0x16E6000016E80,
|
| 4171 |
+
0x16F0000016F4B,
|
| 4172 |
+
0x16F4F00016F88,
|
| 4173 |
+
0x16F8F00016FA0,
|
| 4174 |
+
0x16FE000016FE2,
|
| 4175 |
+
0x16FE300016FE5,
|
| 4176 |
+
0x16FF000016FF2,
|
| 4177 |
+
0x17000000187F8,
|
| 4178 |
+
0x1880000018CD6,
|
| 4179 |
+
0x18D0000018D09,
|
| 4180 |
+
0x1AFF00001AFF4,
|
| 4181 |
+
0x1AFF50001AFFC,
|
| 4182 |
+
0x1AFFD0001AFFF,
|
| 4183 |
+
0x1B0000001B123,
|
| 4184 |
+
0x1B1320001B133,
|
| 4185 |
+
0x1B1500001B153,
|
| 4186 |
+
0x1B1550001B156,
|
| 4187 |
+
0x1B1640001B168,
|
| 4188 |
+
0x1B1700001B2FC,
|
| 4189 |
+
0x1BC000001BC6B,
|
| 4190 |
+
0x1BC700001BC7D,
|
| 4191 |
+
0x1BC800001BC89,
|
| 4192 |
+
0x1BC900001BC9A,
|
| 4193 |
+
0x1BC9D0001BC9F,
|
| 4194 |
+
0x1CF000001CF2E,
|
| 4195 |
+
0x1CF300001CF47,
|
| 4196 |
+
0x1DA000001DA37,
|
| 4197 |
+
0x1DA3B0001DA6D,
|
| 4198 |
+
0x1DA750001DA76,
|
| 4199 |
+
0x1DA840001DA85,
|
| 4200 |
+
0x1DA9B0001DAA0,
|
| 4201 |
+
0x1DAA10001DAB0,
|
| 4202 |
+
0x1DF000001DF1F,
|
| 4203 |
+
0x1DF250001DF2B,
|
| 4204 |
+
0x1E0000001E007,
|
| 4205 |
+
0x1E0080001E019,
|
| 4206 |
+
0x1E01B0001E022,
|
| 4207 |
+
0x1E0230001E025,
|
| 4208 |
+
0x1E0260001E02B,
|
| 4209 |
+
0x1E08F0001E090,
|
| 4210 |
+
0x1E1000001E12D,
|
| 4211 |
+
0x1E1300001E13E,
|
| 4212 |
+
0x1E1400001E14A,
|
| 4213 |
+
0x1E14E0001E14F,
|
| 4214 |
+
0x1E2900001E2AF,
|
| 4215 |
+
0x1E2C00001E2FA,
|
| 4216 |
+
0x1E4D00001E4FA,
|
| 4217 |
+
0x1E7E00001E7E7,
|
| 4218 |
+
0x1E7E80001E7EC,
|
| 4219 |
+
0x1E7ED0001E7EF,
|
| 4220 |
+
0x1E7F00001E7FF,
|
| 4221 |
+
0x1E8000001E8C5,
|
| 4222 |
+
0x1E8D00001E8D7,
|
| 4223 |
+
0x1E9220001E94C,
|
| 4224 |
+
0x1E9500001E95A,
|
| 4225 |
+
0x200000002A6E0,
|
| 4226 |
+
0x2A7000002B73A,
|
| 4227 |
+
0x2B7400002B81E,
|
| 4228 |
+
0x2B8200002CEA2,
|
| 4229 |
+
0x2CEB00002EBE1,
|
| 4230 |
+
0x2EBF00002EE5E,
|
| 4231 |
+
0x300000003134B,
|
| 4232 |
+
0x31350000323B0,
|
| 4233 |
+
),
|
| 4234 |
+
"CONTEXTJ": (0x200C0000200E,),
|
| 4235 |
+
"CONTEXTO": (
|
| 4236 |
+
0xB7000000B8,
|
| 4237 |
+
0x37500000376,
|
| 4238 |
+
0x5F3000005F5,
|
| 4239 |
+
0x6600000066A,
|
| 4240 |
+
0x6F0000006FA,
|
| 4241 |
+
0x30FB000030FC,
|
| 4242 |
+
),
|
| 4243 |
+
}
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/idna/uts46data.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/msgpack/COPYING
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (C) 2008-2011 INADA Naoki <songofacandy@gmail.com>
|
| 2 |
+
|
| 3 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
you may not use this file except in compliance with the License.
|
| 5 |
+
You may obtain a copy of the License at
|
| 6 |
+
|
| 7 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
|
| 9 |
+
Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
See the License for the specific language governing permissions and
|
| 13 |
+
limitations under the License.
|
| 14 |
+
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/msgpack/__init__.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ruff: noqa: F401
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
from .exceptions import * # noqa: F403
|
| 5 |
+
from .ext import ExtType, Timestamp
|
| 6 |
+
|
| 7 |
+
version = (1, 1, 2)
|
| 8 |
+
__version__ = "1.1.2"
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
if os.environ.get("MSGPACK_PUREPYTHON"):
|
| 12 |
+
from .fallback import Packer, Unpacker, unpackb
|
| 13 |
+
else:
|
| 14 |
+
try:
|
| 15 |
+
from ._cmsgpack import Packer, Unpacker, unpackb
|
| 16 |
+
except ImportError:
|
| 17 |
+
from .fallback import Packer, Unpacker, unpackb
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def pack(o, stream, **kwargs):
|
| 21 |
+
"""
|
| 22 |
+
Pack object `o` and write it to `stream`
|
| 23 |
+
|
| 24 |
+
See :class:`Packer` for options.
|
| 25 |
+
"""
|
| 26 |
+
packer = Packer(**kwargs)
|
| 27 |
+
stream.write(packer.pack(o))
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def packb(o, **kwargs):
|
| 31 |
+
"""
|
| 32 |
+
Pack object `o` and return packed bytes
|
| 33 |
+
|
| 34 |
+
See :class:`Packer` for options.
|
| 35 |
+
"""
|
| 36 |
+
return Packer(**kwargs).pack(o)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
def unpack(stream, **kwargs):
|
| 40 |
+
"""
|
| 41 |
+
Unpack an object from `stream`.
|
| 42 |
+
|
| 43 |
+
Raises `ExtraData` when `stream` contains extra bytes.
|
| 44 |
+
See :class:`Unpacker` for options.
|
| 45 |
+
"""
|
| 46 |
+
data = stream.read()
|
| 47 |
+
return unpackb(data, **kwargs)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
# alias for compatibility to simplejson/marshal/pickle.
|
| 51 |
+
load = unpack
|
| 52 |
+
loads = unpackb
|
| 53 |
+
|
| 54 |
+
dump = pack
|
| 55 |
+
dumps = packb
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/packaging/LICENSE.APACHE
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py
ADDED
|
@@ -0,0 +1,1019 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file is dual licensed under the terms of the Apache License, Version
|
| 2 |
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
| 3 |
+
# for complete details.
|
| 4 |
+
"""
|
| 5 |
+
.. testsetup::
|
| 6 |
+
|
| 7 |
+
from pip._vendor.packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier
|
| 8 |
+
from pip._vendor.packaging.version import Version
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
|
| 13 |
+
import abc
|
| 14 |
+
import itertools
|
| 15 |
+
import re
|
| 16 |
+
from typing import Callable, Iterable, Iterator, TypeVar, Union
|
| 17 |
+
|
| 18 |
+
from .utils import canonicalize_version
|
| 19 |
+
from .version import Version
|
| 20 |
+
|
| 21 |
+
UnparsedVersion = Union[Version, str]
|
| 22 |
+
UnparsedVersionVar = TypeVar("UnparsedVersionVar", bound=UnparsedVersion)
|
| 23 |
+
CallableOperator = Callable[[Version, str], bool]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _coerce_version(version: UnparsedVersion) -> Version:
|
| 27 |
+
if not isinstance(version, Version):
|
| 28 |
+
version = Version(version)
|
| 29 |
+
return version
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class InvalidSpecifier(ValueError):
|
| 33 |
+
"""
|
| 34 |
+
Raised when attempting to create a :class:`Specifier` with a specifier
|
| 35 |
+
string that is invalid.
|
| 36 |
+
|
| 37 |
+
>>> Specifier("lolwat")
|
| 38 |
+
Traceback (most recent call last):
|
| 39 |
+
...
|
| 40 |
+
packaging.specifiers.InvalidSpecifier: Invalid specifier: 'lolwat'
|
| 41 |
+
"""
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
class BaseSpecifier(metaclass=abc.ABCMeta):
|
| 45 |
+
@abc.abstractmethod
|
| 46 |
+
def __str__(self) -> str:
|
| 47 |
+
"""
|
| 48 |
+
Returns the str representation of this Specifier-like object. This
|
| 49 |
+
should be representative of the Specifier itself.
|
| 50 |
+
"""
|
| 51 |
+
|
| 52 |
+
@abc.abstractmethod
|
| 53 |
+
def __hash__(self) -> int:
|
| 54 |
+
"""
|
| 55 |
+
Returns a hash value for this Specifier-like object.
|
| 56 |
+
"""
|
| 57 |
+
|
| 58 |
+
@abc.abstractmethod
|
| 59 |
+
def __eq__(self, other: object) -> bool:
|
| 60 |
+
"""
|
| 61 |
+
Returns a boolean representing whether or not the two Specifier-like
|
| 62 |
+
objects are equal.
|
| 63 |
+
|
| 64 |
+
:param other: The other object to check against.
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
+
@property
|
| 68 |
+
@abc.abstractmethod
|
| 69 |
+
def prereleases(self) -> bool | None:
|
| 70 |
+
"""Whether or not pre-releases as a whole are allowed.
|
| 71 |
+
|
| 72 |
+
This can be set to either ``True`` or ``False`` to explicitly enable or disable
|
| 73 |
+
prereleases or it can be set to ``None`` (the default) to use default semantics.
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
@prereleases.setter
|
| 77 |
+
def prereleases(self, value: bool) -> None:
|
| 78 |
+
"""Setter for :attr:`prereleases`.
|
| 79 |
+
|
| 80 |
+
:param value: The value to set.
|
| 81 |
+
"""
|
| 82 |
+
|
| 83 |
+
@abc.abstractmethod
|
| 84 |
+
def contains(self, item: str, prereleases: bool | None = None) -> bool:
|
| 85 |
+
"""
|
| 86 |
+
Determines if the given item is contained within this specifier.
|
| 87 |
+
"""
|
| 88 |
+
|
| 89 |
+
@abc.abstractmethod
|
| 90 |
+
def filter(
|
| 91 |
+
self, iterable: Iterable[UnparsedVersionVar], prereleases: bool | None = None
|
| 92 |
+
) -> Iterator[UnparsedVersionVar]:
|
| 93 |
+
"""
|
| 94 |
+
Takes an iterable of items and filters them so that only items which
|
| 95 |
+
are contained within this specifier are allowed in it.
|
| 96 |
+
"""
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
class Specifier(BaseSpecifier):
|
| 100 |
+
"""This class abstracts handling of version specifiers.
|
| 101 |
+
|
| 102 |
+
.. tip::
|
| 103 |
+
|
| 104 |
+
It is generally not required to instantiate this manually. You should instead
|
| 105 |
+
prefer to work with :class:`SpecifierSet` instead, which can parse
|
| 106 |
+
comma-separated version specifiers (which is what package metadata contains).
|
| 107 |
+
"""
|
| 108 |
+
|
| 109 |
+
_operator_regex_str = r"""
|
| 110 |
+
(?P<operator>(~=|==|!=|<=|>=|<|>|===))
|
| 111 |
+
"""
|
| 112 |
+
_version_regex_str = r"""
|
| 113 |
+
(?P<version>
|
| 114 |
+
(?:
|
| 115 |
+
# The identity operators allow for an escape hatch that will
|
| 116 |
+
# do an exact string match of the version you wish to install.
|
| 117 |
+
# This will not be parsed by PEP 440 and we cannot determine
|
| 118 |
+
# any semantic meaning from it. This operator is discouraged
|
| 119 |
+
# but included entirely as an escape hatch.
|
| 120 |
+
(?<====) # Only match for the identity operator
|
| 121 |
+
\s*
|
| 122 |
+
[^\s;)]* # The arbitrary version can be just about anything,
|
| 123 |
+
# we match everything except for whitespace, a
|
| 124 |
+
# semi-colon for marker support, and a closing paren
|
| 125 |
+
# since versions can be enclosed in them.
|
| 126 |
+
)
|
| 127 |
+
|
|
| 128 |
+
(?:
|
| 129 |
+
# The (non)equality operators allow for wild card and local
|
| 130 |
+
# versions to be specified so we have to define these two
|
| 131 |
+
# operators separately to enable that.
|
| 132 |
+
(?<===|!=) # Only match for equals and not equals
|
| 133 |
+
|
| 134 |
+
\s*
|
| 135 |
+
v?
|
| 136 |
+
(?:[0-9]+!)? # epoch
|
| 137 |
+
[0-9]+(?:\.[0-9]+)* # release
|
| 138 |
+
|
| 139 |
+
# You cannot use a wild card and a pre-release, post-release, a dev or
|
| 140 |
+
# local version together so group them with a | and make them optional.
|
| 141 |
+
(?:
|
| 142 |
+
\.\* # Wild card syntax of .*
|
| 143 |
+
|
|
| 144 |
+
(?: # pre release
|
| 145 |
+
[-_\.]?
|
| 146 |
+
(alpha|beta|preview|pre|a|b|c|rc)
|
| 147 |
+
[-_\.]?
|
| 148 |
+
[0-9]*
|
| 149 |
+
)?
|
| 150 |
+
(?: # post release
|
| 151 |
+
(?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
|
| 152 |
+
)?
|
| 153 |
+
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
|
| 154 |
+
(?:\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*)? # local
|
| 155 |
+
)?
|
| 156 |
+
)
|
| 157 |
+
|
|
| 158 |
+
(?:
|
| 159 |
+
# The compatible operator requires at least two digits in the
|
| 160 |
+
# release segment.
|
| 161 |
+
(?<=~=) # Only match for the compatible operator
|
| 162 |
+
|
| 163 |
+
\s*
|
| 164 |
+
v?
|
| 165 |
+
(?:[0-9]+!)? # epoch
|
| 166 |
+
[0-9]+(?:\.[0-9]+)+ # release (We have a + instead of a *)
|
| 167 |
+
(?: # pre release
|
| 168 |
+
[-_\.]?
|
| 169 |
+
(alpha|beta|preview|pre|a|b|c|rc)
|
| 170 |
+
[-_\.]?
|
| 171 |
+
[0-9]*
|
| 172 |
+
)?
|
| 173 |
+
(?: # post release
|
| 174 |
+
(?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
|
| 175 |
+
)?
|
| 176 |
+
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
|
| 177 |
+
)
|
| 178 |
+
|
|
| 179 |
+
(?:
|
| 180 |
+
# All other operators only allow a sub set of what the
|
| 181 |
+
# (non)equality operators do. Specifically they do not allow
|
| 182 |
+
# local versions to be specified nor do they allow the prefix
|
| 183 |
+
# matching wild cards.
|
| 184 |
+
(?<!==|!=|~=) # We have special cases for these
|
| 185 |
+
# operators so we want to make sure they
|
| 186 |
+
# don't match here.
|
| 187 |
+
|
| 188 |
+
\s*
|
| 189 |
+
v?
|
| 190 |
+
(?:[0-9]+!)? # epoch
|
| 191 |
+
[0-9]+(?:\.[0-9]+)* # release
|
| 192 |
+
(?: # pre release
|
| 193 |
+
[-_\.]?
|
| 194 |
+
(alpha|beta|preview|pre|a|b|c|rc)
|
| 195 |
+
[-_\.]?
|
| 196 |
+
[0-9]*
|
| 197 |
+
)?
|
| 198 |
+
(?: # post release
|
| 199 |
+
(?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
|
| 200 |
+
)?
|
| 201 |
+
(?:[-_\.]?dev[-_\.]?[0-9]*)? # dev release
|
| 202 |
+
)
|
| 203 |
+
)
|
| 204 |
+
"""
|
| 205 |
+
|
| 206 |
+
_regex = re.compile(
|
| 207 |
+
r"^\s*" + _operator_regex_str + _version_regex_str + r"\s*$",
|
| 208 |
+
re.VERBOSE | re.IGNORECASE,
|
| 209 |
+
)
|
| 210 |
+
|
| 211 |
+
_operators = {
|
| 212 |
+
"~=": "compatible",
|
| 213 |
+
"==": "equal",
|
| 214 |
+
"!=": "not_equal",
|
| 215 |
+
"<=": "less_than_equal",
|
| 216 |
+
">=": "greater_than_equal",
|
| 217 |
+
"<": "less_than",
|
| 218 |
+
">": "greater_than",
|
| 219 |
+
"===": "arbitrary",
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
def __init__(self, spec: str = "", prereleases: bool | None = None) -> None:
|
| 223 |
+
"""Initialize a Specifier instance.
|
| 224 |
+
|
| 225 |
+
:param spec:
|
| 226 |
+
The string representation of a specifier which will be parsed and
|
| 227 |
+
normalized before use.
|
| 228 |
+
:param prereleases:
|
| 229 |
+
This tells the specifier if it should accept prerelease versions if
|
| 230 |
+
applicable or not. The default of ``None`` will autodetect it from the
|
| 231 |
+
given specifiers.
|
| 232 |
+
:raises InvalidSpecifier:
|
| 233 |
+
If the given specifier is invalid (i.e. bad syntax).
|
| 234 |
+
"""
|
| 235 |
+
match = self._regex.search(spec)
|
| 236 |
+
if not match:
|
| 237 |
+
raise InvalidSpecifier(f"Invalid specifier: {spec!r}")
|
| 238 |
+
|
| 239 |
+
self._spec: tuple[str, str] = (
|
| 240 |
+
match.group("operator").strip(),
|
| 241 |
+
match.group("version").strip(),
|
| 242 |
+
)
|
| 243 |
+
|
| 244 |
+
# Store whether or not this Specifier should accept prereleases
|
| 245 |
+
self._prereleases = prereleases
|
| 246 |
+
|
| 247 |
+
# https://github.com/python/mypy/pull/13475#pullrequestreview-1079784515
|
| 248 |
+
@property # type: ignore[override]
|
| 249 |
+
def prereleases(self) -> bool:
|
| 250 |
+
# If there is an explicit prereleases set for this, then we'll just
|
| 251 |
+
# blindly use that.
|
| 252 |
+
if self._prereleases is not None:
|
| 253 |
+
return self._prereleases
|
| 254 |
+
|
| 255 |
+
# Look at all of our specifiers and determine if they are inclusive
|
| 256 |
+
# operators, and if they are if they are including an explicit
|
| 257 |
+
# prerelease.
|
| 258 |
+
operator, version = self._spec
|
| 259 |
+
if operator in ["==", ">=", "<=", "~=", "===", ">", "<"]:
|
| 260 |
+
# The == specifier can include a trailing .*, if it does we
|
| 261 |
+
# want to remove before parsing.
|
| 262 |
+
if operator == "==" and version.endswith(".*"):
|
| 263 |
+
version = version[:-2]
|
| 264 |
+
|
| 265 |
+
# Parse the version, and if it is a pre-release than this
|
| 266 |
+
# specifier allows pre-releases.
|
| 267 |
+
if Version(version).is_prerelease:
|
| 268 |
+
return True
|
| 269 |
+
|
| 270 |
+
return False
|
| 271 |
+
|
| 272 |
+
@prereleases.setter
|
| 273 |
+
def prereleases(self, value: bool) -> None:
|
| 274 |
+
self._prereleases = value
|
| 275 |
+
|
| 276 |
+
@property
|
| 277 |
+
def operator(self) -> str:
|
| 278 |
+
"""The operator of this specifier.
|
| 279 |
+
|
| 280 |
+
>>> Specifier("==1.2.3").operator
|
| 281 |
+
'=='
|
| 282 |
+
"""
|
| 283 |
+
return self._spec[0]
|
| 284 |
+
|
| 285 |
+
@property
|
| 286 |
+
def version(self) -> str:
|
| 287 |
+
"""The version of this specifier.
|
| 288 |
+
|
| 289 |
+
>>> Specifier("==1.2.3").version
|
| 290 |
+
'1.2.3'
|
| 291 |
+
"""
|
| 292 |
+
return self._spec[1]
|
| 293 |
+
|
| 294 |
+
def __repr__(self) -> str:
|
| 295 |
+
"""A representation of the Specifier that shows all internal state.
|
| 296 |
+
|
| 297 |
+
>>> Specifier('>=1.0.0')
|
| 298 |
+
<Specifier('>=1.0.0')>
|
| 299 |
+
>>> Specifier('>=1.0.0', prereleases=False)
|
| 300 |
+
<Specifier('>=1.0.0', prereleases=False)>
|
| 301 |
+
>>> Specifier('>=1.0.0', prereleases=True)
|
| 302 |
+
<Specifier('>=1.0.0', prereleases=True)>
|
| 303 |
+
"""
|
| 304 |
+
pre = (
|
| 305 |
+
f", prereleases={self.prereleases!r}"
|
| 306 |
+
if self._prereleases is not None
|
| 307 |
+
else ""
|
| 308 |
+
)
|
| 309 |
+
|
| 310 |
+
return f"<{self.__class__.__name__}({str(self)!r}{pre})>"
|
| 311 |
+
|
| 312 |
+
def __str__(self) -> str:
|
| 313 |
+
"""A string representation of the Specifier that can be round-tripped.
|
| 314 |
+
|
| 315 |
+
>>> str(Specifier('>=1.0.0'))
|
| 316 |
+
'>=1.0.0'
|
| 317 |
+
>>> str(Specifier('>=1.0.0', prereleases=False))
|
| 318 |
+
'>=1.0.0'
|
| 319 |
+
"""
|
| 320 |
+
return "{}{}".format(*self._spec)
|
| 321 |
+
|
| 322 |
+
@property
|
| 323 |
+
def _canonical_spec(self) -> tuple[str, str]:
|
| 324 |
+
canonical_version = canonicalize_version(
|
| 325 |
+
self._spec[1],
|
| 326 |
+
strip_trailing_zero=(self._spec[0] != "~="),
|
| 327 |
+
)
|
| 328 |
+
return self._spec[0], canonical_version
|
| 329 |
+
|
| 330 |
+
def __hash__(self) -> int:
|
| 331 |
+
return hash(self._canonical_spec)
|
| 332 |
+
|
| 333 |
+
def __eq__(self, other: object) -> bool:
|
| 334 |
+
"""Whether or not the two Specifier-like objects are equal.
|
| 335 |
+
|
| 336 |
+
:param other: The other object to check against.
|
| 337 |
+
|
| 338 |
+
The value of :attr:`prereleases` is ignored.
|
| 339 |
+
|
| 340 |
+
>>> Specifier("==1.2.3") == Specifier("== 1.2.3.0")
|
| 341 |
+
True
|
| 342 |
+
>>> (Specifier("==1.2.3", prereleases=False) ==
|
| 343 |
+
... Specifier("==1.2.3", prereleases=True))
|
| 344 |
+
True
|
| 345 |
+
>>> Specifier("==1.2.3") == "==1.2.3"
|
| 346 |
+
True
|
| 347 |
+
>>> Specifier("==1.2.3") == Specifier("==1.2.4")
|
| 348 |
+
False
|
| 349 |
+
>>> Specifier("==1.2.3") == Specifier("~=1.2.3")
|
| 350 |
+
False
|
| 351 |
+
"""
|
| 352 |
+
if isinstance(other, str):
|
| 353 |
+
try:
|
| 354 |
+
other = self.__class__(str(other))
|
| 355 |
+
except InvalidSpecifier:
|
| 356 |
+
return NotImplemented
|
| 357 |
+
elif not isinstance(other, self.__class__):
|
| 358 |
+
return NotImplemented
|
| 359 |
+
|
| 360 |
+
return self._canonical_spec == other._canonical_spec
|
| 361 |
+
|
| 362 |
+
def _get_operator(self, op: str) -> CallableOperator:
|
| 363 |
+
operator_callable: CallableOperator = getattr(
|
| 364 |
+
self, f"_compare_{self._operators[op]}"
|
| 365 |
+
)
|
| 366 |
+
return operator_callable
|
| 367 |
+
|
| 368 |
+
def _compare_compatible(self, prospective: Version, spec: str) -> bool:
|
| 369 |
+
# Compatible releases have an equivalent combination of >= and ==. That
|
| 370 |
+
# is that ~=2.2 is equivalent to >=2.2,==2.*. This allows us to
|
| 371 |
+
# implement this in terms of the other specifiers instead of
|
| 372 |
+
# implementing it ourselves. The only thing we need to do is construct
|
| 373 |
+
# the other specifiers.
|
| 374 |
+
|
| 375 |
+
# We want everything but the last item in the version, but we want to
|
| 376 |
+
# ignore suffix segments.
|
| 377 |
+
prefix = _version_join(
|
| 378 |
+
list(itertools.takewhile(_is_not_suffix, _version_split(spec)))[:-1]
|
| 379 |
+
)
|
| 380 |
+
|
| 381 |
+
# Add the prefix notation to the end of our string
|
| 382 |
+
prefix += ".*"
|
| 383 |
+
|
| 384 |
+
return self._get_operator(">=")(prospective, spec) and self._get_operator("==")(
|
| 385 |
+
prospective, prefix
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
def _compare_equal(self, prospective: Version, spec: str) -> bool:
|
| 389 |
+
# We need special logic to handle prefix matching
|
| 390 |
+
if spec.endswith(".*"):
|
| 391 |
+
# In the case of prefix matching we want to ignore local segment.
|
| 392 |
+
normalized_prospective = canonicalize_version(
|
| 393 |
+
prospective.public, strip_trailing_zero=False
|
| 394 |
+
)
|
| 395 |
+
# Get the normalized version string ignoring the trailing .*
|
| 396 |
+
normalized_spec = canonicalize_version(spec[:-2], strip_trailing_zero=False)
|
| 397 |
+
# Split the spec out by bangs and dots, and pretend that there is
|
| 398 |
+
# an implicit dot in between a release segment and a pre-release segment.
|
| 399 |
+
split_spec = _version_split(normalized_spec)
|
| 400 |
+
|
| 401 |
+
# Split the prospective version out by bangs and dots, and pretend
|
| 402 |
+
# that there is an implicit dot in between a release segment and
|
| 403 |
+
# a pre-release segment.
|
| 404 |
+
split_prospective = _version_split(normalized_prospective)
|
| 405 |
+
|
| 406 |
+
# 0-pad the prospective version before shortening it to get the correct
|
| 407 |
+
# shortened version.
|
| 408 |
+
padded_prospective, _ = _pad_version(split_prospective, split_spec)
|
| 409 |
+
|
| 410 |
+
# Shorten the prospective version to be the same length as the spec
|
| 411 |
+
# so that we can determine if the specifier is a prefix of the
|
| 412 |
+
# prospective version or not.
|
| 413 |
+
shortened_prospective = padded_prospective[: len(split_spec)]
|
| 414 |
+
|
| 415 |
+
return shortened_prospective == split_spec
|
| 416 |
+
else:
|
| 417 |
+
# Convert our spec string into a Version
|
| 418 |
+
spec_version = Version(spec)
|
| 419 |
+
|
| 420 |
+
# If the specifier does not have a local segment, then we want to
|
| 421 |
+
# act as if the prospective version also does not have a local
|
| 422 |
+
# segment.
|
| 423 |
+
if not spec_version.local:
|
| 424 |
+
prospective = Version(prospective.public)
|
| 425 |
+
|
| 426 |
+
return prospective == spec_version
|
| 427 |
+
|
| 428 |
+
def _compare_not_equal(self, prospective: Version, spec: str) -> bool:
|
| 429 |
+
return not self._compare_equal(prospective, spec)
|
| 430 |
+
|
| 431 |
+
def _compare_less_than_equal(self, prospective: Version, spec: str) -> bool:
|
| 432 |
+
# NB: Local version identifiers are NOT permitted in the version
|
| 433 |
+
# specifier, so local version labels can be universally removed from
|
| 434 |
+
# the prospective version.
|
| 435 |
+
return Version(prospective.public) <= Version(spec)
|
| 436 |
+
|
| 437 |
+
def _compare_greater_than_equal(self, prospective: Version, spec: str) -> bool:
|
| 438 |
+
# NB: Local version identifiers are NOT permitted in the version
|
| 439 |
+
# specifier, so local version labels can be universally removed from
|
| 440 |
+
# the prospective version.
|
| 441 |
+
return Version(prospective.public) >= Version(spec)
|
| 442 |
+
|
| 443 |
+
def _compare_less_than(self, prospective: Version, spec_str: str) -> bool:
|
| 444 |
+
# Convert our spec to a Version instance, since we'll want to work with
|
| 445 |
+
# it as a version.
|
| 446 |
+
spec = Version(spec_str)
|
| 447 |
+
|
| 448 |
+
# Check to see if the prospective version is less than the spec
|
| 449 |
+
# version. If it's not we can short circuit and just return False now
|
| 450 |
+
# instead of doing extra unneeded work.
|
| 451 |
+
if not prospective < spec:
|
| 452 |
+
return False
|
| 453 |
+
|
| 454 |
+
# This special case is here so that, unless the specifier itself
|
| 455 |
+
# includes is a pre-release version, that we do not accept pre-release
|
| 456 |
+
# versions for the version mentioned in the specifier (e.g. <3.1 should
|
| 457 |
+
# not match 3.1.dev0, but should match 3.0.dev0).
|
| 458 |
+
if not spec.is_prerelease and prospective.is_prerelease:
|
| 459 |
+
if Version(prospective.base_version) == Version(spec.base_version):
|
| 460 |
+
return False
|
| 461 |
+
|
| 462 |
+
# If we've gotten to here, it means that prospective version is both
|
| 463 |
+
# less than the spec version *and* it's not a pre-release of the same
|
| 464 |
+
# version in the spec.
|
| 465 |
+
return True
|
| 466 |
+
|
| 467 |
+
def _compare_greater_than(self, prospective: Version, spec_str: str) -> bool:
|
| 468 |
+
# Convert our spec to a Version instance, since we'll want to work with
|
| 469 |
+
# it as a version.
|
| 470 |
+
spec = Version(spec_str)
|
| 471 |
+
|
| 472 |
+
# Check to see if the prospective version is greater than the spec
|
| 473 |
+
# version. If it's not we can short circuit and just return False now
|
| 474 |
+
# instead of doing extra unneeded work.
|
| 475 |
+
if not prospective > spec:
|
| 476 |
+
return False
|
| 477 |
+
|
| 478 |
+
# This special case is here so that, unless the specifier itself
|
| 479 |
+
# includes is a post-release version, that we do not accept
|
| 480 |
+
# post-release versions for the version mentioned in the specifier
|
| 481 |
+
# (e.g. >3.1 should not match 3.0.post0, but should match 3.2.post0).
|
| 482 |
+
if not spec.is_postrelease and prospective.is_postrelease:
|
| 483 |
+
if Version(prospective.base_version) == Version(spec.base_version):
|
| 484 |
+
return False
|
| 485 |
+
|
| 486 |
+
# Ensure that we do not allow a local version of the version mentioned
|
| 487 |
+
# in the specifier, which is technically greater than, to match.
|
| 488 |
+
if prospective.local is not None:
|
| 489 |
+
if Version(prospective.base_version) == Version(spec.base_version):
|
| 490 |
+
return False
|
| 491 |
+
|
| 492 |
+
# If we've gotten to here, it means that prospective version is both
|
| 493 |
+
# greater than the spec version *and* it's not a pre-release of the
|
| 494 |
+
# same version in the spec.
|
| 495 |
+
return True
|
| 496 |
+
|
| 497 |
+
def _compare_arbitrary(self, prospective: Version, spec: str) -> bool:
|
| 498 |
+
return str(prospective).lower() == str(spec).lower()
|
| 499 |
+
|
| 500 |
+
def __contains__(self, item: str | Version) -> bool:
|
| 501 |
+
"""Return whether or not the item is contained in this specifier.
|
| 502 |
+
|
| 503 |
+
:param item: The item to check for.
|
| 504 |
+
|
| 505 |
+
This is used for the ``in`` operator and behaves the same as
|
| 506 |
+
:meth:`contains` with no ``prereleases`` argument passed.
|
| 507 |
+
|
| 508 |
+
>>> "1.2.3" in Specifier(">=1.2.3")
|
| 509 |
+
True
|
| 510 |
+
>>> Version("1.2.3") in Specifier(">=1.2.3")
|
| 511 |
+
True
|
| 512 |
+
>>> "1.0.0" in Specifier(">=1.2.3")
|
| 513 |
+
False
|
| 514 |
+
>>> "1.3.0a1" in Specifier(">=1.2.3")
|
| 515 |
+
False
|
| 516 |
+
>>> "1.3.0a1" in Specifier(">=1.2.3", prereleases=True)
|
| 517 |
+
True
|
| 518 |
+
"""
|
| 519 |
+
return self.contains(item)
|
| 520 |
+
|
| 521 |
+
def contains(self, item: UnparsedVersion, prereleases: bool | None = None) -> bool:
|
| 522 |
+
"""Return whether or not the item is contained in this specifier.
|
| 523 |
+
|
| 524 |
+
:param item:
|
| 525 |
+
The item to check for, which can be a version string or a
|
| 526 |
+
:class:`Version` instance.
|
| 527 |
+
:param prereleases:
|
| 528 |
+
Whether or not to match prereleases with this Specifier. If set to
|
| 529 |
+
``None`` (the default), it uses :attr:`prereleases` to determine
|
| 530 |
+
whether or not prereleases are allowed.
|
| 531 |
+
|
| 532 |
+
>>> Specifier(">=1.2.3").contains("1.2.3")
|
| 533 |
+
True
|
| 534 |
+
>>> Specifier(">=1.2.3").contains(Version("1.2.3"))
|
| 535 |
+
True
|
| 536 |
+
>>> Specifier(">=1.2.3").contains("1.0.0")
|
| 537 |
+
False
|
| 538 |
+
>>> Specifier(">=1.2.3").contains("1.3.0a1")
|
| 539 |
+
False
|
| 540 |
+
>>> Specifier(">=1.2.3", prereleases=True).contains("1.3.0a1")
|
| 541 |
+
True
|
| 542 |
+
>>> Specifier(">=1.2.3").contains("1.3.0a1", prereleases=True)
|
| 543 |
+
True
|
| 544 |
+
"""
|
| 545 |
+
|
| 546 |
+
# Determine if prereleases are to be allowed or not.
|
| 547 |
+
if prereleases is None:
|
| 548 |
+
prereleases = self.prereleases
|
| 549 |
+
|
| 550 |
+
# Normalize item to a Version, this allows us to have a shortcut for
|
| 551 |
+
# "2.0" in Specifier(">=2")
|
| 552 |
+
normalized_item = _coerce_version(item)
|
| 553 |
+
|
| 554 |
+
# Determine if we should be supporting prereleases in this specifier
|
| 555 |
+
# or not, if we do not support prereleases than we can short circuit
|
| 556 |
+
# logic if this version is a prereleases.
|
| 557 |
+
if normalized_item.is_prerelease and not prereleases:
|
| 558 |
+
return False
|
| 559 |
+
|
| 560 |
+
# Actually do the comparison to determine if this item is contained
|
| 561 |
+
# within this Specifier or not.
|
| 562 |
+
operator_callable: CallableOperator = self._get_operator(self.operator)
|
| 563 |
+
return operator_callable(normalized_item, self.version)
|
| 564 |
+
|
| 565 |
+
def filter(
|
| 566 |
+
self, iterable: Iterable[UnparsedVersionVar], prereleases: bool | None = None
|
| 567 |
+
) -> Iterator[UnparsedVersionVar]:
|
| 568 |
+
"""Filter items in the given iterable, that match the specifier.
|
| 569 |
+
|
| 570 |
+
:param iterable:
|
| 571 |
+
An iterable that can contain version strings and :class:`Version` instances.
|
| 572 |
+
The items in the iterable will be filtered according to the specifier.
|
| 573 |
+
:param prereleases:
|
| 574 |
+
Whether or not to allow prereleases in the returned iterator. If set to
|
| 575 |
+
``None`` (the default), it will be intelligently decide whether to allow
|
| 576 |
+
prereleases or not (based on the :attr:`prereleases` attribute, and
|
| 577 |
+
whether the only versions matching are prereleases).
|
| 578 |
+
|
| 579 |
+
This method is smarter than just ``filter(Specifier().contains, [...])``
|
| 580 |
+
because it implements the rule from :pep:`440` that a prerelease item
|
| 581 |
+
SHOULD be accepted if no other versions match the given specifier.
|
| 582 |
+
|
| 583 |
+
>>> list(Specifier(">=1.2.3").filter(["1.2", "1.3", "1.5a1"]))
|
| 584 |
+
['1.3']
|
| 585 |
+
>>> list(Specifier(">=1.2.3").filter(["1.2", "1.2.3", "1.3", Version("1.4")]))
|
| 586 |
+
['1.2.3', '1.3', <Version('1.4')>]
|
| 587 |
+
>>> list(Specifier(">=1.2.3").filter(["1.2", "1.5a1"]))
|
| 588 |
+
['1.5a1']
|
| 589 |
+
>>> list(Specifier(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
|
| 590 |
+
['1.3', '1.5a1']
|
| 591 |
+
>>> list(Specifier(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))
|
| 592 |
+
['1.3', '1.5a1']
|
| 593 |
+
"""
|
| 594 |
+
|
| 595 |
+
yielded = False
|
| 596 |
+
found_prereleases = []
|
| 597 |
+
|
| 598 |
+
kw = {"prereleases": prereleases if prereleases is not None else True}
|
| 599 |
+
|
| 600 |
+
# Attempt to iterate over all the values in the iterable and if any of
|
| 601 |
+
# them match, yield them.
|
| 602 |
+
for version in iterable:
|
| 603 |
+
parsed_version = _coerce_version(version)
|
| 604 |
+
|
| 605 |
+
if self.contains(parsed_version, **kw):
|
| 606 |
+
# If our version is a prerelease, and we were not set to allow
|
| 607 |
+
# prereleases, then we'll store it for later in case nothing
|
| 608 |
+
# else matches this specifier.
|
| 609 |
+
if parsed_version.is_prerelease and not (
|
| 610 |
+
prereleases or self.prereleases
|
| 611 |
+
):
|
| 612 |
+
found_prereleases.append(version)
|
| 613 |
+
# Either this is not a prerelease, or we should have been
|
| 614 |
+
# accepting prereleases from the beginning.
|
| 615 |
+
else:
|
| 616 |
+
yielded = True
|
| 617 |
+
yield version
|
| 618 |
+
|
| 619 |
+
# Now that we've iterated over everything, determine if we've yielded
|
| 620 |
+
# any values, and if we have not and we have any prereleases stored up
|
| 621 |
+
# then we will go ahead and yield the prereleases.
|
| 622 |
+
if not yielded and found_prereleases:
|
| 623 |
+
for version in found_prereleases:
|
| 624 |
+
yield version
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
_prefix_regex = re.compile(r"^([0-9]+)((?:a|b|c|rc)[0-9]+)$")
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
def _version_split(version: str) -> list[str]:
|
| 631 |
+
"""Split version into components.
|
| 632 |
+
|
| 633 |
+
The split components are intended for version comparison. The logic does
|
| 634 |
+
not attempt to retain the original version string, so joining the
|
| 635 |
+
components back with :func:`_version_join` may not produce the original
|
| 636 |
+
version string.
|
| 637 |
+
"""
|
| 638 |
+
result: list[str] = []
|
| 639 |
+
|
| 640 |
+
epoch, _, rest = version.rpartition("!")
|
| 641 |
+
result.append(epoch or "0")
|
| 642 |
+
|
| 643 |
+
for item in rest.split("."):
|
| 644 |
+
match = _prefix_regex.search(item)
|
| 645 |
+
if match:
|
| 646 |
+
result.extend(match.groups())
|
| 647 |
+
else:
|
| 648 |
+
result.append(item)
|
| 649 |
+
return result
|
| 650 |
+
|
| 651 |
+
|
| 652 |
+
def _version_join(components: list[str]) -> str:
|
| 653 |
+
"""Join split version components into a version string.
|
| 654 |
+
|
| 655 |
+
This function assumes the input came from :func:`_version_split`, where the
|
| 656 |
+
first component must be the epoch (either empty or numeric), and all other
|
| 657 |
+
components numeric.
|
| 658 |
+
"""
|
| 659 |
+
epoch, *rest = components
|
| 660 |
+
return f"{epoch}!{'.'.join(rest)}"
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
def _is_not_suffix(segment: str) -> bool:
|
| 664 |
+
return not any(
|
| 665 |
+
segment.startswith(prefix) for prefix in ("dev", "a", "b", "rc", "post")
|
| 666 |
+
)
|
| 667 |
+
|
| 668 |
+
|
| 669 |
+
def _pad_version(left: list[str], right: list[str]) -> tuple[list[str], list[str]]:
|
| 670 |
+
left_split, right_split = [], []
|
| 671 |
+
|
| 672 |
+
# Get the release segment of our versions
|
| 673 |
+
left_split.append(list(itertools.takewhile(lambda x: x.isdigit(), left)))
|
| 674 |
+
right_split.append(list(itertools.takewhile(lambda x: x.isdigit(), right)))
|
| 675 |
+
|
| 676 |
+
# Get the rest of our versions
|
| 677 |
+
left_split.append(left[len(left_split[0]) :])
|
| 678 |
+
right_split.append(right[len(right_split[0]) :])
|
| 679 |
+
|
| 680 |
+
# Insert our padding
|
| 681 |
+
left_split.insert(1, ["0"] * max(0, len(right_split[0]) - len(left_split[0])))
|
| 682 |
+
right_split.insert(1, ["0"] * max(0, len(left_split[0]) - len(right_split[0])))
|
| 683 |
+
|
| 684 |
+
return (
|
| 685 |
+
list(itertools.chain.from_iterable(left_split)),
|
| 686 |
+
list(itertools.chain.from_iterable(right_split)),
|
| 687 |
+
)
|
| 688 |
+
|
| 689 |
+
|
| 690 |
+
class SpecifierSet(BaseSpecifier):
|
| 691 |
+
"""This class abstracts handling of a set of version specifiers.
|
| 692 |
+
|
| 693 |
+
It can be passed a single specifier (``>=3.0``), a comma-separated list of
|
| 694 |
+
specifiers (``>=3.0,!=3.1``), or no specifier at all.
|
| 695 |
+
"""
|
| 696 |
+
|
| 697 |
+
def __init__(
|
| 698 |
+
self,
|
| 699 |
+
specifiers: str | Iterable[Specifier] = "",
|
| 700 |
+
prereleases: bool | None = None,
|
| 701 |
+
) -> None:
|
| 702 |
+
"""Initialize a SpecifierSet instance.
|
| 703 |
+
|
| 704 |
+
:param specifiers:
|
| 705 |
+
The string representation of a specifier or a comma-separated list of
|
| 706 |
+
specifiers which will be parsed and normalized before use.
|
| 707 |
+
May also be an iterable of ``Specifier`` instances, which will be used
|
| 708 |
+
as is.
|
| 709 |
+
:param prereleases:
|
| 710 |
+
This tells the SpecifierSet if it should accept prerelease versions if
|
| 711 |
+
applicable or not. The default of ``None`` will autodetect it from the
|
| 712 |
+
given specifiers.
|
| 713 |
+
|
| 714 |
+
:raises InvalidSpecifier:
|
| 715 |
+
If the given ``specifiers`` are not parseable than this exception will be
|
| 716 |
+
raised.
|
| 717 |
+
"""
|
| 718 |
+
|
| 719 |
+
if isinstance(specifiers, str):
|
| 720 |
+
# Split on `,` to break each individual specifier into its own item, and
|
| 721 |
+
# strip each item to remove leading/trailing whitespace.
|
| 722 |
+
split_specifiers = [s.strip() for s in specifiers.split(",") if s.strip()]
|
| 723 |
+
|
| 724 |
+
# Make each individual specifier a Specifier and save in a frozen set
|
| 725 |
+
# for later.
|
| 726 |
+
self._specs = frozenset(map(Specifier, split_specifiers))
|
| 727 |
+
else:
|
| 728 |
+
# Save the supplied specifiers in a frozen set.
|
| 729 |
+
self._specs = frozenset(specifiers)
|
| 730 |
+
|
| 731 |
+
# Store our prereleases value so we can use it later to determine if
|
| 732 |
+
# we accept prereleases or not.
|
| 733 |
+
self._prereleases = prereleases
|
| 734 |
+
|
| 735 |
+
@property
|
| 736 |
+
def prereleases(self) -> bool | None:
|
| 737 |
+
# If we have been given an explicit prerelease modifier, then we'll
|
| 738 |
+
# pass that through here.
|
| 739 |
+
if self._prereleases is not None:
|
| 740 |
+
return self._prereleases
|
| 741 |
+
|
| 742 |
+
# If we don't have any specifiers, and we don't have a forced value,
|
| 743 |
+
# then we'll just return None since we don't know if this should have
|
| 744 |
+
# pre-releases or not.
|
| 745 |
+
if not self._specs:
|
| 746 |
+
return None
|
| 747 |
+
|
| 748 |
+
# Otherwise we'll see if any of the given specifiers accept
|
| 749 |
+
# prereleases, if any of them do we'll return True, otherwise False.
|
| 750 |
+
return any(s.prereleases for s in self._specs)
|
| 751 |
+
|
| 752 |
+
@prereleases.setter
|
| 753 |
+
def prereleases(self, value: bool) -> None:
|
| 754 |
+
self._prereleases = value
|
| 755 |
+
|
| 756 |
+
def __repr__(self) -> str:
|
| 757 |
+
"""A representation of the specifier set that shows all internal state.
|
| 758 |
+
|
| 759 |
+
Note that the ordering of the individual specifiers within the set may not
|
| 760 |
+
match the input string.
|
| 761 |
+
|
| 762 |
+
>>> SpecifierSet('>=1.0.0,!=2.0.0')
|
| 763 |
+
<SpecifierSet('!=2.0.0,>=1.0.0')>
|
| 764 |
+
>>> SpecifierSet('>=1.0.0,!=2.0.0', prereleases=False)
|
| 765 |
+
<SpecifierSet('!=2.0.0,>=1.0.0', prereleases=False)>
|
| 766 |
+
>>> SpecifierSet('>=1.0.0,!=2.0.0', prereleases=True)
|
| 767 |
+
<SpecifierSet('!=2.0.0,>=1.0.0', prereleases=True)>
|
| 768 |
+
"""
|
| 769 |
+
pre = (
|
| 770 |
+
f", prereleases={self.prereleases!r}"
|
| 771 |
+
if self._prereleases is not None
|
| 772 |
+
else ""
|
| 773 |
+
)
|
| 774 |
+
|
| 775 |
+
return f"<SpecifierSet({str(self)!r}{pre})>"
|
| 776 |
+
|
| 777 |
+
def __str__(self) -> str:
|
| 778 |
+
"""A string representation of the specifier set that can be round-tripped.
|
| 779 |
+
|
| 780 |
+
Note that the ordering of the individual specifiers within the set may not
|
| 781 |
+
match the input string.
|
| 782 |
+
|
| 783 |
+
>>> str(SpecifierSet(">=1.0.0,!=1.0.1"))
|
| 784 |
+
'!=1.0.1,>=1.0.0'
|
| 785 |
+
>>> str(SpecifierSet(">=1.0.0,!=1.0.1", prereleases=False))
|
| 786 |
+
'!=1.0.1,>=1.0.0'
|
| 787 |
+
"""
|
| 788 |
+
return ",".join(sorted(str(s) for s in self._specs))
|
| 789 |
+
|
| 790 |
+
def __hash__(self) -> int:
|
| 791 |
+
return hash(self._specs)
|
| 792 |
+
|
| 793 |
+
def __and__(self, other: SpecifierSet | str) -> SpecifierSet:
|
| 794 |
+
"""Return a SpecifierSet which is a combination of the two sets.
|
| 795 |
+
|
| 796 |
+
:param other: The other object to combine with.
|
| 797 |
+
|
| 798 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") & '<=2.0.0,!=2.0.1'
|
| 799 |
+
<SpecifierSet('!=1.0.1,!=2.0.1,<=2.0.0,>=1.0.0')>
|
| 800 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") & SpecifierSet('<=2.0.0,!=2.0.1')
|
| 801 |
+
<SpecifierSet('!=1.0.1,!=2.0.1,<=2.0.0,>=1.0.0')>
|
| 802 |
+
"""
|
| 803 |
+
if isinstance(other, str):
|
| 804 |
+
other = SpecifierSet(other)
|
| 805 |
+
elif not isinstance(other, SpecifierSet):
|
| 806 |
+
return NotImplemented
|
| 807 |
+
|
| 808 |
+
specifier = SpecifierSet()
|
| 809 |
+
specifier._specs = frozenset(self._specs | other._specs)
|
| 810 |
+
|
| 811 |
+
if self._prereleases is None and other._prereleases is not None:
|
| 812 |
+
specifier._prereleases = other._prereleases
|
| 813 |
+
elif self._prereleases is not None and other._prereleases is None:
|
| 814 |
+
specifier._prereleases = self._prereleases
|
| 815 |
+
elif self._prereleases == other._prereleases:
|
| 816 |
+
specifier._prereleases = self._prereleases
|
| 817 |
+
else:
|
| 818 |
+
raise ValueError(
|
| 819 |
+
"Cannot combine SpecifierSets with True and False prerelease overrides."
|
| 820 |
+
)
|
| 821 |
+
|
| 822 |
+
return specifier
|
| 823 |
+
|
| 824 |
+
def __eq__(self, other: object) -> bool:
|
| 825 |
+
"""Whether or not the two SpecifierSet-like objects are equal.
|
| 826 |
+
|
| 827 |
+
:param other: The other object to check against.
|
| 828 |
+
|
| 829 |
+
The value of :attr:`prereleases` is ignored.
|
| 830 |
+
|
| 831 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0,!=1.0.1")
|
| 832 |
+
True
|
| 833 |
+
>>> (SpecifierSet(">=1.0.0,!=1.0.1", prereleases=False) ==
|
| 834 |
+
... SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True))
|
| 835 |
+
True
|
| 836 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == ">=1.0.0,!=1.0.1"
|
| 837 |
+
True
|
| 838 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0")
|
| 839 |
+
False
|
| 840 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1") == SpecifierSet(">=1.0.0,!=1.0.2")
|
| 841 |
+
False
|
| 842 |
+
"""
|
| 843 |
+
if isinstance(other, (str, Specifier)):
|
| 844 |
+
other = SpecifierSet(str(other))
|
| 845 |
+
elif not isinstance(other, SpecifierSet):
|
| 846 |
+
return NotImplemented
|
| 847 |
+
|
| 848 |
+
return self._specs == other._specs
|
| 849 |
+
|
| 850 |
+
def __len__(self) -> int:
|
| 851 |
+
"""Returns the number of specifiers in this specifier set."""
|
| 852 |
+
return len(self._specs)
|
| 853 |
+
|
| 854 |
+
def __iter__(self) -> Iterator[Specifier]:
|
| 855 |
+
"""
|
| 856 |
+
Returns an iterator over all the underlying :class:`Specifier` instances
|
| 857 |
+
in this specifier set.
|
| 858 |
+
|
| 859 |
+
>>> sorted(SpecifierSet(">=1.0.0,!=1.0.1"), key=str)
|
| 860 |
+
[<Specifier('!=1.0.1')>, <Specifier('>=1.0.0')>]
|
| 861 |
+
"""
|
| 862 |
+
return iter(self._specs)
|
| 863 |
+
|
| 864 |
+
def __contains__(self, item: UnparsedVersion) -> bool:
|
| 865 |
+
"""Return whether or not the item is contained in this specifier.
|
| 866 |
+
|
| 867 |
+
:param item: The item to check for.
|
| 868 |
+
|
| 869 |
+
This is used for the ``in`` operator and behaves the same as
|
| 870 |
+
:meth:`contains` with no ``prereleases`` argument passed.
|
| 871 |
+
|
| 872 |
+
>>> "1.2.3" in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 873 |
+
True
|
| 874 |
+
>>> Version("1.2.3") in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 875 |
+
True
|
| 876 |
+
>>> "1.0.1" in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 877 |
+
False
|
| 878 |
+
>>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1")
|
| 879 |
+
False
|
| 880 |
+
>>> "1.3.0a1" in SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True)
|
| 881 |
+
True
|
| 882 |
+
"""
|
| 883 |
+
return self.contains(item)
|
| 884 |
+
|
| 885 |
+
def contains(
|
| 886 |
+
self,
|
| 887 |
+
item: UnparsedVersion,
|
| 888 |
+
prereleases: bool | None = None,
|
| 889 |
+
installed: bool | None = None,
|
| 890 |
+
) -> bool:
|
| 891 |
+
"""Return whether or not the item is contained in this SpecifierSet.
|
| 892 |
+
|
| 893 |
+
:param item:
|
| 894 |
+
The item to check for, which can be a version string or a
|
| 895 |
+
:class:`Version` instance.
|
| 896 |
+
:param prereleases:
|
| 897 |
+
Whether or not to match prereleases with this SpecifierSet. If set to
|
| 898 |
+
``None`` (the default), it uses :attr:`prereleases` to determine
|
| 899 |
+
whether or not prereleases are allowed.
|
| 900 |
+
|
| 901 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.2.3")
|
| 902 |
+
True
|
| 903 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains(Version("1.2.3"))
|
| 904 |
+
True
|
| 905 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.0.1")
|
| 906 |
+
False
|
| 907 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.3.0a1")
|
| 908 |
+
False
|
| 909 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1", prereleases=True).contains("1.3.0a1")
|
| 910 |
+
True
|
| 911 |
+
>>> SpecifierSet(">=1.0.0,!=1.0.1").contains("1.3.0a1", prereleases=True)
|
| 912 |
+
True
|
| 913 |
+
"""
|
| 914 |
+
# Ensure that our item is a Version instance.
|
| 915 |
+
if not isinstance(item, Version):
|
| 916 |
+
item = Version(item)
|
| 917 |
+
|
| 918 |
+
# Determine if we're forcing a prerelease or not, if we're not forcing
|
| 919 |
+
# one for this particular filter call, then we'll use whatever the
|
| 920 |
+
# SpecifierSet thinks for whether or not we should support prereleases.
|
| 921 |
+
if prereleases is None:
|
| 922 |
+
prereleases = self.prereleases
|
| 923 |
+
|
| 924 |
+
# We can determine if we're going to allow pre-releases by looking to
|
| 925 |
+
# see if any of the underlying items supports them. If none of them do
|
| 926 |
+
# and this item is a pre-release then we do not allow it and we can
|
| 927 |
+
# short circuit that here.
|
| 928 |
+
# Note: This means that 1.0.dev1 would not be contained in something
|
| 929 |
+
# like >=1.0.devabc however it would be in >=1.0.debabc,>0.0.dev0
|
| 930 |
+
if not prereleases and item.is_prerelease:
|
| 931 |
+
return False
|
| 932 |
+
|
| 933 |
+
if installed and item.is_prerelease:
|
| 934 |
+
item = Version(item.base_version)
|
| 935 |
+
|
| 936 |
+
# We simply dispatch to the underlying specs here to make sure that the
|
| 937 |
+
# given version is contained within all of them.
|
| 938 |
+
# Note: This use of all() here means that an empty set of specifiers
|
| 939 |
+
# will always return True, this is an explicit design decision.
|
| 940 |
+
return all(s.contains(item, prereleases=prereleases) for s in self._specs)
|
| 941 |
+
|
| 942 |
+
def filter(
|
| 943 |
+
self, iterable: Iterable[UnparsedVersionVar], prereleases: bool | None = None
|
| 944 |
+
) -> Iterator[UnparsedVersionVar]:
|
| 945 |
+
"""Filter items in the given iterable, that match the specifiers in this set.
|
| 946 |
+
|
| 947 |
+
:param iterable:
|
| 948 |
+
An iterable that can contain version strings and :class:`Version` instances.
|
| 949 |
+
The items in the iterable will be filtered according to the specifier.
|
| 950 |
+
:param prereleases:
|
| 951 |
+
Whether or not to allow prereleases in the returned iterator. If set to
|
| 952 |
+
``None`` (the default), it will be intelligently decide whether to allow
|
| 953 |
+
prereleases or not (based on the :attr:`prereleases` attribute, and
|
| 954 |
+
whether the only versions matching are prereleases).
|
| 955 |
+
|
| 956 |
+
This method is smarter than just ``filter(SpecifierSet(...).contains, [...])``
|
| 957 |
+
because it implements the rule from :pep:`440` that a prerelease item
|
| 958 |
+
SHOULD be accepted if no other versions match the given specifier.
|
| 959 |
+
|
| 960 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", "1.5a1"]))
|
| 961 |
+
['1.3']
|
| 962 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.3", Version("1.4")]))
|
| 963 |
+
['1.3', <Version('1.4')>]
|
| 964 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.2", "1.5a1"]))
|
| 965 |
+
[]
|
| 966 |
+
>>> list(SpecifierSet(">=1.2.3").filter(["1.3", "1.5a1"], prereleases=True))
|
| 967 |
+
['1.3', '1.5a1']
|
| 968 |
+
>>> list(SpecifierSet(">=1.2.3", prereleases=True).filter(["1.3", "1.5a1"]))
|
| 969 |
+
['1.3', '1.5a1']
|
| 970 |
+
|
| 971 |
+
An "empty" SpecifierSet will filter items based on the presence of prerelease
|
| 972 |
+
versions in the set.
|
| 973 |
+
|
| 974 |
+
>>> list(SpecifierSet("").filter(["1.3", "1.5a1"]))
|
| 975 |
+
['1.3']
|
| 976 |
+
>>> list(SpecifierSet("").filter(["1.5a1"]))
|
| 977 |
+
['1.5a1']
|
| 978 |
+
>>> list(SpecifierSet("", prereleases=True).filter(["1.3", "1.5a1"]))
|
| 979 |
+
['1.3', '1.5a1']
|
| 980 |
+
>>> list(SpecifierSet("").filter(["1.3", "1.5a1"], prereleases=True))
|
| 981 |
+
['1.3', '1.5a1']
|
| 982 |
+
"""
|
| 983 |
+
# Determine if we're forcing a prerelease or not, if we're not forcing
|
| 984 |
+
# one for this particular filter call, then we'll use whatever the
|
| 985 |
+
# SpecifierSet thinks for whether or not we should support prereleases.
|
| 986 |
+
if prereleases is None:
|
| 987 |
+
prereleases = self.prereleases
|
| 988 |
+
|
| 989 |
+
# If we have any specifiers, then we want to wrap our iterable in the
|
| 990 |
+
# filter method for each one, this will act as a logical AND amongst
|
| 991 |
+
# each specifier.
|
| 992 |
+
if self._specs:
|
| 993 |
+
for spec in self._specs:
|
| 994 |
+
iterable = spec.filter(iterable, prereleases=bool(prereleases))
|
| 995 |
+
return iter(iterable)
|
| 996 |
+
# If we do not have any specifiers, then we need to have a rough filter
|
| 997 |
+
# which will filter out any pre-releases, unless there are no final
|
| 998 |
+
# releases.
|
| 999 |
+
else:
|
| 1000 |
+
filtered: list[UnparsedVersionVar] = []
|
| 1001 |
+
found_prereleases: list[UnparsedVersionVar] = []
|
| 1002 |
+
|
| 1003 |
+
for item in iterable:
|
| 1004 |
+
parsed_version = _coerce_version(item)
|
| 1005 |
+
|
| 1006 |
+
# Store any item which is a pre-release for later unless we've
|
| 1007 |
+
# already found a final version or we are accepting prereleases
|
| 1008 |
+
if parsed_version.is_prerelease and not prereleases:
|
| 1009 |
+
if not filtered:
|
| 1010 |
+
found_prereleases.append(item)
|
| 1011 |
+
else:
|
| 1012 |
+
filtered.append(item)
|
| 1013 |
+
|
| 1014 |
+
# If we've found no items except for pre-releases, then we'll go
|
| 1015 |
+
# ahead and use the pre-releases
|
| 1016 |
+
if not filtered and found_prereleases and prereleases is None:
|
| 1017 |
+
return iter(found_prereleases)
|
| 1018 |
+
|
| 1019 |
+
return iter(filtered)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/pkg_resources/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 2 |
+
of this software and associated documentation files (the "Software"), to
|
| 3 |
+
deal in the Software without restriction, including without limitation the
|
| 4 |
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
| 5 |
+
sell copies of the Software, and to permit persons to whom the Software is
|
| 6 |
+
furnished to do so, subject to the following conditions:
|
| 7 |
+
|
| 8 |
+
The above copyright notice and this permission notice shall be included in
|
| 9 |
+
all copies or substantial portions of the Software.
|
| 10 |
+
|
| 11 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 12 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 13 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 14 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 15 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 16 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
| 17 |
+
IN THE SOFTWARE.
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2010-202x The platformdirs developers
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/__init__.py
ADDED
|
@@ -0,0 +1,631 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Utilities for determining application-specific dirs.
|
| 3 |
+
|
| 4 |
+
See <https://github.com/platformdirs/platformdirs> for details and usage.
|
| 5 |
+
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import os
|
| 11 |
+
import sys
|
| 12 |
+
from typing import TYPE_CHECKING
|
| 13 |
+
|
| 14 |
+
from .api import PlatformDirsABC
|
| 15 |
+
from .version import __version__
|
| 16 |
+
from .version import __version_tuple__ as __version_info__
|
| 17 |
+
|
| 18 |
+
if TYPE_CHECKING:
|
| 19 |
+
from pathlib import Path
|
| 20 |
+
from typing import Literal
|
| 21 |
+
|
| 22 |
+
if sys.platform == "win32":
|
| 23 |
+
from pip._vendor.platformdirs.windows import Windows as _Result
|
| 24 |
+
elif sys.platform == "darwin":
|
| 25 |
+
from pip._vendor.platformdirs.macos import MacOS as _Result
|
| 26 |
+
else:
|
| 27 |
+
from pip._vendor.platformdirs.unix import Unix as _Result
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def _set_platform_dir_class() -> type[PlatformDirsABC]:
|
| 31 |
+
if os.getenv("ANDROID_DATA") == "/data" and os.getenv("ANDROID_ROOT") == "/system":
|
| 32 |
+
if os.getenv("SHELL") or os.getenv("PREFIX"):
|
| 33 |
+
return _Result
|
| 34 |
+
|
| 35 |
+
from pip._vendor.platformdirs.android import _android_folder # noqa: PLC0415
|
| 36 |
+
|
| 37 |
+
if _android_folder() is not None:
|
| 38 |
+
from pip._vendor.platformdirs.android import Android # noqa: PLC0415
|
| 39 |
+
|
| 40 |
+
return Android # return to avoid redefinition of a result
|
| 41 |
+
|
| 42 |
+
return _Result
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
if TYPE_CHECKING:
|
| 46 |
+
# Work around mypy issue: https://github.com/python/mypy/issues/10962
|
| 47 |
+
PlatformDirs = _Result
|
| 48 |
+
else:
|
| 49 |
+
PlatformDirs = _set_platform_dir_class() #: Currently active platform
|
| 50 |
+
AppDirs = PlatformDirs #: Backwards compatibility with appdirs
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
def user_data_dir(
|
| 54 |
+
appname: str | None = None,
|
| 55 |
+
appauthor: str | Literal[False] | None = None,
|
| 56 |
+
version: str | None = None,
|
| 57 |
+
roaming: bool = False, # noqa: FBT001, FBT002
|
| 58 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 59 |
+
) -> str:
|
| 60 |
+
"""
|
| 61 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 62 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 63 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 64 |
+
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
| 65 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 66 |
+
:returns: data directory tied to the user
|
| 67 |
+
"""
|
| 68 |
+
return PlatformDirs(
|
| 69 |
+
appname=appname,
|
| 70 |
+
appauthor=appauthor,
|
| 71 |
+
version=version,
|
| 72 |
+
roaming=roaming,
|
| 73 |
+
ensure_exists=ensure_exists,
|
| 74 |
+
).user_data_dir
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def site_data_dir(
|
| 78 |
+
appname: str | None = None,
|
| 79 |
+
appauthor: str | Literal[False] | None = None,
|
| 80 |
+
version: str | None = None,
|
| 81 |
+
multipath: bool = False, # noqa: FBT001, FBT002
|
| 82 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 83 |
+
) -> str:
|
| 84 |
+
"""
|
| 85 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 86 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 87 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 88 |
+
:param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
|
| 89 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 90 |
+
:returns: data directory shared by users
|
| 91 |
+
"""
|
| 92 |
+
return PlatformDirs(
|
| 93 |
+
appname=appname,
|
| 94 |
+
appauthor=appauthor,
|
| 95 |
+
version=version,
|
| 96 |
+
multipath=multipath,
|
| 97 |
+
ensure_exists=ensure_exists,
|
| 98 |
+
).site_data_dir
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
def user_config_dir(
|
| 102 |
+
appname: str | None = None,
|
| 103 |
+
appauthor: str | Literal[False] | None = None,
|
| 104 |
+
version: str | None = None,
|
| 105 |
+
roaming: bool = False, # noqa: FBT001, FBT002
|
| 106 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 107 |
+
) -> str:
|
| 108 |
+
"""
|
| 109 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 110 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 111 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 112 |
+
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
| 113 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 114 |
+
:returns: config directory tied to the user
|
| 115 |
+
"""
|
| 116 |
+
return PlatformDirs(
|
| 117 |
+
appname=appname,
|
| 118 |
+
appauthor=appauthor,
|
| 119 |
+
version=version,
|
| 120 |
+
roaming=roaming,
|
| 121 |
+
ensure_exists=ensure_exists,
|
| 122 |
+
).user_config_dir
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def site_config_dir(
|
| 126 |
+
appname: str | None = None,
|
| 127 |
+
appauthor: str | Literal[False] | None = None,
|
| 128 |
+
version: str | None = None,
|
| 129 |
+
multipath: bool = False, # noqa: FBT001, FBT002
|
| 130 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 131 |
+
) -> str:
|
| 132 |
+
"""
|
| 133 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 134 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 135 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 136 |
+
:param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
|
| 137 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 138 |
+
:returns: config directory shared by the users
|
| 139 |
+
"""
|
| 140 |
+
return PlatformDirs(
|
| 141 |
+
appname=appname,
|
| 142 |
+
appauthor=appauthor,
|
| 143 |
+
version=version,
|
| 144 |
+
multipath=multipath,
|
| 145 |
+
ensure_exists=ensure_exists,
|
| 146 |
+
).site_config_dir
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
def user_cache_dir(
|
| 150 |
+
appname: str | None = None,
|
| 151 |
+
appauthor: str | Literal[False] | None = None,
|
| 152 |
+
version: str | None = None,
|
| 153 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 154 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 155 |
+
) -> str:
|
| 156 |
+
"""
|
| 157 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 158 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 159 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 160 |
+
:param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 161 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 162 |
+
:returns: cache directory tied to the user
|
| 163 |
+
"""
|
| 164 |
+
return PlatformDirs(
|
| 165 |
+
appname=appname,
|
| 166 |
+
appauthor=appauthor,
|
| 167 |
+
version=version,
|
| 168 |
+
opinion=opinion,
|
| 169 |
+
ensure_exists=ensure_exists,
|
| 170 |
+
).user_cache_dir
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
def site_cache_dir(
|
| 174 |
+
appname: str | None = None,
|
| 175 |
+
appauthor: str | Literal[False] | None = None,
|
| 176 |
+
version: str | None = None,
|
| 177 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 178 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 179 |
+
) -> str:
|
| 180 |
+
"""
|
| 181 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 182 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 183 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 184 |
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 185 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 186 |
+
:returns: cache directory tied to the user
|
| 187 |
+
"""
|
| 188 |
+
return PlatformDirs(
|
| 189 |
+
appname=appname,
|
| 190 |
+
appauthor=appauthor,
|
| 191 |
+
version=version,
|
| 192 |
+
opinion=opinion,
|
| 193 |
+
ensure_exists=ensure_exists,
|
| 194 |
+
).site_cache_dir
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
def user_state_dir(
|
| 198 |
+
appname: str | None = None,
|
| 199 |
+
appauthor: str | Literal[False] | None = None,
|
| 200 |
+
version: str | None = None,
|
| 201 |
+
roaming: bool = False, # noqa: FBT001, FBT002
|
| 202 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 203 |
+
) -> str:
|
| 204 |
+
"""
|
| 205 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 206 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 207 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 208 |
+
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
| 209 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 210 |
+
:returns: state directory tied to the user
|
| 211 |
+
"""
|
| 212 |
+
return PlatformDirs(
|
| 213 |
+
appname=appname,
|
| 214 |
+
appauthor=appauthor,
|
| 215 |
+
version=version,
|
| 216 |
+
roaming=roaming,
|
| 217 |
+
ensure_exists=ensure_exists,
|
| 218 |
+
).user_state_dir
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
def user_log_dir(
|
| 222 |
+
appname: str | None = None,
|
| 223 |
+
appauthor: str | Literal[False] | None = None,
|
| 224 |
+
version: str | None = None,
|
| 225 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 226 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 227 |
+
) -> str:
|
| 228 |
+
"""
|
| 229 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 230 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 231 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 232 |
+
:param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 233 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 234 |
+
:returns: log directory tied to the user
|
| 235 |
+
"""
|
| 236 |
+
return PlatformDirs(
|
| 237 |
+
appname=appname,
|
| 238 |
+
appauthor=appauthor,
|
| 239 |
+
version=version,
|
| 240 |
+
opinion=opinion,
|
| 241 |
+
ensure_exists=ensure_exists,
|
| 242 |
+
).user_log_dir
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def user_documents_dir() -> str:
|
| 246 |
+
""":returns: documents directory tied to the user"""
|
| 247 |
+
return PlatformDirs().user_documents_dir
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
def user_downloads_dir() -> str:
|
| 251 |
+
""":returns: downloads directory tied to the user"""
|
| 252 |
+
return PlatformDirs().user_downloads_dir
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
def user_pictures_dir() -> str:
|
| 256 |
+
""":returns: pictures directory tied to the user"""
|
| 257 |
+
return PlatformDirs().user_pictures_dir
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def user_videos_dir() -> str:
|
| 261 |
+
""":returns: videos directory tied to the user"""
|
| 262 |
+
return PlatformDirs().user_videos_dir
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
def user_music_dir() -> str:
|
| 266 |
+
""":returns: music directory tied to the user"""
|
| 267 |
+
return PlatformDirs().user_music_dir
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
def user_desktop_dir() -> str:
|
| 271 |
+
""":returns: desktop directory tied to the user"""
|
| 272 |
+
return PlatformDirs().user_desktop_dir
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
def user_runtime_dir(
|
| 276 |
+
appname: str | None = None,
|
| 277 |
+
appauthor: str | Literal[False] | None = None,
|
| 278 |
+
version: str | None = None,
|
| 279 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 280 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 281 |
+
) -> str:
|
| 282 |
+
"""
|
| 283 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 284 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 285 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 286 |
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 287 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 288 |
+
:returns: runtime directory tied to the user
|
| 289 |
+
"""
|
| 290 |
+
return PlatformDirs(
|
| 291 |
+
appname=appname,
|
| 292 |
+
appauthor=appauthor,
|
| 293 |
+
version=version,
|
| 294 |
+
opinion=opinion,
|
| 295 |
+
ensure_exists=ensure_exists,
|
| 296 |
+
).user_runtime_dir
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
def site_runtime_dir(
|
| 300 |
+
appname: str | None = None,
|
| 301 |
+
appauthor: str | Literal[False] | None = None,
|
| 302 |
+
version: str | None = None,
|
| 303 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 304 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 305 |
+
) -> str:
|
| 306 |
+
"""
|
| 307 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 308 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 309 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 310 |
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 311 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 312 |
+
:returns: runtime directory shared by users
|
| 313 |
+
"""
|
| 314 |
+
return PlatformDirs(
|
| 315 |
+
appname=appname,
|
| 316 |
+
appauthor=appauthor,
|
| 317 |
+
version=version,
|
| 318 |
+
opinion=opinion,
|
| 319 |
+
ensure_exists=ensure_exists,
|
| 320 |
+
).site_runtime_dir
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
def user_data_path(
|
| 324 |
+
appname: str | None = None,
|
| 325 |
+
appauthor: str | Literal[False] | None = None,
|
| 326 |
+
version: str | None = None,
|
| 327 |
+
roaming: bool = False, # noqa: FBT001, FBT002
|
| 328 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 329 |
+
) -> Path:
|
| 330 |
+
"""
|
| 331 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 332 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 333 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 334 |
+
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
| 335 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 336 |
+
:returns: data path tied to the user
|
| 337 |
+
"""
|
| 338 |
+
return PlatformDirs(
|
| 339 |
+
appname=appname,
|
| 340 |
+
appauthor=appauthor,
|
| 341 |
+
version=version,
|
| 342 |
+
roaming=roaming,
|
| 343 |
+
ensure_exists=ensure_exists,
|
| 344 |
+
).user_data_path
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
def site_data_path(
|
| 348 |
+
appname: str | None = None,
|
| 349 |
+
appauthor: str | Literal[False] | None = None,
|
| 350 |
+
version: str | None = None,
|
| 351 |
+
multipath: bool = False, # noqa: FBT001, FBT002
|
| 352 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 353 |
+
) -> Path:
|
| 354 |
+
"""
|
| 355 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 356 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 357 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 358 |
+
:param multipath: See `multipath <platformdirs.api.PlatformDirsABC.multipath>`.
|
| 359 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 360 |
+
:returns: data path shared by users
|
| 361 |
+
"""
|
| 362 |
+
return PlatformDirs(
|
| 363 |
+
appname=appname,
|
| 364 |
+
appauthor=appauthor,
|
| 365 |
+
version=version,
|
| 366 |
+
multipath=multipath,
|
| 367 |
+
ensure_exists=ensure_exists,
|
| 368 |
+
).site_data_path
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
def user_config_path(
|
| 372 |
+
appname: str | None = None,
|
| 373 |
+
appauthor: str | Literal[False] | None = None,
|
| 374 |
+
version: str | None = None,
|
| 375 |
+
roaming: bool = False, # noqa: FBT001, FBT002
|
| 376 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 377 |
+
) -> Path:
|
| 378 |
+
"""
|
| 379 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 380 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 381 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 382 |
+
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
| 383 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 384 |
+
:returns: config path tied to the user
|
| 385 |
+
"""
|
| 386 |
+
return PlatformDirs(
|
| 387 |
+
appname=appname,
|
| 388 |
+
appauthor=appauthor,
|
| 389 |
+
version=version,
|
| 390 |
+
roaming=roaming,
|
| 391 |
+
ensure_exists=ensure_exists,
|
| 392 |
+
).user_config_path
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
def site_config_path(
|
| 396 |
+
appname: str | None = None,
|
| 397 |
+
appauthor: str | Literal[False] | None = None,
|
| 398 |
+
version: str | None = None,
|
| 399 |
+
multipath: bool = False, # noqa: FBT001, FBT002
|
| 400 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 401 |
+
) -> Path:
|
| 402 |
+
"""
|
| 403 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 404 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 405 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 406 |
+
:param multipath: See `roaming <platformdirs.api.PlatformDirsABC.multipath>`.
|
| 407 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 408 |
+
:returns: config path shared by the users
|
| 409 |
+
"""
|
| 410 |
+
return PlatformDirs(
|
| 411 |
+
appname=appname,
|
| 412 |
+
appauthor=appauthor,
|
| 413 |
+
version=version,
|
| 414 |
+
multipath=multipath,
|
| 415 |
+
ensure_exists=ensure_exists,
|
| 416 |
+
).site_config_path
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
def site_cache_path(
|
| 420 |
+
appname: str | None = None,
|
| 421 |
+
appauthor: str | Literal[False] | None = None,
|
| 422 |
+
version: str | None = None,
|
| 423 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 424 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 425 |
+
) -> Path:
|
| 426 |
+
"""
|
| 427 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 428 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 429 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 430 |
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 431 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 432 |
+
:returns: cache directory tied to the user
|
| 433 |
+
"""
|
| 434 |
+
return PlatformDirs(
|
| 435 |
+
appname=appname,
|
| 436 |
+
appauthor=appauthor,
|
| 437 |
+
version=version,
|
| 438 |
+
opinion=opinion,
|
| 439 |
+
ensure_exists=ensure_exists,
|
| 440 |
+
).site_cache_path
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
def user_cache_path(
|
| 444 |
+
appname: str | None = None,
|
| 445 |
+
appauthor: str | Literal[False] | None = None,
|
| 446 |
+
version: str | None = None,
|
| 447 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 448 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 449 |
+
) -> Path:
|
| 450 |
+
"""
|
| 451 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 452 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 453 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 454 |
+
:param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 455 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 456 |
+
:returns: cache path tied to the user
|
| 457 |
+
"""
|
| 458 |
+
return PlatformDirs(
|
| 459 |
+
appname=appname,
|
| 460 |
+
appauthor=appauthor,
|
| 461 |
+
version=version,
|
| 462 |
+
opinion=opinion,
|
| 463 |
+
ensure_exists=ensure_exists,
|
| 464 |
+
).user_cache_path
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
def user_state_path(
|
| 468 |
+
appname: str | None = None,
|
| 469 |
+
appauthor: str | Literal[False] | None = None,
|
| 470 |
+
version: str | None = None,
|
| 471 |
+
roaming: bool = False, # noqa: FBT001, FBT002
|
| 472 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 473 |
+
) -> Path:
|
| 474 |
+
"""
|
| 475 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 476 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 477 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 478 |
+
:param roaming: See `roaming <platformdirs.api.PlatformDirsABC.roaming>`.
|
| 479 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 480 |
+
:returns: state path tied to the user
|
| 481 |
+
"""
|
| 482 |
+
return PlatformDirs(
|
| 483 |
+
appname=appname,
|
| 484 |
+
appauthor=appauthor,
|
| 485 |
+
version=version,
|
| 486 |
+
roaming=roaming,
|
| 487 |
+
ensure_exists=ensure_exists,
|
| 488 |
+
).user_state_path
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
def user_log_path(
|
| 492 |
+
appname: str | None = None,
|
| 493 |
+
appauthor: str | Literal[False] | None = None,
|
| 494 |
+
version: str | None = None,
|
| 495 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 496 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 497 |
+
) -> Path:
|
| 498 |
+
"""
|
| 499 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 500 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 501 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 502 |
+
:param opinion: See `roaming <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 503 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 504 |
+
:returns: log path tied to the user
|
| 505 |
+
"""
|
| 506 |
+
return PlatformDirs(
|
| 507 |
+
appname=appname,
|
| 508 |
+
appauthor=appauthor,
|
| 509 |
+
version=version,
|
| 510 |
+
opinion=opinion,
|
| 511 |
+
ensure_exists=ensure_exists,
|
| 512 |
+
).user_log_path
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
def user_documents_path() -> Path:
|
| 516 |
+
""":returns: documents a path tied to the user"""
|
| 517 |
+
return PlatformDirs().user_documents_path
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
def user_downloads_path() -> Path:
|
| 521 |
+
""":returns: downloads path tied to the user"""
|
| 522 |
+
return PlatformDirs().user_downloads_path
|
| 523 |
+
|
| 524 |
+
|
| 525 |
+
def user_pictures_path() -> Path:
|
| 526 |
+
""":returns: pictures path tied to the user"""
|
| 527 |
+
return PlatformDirs().user_pictures_path
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
def user_videos_path() -> Path:
|
| 531 |
+
""":returns: videos path tied to the user"""
|
| 532 |
+
return PlatformDirs().user_videos_path
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
def user_music_path() -> Path:
|
| 536 |
+
""":returns: music path tied to the user"""
|
| 537 |
+
return PlatformDirs().user_music_path
|
| 538 |
+
|
| 539 |
+
|
| 540 |
+
def user_desktop_path() -> Path:
|
| 541 |
+
""":returns: desktop path tied to the user"""
|
| 542 |
+
return PlatformDirs().user_desktop_path
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
def user_runtime_path(
|
| 546 |
+
appname: str | None = None,
|
| 547 |
+
appauthor: str | Literal[False] | None = None,
|
| 548 |
+
version: str | None = None,
|
| 549 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 550 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 551 |
+
) -> Path:
|
| 552 |
+
"""
|
| 553 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 554 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 555 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 556 |
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 557 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 558 |
+
:returns: runtime path tied to the user
|
| 559 |
+
"""
|
| 560 |
+
return PlatformDirs(
|
| 561 |
+
appname=appname,
|
| 562 |
+
appauthor=appauthor,
|
| 563 |
+
version=version,
|
| 564 |
+
opinion=opinion,
|
| 565 |
+
ensure_exists=ensure_exists,
|
| 566 |
+
).user_runtime_path
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
def site_runtime_path(
|
| 570 |
+
appname: str | None = None,
|
| 571 |
+
appauthor: str | Literal[False] | None = None,
|
| 572 |
+
version: str | None = None,
|
| 573 |
+
opinion: bool = True, # noqa: FBT001, FBT002
|
| 574 |
+
ensure_exists: bool = False, # noqa: FBT001, FBT002
|
| 575 |
+
) -> Path:
|
| 576 |
+
"""
|
| 577 |
+
:param appname: See `appname <platformdirs.api.PlatformDirsABC.appname>`.
|
| 578 |
+
:param appauthor: See `appauthor <platformdirs.api.PlatformDirsABC.appauthor>`.
|
| 579 |
+
:param version: See `version <platformdirs.api.PlatformDirsABC.version>`.
|
| 580 |
+
:param opinion: See `opinion <platformdirs.api.PlatformDirsABC.opinion>`.
|
| 581 |
+
:param ensure_exists: See `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 582 |
+
:returns: runtime path shared by users
|
| 583 |
+
"""
|
| 584 |
+
return PlatformDirs(
|
| 585 |
+
appname=appname,
|
| 586 |
+
appauthor=appauthor,
|
| 587 |
+
version=version,
|
| 588 |
+
opinion=opinion,
|
| 589 |
+
ensure_exists=ensure_exists,
|
| 590 |
+
).site_runtime_path
|
| 591 |
+
|
| 592 |
+
|
| 593 |
+
__all__ = [
|
| 594 |
+
"AppDirs",
|
| 595 |
+
"PlatformDirs",
|
| 596 |
+
"PlatformDirsABC",
|
| 597 |
+
"__version__",
|
| 598 |
+
"__version_info__",
|
| 599 |
+
"site_cache_dir",
|
| 600 |
+
"site_cache_path",
|
| 601 |
+
"site_config_dir",
|
| 602 |
+
"site_config_path",
|
| 603 |
+
"site_data_dir",
|
| 604 |
+
"site_data_path",
|
| 605 |
+
"site_runtime_dir",
|
| 606 |
+
"site_runtime_path",
|
| 607 |
+
"user_cache_dir",
|
| 608 |
+
"user_cache_path",
|
| 609 |
+
"user_config_dir",
|
| 610 |
+
"user_config_path",
|
| 611 |
+
"user_data_dir",
|
| 612 |
+
"user_data_path",
|
| 613 |
+
"user_desktop_dir",
|
| 614 |
+
"user_desktop_path",
|
| 615 |
+
"user_documents_dir",
|
| 616 |
+
"user_documents_path",
|
| 617 |
+
"user_downloads_dir",
|
| 618 |
+
"user_downloads_path",
|
| 619 |
+
"user_log_dir",
|
| 620 |
+
"user_log_path",
|
| 621 |
+
"user_music_dir",
|
| 622 |
+
"user_music_path",
|
| 623 |
+
"user_pictures_dir",
|
| 624 |
+
"user_pictures_path",
|
| 625 |
+
"user_runtime_dir",
|
| 626 |
+
"user_runtime_path",
|
| 627 |
+
"user_state_dir",
|
| 628 |
+
"user_state_path",
|
| 629 |
+
"user_videos_dir",
|
| 630 |
+
"user_videos_path",
|
| 631 |
+
]
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/__main__.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Main entry point."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from pip._vendor.platformdirs import PlatformDirs, __version__
|
| 6 |
+
|
| 7 |
+
PROPS = (
|
| 8 |
+
"user_data_dir",
|
| 9 |
+
"user_config_dir",
|
| 10 |
+
"user_cache_dir",
|
| 11 |
+
"user_state_dir",
|
| 12 |
+
"user_log_dir",
|
| 13 |
+
"user_documents_dir",
|
| 14 |
+
"user_downloads_dir",
|
| 15 |
+
"user_pictures_dir",
|
| 16 |
+
"user_videos_dir",
|
| 17 |
+
"user_music_dir",
|
| 18 |
+
"user_runtime_dir",
|
| 19 |
+
"site_data_dir",
|
| 20 |
+
"site_config_dir",
|
| 21 |
+
"site_cache_dir",
|
| 22 |
+
"site_runtime_dir",
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def main() -> None:
|
| 27 |
+
"""Run the main entry point."""
|
| 28 |
+
app_name = "MyApp"
|
| 29 |
+
app_author = "MyCompany"
|
| 30 |
+
|
| 31 |
+
print(f"-- platformdirs {__version__} --") # noqa: T201
|
| 32 |
+
|
| 33 |
+
print("-- app dirs (with optional 'version')") # noqa: T201
|
| 34 |
+
dirs = PlatformDirs(app_name, app_author, version="1.0")
|
| 35 |
+
for prop in PROPS:
|
| 36 |
+
print(f"{prop}: {getattr(dirs, prop)}") # noqa: T201
|
| 37 |
+
|
| 38 |
+
print("\n-- app dirs (without optional 'version')") # noqa: T201
|
| 39 |
+
dirs = PlatformDirs(app_name, app_author)
|
| 40 |
+
for prop in PROPS:
|
| 41 |
+
print(f"{prop}: {getattr(dirs, prop)}") # noqa: T201
|
| 42 |
+
|
| 43 |
+
print("\n-- app dirs (without optional 'appauthor')") # noqa: T201
|
| 44 |
+
dirs = PlatformDirs(app_name)
|
| 45 |
+
for prop in PROPS:
|
| 46 |
+
print(f"{prop}: {getattr(dirs, prop)}") # noqa: T201
|
| 47 |
+
|
| 48 |
+
print("\n-- app dirs (with disabled 'appauthor')") # noqa: T201
|
| 49 |
+
dirs = PlatformDirs(app_name, appauthor=False)
|
| 50 |
+
for prop in PROPS:
|
| 51 |
+
print(f"{prop}: {getattr(dirs, prop)}") # noqa: T201
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
if __name__ == "__main__":
|
| 55 |
+
main()
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/android.py
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Android."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import re
|
| 7 |
+
import sys
|
| 8 |
+
from functools import lru_cache
|
| 9 |
+
from typing import TYPE_CHECKING, cast
|
| 10 |
+
|
| 11 |
+
from .api import PlatformDirsABC
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class Android(PlatformDirsABC):
|
| 15 |
+
"""
|
| 16 |
+
Follows the guidance `from here <https://android.stackexchange.com/a/216132>`_.
|
| 17 |
+
|
| 18 |
+
Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `version
|
| 19 |
+
<platformdirs.api.PlatformDirsABC.version>`, `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 20 |
+
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def user_data_dir(self) -> str:
|
| 25 |
+
""":return: data directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/files/<AppName>``"""
|
| 26 |
+
return self._append_app_name_and_version(cast("str", _android_folder()), "files")
|
| 27 |
+
|
| 28 |
+
@property
|
| 29 |
+
def site_data_dir(self) -> str:
|
| 30 |
+
""":return: data directory shared by users, same as `user_data_dir`"""
|
| 31 |
+
return self.user_data_dir
|
| 32 |
+
|
| 33 |
+
@property
|
| 34 |
+
def user_config_dir(self) -> str:
|
| 35 |
+
"""
|
| 36 |
+
:return: config directory tied to the user, e.g. \
|
| 37 |
+
``/data/user/<userid>/<packagename>/shared_prefs/<AppName>``
|
| 38 |
+
"""
|
| 39 |
+
return self._append_app_name_and_version(cast("str", _android_folder()), "shared_prefs")
|
| 40 |
+
|
| 41 |
+
@property
|
| 42 |
+
def site_config_dir(self) -> str:
|
| 43 |
+
""":return: config directory shared by the users, same as `user_config_dir`"""
|
| 44 |
+
return self.user_config_dir
|
| 45 |
+
|
| 46 |
+
@property
|
| 47 |
+
def user_cache_dir(self) -> str:
|
| 48 |
+
""":return: cache directory tied to the user, e.g.,``/data/user/<userid>/<packagename>/cache/<AppName>``"""
|
| 49 |
+
return self._append_app_name_and_version(cast("str", _android_folder()), "cache")
|
| 50 |
+
|
| 51 |
+
@property
|
| 52 |
+
def site_cache_dir(self) -> str:
|
| 53 |
+
""":return: cache directory shared by users, same as `user_cache_dir`"""
|
| 54 |
+
return self.user_cache_dir
|
| 55 |
+
|
| 56 |
+
@property
|
| 57 |
+
def user_state_dir(self) -> str:
|
| 58 |
+
""":return: state directory tied to the user, same as `user_data_dir`"""
|
| 59 |
+
return self.user_data_dir
|
| 60 |
+
|
| 61 |
+
@property
|
| 62 |
+
def user_log_dir(self) -> str:
|
| 63 |
+
"""
|
| 64 |
+
:return: log directory tied to the user, same as `user_cache_dir` if not opinionated else ``log`` in it,
|
| 65 |
+
e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>/log``
|
| 66 |
+
"""
|
| 67 |
+
path = self.user_cache_dir
|
| 68 |
+
if self.opinion:
|
| 69 |
+
path = os.path.join(path, "log") # noqa: PTH118
|
| 70 |
+
return path
|
| 71 |
+
|
| 72 |
+
@property
|
| 73 |
+
def user_documents_dir(self) -> str:
|
| 74 |
+
""":return: documents directory tied to the user e.g. ``/storage/emulated/0/Documents``"""
|
| 75 |
+
return _android_documents_folder()
|
| 76 |
+
|
| 77 |
+
@property
|
| 78 |
+
def user_downloads_dir(self) -> str:
|
| 79 |
+
""":return: downloads directory tied to the user e.g. ``/storage/emulated/0/Downloads``"""
|
| 80 |
+
return _android_downloads_folder()
|
| 81 |
+
|
| 82 |
+
@property
|
| 83 |
+
def user_pictures_dir(self) -> str:
|
| 84 |
+
""":return: pictures directory tied to the user e.g. ``/storage/emulated/0/Pictures``"""
|
| 85 |
+
return _android_pictures_folder()
|
| 86 |
+
|
| 87 |
+
@property
|
| 88 |
+
def user_videos_dir(self) -> str:
|
| 89 |
+
""":return: videos directory tied to the user e.g. ``/storage/emulated/0/DCIM/Camera``"""
|
| 90 |
+
return _android_videos_folder()
|
| 91 |
+
|
| 92 |
+
@property
|
| 93 |
+
def user_music_dir(self) -> str:
|
| 94 |
+
""":return: music directory tied to the user e.g. ``/storage/emulated/0/Music``"""
|
| 95 |
+
return _android_music_folder()
|
| 96 |
+
|
| 97 |
+
@property
|
| 98 |
+
def user_desktop_dir(self) -> str:
|
| 99 |
+
""":return: desktop directory tied to the user e.g. ``/storage/emulated/0/Desktop``"""
|
| 100 |
+
return "/storage/emulated/0/Desktop"
|
| 101 |
+
|
| 102 |
+
@property
|
| 103 |
+
def user_runtime_dir(self) -> str:
|
| 104 |
+
"""
|
| 105 |
+
:return: runtime directory tied to the user, same as `user_cache_dir` if not opinionated else ``tmp`` in it,
|
| 106 |
+
e.g. ``/data/user/<userid>/<packagename>/cache/<AppName>/tmp``
|
| 107 |
+
"""
|
| 108 |
+
path = self.user_cache_dir
|
| 109 |
+
if self.opinion:
|
| 110 |
+
path = os.path.join(path, "tmp") # noqa: PTH118
|
| 111 |
+
return path
|
| 112 |
+
|
| 113 |
+
@property
|
| 114 |
+
def site_runtime_dir(self) -> str:
|
| 115 |
+
""":return: runtime directory shared by users, same as `user_runtime_dir`"""
|
| 116 |
+
return self.user_runtime_dir
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
@lru_cache(maxsize=1)
|
| 120 |
+
def _android_folder() -> str | None: # noqa: C901
|
| 121 |
+
""":return: base folder for the Android OS or None if it cannot be found"""
|
| 122 |
+
result: str | None = None
|
| 123 |
+
# type checker isn't happy with our "import android", just don't do this when type checking see
|
| 124 |
+
# https://stackoverflow.com/a/61394121
|
| 125 |
+
if not TYPE_CHECKING:
|
| 126 |
+
try:
|
| 127 |
+
# First try to get a path to android app using python4android (if available)...
|
| 128 |
+
from android import mActivity # noqa: PLC0415
|
| 129 |
+
|
| 130 |
+
context = cast("android.content.Context", mActivity.getApplicationContext()) # noqa: F821
|
| 131 |
+
result = context.getFilesDir().getParentFile().getAbsolutePath()
|
| 132 |
+
except Exception: # noqa: BLE001
|
| 133 |
+
result = None
|
| 134 |
+
if result is None:
|
| 135 |
+
try:
|
| 136 |
+
# ...and fall back to using plain pyjnius, if python4android isn't available or doesn't deliver any useful
|
| 137 |
+
# result...
|
| 138 |
+
from jnius import autoclass # noqa: PLC0415
|
| 139 |
+
|
| 140 |
+
context = autoclass("android.content.Context")
|
| 141 |
+
result = context.getFilesDir().getParentFile().getAbsolutePath()
|
| 142 |
+
except Exception: # noqa: BLE001
|
| 143 |
+
result = None
|
| 144 |
+
if result is None:
|
| 145 |
+
# and if that fails, too, find an android folder looking at path on the sys.path
|
| 146 |
+
# warning: only works for apps installed under /data, not adopted storage etc.
|
| 147 |
+
pattern = re.compile(r"/data/(data|user/\d+)/(.+)/files")
|
| 148 |
+
for path in sys.path:
|
| 149 |
+
if pattern.match(path):
|
| 150 |
+
result = path.split("/files")[0]
|
| 151 |
+
break
|
| 152 |
+
else:
|
| 153 |
+
result = None
|
| 154 |
+
if result is None:
|
| 155 |
+
# one last try: find an android folder looking at path on the sys.path taking adopted storage paths into
|
| 156 |
+
# account
|
| 157 |
+
pattern = re.compile(r"/mnt/expand/[a-fA-F0-9-]{36}/(data|user/\d+)/(.+)/files")
|
| 158 |
+
for path in sys.path:
|
| 159 |
+
if pattern.match(path):
|
| 160 |
+
result = path.split("/files")[0]
|
| 161 |
+
break
|
| 162 |
+
else:
|
| 163 |
+
result = None
|
| 164 |
+
return result
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
@lru_cache(maxsize=1)
|
| 168 |
+
def _android_documents_folder() -> str:
|
| 169 |
+
""":return: documents folder for the Android OS"""
|
| 170 |
+
# Get directories with pyjnius
|
| 171 |
+
try:
|
| 172 |
+
from jnius import autoclass # noqa: PLC0415
|
| 173 |
+
|
| 174 |
+
context = autoclass("android.content.Context")
|
| 175 |
+
environment = autoclass("android.os.Environment")
|
| 176 |
+
documents_dir: str = context.getExternalFilesDir(environment.DIRECTORY_DOCUMENTS).getAbsolutePath()
|
| 177 |
+
except Exception: # noqa: BLE001
|
| 178 |
+
documents_dir = "/storage/emulated/0/Documents"
|
| 179 |
+
|
| 180 |
+
return documents_dir
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
@lru_cache(maxsize=1)
|
| 184 |
+
def _android_downloads_folder() -> str:
|
| 185 |
+
""":return: downloads folder for the Android OS"""
|
| 186 |
+
# Get directories with pyjnius
|
| 187 |
+
try:
|
| 188 |
+
from jnius import autoclass # noqa: PLC0415
|
| 189 |
+
|
| 190 |
+
context = autoclass("android.content.Context")
|
| 191 |
+
environment = autoclass("android.os.Environment")
|
| 192 |
+
downloads_dir: str = context.getExternalFilesDir(environment.DIRECTORY_DOWNLOADS).getAbsolutePath()
|
| 193 |
+
except Exception: # noqa: BLE001
|
| 194 |
+
downloads_dir = "/storage/emulated/0/Downloads"
|
| 195 |
+
|
| 196 |
+
return downloads_dir
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
@lru_cache(maxsize=1)
|
| 200 |
+
def _android_pictures_folder() -> str:
|
| 201 |
+
""":return: pictures folder for the Android OS"""
|
| 202 |
+
# Get directories with pyjnius
|
| 203 |
+
try:
|
| 204 |
+
from jnius import autoclass # noqa: PLC0415
|
| 205 |
+
|
| 206 |
+
context = autoclass("android.content.Context")
|
| 207 |
+
environment = autoclass("android.os.Environment")
|
| 208 |
+
pictures_dir: str = context.getExternalFilesDir(environment.DIRECTORY_PICTURES).getAbsolutePath()
|
| 209 |
+
except Exception: # noqa: BLE001
|
| 210 |
+
pictures_dir = "/storage/emulated/0/Pictures"
|
| 211 |
+
|
| 212 |
+
return pictures_dir
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
@lru_cache(maxsize=1)
|
| 216 |
+
def _android_videos_folder() -> str:
|
| 217 |
+
""":return: videos folder for the Android OS"""
|
| 218 |
+
# Get directories with pyjnius
|
| 219 |
+
try:
|
| 220 |
+
from jnius import autoclass # noqa: PLC0415
|
| 221 |
+
|
| 222 |
+
context = autoclass("android.content.Context")
|
| 223 |
+
environment = autoclass("android.os.Environment")
|
| 224 |
+
videos_dir: str = context.getExternalFilesDir(environment.DIRECTORY_DCIM).getAbsolutePath()
|
| 225 |
+
except Exception: # noqa: BLE001
|
| 226 |
+
videos_dir = "/storage/emulated/0/DCIM/Camera"
|
| 227 |
+
|
| 228 |
+
return videos_dir
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
@lru_cache(maxsize=1)
|
| 232 |
+
def _android_music_folder() -> str:
|
| 233 |
+
""":return: music folder for the Android OS"""
|
| 234 |
+
# Get directories with pyjnius
|
| 235 |
+
try:
|
| 236 |
+
from jnius import autoclass # noqa: PLC0415
|
| 237 |
+
|
| 238 |
+
context = autoclass("android.content.Context")
|
| 239 |
+
environment = autoclass("android.os.Environment")
|
| 240 |
+
music_dir: str = context.getExternalFilesDir(environment.DIRECTORY_MUSIC).getAbsolutePath()
|
| 241 |
+
except Exception: # noqa: BLE001
|
| 242 |
+
music_dir = "/storage/emulated/0/Music"
|
| 243 |
+
|
| 244 |
+
return music_dir
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
__all__ = [
|
| 248 |
+
"Android",
|
| 249 |
+
]
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/macos.py
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""macOS."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import os.path
|
| 6 |
+
import sys
|
| 7 |
+
from typing import TYPE_CHECKING
|
| 8 |
+
|
| 9 |
+
from .api import PlatformDirsABC
|
| 10 |
+
|
| 11 |
+
if TYPE_CHECKING:
|
| 12 |
+
from pathlib import Path
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class MacOS(PlatformDirsABC):
|
| 16 |
+
"""
|
| 17 |
+
Platform directories for the macOS operating system.
|
| 18 |
+
|
| 19 |
+
Follows the guidance from
|
| 20 |
+
`Apple documentation <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
|
| 21 |
+
Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`,
|
| 22 |
+
`version <platformdirs.api.PlatformDirsABC.version>`,
|
| 23 |
+
`ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 24 |
+
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
@property
|
| 28 |
+
def user_data_dir(self) -> str:
|
| 29 |
+
""":return: data directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``"""
|
| 30 |
+
return self._append_app_name_and_version(os.path.expanduser("~/Library/Application Support")) # noqa: PTH111
|
| 31 |
+
|
| 32 |
+
@property
|
| 33 |
+
def site_data_dir(self) -> str:
|
| 34 |
+
"""
|
| 35 |
+
:return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``.
|
| 36 |
+
If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
|
| 37 |
+
will be under the Homebrew prefix, e.g. ``$homebrew_prefix/share/$appname/$version``.
|
| 38 |
+
If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
|
| 39 |
+
the response is a multi-path string separated by ":", e.g.
|
| 40 |
+
``$homebrew_prefix/share/$appname/$version:/Library/Application Support/$appname/$version``
|
| 41 |
+
"""
|
| 42 |
+
is_homebrew = "/opt/python" in sys.prefix
|
| 43 |
+
homebrew_prefix = sys.prefix.split("/opt/python")[0] if is_homebrew else ""
|
| 44 |
+
path_list = [self._append_app_name_and_version(f"{homebrew_prefix}/share")] if is_homebrew else []
|
| 45 |
+
path_list.append(self._append_app_name_and_version("/Library/Application Support"))
|
| 46 |
+
if self.multipath:
|
| 47 |
+
return os.pathsep.join(path_list)
|
| 48 |
+
return path_list[0]
|
| 49 |
+
|
| 50 |
+
@property
|
| 51 |
+
def site_data_path(self) -> Path:
|
| 52 |
+
""":return: data path shared by users. Only return the first item, even if ``multipath`` is set to ``True``"""
|
| 53 |
+
return self._first_item_as_path_if_multipath(self.site_data_dir)
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def user_config_dir(self) -> str:
|
| 57 |
+
""":return: config directory tied to the user, same as `user_data_dir`"""
|
| 58 |
+
return self.user_data_dir
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def site_config_dir(self) -> str:
|
| 62 |
+
""":return: config directory shared by the users, same as `site_data_dir`"""
|
| 63 |
+
return self.site_data_dir
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def user_cache_dir(self) -> str:
|
| 67 |
+
""":return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``"""
|
| 68 |
+
return self._append_app_name_and_version(os.path.expanduser("~/Library/Caches")) # noqa: PTH111
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def site_cache_dir(self) -> str:
|
| 72 |
+
"""
|
| 73 |
+
:return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.
|
| 74 |
+
If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
|
| 75 |
+
will be under the Homebrew prefix, e.g. ``$homebrew_prefix/var/cache/$appname/$version``.
|
| 76 |
+
If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
|
| 77 |
+
the response is a multi-path string separated by ":", e.g.
|
| 78 |
+
``$homebrew_prefix/var/cache/$appname/$version:/Library/Caches/$appname/$version``
|
| 79 |
+
"""
|
| 80 |
+
is_homebrew = "/opt/python" in sys.prefix
|
| 81 |
+
homebrew_prefix = sys.prefix.split("/opt/python")[0] if is_homebrew else ""
|
| 82 |
+
path_list = [self._append_app_name_and_version(f"{homebrew_prefix}/var/cache")] if is_homebrew else []
|
| 83 |
+
path_list.append(self._append_app_name_and_version("/Library/Caches"))
|
| 84 |
+
if self.multipath:
|
| 85 |
+
return os.pathsep.join(path_list)
|
| 86 |
+
return path_list[0]
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def site_cache_path(self) -> Path:
|
| 90 |
+
""":return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``"""
|
| 91 |
+
return self._first_item_as_path_if_multipath(self.site_cache_dir)
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def user_state_dir(self) -> str:
|
| 95 |
+
""":return: state directory tied to the user, same as `user_data_dir`"""
|
| 96 |
+
return self.user_data_dir
|
| 97 |
+
|
| 98 |
+
@property
|
| 99 |
+
def user_log_dir(self) -> str:
|
| 100 |
+
""":return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``"""
|
| 101 |
+
return self._append_app_name_and_version(os.path.expanduser("~/Library/Logs")) # noqa: PTH111
|
| 102 |
+
|
| 103 |
+
@property
|
| 104 |
+
def user_documents_dir(self) -> str:
|
| 105 |
+
""":return: documents directory tied to the user, e.g. ``~/Documents``"""
|
| 106 |
+
return os.path.expanduser("~/Documents") # noqa: PTH111
|
| 107 |
+
|
| 108 |
+
@property
|
| 109 |
+
def user_downloads_dir(self) -> str:
|
| 110 |
+
""":return: downloads directory tied to the user, e.g. ``~/Downloads``"""
|
| 111 |
+
return os.path.expanduser("~/Downloads") # noqa: PTH111
|
| 112 |
+
|
| 113 |
+
@property
|
| 114 |
+
def user_pictures_dir(self) -> str:
|
| 115 |
+
""":return: pictures directory tied to the user, e.g. ``~/Pictures``"""
|
| 116 |
+
return os.path.expanduser("~/Pictures") # noqa: PTH111
|
| 117 |
+
|
| 118 |
+
@property
|
| 119 |
+
def user_videos_dir(self) -> str:
|
| 120 |
+
""":return: videos directory tied to the user, e.g. ``~/Movies``"""
|
| 121 |
+
return os.path.expanduser("~/Movies") # noqa: PTH111
|
| 122 |
+
|
| 123 |
+
@property
|
| 124 |
+
def user_music_dir(self) -> str:
|
| 125 |
+
""":return: music directory tied to the user, e.g. ``~/Music``"""
|
| 126 |
+
return os.path.expanduser("~/Music") # noqa: PTH111
|
| 127 |
+
|
| 128 |
+
@property
|
| 129 |
+
def user_desktop_dir(self) -> str:
|
| 130 |
+
""":return: desktop directory tied to the user, e.g. ``~/Desktop``"""
|
| 131 |
+
return os.path.expanduser("~/Desktop") # noqa: PTH111
|
| 132 |
+
|
| 133 |
+
@property
|
| 134 |
+
def user_runtime_dir(self) -> str:
|
| 135 |
+
""":return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``"""
|
| 136 |
+
return self._append_app_name_and_version(os.path.expanduser("~/Library/Caches/TemporaryItems")) # noqa: PTH111
|
| 137 |
+
|
| 138 |
+
@property
|
| 139 |
+
def site_runtime_dir(self) -> str:
|
| 140 |
+
""":return: runtime directory shared by users, same as `user_runtime_dir`"""
|
| 141 |
+
return self.user_runtime_dir
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
__all__ = [
|
| 145 |
+
"MacOS",
|
| 146 |
+
]
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/py.typed
ADDED
|
File without changes
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/unix.py
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Unix."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import sys
|
| 7 |
+
from configparser import ConfigParser
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
from typing import TYPE_CHECKING, NoReturn
|
| 10 |
+
|
| 11 |
+
from .api import PlatformDirsABC
|
| 12 |
+
|
| 13 |
+
if TYPE_CHECKING:
|
| 14 |
+
from collections.abc import Iterator
|
| 15 |
+
|
| 16 |
+
if sys.platform == "win32":
|
| 17 |
+
|
| 18 |
+
def getuid() -> NoReturn:
|
| 19 |
+
msg = "should only be used on Unix"
|
| 20 |
+
raise RuntimeError(msg)
|
| 21 |
+
|
| 22 |
+
else:
|
| 23 |
+
from os import getuid
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class Unix(PlatformDirsABC): # noqa: PLR0904
|
| 27 |
+
"""
|
| 28 |
+
On Unix/Linux, we follow the `XDG Basedir Spec <https://specifications.freedesktop.org/basedir-spec/basedir-spec-
|
| 29 |
+
latest.html>`_.
|
| 30 |
+
|
| 31 |
+
The spec allows overriding directories with environment variables. The examples shown are the default values,
|
| 32 |
+
alongside the name of the environment variable that overrides them. Makes use of the `appname
|
| 33 |
+
<platformdirs.api.PlatformDirsABC.appname>`, `version <platformdirs.api.PlatformDirsABC.version>`, `multipath
|
| 34 |
+
<platformdirs.api.PlatformDirsABC.multipath>`, `opinion <platformdirs.api.PlatformDirsABC.opinion>`, `ensure_exists
|
| 35 |
+
<platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 36 |
+
|
| 37 |
+
"""
|
| 38 |
+
|
| 39 |
+
@property
|
| 40 |
+
def user_data_dir(self) -> str:
|
| 41 |
+
"""
|
| 42 |
+
:return: data directory tied to the user, e.g. ``~/.local/share/$appname/$version`` or
|
| 43 |
+
``$XDG_DATA_HOME/$appname/$version``
|
| 44 |
+
"""
|
| 45 |
+
path = os.environ.get("XDG_DATA_HOME", "")
|
| 46 |
+
if not path.strip():
|
| 47 |
+
path = os.path.expanduser("~/.local/share") # noqa: PTH111
|
| 48 |
+
return self._append_app_name_and_version(path)
|
| 49 |
+
|
| 50 |
+
@property
|
| 51 |
+
def _site_data_dirs(self) -> list[str]:
|
| 52 |
+
path = os.environ.get("XDG_DATA_DIRS", "")
|
| 53 |
+
if not path.strip():
|
| 54 |
+
path = f"/usr/local/share{os.pathsep}/usr/share"
|
| 55 |
+
return [self._append_app_name_and_version(p) for p in path.split(os.pathsep)]
|
| 56 |
+
|
| 57 |
+
@property
|
| 58 |
+
def site_data_dir(self) -> str:
|
| 59 |
+
"""
|
| 60 |
+
:return: data directories shared by users (if `multipath <platformdirs.api.PlatformDirsABC.multipath>` is
|
| 61 |
+
enabled and ``XDG_DATA_DIRS`` is set and a multi path the response is also a multi path separated by the
|
| 62 |
+
OS path separator), e.g. ``/usr/local/share/$appname/$version`` or ``/usr/share/$appname/$version``
|
| 63 |
+
"""
|
| 64 |
+
# XDG default for $XDG_DATA_DIRS; only first, if multipath is False
|
| 65 |
+
dirs = self._site_data_dirs
|
| 66 |
+
if not self.multipath:
|
| 67 |
+
return dirs[0]
|
| 68 |
+
return os.pathsep.join(dirs)
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def user_config_dir(self) -> str:
|
| 72 |
+
"""
|
| 73 |
+
:return: config directory tied to the user, e.g. ``~/.config/$appname/$version`` or
|
| 74 |
+
``$XDG_CONFIG_HOME/$appname/$version``
|
| 75 |
+
"""
|
| 76 |
+
path = os.environ.get("XDG_CONFIG_HOME", "")
|
| 77 |
+
if not path.strip():
|
| 78 |
+
path = os.path.expanduser("~/.config") # noqa: PTH111
|
| 79 |
+
return self._append_app_name_and_version(path)
|
| 80 |
+
|
| 81 |
+
@property
|
| 82 |
+
def _site_config_dirs(self) -> list[str]:
|
| 83 |
+
path = os.environ.get("XDG_CONFIG_DIRS", "")
|
| 84 |
+
if not path.strip():
|
| 85 |
+
path = "/etc/xdg"
|
| 86 |
+
return [self._append_app_name_and_version(p) for p in path.split(os.pathsep)]
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def site_config_dir(self) -> str:
|
| 90 |
+
"""
|
| 91 |
+
:return: config directories shared by users (if `multipath <platformdirs.api.PlatformDirsABC.multipath>`
|
| 92 |
+
is enabled and ``XDG_CONFIG_DIRS`` is set and a multi path the response is also a multi path separated by
|
| 93 |
+
the OS path separator), e.g. ``/etc/xdg/$appname/$version``
|
| 94 |
+
"""
|
| 95 |
+
# XDG default for $XDG_CONFIG_DIRS only first, if multipath is False
|
| 96 |
+
dirs = self._site_config_dirs
|
| 97 |
+
if not self.multipath:
|
| 98 |
+
return dirs[0]
|
| 99 |
+
return os.pathsep.join(dirs)
|
| 100 |
+
|
| 101 |
+
@property
|
| 102 |
+
def user_cache_dir(self) -> str:
|
| 103 |
+
"""
|
| 104 |
+
:return: cache directory tied to the user, e.g. ``~/.cache/$appname/$version`` or
|
| 105 |
+
``~/$XDG_CACHE_HOME/$appname/$version``
|
| 106 |
+
"""
|
| 107 |
+
path = os.environ.get("XDG_CACHE_HOME", "")
|
| 108 |
+
if not path.strip():
|
| 109 |
+
path = os.path.expanduser("~/.cache") # noqa: PTH111
|
| 110 |
+
return self._append_app_name_and_version(path)
|
| 111 |
+
|
| 112 |
+
@property
|
| 113 |
+
def site_cache_dir(self) -> str:
|
| 114 |
+
""":return: cache directory shared by users, e.g. ``/var/cache/$appname/$version``"""
|
| 115 |
+
return self._append_app_name_and_version("/var/cache")
|
| 116 |
+
|
| 117 |
+
@property
|
| 118 |
+
def user_state_dir(self) -> str:
|
| 119 |
+
"""
|
| 120 |
+
:return: state directory tied to the user, e.g. ``~/.local/state/$appname/$version`` or
|
| 121 |
+
``$XDG_STATE_HOME/$appname/$version``
|
| 122 |
+
"""
|
| 123 |
+
path = os.environ.get("XDG_STATE_HOME", "")
|
| 124 |
+
if not path.strip():
|
| 125 |
+
path = os.path.expanduser("~/.local/state") # noqa: PTH111
|
| 126 |
+
return self._append_app_name_and_version(path)
|
| 127 |
+
|
| 128 |
+
@property
|
| 129 |
+
def user_log_dir(self) -> str:
|
| 130 |
+
""":return: log directory tied to the user, same as `user_state_dir` if not opinionated else ``log`` in it"""
|
| 131 |
+
path = self.user_state_dir
|
| 132 |
+
if self.opinion:
|
| 133 |
+
path = os.path.join(path, "log") # noqa: PTH118
|
| 134 |
+
self._optionally_create_directory(path)
|
| 135 |
+
return path
|
| 136 |
+
|
| 137 |
+
@property
|
| 138 |
+
def user_documents_dir(self) -> str:
|
| 139 |
+
""":return: documents directory tied to the user, e.g. ``~/Documents``"""
|
| 140 |
+
return _get_user_media_dir("XDG_DOCUMENTS_DIR", "~/Documents")
|
| 141 |
+
|
| 142 |
+
@property
|
| 143 |
+
def user_downloads_dir(self) -> str:
|
| 144 |
+
""":return: downloads directory tied to the user, e.g. ``~/Downloads``"""
|
| 145 |
+
return _get_user_media_dir("XDG_DOWNLOAD_DIR", "~/Downloads")
|
| 146 |
+
|
| 147 |
+
@property
|
| 148 |
+
def user_pictures_dir(self) -> str:
|
| 149 |
+
""":return: pictures directory tied to the user, e.g. ``~/Pictures``"""
|
| 150 |
+
return _get_user_media_dir("XDG_PICTURES_DIR", "~/Pictures")
|
| 151 |
+
|
| 152 |
+
@property
|
| 153 |
+
def user_videos_dir(self) -> str:
|
| 154 |
+
""":return: videos directory tied to the user, e.g. ``~/Videos``"""
|
| 155 |
+
return _get_user_media_dir("XDG_VIDEOS_DIR", "~/Videos")
|
| 156 |
+
|
| 157 |
+
@property
|
| 158 |
+
def user_music_dir(self) -> str:
|
| 159 |
+
""":return: music directory tied to the user, e.g. ``~/Music``"""
|
| 160 |
+
return _get_user_media_dir("XDG_MUSIC_DIR", "~/Music")
|
| 161 |
+
|
| 162 |
+
@property
|
| 163 |
+
def user_desktop_dir(self) -> str:
|
| 164 |
+
""":return: desktop directory tied to the user, e.g. ``~/Desktop``"""
|
| 165 |
+
return _get_user_media_dir("XDG_DESKTOP_DIR", "~/Desktop")
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def user_runtime_dir(self) -> str:
|
| 169 |
+
"""
|
| 170 |
+
:return: runtime directory tied to the user, e.g. ``/run/user/$(id -u)/$appname/$version`` or
|
| 171 |
+
``$XDG_RUNTIME_DIR/$appname/$version``.
|
| 172 |
+
|
| 173 |
+
For FreeBSD/OpenBSD/NetBSD, it would return ``/var/run/user/$(id -u)/$appname/$version`` if
|
| 174 |
+
exists, otherwise ``/tmp/runtime-$(id -u)/$appname/$version``, if``$XDG_RUNTIME_DIR``
|
| 175 |
+
is not set.
|
| 176 |
+
"""
|
| 177 |
+
path = os.environ.get("XDG_RUNTIME_DIR", "")
|
| 178 |
+
if not path.strip():
|
| 179 |
+
if sys.platform.startswith(("freebsd", "openbsd", "netbsd")):
|
| 180 |
+
path = f"/var/run/user/{getuid()}"
|
| 181 |
+
if not Path(path).exists():
|
| 182 |
+
path = f"/tmp/runtime-{getuid()}" # noqa: S108
|
| 183 |
+
else:
|
| 184 |
+
path = f"/run/user/{getuid()}"
|
| 185 |
+
return self._append_app_name_and_version(path)
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def site_runtime_dir(self) -> str:
|
| 189 |
+
"""
|
| 190 |
+
:return: runtime directory shared by users, e.g. ``/run/$appname/$version`` or \
|
| 191 |
+
``$XDG_RUNTIME_DIR/$appname/$version``.
|
| 192 |
+
|
| 193 |
+
Note that this behaves almost exactly like `user_runtime_dir` if ``$XDG_RUNTIME_DIR`` is set, but will
|
| 194 |
+
fall back to paths associated to the root user instead of a regular logged-in user if it's not set.
|
| 195 |
+
|
| 196 |
+
If you wish to ensure that a logged-in root user path is returned e.g. ``/run/user/0``, use `user_runtime_dir`
|
| 197 |
+
instead.
|
| 198 |
+
|
| 199 |
+
For FreeBSD/OpenBSD/NetBSD, it would return ``/var/run/$appname/$version`` if ``$XDG_RUNTIME_DIR`` is not set.
|
| 200 |
+
"""
|
| 201 |
+
path = os.environ.get("XDG_RUNTIME_DIR", "")
|
| 202 |
+
if not path.strip():
|
| 203 |
+
if sys.platform.startswith(("freebsd", "openbsd", "netbsd")):
|
| 204 |
+
path = "/var/run"
|
| 205 |
+
else:
|
| 206 |
+
path = "/run"
|
| 207 |
+
return self._append_app_name_and_version(path)
|
| 208 |
+
|
| 209 |
+
@property
|
| 210 |
+
def site_data_path(self) -> Path:
|
| 211 |
+
""":return: data path shared by users. Only return the first item, even if ``multipath`` is set to ``True``"""
|
| 212 |
+
return self._first_item_as_path_if_multipath(self.site_data_dir)
|
| 213 |
+
|
| 214 |
+
@property
|
| 215 |
+
def site_config_path(self) -> Path:
|
| 216 |
+
""":return: config path shared by the users, returns the first item, even if ``multipath`` is set to ``True``"""
|
| 217 |
+
return self._first_item_as_path_if_multipath(self.site_config_dir)
|
| 218 |
+
|
| 219 |
+
@property
|
| 220 |
+
def site_cache_path(self) -> Path:
|
| 221 |
+
""":return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``"""
|
| 222 |
+
return self._first_item_as_path_if_multipath(self.site_cache_dir)
|
| 223 |
+
|
| 224 |
+
def iter_config_dirs(self) -> Iterator[str]:
|
| 225 |
+
""":yield: all user and site configuration directories."""
|
| 226 |
+
yield self.user_config_dir
|
| 227 |
+
yield from self._site_config_dirs
|
| 228 |
+
|
| 229 |
+
def iter_data_dirs(self) -> Iterator[str]:
|
| 230 |
+
""":yield: all user and site data directories."""
|
| 231 |
+
yield self.user_data_dir
|
| 232 |
+
yield from self._site_data_dirs
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
def _get_user_media_dir(env_var: str, fallback_tilde_path: str) -> str:
|
| 236 |
+
media_dir = _get_user_dirs_folder(env_var)
|
| 237 |
+
if media_dir is None:
|
| 238 |
+
media_dir = os.environ.get(env_var, "").strip()
|
| 239 |
+
if not media_dir:
|
| 240 |
+
media_dir = os.path.expanduser(fallback_tilde_path) # noqa: PTH111
|
| 241 |
+
|
| 242 |
+
return media_dir
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def _get_user_dirs_folder(key: str) -> str | None:
|
| 246 |
+
"""
|
| 247 |
+
Return directory from user-dirs.dirs config file.
|
| 248 |
+
|
| 249 |
+
See https://freedesktop.org/wiki/Software/xdg-user-dirs/.
|
| 250 |
+
|
| 251 |
+
"""
|
| 252 |
+
user_dirs_config_path = Path(Unix().user_config_dir) / "user-dirs.dirs"
|
| 253 |
+
if user_dirs_config_path.exists():
|
| 254 |
+
parser = ConfigParser()
|
| 255 |
+
|
| 256 |
+
with user_dirs_config_path.open() as stream:
|
| 257 |
+
# Add fake section header, so ConfigParser doesn't complain
|
| 258 |
+
parser.read_string(f"[top]\n{stream.read()}")
|
| 259 |
+
|
| 260 |
+
if key not in parser["top"]:
|
| 261 |
+
return None
|
| 262 |
+
|
| 263 |
+
path = parser["top"][key].strip('"')
|
| 264 |
+
# Handle relative home paths
|
| 265 |
+
return path.replace("$HOME", os.path.expanduser("~")) # noqa: PTH111
|
| 266 |
+
|
| 267 |
+
return None
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
__all__ = [
|
| 271 |
+
"Unix",
|
| 272 |
+
]
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/version.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# file generated by setuptools-scm
|
| 2 |
+
# don't change, don't track in version control
|
| 3 |
+
|
| 4 |
+
__all__ = [
|
| 5 |
+
"__version__",
|
| 6 |
+
"__version_tuple__",
|
| 7 |
+
"version",
|
| 8 |
+
"version_tuple",
|
| 9 |
+
"__commit_id__",
|
| 10 |
+
"commit_id",
|
| 11 |
+
]
|
| 12 |
+
|
| 13 |
+
TYPE_CHECKING = False
|
| 14 |
+
if TYPE_CHECKING:
|
| 15 |
+
from typing import Tuple
|
| 16 |
+
from typing import Union
|
| 17 |
+
|
| 18 |
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
| 19 |
+
COMMIT_ID = Union[str, None]
|
| 20 |
+
else:
|
| 21 |
+
VERSION_TUPLE = object
|
| 22 |
+
COMMIT_ID = object
|
| 23 |
+
|
| 24 |
+
version: str
|
| 25 |
+
__version__: str
|
| 26 |
+
__version_tuple__: VERSION_TUPLE
|
| 27 |
+
version_tuple: VERSION_TUPLE
|
| 28 |
+
commit_id: COMMIT_ID
|
| 29 |
+
__commit_id__: COMMIT_ID
|
| 30 |
+
|
| 31 |
+
__version__ = version = '4.5.0'
|
| 32 |
+
__version_tuple__ = version_tuple = (4, 5, 0)
|
| 33 |
+
|
| 34 |
+
__commit_id__ = commit_id = None
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/platformdirs/windows.py
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Windows."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import sys
|
| 7 |
+
from functools import lru_cache
|
| 8 |
+
from typing import TYPE_CHECKING
|
| 9 |
+
|
| 10 |
+
from .api import PlatformDirsABC
|
| 11 |
+
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
from collections.abc import Callable
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class Windows(PlatformDirsABC):
|
| 17 |
+
"""
|
| 18 |
+
`MSDN on where to store app data files <https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid>`_.
|
| 19 |
+
|
| 20 |
+
Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `appauthor
|
| 21 |
+
<platformdirs.api.PlatformDirsABC.appauthor>`, `version <platformdirs.api.PlatformDirsABC.version>`, `roaming
|
| 22 |
+
<platformdirs.api.PlatformDirsABC.roaming>`, `opinion <platformdirs.api.PlatformDirsABC.opinion>`, `ensure_exists
|
| 23 |
+
<platformdirs.api.PlatformDirsABC.ensure_exists>`.
|
| 24 |
+
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
@property
|
| 28 |
+
def user_data_dir(self) -> str:
|
| 29 |
+
"""
|
| 30 |
+
:return: data directory tied to the user, e.g.
|
| 31 |
+
``%USERPROFILE%\\AppData\\Local\\$appauthor\\$appname`` (not roaming) or
|
| 32 |
+
``%USERPROFILE%\\AppData\\Roaming\\$appauthor\\$appname`` (roaming)
|
| 33 |
+
"""
|
| 34 |
+
const = "CSIDL_APPDATA" if self.roaming else "CSIDL_LOCAL_APPDATA"
|
| 35 |
+
path = os.path.normpath(get_win_folder(const))
|
| 36 |
+
return self._append_parts(path)
|
| 37 |
+
|
| 38 |
+
def _append_parts(self, path: str, *, opinion_value: str | None = None) -> str:
|
| 39 |
+
params = []
|
| 40 |
+
if self.appname:
|
| 41 |
+
if self.appauthor is not False:
|
| 42 |
+
author = self.appauthor or self.appname
|
| 43 |
+
params.append(author)
|
| 44 |
+
params.append(self.appname)
|
| 45 |
+
if opinion_value is not None and self.opinion:
|
| 46 |
+
params.append(opinion_value)
|
| 47 |
+
if self.version:
|
| 48 |
+
params.append(self.version)
|
| 49 |
+
path = os.path.join(path, *params) # noqa: PTH118
|
| 50 |
+
self._optionally_create_directory(path)
|
| 51 |
+
return path
|
| 52 |
+
|
| 53 |
+
@property
|
| 54 |
+
def site_data_dir(self) -> str:
|
| 55 |
+
""":return: data directory shared by users, e.g. ``C:\\ProgramData\\$appauthor\\$appname``"""
|
| 56 |
+
path = os.path.normpath(get_win_folder("CSIDL_COMMON_APPDATA"))
|
| 57 |
+
return self._append_parts(path)
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def user_config_dir(self) -> str:
|
| 61 |
+
""":return: config directory tied to the user, same as `user_data_dir`"""
|
| 62 |
+
return self.user_data_dir
|
| 63 |
+
|
| 64 |
+
@property
|
| 65 |
+
def site_config_dir(self) -> str:
|
| 66 |
+
""":return: config directory shared by the users, same as `site_data_dir`"""
|
| 67 |
+
return self.site_data_dir
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def user_cache_dir(self) -> str:
|
| 71 |
+
"""
|
| 72 |
+
:return: cache directory tied to the user (if opinionated with ``Cache`` folder within ``$appname``) e.g.
|
| 73 |
+
``%USERPROFILE%\\AppData\\Local\\$appauthor\\$appname\\Cache\\$version``
|
| 74 |
+
"""
|
| 75 |
+
path = os.path.normpath(get_win_folder("CSIDL_LOCAL_APPDATA"))
|
| 76 |
+
return self._append_parts(path, opinion_value="Cache")
|
| 77 |
+
|
| 78 |
+
@property
|
| 79 |
+
def site_cache_dir(self) -> str:
|
| 80 |
+
""":return: cache directory shared by users, e.g. ``C:\\ProgramData\\$appauthor\\$appname\\Cache\\$version``"""
|
| 81 |
+
path = os.path.normpath(get_win_folder("CSIDL_COMMON_APPDATA"))
|
| 82 |
+
return self._append_parts(path, opinion_value="Cache")
|
| 83 |
+
|
| 84 |
+
@property
|
| 85 |
+
def user_state_dir(self) -> str:
|
| 86 |
+
""":return: state directory tied to the user, same as `user_data_dir`"""
|
| 87 |
+
return self.user_data_dir
|
| 88 |
+
|
| 89 |
+
@property
|
| 90 |
+
def user_log_dir(self) -> str:
|
| 91 |
+
""":return: log directory tied to the user, same as `user_data_dir` if not opinionated else ``Logs`` in it"""
|
| 92 |
+
path = self.user_data_dir
|
| 93 |
+
if self.opinion:
|
| 94 |
+
path = os.path.join(path, "Logs") # noqa: PTH118
|
| 95 |
+
self._optionally_create_directory(path)
|
| 96 |
+
return path
|
| 97 |
+
|
| 98 |
+
@property
|
| 99 |
+
def user_documents_dir(self) -> str:
|
| 100 |
+
""":return: documents directory tied to the user e.g. ``%USERPROFILE%\\Documents``"""
|
| 101 |
+
return os.path.normpath(get_win_folder("CSIDL_PERSONAL"))
|
| 102 |
+
|
| 103 |
+
@property
|
| 104 |
+
def user_downloads_dir(self) -> str:
|
| 105 |
+
""":return: downloads directory tied to the user e.g. ``%USERPROFILE%\\Downloads``"""
|
| 106 |
+
return os.path.normpath(get_win_folder("CSIDL_DOWNLOADS"))
|
| 107 |
+
|
| 108 |
+
@property
|
| 109 |
+
def user_pictures_dir(self) -> str:
|
| 110 |
+
""":return: pictures directory tied to the user e.g. ``%USERPROFILE%\\Pictures``"""
|
| 111 |
+
return os.path.normpath(get_win_folder("CSIDL_MYPICTURES"))
|
| 112 |
+
|
| 113 |
+
@property
|
| 114 |
+
def user_videos_dir(self) -> str:
|
| 115 |
+
""":return: videos directory tied to the user e.g. ``%USERPROFILE%\\Videos``"""
|
| 116 |
+
return os.path.normpath(get_win_folder("CSIDL_MYVIDEO"))
|
| 117 |
+
|
| 118 |
+
@property
|
| 119 |
+
def user_music_dir(self) -> str:
|
| 120 |
+
""":return: music directory tied to the user e.g. ``%USERPROFILE%\\Music``"""
|
| 121 |
+
return os.path.normpath(get_win_folder("CSIDL_MYMUSIC"))
|
| 122 |
+
|
| 123 |
+
@property
|
| 124 |
+
def user_desktop_dir(self) -> str:
|
| 125 |
+
""":return: desktop directory tied to the user, e.g. ``%USERPROFILE%\\Desktop``"""
|
| 126 |
+
return os.path.normpath(get_win_folder("CSIDL_DESKTOPDIRECTORY"))
|
| 127 |
+
|
| 128 |
+
@property
|
| 129 |
+
def user_runtime_dir(self) -> str:
|
| 130 |
+
"""
|
| 131 |
+
:return: runtime directory tied to the user, e.g.
|
| 132 |
+
``%USERPROFILE%\\AppData\\Local\\Temp\\$appauthor\\$appname``
|
| 133 |
+
"""
|
| 134 |
+
path = os.path.normpath(os.path.join(get_win_folder("CSIDL_LOCAL_APPDATA"), "Temp")) # noqa: PTH118
|
| 135 |
+
return self._append_parts(path)
|
| 136 |
+
|
| 137 |
+
@property
|
| 138 |
+
def site_runtime_dir(self) -> str:
|
| 139 |
+
""":return: runtime directory shared by users, same as `user_runtime_dir`"""
|
| 140 |
+
return self.user_runtime_dir
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
def get_win_folder_from_env_vars(csidl_name: str) -> str:
|
| 144 |
+
"""Get folder from environment variables."""
|
| 145 |
+
result = get_win_folder_if_csidl_name_not_env_var(csidl_name)
|
| 146 |
+
if result is not None:
|
| 147 |
+
return result
|
| 148 |
+
|
| 149 |
+
env_var_name = {
|
| 150 |
+
"CSIDL_APPDATA": "APPDATA",
|
| 151 |
+
"CSIDL_COMMON_APPDATA": "ALLUSERSPROFILE",
|
| 152 |
+
"CSIDL_LOCAL_APPDATA": "LOCALAPPDATA",
|
| 153 |
+
}.get(csidl_name)
|
| 154 |
+
if env_var_name is None:
|
| 155 |
+
msg = f"Unknown CSIDL name: {csidl_name}"
|
| 156 |
+
raise ValueError(msg)
|
| 157 |
+
result = os.environ.get(env_var_name)
|
| 158 |
+
if result is None:
|
| 159 |
+
msg = f"Unset environment variable: {env_var_name}"
|
| 160 |
+
raise ValueError(msg)
|
| 161 |
+
return result
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
def get_win_folder_if_csidl_name_not_env_var(csidl_name: str) -> str | None:
|
| 165 |
+
"""Get a folder for a CSIDL name that does not exist as an environment variable."""
|
| 166 |
+
if csidl_name == "CSIDL_PERSONAL":
|
| 167 |
+
return os.path.join(os.path.normpath(os.environ["USERPROFILE"]), "Documents") # noqa: PTH118
|
| 168 |
+
|
| 169 |
+
if csidl_name == "CSIDL_DOWNLOADS":
|
| 170 |
+
return os.path.join(os.path.normpath(os.environ["USERPROFILE"]), "Downloads") # noqa: PTH118
|
| 171 |
+
|
| 172 |
+
if csidl_name == "CSIDL_MYPICTURES":
|
| 173 |
+
return os.path.join(os.path.normpath(os.environ["USERPROFILE"]), "Pictures") # noqa: PTH118
|
| 174 |
+
|
| 175 |
+
if csidl_name == "CSIDL_MYVIDEO":
|
| 176 |
+
return os.path.join(os.path.normpath(os.environ["USERPROFILE"]), "Videos") # noqa: PTH118
|
| 177 |
+
|
| 178 |
+
if csidl_name == "CSIDL_MYMUSIC":
|
| 179 |
+
return os.path.join(os.path.normpath(os.environ["USERPROFILE"]), "Music") # noqa: PTH118
|
| 180 |
+
return None
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
def get_win_folder_from_registry(csidl_name: str) -> str:
|
| 184 |
+
"""
|
| 185 |
+
Get folder from the registry.
|
| 186 |
+
|
| 187 |
+
This is a fallback technique at best. I'm not sure if using the registry for these guarantees us the correct answer
|
| 188 |
+
for all CSIDL_* names.
|
| 189 |
+
|
| 190 |
+
"""
|
| 191 |
+
shell_folder_name = {
|
| 192 |
+
"CSIDL_APPDATA": "AppData",
|
| 193 |
+
"CSIDL_COMMON_APPDATA": "Common AppData",
|
| 194 |
+
"CSIDL_LOCAL_APPDATA": "Local AppData",
|
| 195 |
+
"CSIDL_PERSONAL": "Personal",
|
| 196 |
+
"CSIDL_DOWNLOADS": "{374DE290-123F-4565-9164-39C4925E467B}",
|
| 197 |
+
"CSIDL_MYPICTURES": "My Pictures",
|
| 198 |
+
"CSIDL_MYVIDEO": "My Video",
|
| 199 |
+
"CSIDL_MYMUSIC": "My Music",
|
| 200 |
+
}.get(csidl_name)
|
| 201 |
+
if shell_folder_name is None:
|
| 202 |
+
msg = f"Unknown CSIDL name: {csidl_name}"
|
| 203 |
+
raise ValueError(msg)
|
| 204 |
+
if sys.platform != "win32": # only needed for mypy type checker to know that this code runs only on Windows
|
| 205 |
+
raise NotImplementedError
|
| 206 |
+
import winreg # noqa: PLC0415
|
| 207 |
+
|
| 208 |
+
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders")
|
| 209 |
+
directory, _ = winreg.QueryValueEx(key, shell_folder_name)
|
| 210 |
+
return str(directory)
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
def get_win_folder_via_ctypes(csidl_name: str) -> str:
|
| 214 |
+
"""Get folder with ctypes."""
|
| 215 |
+
# There is no 'CSIDL_DOWNLOADS'.
|
| 216 |
+
# Use 'CSIDL_PROFILE' (40) and append the default folder 'Downloads' instead.
|
| 217 |
+
# https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
|
| 218 |
+
|
| 219 |
+
import ctypes # noqa: PLC0415
|
| 220 |
+
|
| 221 |
+
csidl_const = {
|
| 222 |
+
"CSIDL_APPDATA": 26,
|
| 223 |
+
"CSIDL_COMMON_APPDATA": 35,
|
| 224 |
+
"CSIDL_LOCAL_APPDATA": 28,
|
| 225 |
+
"CSIDL_PERSONAL": 5,
|
| 226 |
+
"CSIDL_MYPICTURES": 39,
|
| 227 |
+
"CSIDL_MYVIDEO": 14,
|
| 228 |
+
"CSIDL_MYMUSIC": 13,
|
| 229 |
+
"CSIDL_DOWNLOADS": 40,
|
| 230 |
+
"CSIDL_DESKTOPDIRECTORY": 16,
|
| 231 |
+
}.get(csidl_name)
|
| 232 |
+
if csidl_const is None:
|
| 233 |
+
msg = f"Unknown CSIDL name: {csidl_name}"
|
| 234 |
+
raise ValueError(msg)
|
| 235 |
+
|
| 236 |
+
buf = ctypes.create_unicode_buffer(1024)
|
| 237 |
+
windll = getattr(ctypes, "windll") # noqa: B009 # using getattr to avoid false positive with mypy type checker
|
| 238 |
+
windll.shell32.SHGetFolderPathW(None, csidl_const, None, 0, buf)
|
| 239 |
+
|
| 240 |
+
# Downgrade to short path name if it has high-bit chars.
|
| 241 |
+
if any(ord(c) > 255 for c in buf): # noqa: PLR2004
|
| 242 |
+
buf2 = ctypes.create_unicode_buffer(1024)
|
| 243 |
+
if windll.kernel32.GetShortPathNameW(buf.value, buf2, 1024):
|
| 244 |
+
buf = buf2
|
| 245 |
+
|
| 246 |
+
if csidl_name == "CSIDL_DOWNLOADS":
|
| 247 |
+
return os.path.join(buf.value, "Downloads") # noqa: PTH118
|
| 248 |
+
|
| 249 |
+
return buf.value
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _pick_get_win_folder() -> Callable[[str], str]:
|
| 253 |
+
try:
|
| 254 |
+
import ctypes # noqa: PLC0415
|
| 255 |
+
except ImportError:
|
| 256 |
+
pass
|
| 257 |
+
else:
|
| 258 |
+
if hasattr(ctypes, "windll"):
|
| 259 |
+
return get_win_folder_via_ctypes
|
| 260 |
+
try:
|
| 261 |
+
import winreg # noqa: PLC0415, F401
|
| 262 |
+
except ImportError:
|
| 263 |
+
return get_win_folder_from_env_vars
|
| 264 |
+
else:
|
| 265 |
+
return get_win_folder_from_registry
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
get_win_folder = lru_cache(maxsize=None)(_pick_get_win_folder())
|
| 269 |
+
|
| 270 |
+
__all__ = [
|
| 271 |
+
"Windows",
|
| 272 |
+
]
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/pygments/__init__.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Pygments
|
| 3 |
+
~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Pygments is a syntax highlighting package written in Python.
|
| 6 |
+
|
| 7 |
+
It is a generic syntax highlighter for general use in all kinds of software
|
| 8 |
+
such as forum systems, wikis or other applications that need to prettify
|
| 9 |
+
source code. Highlights are:
|
| 10 |
+
|
| 11 |
+
* a wide range of common languages and markup formats is supported
|
| 12 |
+
* special attention is paid to details, increasing quality by a fair amount
|
| 13 |
+
* support for new languages and formats are added easily
|
| 14 |
+
* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image
|
| 15 |
+
formats that PIL supports, and ANSI sequences
|
| 16 |
+
* it is usable as a command-line tool and as a library
|
| 17 |
+
* ... and it highlights even Brainfuck!
|
| 18 |
+
|
| 19 |
+
The `Pygments master branch`_ is installable with ``easy_install Pygments==dev``.
|
| 20 |
+
|
| 21 |
+
.. _Pygments master branch:
|
| 22 |
+
https://github.com/pygments/pygments/archive/master.zip#egg=Pygments-dev
|
| 23 |
+
|
| 24 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 25 |
+
:license: BSD, see LICENSE for details.
|
| 26 |
+
"""
|
| 27 |
+
from io import StringIO, BytesIO
|
| 28 |
+
|
| 29 |
+
__version__ = '2.19.2'
|
| 30 |
+
__docformat__ = 'restructuredtext'
|
| 31 |
+
|
| 32 |
+
__all__ = ['lex', 'format', 'highlight']
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def lex(code, lexer):
|
| 36 |
+
"""
|
| 37 |
+
Lex `code` with the `lexer` (must be a `Lexer` instance)
|
| 38 |
+
and return an iterable of tokens. Currently, this only calls
|
| 39 |
+
`lexer.get_tokens()`.
|
| 40 |
+
"""
|
| 41 |
+
try:
|
| 42 |
+
return lexer.get_tokens(code)
|
| 43 |
+
except TypeError:
|
| 44 |
+
# Heuristic to catch a common mistake.
|
| 45 |
+
from pip._vendor.pygments.lexer import RegexLexer
|
| 46 |
+
if isinstance(lexer, type) and issubclass(lexer, RegexLexer):
|
| 47 |
+
raise TypeError('lex() argument must be a lexer instance, '
|
| 48 |
+
'not a class')
|
| 49 |
+
raise
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def format(tokens, formatter, outfile=None): # pylint: disable=redefined-builtin
|
| 53 |
+
"""
|
| 54 |
+
Format ``tokens`` (an iterable of tokens) with the formatter ``formatter``
|
| 55 |
+
(a `Formatter` instance).
|
| 56 |
+
|
| 57 |
+
If ``outfile`` is given and a valid file object (an object with a
|
| 58 |
+
``write`` method), the result will be written to it, otherwise it
|
| 59 |
+
is returned as a string.
|
| 60 |
+
"""
|
| 61 |
+
try:
|
| 62 |
+
if not outfile:
|
| 63 |
+
realoutfile = getattr(formatter, 'encoding', None) and BytesIO() or StringIO()
|
| 64 |
+
formatter.format(tokens, realoutfile)
|
| 65 |
+
return realoutfile.getvalue()
|
| 66 |
+
else:
|
| 67 |
+
formatter.format(tokens, outfile)
|
| 68 |
+
except TypeError:
|
| 69 |
+
# Heuristic to catch a common mistake.
|
| 70 |
+
from pip._vendor.pygments.formatter import Formatter
|
| 71 |
+
if isinstance(formatter, type) and issubclass(formatter, Formatter):
|
| 72 |
+
raise TypeError('format() argument must be a formatter instance, '
|
| 73 |
+
'not a class')
|
| 74 |
+
raise
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def highlight(code, lexer, formatter, outfile=None):
|
| 78 |
+
"""
|
| 79 |
+
This is the most high-level highlighting function. It combines `lex` and
|
| 80 |
+
`format` in one function.
|
| 81 |
+
"""
|
| 82 |
+
return format(lex(code, lexer), formatter, outfile)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/pygments/filters/__init__.py
ADDED
|
@@ -0,0 +1,940 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
| 8 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 9 |
+
:license: BSD, see LICENSE for details.
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
import re
|
| 13 |
+
|
| 14 |
+
from pip._vendor.pygments.token import String, Comment, Keyword, Name, Error, Whitespace, \
|
| 15 |
+
string_to_tokentype
|
| 16 |
+
from pip._vendor.pygments.filter import Filter
|
| 17 |
+
from pip._vendor.pygments.util import get_list_opt, get_int_opt, get_bool_opt, \
|
| 18 |
+
get_choice_opt, ClassNotFound, OptionError
|
| 19 |
+
from pip._vendor.pygments.plugin import find_plugin_filters
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def find_filter_class(filtername):
|
| 23 |
+
"""Lookup a filter by name. Return None if not found."""
|
| 24 |
+
if filtername in FILTERS:
|
| 25 |
+
return FILTERS[filtername]
|
| 26 |
+
for name, cls in find_plugin_filters():
|
| 27 |
+
if name == filtername:
|
| 28 |
+
return cls
|
| 29 |
+
return None
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def get_filter_by_name(filtername, **options):
|
| 33 |
+
"""Return an instantiated filter.
|
| 34 |
+
|
| 35 |
+
Options are passed to the filter initializer if wanted.
|
| 36 |
+
Raise a ClassNotFound if not found.
|
| 37 |
+
"""
|
| 38 |
+
cls = find_filter_class(filtername)
|
| 39 |
+
if cls:
|
| 40 |
+
return cls(**options)
|
| 41 |
+
else:
|
| 42 |
+
raise ClassNotFound(f'filter {filtername!r} not found')
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def get_all_filters():
|
| 46 |
+
"""Return a generator of all filter names."""
|
| 47 |
+
yield from FILTERS
|
| 48 |
+
for name, _ in find_plugin_filters():
|
| 49 |
+
yield name
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def _replace_special(ttype, value, regex, specialttype,
|
| 53 |
+
replacefunc=lambda x: x):
|
| 54 |
+
last = 0
|
| 55 |
+
for match in regex.finditer(value):
|
| 56 |
+
start, end = match.start(), match.end()
|
| 57 |
+
if start != last:
|
| 58 |
+
yield ttype, value[last:start]
|
| 59 |
+
yield specialttype, replacefunc(value[start:end])
|
| 60 |
+
last = end
|
| 61 |
+
if last != len(value):
|
| 62 |
+
yield ttype, value[last:]
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
class CodeTagFilter(Filter):
|
| 66 |
+
"""Highlight special code tags in comments and docstrings.
|
| 67 |
+
|
| 68 |
+
Options accepted:
|
| 69 |
+
|
| 70 |
+
`codetags` : list of strings
|
| 71 |
+
A list of strings that are flagged as code tags. The default is to
|
| 72 |
+
highlight ``XXX``, ``TODO``, ``FIXME``, ``BUG`` and ``NOTE``.
|
| 73 |
+
|
| 74 |
+
.. versionchanged:: 2.13
|
| 75 |
+
Now recognizes ``FIXME`` by default.
|
| 76 |
+
"""
|
| 77 |
+
|
| 78 |
+
def __init__(self, **options):
|
| 79 |
+
Filter.__init__(self, **options)
|
| 80 |
+
tags = get_list_opt(options, 'codetags',
|
| 81 |
+
['XXX', 'TODO', 'FIXME', 'BUG', 'NOTE'])
|
| 82 |
+
self.tag_re = re.compile(r'\b({})\b'.format('|'.join([
|
| 83 |
+
re.escape(tag) for tag in tags if tag
|
| 84 |
+
])))
|
| 85 |
+
|
| 86 |
+
def filter(self, lexer, stream):
|
| 87 |
+
regex = self.tag_re
|
| 88 |
+
for ttype, value in stream:
|
| 89 |
+
if ttype in String.Doc or \
|
| 90 |
+
ttype in Comment and \
|
| 91 |
+
ttype not in Comment.Preproc:
|
| 92 |
+
yield from _replace_special(ttype, value, regex, Comment.Special)
|
| 93 |
+
else:
|
| 94 |
+
yield ttype, value
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
class SymbolFilter(Filter):
|
| 98 |
+
"""Convert mathematical symbols such as \\<longrightarrow> in Isabelle
|
| 99 |
+
or \\longrightarrow in LaTeX into Unicode characters.
|
| 100 |
+
|
| 101 |
+
This is mostly useful for HTML or console output when you want to
|
| 102 |
+
approximate the source rendering you'd see in an IDE.
|
| 103 |
+
|
| 104 |
+
Options accepted:
|
| 105 |
+
|
| 106 |
+
`lang` : string
|
| 107 |
+
The symbol language. Must be one of ``'isabelle'`` or
|
| 108 |
+
``'latex'``. The default is ``'isabelle'``.
|
| 109 |
+
"""
|
| 110 |
+
|
| 111 |
+
latex_symbols = {
|
| 112 |
+
'\\alpha' : '\U000003b1',
|
| 113 |
+
'\\beta' : '\U000003b2',
|
| 114 |
+
'\\gamma' : '\U000003b3',
|
| 115 |
+
'\\delta' : '\U000003b4',
|
| 116 |
+
'\\varepsilon' : '\U000003b5',
|
| 117 |
+
'\\zeta' : '\U000003b6',
|
| 118 |
+
'\\eta' : '\U000003b7',
|
| 119 |
+
'\\vartheta' : '\U000003b8',
|
| 120 |
+
'\\iota' : '\U000003b9',
|
| 121 |
+
'\\kappa' : '\U000003ba',
|
| 122 |
+
'\\lambda' : '\U000003bb',
|
| 123 |
+
'\\mu' : '\U000003bc',
|
| 124 |
+
'\\nu' : '\U000003bd',
|
| 125 |
+
'\\xi' : '\U000003be',
|
| 126 |
+
'\\pi' : '\U000003c0',
|
| 127 |
+
'\\varrho' : '\U000003c1',
|
| 128 |
+
'\\sigma' : '\U000003c3',
|
| 129 |
+
'\\tau' : '\U000003c4',
|
| 130 |
+
'\\upsilon' : '\U000003c5',
|
| 131 |
+
'\\varphi' : '\U000003c6',
|
| 132 |
+
'\\chi' : '\U000003c7',
|
| 133 |
+
'\\psi' : '\U000003c8',
|
| 134 |
+
'\\omega' : '\U000003c9',
|
| 135 |
+
'\\Gamma' : '\U00000393',
|
| 136 |
+
'\\Delta' : '\U00000394',
|
| 137 |
+
'\\Theta' : '\U00000398',
|
| 138 |
+
'\\Lambda' : '\U0000039b',
|
| 139 |
+
'\\Xi' : '\U0000039e',
|
| 140 |
+
'\\Pi' : '\U000003a0',
|
| 141 |
+
'\\Sigma' : '\U000003a3',
|
| 142 |
+
'\\Upsilon' : '\U000003a5',
|
| 143 |
+
'\\Phi' : '\U000003a6',
|
| 144 |
+
'\\Psi' : '\U000003a8',
|
| 145 |
+
'\\Omega' : '\U000003a9',
|
| 146 |
+
'\\leftarrow' : '\U00002190',
|
| 147 |
+
'\\longleftarrow' : '\U000027f5',
|
| 148 |
+
'\\rightarrow' : '\U00002192',
|
| 149 |
+
'\\longrightarrow' : '\U000027f6',
|
| 150 |
+
'\\Leftarrow' : '\U000021d0',
|
| 151 |
+
'\\Longleftarrow' : '\U000027f8',
|
| 152 |
+
'\\Rightarrow' : '\U000021d2',
|
| 153 |
+
'\\Longrightarrow' : '\U000027f9',
|
| 154 |
+
'\\leftrightarrow' : '\U00002194',
|
| 155 |
+
'\\longleftrightarrow' : '\U000027f7',
|
| 156 |
+
'\\Leftrightarrow' : '\U000021d4',
|
| 157 |
+
'\\Longleftrightarrow' : '\U000027fa',
|
| 158 |
+
'\\mapsto' : '\U000021a6',
|
| 159 |
+
'\\longmapsto' : '\U000027fc',
|
| 160 |
+
'\\relbar' : '\U00002500',
|
| 161 |
+
'\\Relbar' : '\U00002550',
|
| 162 |
+
'\\hookleftarrow' : '\U000021a9',
|
| 163 |
+
'\\hookrightarrow' : '\U000021aa',
|
| 164 |
+
'\\leftharpoondown' : '\U000021bd',
|
| 165 |
+
'\\rightharpoondown' : '\U000021c1',
|
| 166 |
+
'\\leftharpoonup' : '\U000021bc',
|
| 167 |
+
'\\rightharpoonup' : '\U000021c0',
|
| 168 |
+
'\\rightleftharpoons' : '\U000021cc',
|
| 169 |
+
'\\leadsto' : '\U0000219d',
|
| 170 |
+
'\\downharpoonleft' : '\U000021c3',
|
| 171 |
+
'\\downharpoonright' : '\U000021c2',
|
| 172 |
+
'\\upharpoonleft' : '\U000021bf',
|
| 173 |
+
'\\upharpoonright' : '\U000021be',
|
| 174 |
+
'\\restriction' : '\U000021be',
|
| 175 |
+
'\\uparrow' : '\U00002191',
|
| 176 |
+
'\\Uparrow' : '\U000021d1',
|
| 177 |
+
'\\downarrow' : '\U00002193',
|
| 178 |
+
'\\Downarrow' : '\U000021d3',
|
| 179 |
+
'\\updownarrow' : '\U00002195',
|
| 180 |
+
'\\Updownarrow' : '\U000021d5',
|
| 181 |
+
'\\langle' : '\U000027e8',
|
| 182 |
+
'\\rangle' : '\U000027e9',
|
| 183 |
+
'\\lceil' : '\U00002308',
|
| 184 |
+
'\\rceil' : '\U00002309',
|
| 185 |
+
'\\lfloor' : '\U0000230a',
|
| 186 |
+
'\\rfloor' : '\U0000230b',
|
| 187 |
+
'\\flqq' : '\U000000ab',
|
| 188 |
+
'\\frqq' : '\U000000bb',
|
| 189 |
+
'\\bot' : '\U000022a5',
|
| 190 |
+
'\\top' : '\U000022a4',
|
| 191 |
+
'\\wedge' : '\U00002227',
|
| 192 |
+
'\\bigwedge' : '\U000022c0',
|
| 193 |
+
'\\vee' : '\U00002228',
|
| 194 |
+
'\\bigvee' : '\U000022c1',
|
| 195 |
+
'\\forall' : '\U00002200',
|
| 196 |
+
'\\exists' : '\U00002203',
|
| 197 |
+
'\\nexists' : '\U00002204',
|
| 198 |
+
'\\neg' : '\U000000ac',
|
| 199 |
+
'\\Box' : '\U000025a1',
|
| 200 |
+
'\\Diamond' : '\U000025c7',
|
| 201 |
+
'\\vdash' : '\U000022a2',
|
| 202 |
+
'\\models' : '\U000022a8',
|
| 203 |
+
'\\dashv' : '\U000022a3',
|
| 204 |
+
'\\surd' : '\U0000221a',
|
| 205 |
+
'\\le' : '\U00002264',
|
| 206 |
+
'\\ge' : '\U00002265',
|
| 207 |
+
'\\ll' : '\U0000226a',
|
| 208 |
+
'\\gg' : '\U0000226b',
|
| 209 |
+
'\\lesssim' : '\U00002272',
|
| 210 |
+
'\\gtrsim' : '\U00002273',
|
| 211 |
+
'\\lessapprox' : '\U00002a85',
|
| 212 |
+
'\\gtrapprox' : '\U00002a86',
|
| 213 |
+
'\\in' : '\U00002208',
|
| 214 |
+
'\\notin' : '\U00002209',
|
| 215 |
+
'\\subset' : '\U00002282',
|
| 216 |
+
'\\supset' : '\U00002283',
|
| 217 |
+
'\\subseteq' : '\U00002286',
|
| 218 |
+
'\\supseteq' : '\U00002287',
|
| 219 |
+
'\\sqsubset' : '\U0000228f',
|
| 220 |
+
'\\sqsupset' : '\U00002290',
|
| 221 |
+
'\\sqsubseteq' : '\U00002291',
|
| 222 |
+
'\\sqsupseteq' : '\U00002292',
|
| 223 |
+
'\\cap' : '\U00002229',
|
| 224 |
+
'\\bigcap' : '\U000022c2',
|
| 225 |
+
'\\cup' : '\U0000222a',
|
| 226 |
+
'\\bigcup' : '\U000022c3',
|
| 227 |
+
'\\sqcup' : '\U00002294',
|
| 228 |
+
'\\bigsqcup' : '\U00002a06',
|
| 229 |
+
'\\sqcap' : '\U00002293',
|
| 230 |
+
'\\Bigsqcap' : '\U00002a05',
|
| 231 |
+
'\\setminus' : '\U00002216',
|
| 232 |
+
'\\propto' : '\U0000221d',
|
| 233 |
+
'\\uplus' : '\U0000228e',
|
| 234 |
+
'\\bigplus' : '\U00002a04',
|
| 235 |
+
'\\sim' : '\U0000223c',
|
| 236 |
+
'\\doteq' : '\U00002250',
|
| 237 |
+
'\\simeq' : '\U00002243',
|
| 238 |
+
'\\approx' : '\U00002248',
|
| 239 |
+
'\\asymp' : '\U0000224d',
|
| 240 |
+
'\\cong' : '\U00002245',
|
| 241 |
+
'\\equiv' : '\U00002261',
|
| 242 |
+
'\\Join' : '\U000022c8',
|
| 243 |
+
'\\bowtie' : '\U00002a1d',
|
| 244 |
+
'\\prec' : '\U0000227a',
|
| 245 |
+
'\\succ' : '\U0000227b',
|
| 246 |
+
'\\preceq' : '\U0000227c',
|
| 247 |
+
'\\succeq' : '\U0000227d',
|
| 248 |
+
'\\parallel' : '\U00002225',
|
| 249 |
+
'\\mid' : '\U000000a6',
|
| 250 |
+
'\\pm' : '\U000000b1',
|
| 251 |
+
'\\mp' : '\U00002213',
|
| 252 |
+
'\\times' : '\U000000d7',
|
| 253 |
+
'\\div' : '\U000000f7',
|
| 254 |
+
'\\cdot' : '\U000022c5',
|
| 255 |
+
'\\star' : '\U000022c6',
|
| 256 |
+
'\\circ' : '\U00002218',
|
| 257 |
+
'\\dagger' : '\U00002020',
|
| 258 |
+
'\\ddagger' : '\U00002021',
|
| 259 |
+
'\\lhd' : '\U000022b2',
|
| 260 |
+
'\\rhd' : '\U000022b3',
|
| 261 |
+
'\\unlhd' : '\U000022b4',
|
| 262 |
+
'\\unrhd' : '\U000022b5',
|
| 263 |
+
'\\triangleleft' : '\U000025c3',
|
| 264 |
+
'\\triangleright' : '\U000025b9',
|
| 265 |
+
'\\triangle' : '\U000025b3',
|
| 266 |
+
'\\triangleq' : '\U0000225c',
|
| 267 |
+
'\\oplus' : '\U00002295',
|
| 268 |
+
'\\bigoplus' : '\U00002a01',
|
| 269 |
+
'\\otimes' : '\U00002297',
|
| 270 |
+
'\\bigotimes' : '\U00002a02',
|
| 271 |
+
'\\odot' : '\U00002299',
|
| 272 |
+
'\\bigodot' : '\U00002a00',
|
| 273 |
+
'\\ominus' : '\U00002296',
|
| 274 |
+
'\\oslash' : '\U00002298',
|
| 275 |
+
'\\dots' : '\U00002026',
|
| 276 |
+
'\\cdots' : '\U000022ef',
|
| 277 |
+
'\\sum' : '\U00002211',
|
| 278 |
+
'\\prod' : '\U0000220f',
|
| 279 |
+
'\\coprod' : '\U00002210',
|
| 280 |
+
'\\infty' : '\U0000221e',
|
| 281 |
+
'\\int' : '\U0000222b',
|
| 282 |
+
'\\oint' : '\U0000222e',
|
| 283 |
+
'\\clubsuit' : '\U00002663',
|
| 284 |
+
'\\diamondsuit' : '\U00002662',
|
| 285 |
+
'\\heartsuit' : '\U00002661',
|
| 286 |
+
'\\spadesuit' : '\U00002660',
|
| 287 |
+
'\\aleph' : '\U00002135',
|
| 288 |
+
'\\emptyset' : '\U00002205',
|
| 289 |
+
'\\nabla' : '\U00002207',
|
| 290 |
+
'\\partial' : '\U00002202',
|
| 291 |
+
'\\flat' : '\U0000266d',
|
| 292 |
+
'\\natural' : '\U0000266e',
|
| 293 |
+
'\\sharp' : '\U0000266f',
|
| 294 |
+
'\\angle' : '\U00002220',
|
| 295 |
+
'\\copyright' : '\U000000a9',
|
| 296 |
+
'\\textregistered' : '\U000000ae',
|
| 297 |
+
'\\textonequarter' : '\U000000bc',
|
| 298 |
+
'\\textonehalf' : '\U000000bd',
|
| 299 |
+
'\\textthreequarters' : '\U000000be',
|
| 300 |
+
'\\textordfeminine' : '\U000000aa',
|
| 301 |
+
'\\textordmasculine' : '\U000000ba',
|
| 302 |
+
'\\euro' : '\U000020ac',
|
| 303 |
+
'\\pounds' : '\U000000a3',
|
| 304 |
+
'\\yen' : '\U000000a5',
|
| 305 |
+
'\\textcent' : '\U000000a2',
|
| 306 |
+
'\\textcurrency' : '\U000000a4',
|
| 307 |
+
'\\textdegree' : '\U000000b0',
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
isabelle_symbols = {
|
| 311 |
+
'\\<zero>' : '\U0001d7ec',
|
| 312 |
+
'\\<one>' : '\U0001d7ed',
|
| 313 |
+
'\\<two>' : '\U0001d7ee',
|
| 314 |
+
'\\<three>' : '\U0001d7ef',
|
| 315 |
+
'\\<four>' : '\U0001d7f0',
|
| 316 |
+
'\\<five>' : '\U0001d7f1',
|
| 317 |
+
'\\<six>' : '\U0001d7f2',
|
| 318 |
+
'\\<seven>' : '\U0001d7f3',
|
| 319 |
+
'\\<eight>' : '\U0001d7f4',
|
| 320 |
+
'\\<nine>' : '\U0001d7f5',
|
| 321 |
+
'\\<A>' : '\U0001d49c',
|
| 322 |
+
'\\<B>' : '\U0000212c',
|
| 323 |
+
'\\<C>' : '\U0001d49e',
|
| 324 |
+
'\\<D>' : '\U0001d49f',
|
| 325 |
+
'\\<E>' : '\U00002130',
|
| 326 |
+
'\\<F>' : '\U00002131',
|
| 327 |
+
'\\<G>' : '\U0001d4a2',
|
| 328 |
+
'\\<H>' : '\U0000210b',
|
| 329 |
+
'\\<I>' : '\U00002110',
|
| 330 |
+
'\\<J>' : '\U0001d4a5',
|
| 331 |
+
'\\<K>' : '\U0001d4a6',
|
| 332 |
+
'\\<L>' : '\U00002112',
|
| 333 |
+
'\\<M>' : '\U00002133',
|
| 334 |
+
'\\<N>' : '\U0001d4a9',
|
| 335 |
+
'\\<O>' : '\U0001d4aa',
|
| 336 |
+
'\\<P>' : '\U0001d4ab',
|
| 337 |
+
'\\<Q>' : '\U0001d4ac',
|
| 338 |
+
'\\<R>' : '\U0000211b',
|
| 339 |
+
'\\<S>' : '\U0001d4ae',
|
| 340 |
+
'\\<T>' : '\U0001d4af',
|
| 341 |
+
'\\<U>' : '\U0001d4b0',
|
| 342 |
+
'\\<V>' : '\U0001d4b1',
|
| 343 |
+
'\\<W>' : '\U0001d4b2',
|
| 344 |
+
'\\<X>' : '\U0001d4b3',
|
| 345 |
+
'\\<Y>' : '\U0001d4b4',
|
| 346 |
+
'\\<Z>' : '\U0001d4b5',
|
| 347 |
+
'\\<a>' : '\U0001d5ba',
|
| 348 |
+
'\\<b>' : '\U0001d5bb',
|
| 349 |
+
'\\<c>' : '\U0001d5bc',
|
| 350 |
+
'\\<d>' : '\U0001d5bd',
|
| 351 |
+
'\\<e>' : '\U0001d5be',
|
| 352 |
+
'\\<f>' : '\U0001d5bf',
|
| 353 |
+
'\\<g>' : '\U0001d5c0',
|
| 354 |
+
'\\<h>' : '\U0001d5c1',
|
| 355 |
+
'\\<i>' : '\U0001d5c2',
|
| 356 |
+
'\\<j>' : '\U0001d5c3',
|
| 357 |
+
'\\<k>' : '\U0001d5c4',
|
| 358 |
+
'\\<l>' : '\U0001d5c5',
|
| 359 |
+
'\\<m>' : '\U0001d5c6',
|
| 360 |
+
'\\<n>' : '\U0001d5c7',
|
| 361 |
+
'\\<o>' : '\U0001d5c8',
|
| 362 |
+
'\\<p>' : '\U0001d5c9',
|
| 363 |
+
'\\<q>' : '\U0001d5ca',
|
| 364 |
+
'\\<r>' : '\U0001d5cb',
|
| 365 |
+
'\\<s>' : '\U0001d5cc',
|
| 366 |
+
'\\<t>' : '\U0001d5cd',
|
| 367 |
+
'\\<u>' : '\U0001d5ce',
|
| 368 |
+
'\\<v>' : '\U0001d5cf',
|
| 369 |
+
'\\<w>' : '\U0001d5d0',
|
| 370 |
+
'\\<x>' : '\U0001d5d1',
|
| 371 |
+
'\\<y>' : '\U0001d5d2',
|
| 372 |
+
'\\<z>' : '\U0001d5d3',
|
| 373 |
+
'\\<AA>' : '\U0001d504',
|
| 374 |
+
'\\<BB>' : '\U0001d505',
|
| 375 |
+
'\\<CC>' : '\U0000212d',
|
| 376 |
+
'\\<DD>' : '\U0001d507',
|
| 377 |
+
'\\<EE>' : '\U0001d508',
|
| 378 |
+
'\\<FF>' : '\U0001d509',
|
| 379 |
+
'\\<GG>' : '\U0001d50a',
|
| 380 |
+
'\\<HH>' : '\U0000210c',
|
| 381 |
+
'\\<II>' : '\U00002111',
|
| 382 |
+
'\\<JJ>' : '\U0001d50d',
|
| 383 |
+
'\\<KK>' : '\U0001d50e',
|
| 384 |
+
'\\<LL>' : '\U0001d50f',
|
| 385 |
+
'\\<MM>' : '\U0001d510',
|
| 386 |
+
'\\<NN>' : '\U0001d511',
|
| 387 |
+
'\\<OO>' : '\U0001d512',
|
| 388 |
+
'\\<PP>' : '\U0001d513',
|
| 389 |
+
'\\<QQ>' : '\U0001d514',
|
| 390 |
+
'\\<RR>' : '\U0000211c',
|
| 391 |
+
'\\<SS>' : '\U0001d516',
|
| 392 |
+
'\\<TT>' : '\U0001d517',
|
| 393 |
+
'\\<UU>' : '\U0001d518',
|
| 394 |
+
'\\<VV>' : '\U0001d519',
|
| 395 |
+
'\\<WW>' : '\U0001d51a',
|
| 396 |
+
'\\<XX>' : '\U0001d51b',
|
| 397 |
+
'\\<YY>' : '\U0001d51c',
|
| 398 |
+
'\\<ZZ>' : '\U00002128',
|
| 399 |
+
'\\<aa>' : '\U0001d51e',
|
| 400 |
+
'\\<bb>' : '\U0001d51f',
|
| 401 |
+
'\\<cc>' : '\U0001d520',
|
| 402 |
+
'\\<dd>' : '\U0001d521',
|
| 403 |
+
'\\<ee>' : '\U0001d522',
|
| 404 |
+
'\\<ff>' : '\U0001d523',
|
| 405 |
+
'\\<gg>' : '\U0001d524',
|
| 406 |
+
'\\<hh>' : '\U0001d525',
|
| 407 |
+
'\\<ii>' : '\U0001d526',
|
| 408 |
+
'\\<jj>' : '\U0001d527',
|
| 409 |
+
'\\<kk>' : '\U0001d528',
|
| 410 |
+
'\\<ll>' : '\U0001d529',
|
| 411 |
+
'\\<mm>' : '\U0001d52a',
|
| 412 |
+
'\\<nn>' : '\U0001d52b',
|
| 413 |
+
'\\<oo>' : '\U0001d52c',
|
| 414 |
+
'\\<pp>' : '\U0001d52d',
|
| 415 |
+
'\\<qq>' : '\U0001d52e',
|
| 416 |
+
'\\<rr>' : '\U0001d52f',
|
| 417 |
+
'\\<ss>' : '\U0001d530',
|
| 418 |
+
'\\<tt>' : '\U0001d531',
|
| 419 |
+
'\\<uu>' : '\U0001d532',
|
| 420 |
+
'\\<vv>' : '\U0001d533',
|
| 421 |
+
'\\<ww>' : '\U0001d534',
|
| 422 |
+
'\\<xx>' : '\U0001d535',
|
| 423 |
+
'\\<yy>' : '\U0001d536',
|
| 424 |
+
'\\<zz>' : '\U0001d537',
|
| 425 |
+
'\\<alpha>' : '\U000003b1',
|
| 426 |
+
'\\<beta>' : '\U000003b2',
|
| 427 |
+
'\\<gamma>' : '\U000003b3',
|
| 428 |
+
'\\<delta>' : '\U000003b4',
|
| 429 |
+
'\\<epsilon>' : '\U000003b5',
|
| 430 |
+
'\\<zeta>' : '\U000003b6',
|
| 431 |
+
'\\<eta>' : '\U000003b7',
|
| 432 |
+
'\\<theta>' : '\U000003b8',
|
| 433 |
+
'\\<iota>' : '\U000003b9',
|
| 434 |
+
'\\<kappa>' : '\U000003ba',
|
| 435 |
+
'\\<lambda>' : '\U000003bb',
|
| 436 |
+
'\\<mu>' : '\U000003bc',
|
| 437 |
+
'\\<nu>' : '\U000003bd',
|
| 438 |
+
'\\<xi>' : '\U000003be',
|
| 439 |
+
'\\<pi>' : '\U000003c0',
|
| 440 |
+
'\\<rho>' : '\U000003c1',
|
| 441 |
+
'\\<sigma>' : '\U000003c3',
|
| 442 |
+
'\\<tau>' : '\U000003c4',
|
| 443 |
+
'\\<upsilon>' : '\U000003c5',
|
| 444 |
+
'\\<phi>' : '\U000003c6',
|
| 445 |
+
'\\<chi>' : '\U000003c7',
|
| 446 |
+
'\\<psi>' : '\U000003c8',
|
| 447 |
+
'\\<omega>' : '\U000003c9',
|
| 448 |
+
'\\<Gamma>' : '\U00000393',
|
| 449 |
+
'\\<Delta>' : '\U00000394',
|
| 450 |
+
'\\<Theta>' : '\U00000398',
|
| 451 |
+
'\\<Lambda>' : '\U0000039b',
|
| 452 |
+
'\\<Xi>' : '\U0000039e',
|
| 453 |
+
'\\<Pi>' : '\U000003a0',
|
| 454 |
+
'\\<Sigma>' : '\U000003a3',
|
| 455 |
+
'\\<Upsilon>' : '\U000003a5',
|
| 456 |
+
'\\<Phi>' : '\U000003a6',
|
| 457 |
+
'\\<Psi>' : '\U000003a8',
|
| 458 |
+
'\\<Omega>' : '\U000003a9',
|
| 459 |
+
'\\<bool>' : '\U0001d539',
|
| 460 |
+
'\\<complex>' : '\U00002102',
|
| 461 |
+
'\\<nat>' : '\U00002115',
|
| 462 |
+
'\\<rat>' : '\U0000211a',
|
| 463 |
+
'\\<real>' : '\U0000211d',
|
| 464 |
+
'\\<int>' : '\U00002124',
|
| 465 |
+
'\\<leftarrow>' : '\U00002190',
|
| 466 |
+
'\\<longleftarrow>' : '\U000027f5',
|
| 467 |
+
'\\<rightarrow>' : '\U00002192',
|
| 468 |
+
'\\<longrightarrow>' : '\U000027f6',
|
| 469 |
+
'\\<Leftarrow>' : '\U000021d0',
|
| 470 |
+
'\\<Longleftarrow>' : '\U000027f8',
|
| 471 |
+
'\\<Rightarrow>' : '\U000021d2',
|
| 472 |
+
'\\<Longrightarrow>' : '\U000027f9',
|
| 473 |
+
'\\<leftrightarrow>' : '\U00002194',
|
| 474 |
+
'\\<longleftrightarrow>' : '\U000027f7',
|
| 475 |
+
'\\<Leftrightarrow>' : '\U000021d4',
|
| 476 |
+
'\\<Longleftrightarrow>' : '\U000027fa',
|
| 477 |
+
'\\<mapsto>' : '\U000021a6',
|
| 478 |
+
'\\<longmapsto>' : '\U000027fc',
|
| 479 |
+
'\\<midarrow>' : '\U00002500',
|
| 480 |
+
'\\<Midarrow>' : '\U00002550',
|
| 481 |
+
'\\<hookleftarrow>' : '\U000021a9',
|
| 482 |
+
'\\<hookrightarrow>' : '\U000021aa',
|
| 483 |
+
'\\<leftharpoondown>' : '\U000021bd',
|
| 484 |
+
'\\<rightharpoondown>' : '\U000021c1',
|
| 485 |
+
'\\<leftharpoonup>' : '\U000021bc',
|
| 486 |
+
'\\<rightharpoonup>' : '\U000021c0',
|
| 487 |
+
'\\<rightleftharpoons>' : '\U000021cc',
|
| 488 |
+
'\\<leadsto>' : '\U0000219d',
|
| 489 |
+
'\\<downharpoonleft>' : '\U000021c3',
|
| 490 |
+
'\\<downharpoonright>' : '\U000021c2',
|
| 491 |
+
'\\<upharpoonleft>' : '\U000021bf',
|
| 492 |
+
'\\<upharpoonright>' : '\U000021be',
|
| 493 |
+
'\\<restriction>' : '\U000021be',
|
| 494 |
+
'\\<Colon>' : '\U00002237',
|
| 495 |
+
'\\<up>' : '\U00002191',
|
| 496 |
+
'\\<Up>' : '\U000021d1',
|
| 497 |
+
'\\<down>' : '\U00002193',
|
| 498 |
+
'\\<Down>' : '\U000021d3',
|
| 499 |
+
'\\<updown>' : '\U00002195',
|
| 500 |
+
'\\<Updown>' : '\U000021d5',
|
| 501 |
+
'\\<langle>' : '\U000027e8',
|
| 502 |
+
'\\<rangle>' : '\U000027e9',
|
| 503 |
+
'\\<lceil>' : '\U00002308',
|
| 504 |
+
'\\<rceil>' : '\U00002309',
|
| 505 |
+
'\\<lfloor>' : '\U0000230a',
|
| 506 |
+
'\\<rfloor>' : '\U0000230b',
|
| 507 |
+
'\\<lparr>' : '\U00002987',
|
| 508 |
+
'\\<rparr>' : '\U00002988',
|
| 509 |
+
'\\<lbrakk>' : '\U000027e6',
|
| 510 |
+
'\\<rbrakk>' : '\U000027e7',
|
| 511 |
+
'\\<lbrace>' : '\U00002983',
|
| 512 |
+
'\\<rbrace>' : '\U00002984',
|
| 513 |
+
'\\<guillemotleft>' : '\U000000ab',
|
| 514 |
+
'\\<guillemotright>' : '\U000000bb',
|
| 515 |
+
'\\<bottom>' : '\U000022a5',
|
| 516 |
+
'\\<top>' : '\U000022a4',
|
| 517 |
+
'\\<and>' : '\U00002227',
|
| 518 |
+
'\\<And>' : '\U000022c0',
|
| 519 |
+
'\\<or>' : '\U00002228',
|
| 520 |
+
'\\<Or>' : '\U000022c1',
|
| 521 |
+
'\\<forall>' : '\U00002200',
|
| 522 |
+
'\\<exists>' : '\U00002203',
|
| 523 |
+
'\\<nexists>' : '\U00002204',
|
| 524 |
+
'\\<not>' : '\U000000ac',
|
| 525 |
+
'\\<box>' : '\U000025a1',
|
| 526 |
+
'\\<diamond>' : '\U000025c7',
|
| 527 |
+
'\\<turnstile>' : '\U000022a2',
|
| 528 |
+
'\\<Turnstile>' : '\U000022a8',
|
| 529 |
+
'\\<tturnstile>' : '\U000022a9',
|
| 530 |
+
'\\<TTurnstile>' : '\U000022ab',
|
| 531 |
+
'\\<stileturn>' : '\U000022a3',
|
| 532 |
+
'\\<surd>' : '\U0000221a',
|
| 533 |
+
'\\<le>' : '\U00002264',
|
| 534 |
+
'\\<ge>' : '\U00002265',
|
| 535 |
+
'\\<lless>' : '\U0000226a',
|
| 536 |
+
'\\<ggreater>' : '\U0000226b',
|
| 537 |
+
'\\<lesssim>' : '\U00002272',
|
| 538 |
+
'\\<greatersim>' : '\U00002273',
|
| 539 |
+
'\\<lessapprox>' : '\U00002a85',
|
| 540 |
+
'\\<greaterapprox>' : '\U00002a86',
|
| 541 |
+
'\\<in>' : '\U00002208',
|
| 542 |
+
'\\<notin>' : '\U00002209',
|
| 543 |
+
'\\<subset>' : '\U00002282',
|
| 544 |
+
'\\<supset>' : '\U00002283',
|
| 545 |
+
'\\<subseteq>' : '\U00002286',
|
| 546 |
+
'\\<supseteq>' : '\U00002287',
|
| 547 |
+
'\\<sqsubset>' : '\U0000228f',
|
| 548 |
+
'\\<sqsupset>' : '\U00002290',
|
| 549 |
+
'\\<sqsubseteq>' : '\U00002291',
|
| 550 |
+
'\\<sqsupseteq>' : '\U00002292',
|
| 551 |
+
'\\<inter>' : '\U00002229',
|
| 552 |
+
'\\<Inter>' : '\U000022c2',
|
| 553 |
+
'\\<union>' : '\U0000222a',
|
| 554 |
+
'\\<Union>' : '\U000022c3',
|
| 555 |
+
'\\<squnion>' : '\U00002294',
|
| 556 |
+
'\\<Squnion>' : '\U00002a06',
|
| 557 |
+
'\\<sqinter>' : '\U00002293',
|
| 558 |
+
'\\<Sqinter>' : '\U00002a05',
|
| 559 |
+
'\\<setminus>' : '\U00002216',
|
| 560 |
+
'\\<propto>' : '\U0000221d',
|
| 561 |
+
'\\<uplus>' : '\U0000228e',
|
| 562 |
+
'\\<Uplus>' : '\U00002a04',
|
| 563 |
+
'\\<noteq>' : '\U00002260',
|
| 564 |
+
'\\<sim>' : '\U0000223c',
|
| 565 |
+
'\\<doteq>' : '\U00002250',
|
| 566 |
+
'\\<simeq>' : '\U00002243',
|
| 567 |
+
'\\<approx>' : '\U00002248',
|
| 568 |
+
'\\<asymp>' : '\U0000224d',
|
| 569 |
+
'\\<cong>' : '\U00002245',
|
| 570 |
+
'\\<smile>' : '\U00002323',
|
| 571 |
+
'\\<equiv>' : '\U00002261',
|
| 572 |
+
'\\<frown>' : '\U00002322',
|
| 573 |
+
'\\<Join>' : '\U000022c8',
|
| 574 |
+
'\\<bowtie>' : '\U00002a1d',
|
| 575 |
+
'\\<prec>' : '\U0000227a',
|
| 576 |
+
'\\<succ>' : '\U0000227b',
|
| 577 |
+
'\\<preceq>' : '\U0000227c',
|
| 578 |
+
'\\<succeq>' : '\U0000227d',
|
| 579 |
+
'\\<parallel>' : '\U00002225',
|
| 580 |
+
'\\<bar>' : '\U000000a6',
|
| 581 |
+
'\\<plusminus>' : '\U000000b1',
|
| 582 |
+
'\\<minusplus>' : '\U00002213',
|
| 583 |
+
'\\<times>' : '\U000000d7',
|
| 584 |
+
'\\<div>' : '\U000000f7',
|
| 585 |
+
'\\<cdot>' : '\U000022c5',
|
| 586 |
+
'\\<star>' : '\U000022c6',
|
| 587 |
+
'\\<bullet>' : '\U00002219',
|
| 588 |
+
'\\<circ>' : '\U00002218',
|
| 589 |
+
'\\<dagger>' : '\U00002020',
|
| 590 |
+
'\\<ddagger>' : '\U00002021',
|
| 591 |
+
'\\<lhd>' : '\U000022b2',
|
| 592 |
+
'\\<rhd>' : '\U000022b3',
|
| 593 |
+
'\\<unlhd>' : '\U000022b4',
|
| 594 |
+
'\\<unrhd>' : '\U000022b5',
|
| 595 |
+
'\\<triangleleft>' : '\U000025c3',
|
| 596 |
+
'\\<triangleright>' : '\U000025b9',
|
| 597 |
+
'\\<triangle>' : '\U000025b3',
|
| 598 |
+
'\\<triangleq>' : '\U0000225c',
|
| 599 |
+
'\\<oplus>' : '\U00002295',
|
| 600 |
+
'\\<Oplus>' : '\U00002a01',
|
| 601 |
+
'\\<otimes>' : '\U00002297',
|
| 602 |
+
'\\<Otimes>' : '\U00002a02',
|
| 603 |
+
'\\<odot>' : '\U00002299',
|
| 604 |
+
'\\<Odot>' : '\U00002a00',
|
| 605 |
+
'\\<ominus>' : '\U00002296',
|
| 606 |
+
'\\<oslash>' : '\U00002298',
|
| 607 |
+
'\\<dots>' : '\U00002026',
|
| 608 |
+
'\\<cdots>' : '\U000022ef',
|
| 609 |
+
'\\<Sum>' : '\U00002211',
|
| 610 |
+
'\\<Prod>' : '\U0000220f',
|
| 611 |
+
'\\<Coprod>' : '\U00002210',
|
| 612 |
+
'\\<infinity>' : '\U0000221e',
|
| 613 |
+
'\\<integral>' : '\U0000222b',
|
| 614 |
+
'\\<ointegral>' : '\U0000222e',
|
| 615 |
+
'\\<clubsuit>' : '\U00002663',
|
| 616 |
+
'\\<diamondsuit>' : '\U00002662',
|
| 617 |
+
'\\<heartsuit>' : '\U00002661',
|
| 618 |
+
'\\<spadesuit>' : '\U00002660',
|
| 619 |
+
'\\<aleph>' : '\U00002135',
|
| 620 |
+
'\\<emptyset>' : '\U00002205',
|
| 621 |
+
'\\<nabla>' : '\U00002207',
|
| 622 |
+
'\\<partial>' : '\U00002202',
|
| 623 |
+
'\\<flat>' : '\U0000266d',
|
| 624 |
+
'\\<natural>' : '\U0000266e',
|
| 625 |
+
'\\<sharp>' : '\U0000266f',
|
| 626 |
+
'\\<angle>' : '\U00002220',
|
| 627 |
+
'\\<copyright>' : '\U000000a9',
|
| 628 |
+
'\\<registered>' : '\U000000ae',
|
| 629 |
+
'\\<hyphen>' : '\U000000ad',
|
| 630 |
+
'\\<inverse>' : '\U000000af',
|
| 631 |
+
'\\<onequarter>' : '\U000000bc',
|
| 632 |
+
'\\<onehalf>' : '\U000000bd',
|
| 633 |
+
'\\<threequarters>' : '\U000000be',
|
| 634 |
+
'\\<ordfeminine>' : '\U000000aa',
|
| 635 |
+
'\\<ordmasculine>' : '\U000000ba',
|
| 636 |
+
'\\<section>' : '\U000000a7',
|
| 637 |
+
'\\<paragraph>' : '\U000000b6',
|
| 638 |
+
'\\<exclamdown>' : '\U000000a1',
|
| 639 |
+
'\\<questiondown>' : '\U000000bf',
|
| 640 |
+
'\\<euro>' : '\U000020ac',
|
| 641 |
+
'\\<pounds>' : '\U000000a3',
|
| 642 |
+
'\\<yen>' : '\U000000a5',
|
| 643 |
+
'\\<cent>' : '\U000000a2',
|
| 644 |
+
'\\<currency>' : '\U000000a4',
|
| 645 |
+
'\\<degree>' : '\U000000b0',
|
| 646 |
+
'\\<amalg>' : '\U00002a3f',
|
| 647 |
+
'\\<mho>' : '\U00002127',
|
| 648 |
+
'\\<lozenge>' : '\U000025ca',
|
| 649 |
+
'\\<wp>' : '\U00002118',
|
| 650 |
+
'\\<wrong>' : '\U00002240',
|
| 651 |
+
'\\<struct>' : '\U000022c4',
|
| 652 |
+
'\\<acute>' : '\U000000b4',
|
| 653 |
+
'\\<index>' : '\U00000131',
|
| 654 |
+
'\\<dieresis>' : '\U000000a8',
|
| 655 |
+
'\\<cedilla>' : '\U000000b8',
|
| 656 |
+
'\\<hungarumlaut>' : '\U000002dd',
|
| 657 |
+
'\\<some>' : '\U000003f5',
|
| 658 |
+
'\\<newline>' : '\U000023ce',
|
| 659 |
+
'\\<open>' : '\U00002039',
|
| 660 |
+
'\\<close>' : '\U0000203a',
|
| 661 |
+
'\\<here>' : '\U00002302',
|
| 662 |
+
'\\<^sub>' : '\U000021e9',
|
| 663 |
+
'\\<^sup>' : '\U000021e7',
|
| 664 |
+
'\\<^bold>' : '\U00002759',
|
| 665 |
+
'\\<^bsub>' : '\U000021d8',
|
| 666 |
+
'\\<^esub>' : '\U000021d9',
|
| 667 |
+
'\\<^bsup>' : '\U000021d7',
|
| 668 |
+
'\\<^esup>' : '\U000021d6',
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
lang_map = {'isabelle' : isabelle_symbols, 'latex' : latex_symbols}
|
| 672 |
+
|
| 673 |
+
def __init__(self, **options):
|
| 674 |
+
Filter.__init__(self, **options)
|
| 675 |
+
lang = get_choice_opt(options, 'lang',
|
| 676 |
+
['isabelle', 'latex'], 'isabelle')
|
| 677 |
+
self.symbols = self.lang_map[lang]
|
| 678 |
+
|
| 679 |
+
def filter(self, lexer, stream):
|
| 680 |
+
for ttype, value in stream:
|
| 681 |
+
if value in self.symbols:
|
| 682 |
+
yield ttype, self.symbols[value]
|
| 683 |
+
else:
|
| 684 |
+
yield ttype, value
|
| 685 |
+
|
| 686 |
+
|
| 687 |
+
class KeywordCaseFilter(Filter):
|
| 688 |
+
"""Convert keywords to lowercase or uppercase or capitalize them, which
|
| 689 |
+
means first letter uppercase, rest lowercase.
|
| 690 |
+
|
| 691 |
+
This can be useful e.g. if you highlight Pascal code and want to adapt the
|
| 692 |
+
code to your styleguide.
|
| 693 |
+
|
| 694 |
+
Options accepted:
|
| 695 |
+
|
| 696 |
+
`case` : string
|
| 697 |
+
The casing to convert keywords to. Must be one of ``'lower'``,
|
| 698 |
+
``'upper'`` or ``'capitalize'``. The default is ``'lower'``.
|
| 699 |
+
"""
|
| 700 |
+
|
| 701 |
+
def __init__(self, **options):
|
| 702 |
+
Filter.__init__(self, **options)
|
| 703 |
+
case = get_choice_opt(options, 'case',
|
| 704 |
+
['lower', 'upper', 'capitalize'], 'lower')
|
| 705 |
+
self.convert = getattr(str, case)
|
| 706 |
+
|
| 707 |
+
def filter(self, lexer, stream):
|
| 708 |
+
for ttype, value in stream:
|
| 709 |
+
if ttype in Keyword:
|
| 710 |
+
yield ttype, self.convert(value)
|
| 711 |
+
else:
|
| 712 |
+
yield ttype, value
|
| 713 |
+
|
| 714 |
+
|
| 715 |
+
class NameHighlightFilter(Filter):
|
| 716 |
+
"""Highlight a normal Name (and Name.*) token with a different token type.
|
| 717 |
+
|
| 718 |
+
Example::
|
| 719 |
+
|
| 720 |
+
filter = NameHighlightFilter(
|
| 721 |
+
names=['foo', 'bar', 'baz'],
|
| 722 |
+
tokentype=Name.Function,
|
| 723 |
+
)
|
| 724 |
+
|
| 725 |
+
This would highlight the names "foo", "bar" and "baz"
|
| 726 |
+
as functions. `Name.Function` is the default token type.
|
| 727 |
+
|
| 728 |
+
Options accepted:
|
| 729 |
+
|
| 730 |
+
`names` : list of strings
|
| 731 |
+
A list of names that should be given the different token type.
|
| 732 |
+
There is no default.
|
| 733 |
+
`tokentype` : TokenType or string
|
| 734 |
+
A token type or a string containing a token type name that is
|
| 735 |
+
used for highlighting the strings in `names`. The default is
|
| 736 |
+
`Name.Function`.
|
| 737 |
+
"""
|
| 738 |
+
|
| 739 |
+
def __init__(self, **options):
|
| 740 |
+
Filter.__init__(self, **options)
|
| 741 |
+
self.names = set(get_list_opt(options, 'names', []))
|
| 742 |
+
tokentype = options.get('tokentype')
|
| 743 |
+
if tokentype:
|
| 744 |
+
self.tokentype = string_to_tokentype(tokentype)
|
| 745 |
+
else:
|
| 746 |
+
self.tokentype = Name.Function
|
| 747 |
+
|
| 748 |
+
def filter(self, lexer, stream):
|
| 749 |
+
for ttype, value in stream:
|
| 750 |
+
if ttype in Name and value in self.names:
|
| 751 |
+
yield self.tokentype, value
|
| 752 |
+
else:
|
| 753 |
+
yield ttype, value
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
class ErrorToken(Exception):
|
| 757 |
+
pass
|
| 758 |
+
|
| 759 |
+
|
| 760 |
+
class RaiseOnErrorTokenFilter(Filter):
|
| 761 |
+
"""Raise an exception when the lexer generates an error token.
|
| 762 |
+
|
| 763 |
+
Options accepted:
|
| 764 |
+
|
| 765 |
+
`excclass` : Exception class
|
| 766 |
+
The exception class to raise.
|
| 767 |
+
The default is `pygments.filters.ErrorToken`.
|
| 768 |
+
|
| 769 |
+
.. versionadded:: 0.8
|
| 770 |
+
"""
|
| 771 |
+
|
| 772 |
+
def __init__(self, **options):
|
| 773 |
+
Filter.__init__(self, **options)
|
| 774 |
+
self.exception = options.get('excclass', ErrorToken)
|
| 775 |
+
try:
|
| 776 |
+
# issubclass() will raise TypeError if first argument is not a class
|
| 777 |
+
if not issubclass(self.exception, Exception):
|
| 778 |
+
raise TypeError
|
| 779 |
+
except TypeError:
|
| 780 |
+
raise OptionError('excclass option is not an exception class')
|
| 781 |
+
|
| 782 |
+
def filter(self, lexer, stream):
|
| 783 |
+
for ttype, value in stream:
|
| 784 |
+
if ttype is Error:
|
| 785 |
+
raise self.exception(value)
|
| 786 |
+
yield ttype, value
|
| 787 |
+
|
| 788 |
+
|
| 789 |
+
class VisibleWhitespaceFilter(Filter):
|
| 790 |
+
"""Convert tabs, newlines and/or spaces to visible characters.
|
| 791 |
+
|
| 792 |
+
Options accepted:
|
| 793 |
+
|
| 794 |
+
`spaces` : string or bool
|
| 795 |
+
If this is a one-character string, spaces will be replaces by this string.
|
| 796 |
+
If it is another true value, spaces will be replaced by ``·`` (unicode
|
| 797 |
+
MIDDLE DOT). If it is a false value, spaces will not be replaced. The
|
| 798 |
+
default is ``False``.
|
| 799 |
+
`tabs` : string or bool
|
| 800 |
+
The same as for `spaces`, but the default replacement character is ``»``
|
| 801 |
+
(unicode RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK). The default value
|
| 802 |
+
is ``False``. Note: this will not work if the `tabsize` option for the
|
| 803 |
+
lexer is nonzero, as tabs will already have been expanded then.
|
| 804 |
+
`tabsize` : int
|
| 805 |
+
If tabs are to be replaced by this filter (see the `tabs` option), this
|
| 806 |
+
is the total number of characters that a tab should be expanded to.
|
| 807 |
+
The default is ``8``.
|
| 808 |
+
`newlines` : string or bool
|
| 809 |
+
The same as for `spaces`, but the default replacement character is ``¶``
|
| 810 |
+
(unicode PILCROW SIGN). The default value is ``False``.
|
| 811 |
+
`wstokentype` : bool
|
| 812 |
+
If true, give whitespace the special `Whitespace` token type. This allows
|
| 813 |
+
styling the visible whitespace differently (e.g. greyed out), but it can
|
| 814 |
+
disrupt background colors. The default is ``True``.
|
| 815 |
+
|
| 816 |
+
.. versionadded:: 0.8
|
| 817 |
+
"""
|
| 818 |
+
|
| 819 |
+
def __init__(self, **options):
|
| 820 |
+
Filter.__init__(self, **options)
|
| 821 |
+
for name, default in [('spaces', '·'),
|
| 822 |
+
('tabs', '»'),
|
| 823 |
+
('newlines', '¶')]:
|
| 824 |
+
opt = options.get(name, False)
|
| 825 |
+
if isinstance(opt, str) and len(opt) == 1:
|
| 826 |
+
setattr(self, name, opt)
|
| 827 |
+
else:
|
| 828 |
+
setattr(self, name, (opt and default or ''))
|
| 829 |
+
tabsize = get_int_opt(options, 'tabsize', 8)
|
| 830 |
+
if self.tabs:
|
| 831 |
+
self.tabs += ' ' * (tabsize - 1)
|
| 832 |
+
if self.newlines:
|
| 833 |
+
self.newlines += '\n'
|
| 834 |
+
self.wstt = get_bool_opt(options, 'wstokentype', True)
|
| 835 |
+
|
| 836 |
+
def filter(self, lexer, stream):
|
| 837 |
+
if self.wstt:
|
| 838 |
+
spaces = self.spaces or ' '
|
| 839 |
+
tabs = self.tabs or '\t'
|
| 840 |
+
newlines = self.newlines or '\n'
|
| 841 |
+
regex = re.compile(r'\s')
|
| 842 |
+
|
| 843 |
+
def replacefunc(wschar):
|
| 844 |
+
if wschar == ' ':
|
| 845 |
+
return spaces
|
| 846 |
+
elif wschar == '\t':
|
| 847 |
+
return tabs
|
| 848 |
+
elif wschar == '\n':
|
| 849 |
+
return newlines
|
| 850 |
+
return wschar
|
| 851 |
+
|
| 852 |
+
for ttype, value in stream:
|
| 853 |
+
yield from _replace_special(ttype, value, regex, Whitespace,
|
| 854 |
+
replacefunc)
|
| 855 |
+
else:
|
| 856 |
+
spaces, tabs, newlines = self.spaces, self.tabs, self.newlines
|
| 857 |
+
# simpler processing
|
| 858 |
+
for ttype, value in stream:
|
| 859 |
+
if spaces:
|
| 860 |
+
value = value.replace(' ', spaces)
|
| 861 |
+
if tabs:
|
| 862 |
+
value = value.replace('\t', tabs)
|
| 863 |
+
if newlines:
|
| 864 |
+
value = value.replace('\n', newlines)
|
| 865 |
+
yield ttype, value
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
class GobbleFilter(Filter):
|
| 869 |
+
"""Gobbles source code lines (eats initial characters).
|
| 870 |
+
|
| 871 |
+
This filter drops the first ``n`` characters off every line of code. This
|
| 872 |
+
may be useful when the source code fed to the lexer is indented by a fixed
|
| 873 |
+
amount of space that isn't desired in the output.
|
| 874 |
+
|
| 875 |
+
Options accepted:
|
| 876 |
+
|
| 877 |
+
`n` : int
|
| 878 |
+
The number of characters to gobble.
|
| 879 |
+
|
| 880 |
+
.. versionadded:: 1.2
|
| 881 |
+
"""
|
| 882 |
+
def __init__(self, **options):
|
| 883 |
+
Filter.__init__(self, **options)
|
| 884 |
+
self.n = get_int_opt(options, 'n', 0)
|
| 885 |
+
|
| 886 |
+
def gobble(self, value, left):
|
| 887 |
+
if left < len(value):
|
| 888 |
+
return value[left:], 0
|
| 889 |
+
else:
|
| 890 |
+
return '', left - len(value)
|
| 891 |
+
|
| 892 |
+
def filter(self, lexer, stream):
|
| 893 |
+
n = self.n
|
| 894 |
+
left = n # How many characters left to gobble.
|
| 895 |
+
for ttype, value in stream:
|
| 896 |
+
# Remove ``left`` tokens from first line, ``n`` from all others.
|
| 897 |
+
parts = value.split('\n')
|
| 898 |
+
(parts[0], left) = self.gobble(parts[0], left)
|
| 899 |
+
for i in range(1, len(parts)):
|
| 900 |
+
(parts[i], left) = self.gobble(parts[i], n)
|
| 901 |
+
value = '\n'.join(parts)
|
| 902 |
+
|
| 903 |
+
if value != '':
|
| 904 |
+
yield ttype, value
|
| 905 |
+
|
| 906 |
+
|
| 907 |
+
class TokenMergeFilter(Filter):
|
| 908 |
+
"""Merges consecutive tokens with the same token type in the output
|
| 909 |
+
stream of a lexer.
|
| 910 |
+
|
| 911 |
+
.. versionadded:: 1.2
|
| 912 |
+
"""
|
| 913 |
+
def __init__(self, **options):
|
| 914 |
+
Filter.__init__(self, **options)
|
| 915 |
+
|
| 916 |
+
def filter(self, lexer, stream):
|
| 917 |
+
current_type = None
|
| 918 |
+
current_value = None
|
| 919 |
+
for ttype, value in stream:
|
| 920 |
+
if ttype is current_type:
|
| 921 |
+
current_value += value
|
| 922 |
+
else:
|
| 923 |
+
if current_type is not None:
|
| 924 |
+
yield current_type, current_value
|
| 925 |
+
current_type = ttype
|
| 926 |
+
current_value = value
|
| 927 |
+
if current_type is not None:
|
| 928 |
+
yield current_type, current_value
|
| 929 |
+
|
| 930 |
+
|
| 931 |
+
FILTERS = {
|
| 932 |
+
'codetagify': CodeTagFilter,
|
| 933 |
+
'keywordcase': KeywordCaseFilter,
|
| 934 |
+
'highlight': NameHighlightFilter,
|
| 935 |
+
'raiseonerror': RaiseOnErrorTokenFilter,
|
| 936 |
+
'whitespace': VisibleWhitespaceFilter,
|
| 937 |
+
'gobble': GobbleFilter,
|
| 938 |
+
'tokenmerge':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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers
|
| 3 |
+
~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Pygments lexers.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
import sys
|
| 13 |
+
import types
|
| 14 |
+
import fnmatch
|
| 15 |
+
from os.path import basename
|
| 16 |
+
|
| 17 |
+
from pip._vendor.pygments.lexers._mapping import LEXERS
|
| 18 |
+
from pip._vendor.pygments.modeline import get_filetype_from_buffer
|
| 19 |
+
from pip._vendor.pygments.plugin import find_plugin_lexers
|
| 20 |
+
from pip._vendor.pygments.util import ClassNotFound, guess_decode
|
| 21 |
+
|
| 22 |
+
COMPAT = {
|
| 23 |
+
'Python3Lexer': 'PythonLexer',
|
| 24 |
+
'Python3TracebackLexer': 'PythonTracebackLexer',
|
| 25 |
+
'LeanLexer': 'Lean3Lexer',
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
__all__ = ['get_lexer_by_name', 'get_lexer_for_filename', 'find_lexer_class',
|
| 29 |
+
'guess_lexer', 'load_lexer_from_file'] + list(LEXERS) + list(COMPAT)
|
| 30 |
+
|
| 31 |
+
_lexer_cache = {}
|
| 32 |
+
_pattern_cache = {}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def _fn_matches(fn, glob):
|
| 36 |
+
"""Return whether the supplied file name fn matches pattern filename."""
|
| 37 |
+
if glob not in _pattern_cache:
|
| 38 |
+
pattern = _pattern_cache[glob] = re.compile(fnmatch.translate(glob))
|
| 39 |
+
return pattern.match(fn)
|
| 40 |
+
return _pattern_cache[glob].match(fn)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def _load_lexers(module_name):
|
| 44 |
+
"""Load a lexer (and all others in the module too)."""
|
| 45 |
+
mod = __import__(module_name, None, None, ['__all__'])
|
| 46 |
+
for lexer_name in mod.__all__:
|
| 47 |
+
cls = getattr(mod, lexer_name)
|
| 48 |
+
_lexer_cache[cls.name] = cls
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def get_all_lexers(plugins=True):
|
| 52 |
+
"""Return a generator of tuples in the form ``(name, aliases,
|
| 53 |
+
filenames, mimetypes)`` of all know lexers.
|
| 54 |
+
|
| 55 |
+
If *plugins* is true (the default), plugin lexers supplied by entrypoints
|
| 56 |
+
are also returned. Otherwise, only builtin ones are considered.
|
| 57 |
+
"""
|
| 58 |
+
for item in LEXERS.values():
|
| 59 |
+
yield item[1:]
|
| 60 |
+
if plugins:
|
| 61 |
+
for lexer in find_plugin_lexers():
|
| 62 |
+
yield lexer.name, lexer.aliases, lexer.filenames, lexer.mimetypes
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def find_lexer_class(name):
|
| 66 |
+
"""
|
| 67 |
+
Return the `Lexer` subclass that with the *name* attribute as given by
|
| 68 |
+
the *name* argument.
|
| 69 |
+
"""
|
| 70 |
+
if name in _lexer_cache:
|
| 71 |
+
return _lexer_cache[name]
|
| 72 |
+
# lookup builtin lexers
|
| 73 |
+
for module_name, lname, aliases, _, _ in LEXERS.values():
|
| 74 |
+
if name == lname:
|
| 75 |
+
_load_lexers(module_name)
|
| 76 |
+
return _lexer_cache[name]
|
| 77 |
+
# continue with lexers from setuptools entrypoints
|
| 78 |
+
for cls in find_plugin_lexers():
|
| 79 |
+
if cls.name == name:
|
| 80 |
+
return cls
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def find_lexer_class_by_name(_alias):
|
| 84 |
+
"""
|
| 85 |
+
Return the `Lexer` subclass that has `alias` in its aliases list, without
|
| 86 |
+
instantiating it.
|
| 87 |
+
|
| 88 |
+
Like `get_lexer_by_name`, but does not instantiate the class.
|
| 89 |
+
|
| 90 |
+
Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is
|
| 91 |
+
found.
|
| 92 |
+
|
| 93 |
+
.. versionadded:: 2.2
|
| 94 |
+
"""
|
| 95 |
+
if not _alias:
|
| 96 |
+
raise ClassNotFound(f'no lexer for alias {_alias!r} found')
|
| 97 |
+
# lookup builtin lexers
|
| 98 |
+
for module_name, name, aliases, _, _ in LEXERS.values():
|
| 99 |
+
if _alias.lower() in aliases:
|
| 100 |
+
if name not in _lexer_cache:
|
| 101 |
+
_load_lexers(module_name)
|
| 102 |
+
return _lexer_cache[name]
|
| 103 |
+
# continue with lexers from setuptools entrypoints
|
| 104 |
+
for cls in find_plugin_lexers():
|
| 105 |
+
if _alias.lower() in cls.aliases:
|
| 106 |
+
return cls
|
| 107 |
+
raise ClassNotFound(f'no lexer for alias {_alias!r} found')
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
def get_lexer_by_name(_alias, **options):
|
| 111 |
+
"""
|
| 112 |
+
Return an instance of a `Lexer` subclass that has `alias` in its
|
| 113 |
+
aliases list. The lexer is given the `options` at its
|
| 114 |
+
instantiation.
|
| 115 |
+
|
| 116 |
+
Will raise :exc:`pygments.util.ClassNotFound` if no lexer with that alias is
|
| 117 |
+
found.
|
| 118 |
+
"""
|
| 119 |
+
if not _alias:
|
| 120 |
+
raise ClassNotFound(f'no lexer for alias {_alias!r} found')
|
| 121 |
+
|
| 122 |
+
# lookup builtin lexers
|
| 123 |
+
for module_name, name, aliases, _, _ in LEXERS.values():
|
| 124 |
+
if _alias.lower() in aliases:
|
| 125 |
+
if name not in _lexer_cache:
|
| 126 |
+
_load_lexers(module_name)
|
| 127 |
+
return _lexer_cache[name](**options)
|
| 128 |
+
# continue with lexers from setuptools entrypoints
|
| 129 |
+
for cls in find_plugin_lexers():
|
| 130 |
+
if _alias.lower() in cls.aliases:
|
| 131 |
+
return cls(**options)
|
| 132 |
+
raise ClassNotFound(f'no lexer for alias {_alias!r} found')
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def load_lexer_from_file(filename, lexername="CustomLexer", **options):
|
| 136 |
+
"""Load a lexer from a file.
|
| 137 |
+
|
| 138 |
+
This method expects a file located relative to the current working
|
| 139 |
+
directory, which contains a Lexer class. By default, it expects the
|
| 140 |
+
Lexer to be name CustomLexer; you can specify your own class name
|
| 141 |
+
as the second argument to this function.
|
| 142 |
+
|
| 143 |
+
Users should be very careful with the input, because this method
|
| 144 |
+
is equivalent to running eval on the input file.
|
| 145 |
+
|
| 146 |
+
Raises ClassNotFound if there are any problems importing the Lexer.
|
| 147 |
+
|
| 148 |
+
.. versionadded:: 2.2
|
| 149 |
+
"""
|
| 150 |
+
try:
|
| 151 |
+
# This empty dict will contain the namespace for the exec'd file
|
| 152 |
+
custom_namespace = {}
|
| 153 |
+
with open(filename, 'rb') as f:
|
| 154 |
+
exec(f.read(), custom_namespace)
|
| 155 |
+
# Retrieve the class `lexername` from that namespace
|
| 156 |
+
if lexername not in custom_namespace:
|
| 157 |
+
raise ClassNotFound(f'no valid {lexername} class found in {filename}')
|
| 158 |
+
lexer_class = custom_namespace[lexername]
|
| 159 |
+
# And finally instantiate it with the options
|
| 160 |
+
return lexer_class(**options)
|
| 161 |
+
except OSError as err:
|
| 162 |
+
raise ClassNotFound(f'cannot read {filename}: {err}')
|
| 163 |
+
except ClassNotFound:
|
| 164 |
+
raise
|
| 165 |
+
except Exception as err:
|
| 166 |
+
raise ClassNotFound(f'error when loading custom lexer: {err}')
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
def find_lexer_class_for_filename(_fn, code=None):
|
| 170 |
+
"""Get a lexer for a filename.
|
| 171 |
+
|
| 172 |
+
If multiple lexers match the filename pattern, use ``analyse_text()`` to
|
| 173 |
+
figure out which one is more appropriate.
|
| 174 |
+
|
| 175 |
+
Returns None if not found.
|
| 176 |
+
"""
|
| 177 |
+
matches = []
|
| 178 |
+
fn = basename(_fn)
|
| 179 |
+
for modname, name, _, filenames, _ in LEXERS.values():
|
| 180 |
+
for filename in filenames:
|
| 181 |
+
if _fn_matches(fn, filename):
|
| 182 |
+
if name not in _lexer_cache:
|
| 183 |
+
_load_lexers(modname)
|
| 184 |
+
matches.append((_lexer_cache[name], filename))
|
| 185 |
+
for cls in find_plugin_lexers():
|
| 186 |
+
for filename in cls.filenames:
|
| 187 |
+
if _fn_matches(fn, filename):
|
| 188 |
+
matches.append((cls, filename))
|
| 189 |
+
|
| 190 |
+
if isinstance(code, bytes):
|
| 191 |
+
# decode it, since all analyse_text functions expect unicode
|
| 192 |
+
code = guess_decode(code)
|
| 193 |
+
|
| 194 |
+
def get_rating(info):
|
| 195 |
+
cls, filename = info
|
| 196 |
+
# explicit patterns get a bonus
|
| 197 |
+
bonus = '*' not in filename and 0.5 or 0
|
| 198 |
+
# The class _always_ defines analyse_text because it's included in
|
| 199 |
+
# the Lexer class. The default implementation returns None which
|
| 200 |
+
# gets turned into 0.0. Run scripts/detect_missing_analyse_text.py
|
| 201 |
+
# to find lexers which need it overridden.
|
| 202 |
+
if code:
|
| 203 |
+
return cls.analyse_text(code) + bonus, cls.__name__
|
| 204 |
+
return cls.priority + bonus, cls.__name__
|
| 205 |
+
|
| 206 |
+
if matches:
|
| 207 |
+
matches.sort(key=get_rating)
|
| 208 |
+
# print "Possible lexers, after sort:", matches
|
| 209 |
+
return matches[-1][0]
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
def get_lexer_for_filename(_fn, code=None, **options):
|
| 213 |
+
"""Get a lexer for a filename.
|
| 214 |
+
|
| 215 |
+
Return a `Lexer` subclass instance that has a filename pattern
|
| 216 |
+
matching `fn`. The lexer is given the `options` at its
|
| 217 |
+
instantiation.
|
| 218 |
+
|
| 219 |
+
Raise :exc:`pygments.util.ClassNotFound` if no lexer for that filename
|
| 220 |
+
is found.
|
| 221 |
+
|
| 222 |
+
If multiple lexers match the filename pattern, use their ``analyse_text()``
|
| 223 |
+
methods to figure out which one is more appropriate.
|
| 224 |
+
"""
|
| 225 |
+
res = find_lexer_class_for_filename(_fn, code)
|
| 226 |
+
if not res:
|
| 227 |
+
raise ClassNotFound(f'no lexer for filename {_fn!r} found')
|
| 228 |
+
return res(**options)
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
def get_lexer_for_mimetype(_mime, **options):
|
| 232 |
+
"""
|
| 233 |
+
Return a `Lexer` subclass instance that has `mime` in its mimetype
|
| 234 |
+
list. The lexer is given the `options` at its instantiation.
|
| 235 |
+
|
| 236 |
+
Will raise :exc:`pygments.util.ClassNotFound` if not lexer for that mimetype
|
| 237 |
+
is found.
|
| 238 |
+
"""
|
| 239 |
+
for modname, name, _, _, mimetypes in LEXERS.values():
|
| 240 |
+
if _mime in mimetypes:
|
| 241 |
+
if name not in _lexer_cache:
|
| 242 |
+
_load_lexers(modname)
|
| 243 |
+
return _lexer_cache[name](**options)
|
| 244 |
+
for cls in find_plugin_lexers():
|
| 245 |
+
if _mime in cls.mimetypes:
|
| 246 |
+
return cls(**options)
|
| 247 |
+
raise ClassNotFound(f'no lexer for mimetype {_mime!r} found')
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
def _iter_lexerclasses(plugins=True):
|
| 251 |
+
"""Return an iterator over all lexer classes."""
|
| 252 |
+
for key in sorted(LEXERS):
|
| 253 |
+
module_name, name = LEXERS[key][:2]
|
| 254 |
+
if name not in _lexer_cache:
|
| 255 |
+
_load_lexers(module_name)
|
| 256 |
+
yield _lexer_cache[name]
|
| 257 |
+
if plugins:
|
| 258 |
+
yield from find_plugin_lexers()
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
def guess_lexer_for_filename(_fn, _text, **options):
|
| 262 |
+
"""
|
| 263 |
+
As :func:`guess_lexer()`, but only lexers which have a pattern in `filenames`
|
| 264 |
+
or `alias_filenames` that matches `filename` are taken into consideration.
|
| 265 |
+
|
| 266 |
+
:exc:`pygments.util.ClassNotFound` is raised if no lexer thinks it can
|
| 267 |
+
handle the content.
|
| 268 |
+
"""
|
| 269 |
+
fn = basename(_fn)
|
| 270 |
+
primary = {}
|
| 271 |
+
matching_lexers = set()
|
| 272 |
+
for lexer in _iter_lexerclasses():
|
| 273 |
+
for filename in lexer.filenames:
|
| 274 |
+
if _fn_matches(fn, filename):
|
| 275 |
+
matching_lexers.add(lexer)
|
| 276 |
+
primary[lexer] = True
|
| 277 |
+
for filename in lexer.alias_filenames:
|
| 278 |
+
if _fn_matches(fn, filename):
|
| 279 |
+
matching_lexers.add(lexer)
|
| 280 |
+
primary[lexer] = False
|
| 281 |
+
if not matching_lexers:
|
| 282 |
+
raise ClassNotFound(f'no lexer for filename {fn!r} found')
|
| 283 |
+
if len(matching_lexers) == 1:
|
| 284 |
+
return matching_lexers.pop()(**options)
|
| 285 |
+
result = []
|
| 286 |
+
for lexer in matching_lexers:
|
| 287 |
+
rv = lexer.analyse_text(_text)
|
| 288 |
+
if rv == 1.0:
|
| 289 |
+
return lexer(**options)
|
| 290 |
+
result.append((rv, lexer))
|
| 291 |
+
|
| 292 |
+
def type_sort(t):
|
| 293 |
+
# sort by:
|
| 294 |
+
# - analyse score
|
| 295 |
+
# - is primary filename pattern?
|
| 296 |
+
# - priority
|
| 297 |
+
# - last resort: class name
|
| 298 |
+
return (t[0], primary[t[1]], t[1].priority, t[1].__name__)
|
| 299 |
+
result.sort(key=type_sort)
|
| 300 |
+
|
| 301 |
+
return result[-1][1](**options)
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
def guess_lexer(_text, **options):
|
| 305 |
+
"""
|
| 306 |
+
Return a `Lexer` subclass instance that's guessed from the text in
|
| 307 |
+
`text`. For that, the :meth:`.analyse_text()` method of every known lexer
|
| 308 |
+
class is called with the text as argument, and the lexer which returned the
|
| 309 |
+
highest value will be instantiated and returned.
|
| 310 |
+
|
| 311 |
+
:exc:`pygments.util.ClassNotFound` is raised if no lexer thinks it can
|
| 312 |
+
handle the content.
|
| 313 |
+
"""
|
| 314 |
+
|
| 315 |
+
if not isinstance(_text, str):
|
| 316 |
+
inencoding = options.get('inencoding', options.get('encoding'))
|
| 317 |
+
if inencoding:
|
| 318 |
+
_text = _text.decode(inencoding or 'utf8')
|
| 319 |
+
else:
|
| 320 |
+
_text, _ = guess_decode(_text)
|
| 321 |
+
|
| 322 |
+
# try to get a vim modeline first
|
| 323 |
+
ft = get_filetype_from_buffer(_text)
|
| 324 |
+
|
| 325 |
+
if ft is not None:
|
| 326 |
+
try:
|
| 327 |
+
return get_lexer_by_name(ft, **options)
|
| 328 |
+
except ClassNotFound:
|
| 329 |
+
pass
|
| 330 |
+
|
| 331 |
+
best_lexer = [0.0, None]
|
| 332 |
+
for lexer in _iter_lexerclasses():
|
| 333 |
+
rv = lexer.analyse_text(_text)
|
| 334 |
+
if rv == 1.0:
|
| 335 |
+
return lexer(**options)
|
| 336 |
+
if rv > best_lexer[0]:
|
| 337 |
+
best_lexer[:] = (rv, lexer)
|
| 338 |
+
if not best_lexer[0] or best_lexer[1] is None:
|
| 339 |
+
raise ClassNotFound('no lexer matching the text found')
|
| 340 |
+
return best_lexer[1](**options)
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
class _automodule(types.ModuleType):
|
| 344 |
+
"""Automatically import lexers."""
|
| 345 |
+
|
| 346 |
+
def __getattr__(self, name):
|
| 347 |
+
info = LEXERS.get(name)
|
| 348 |
+
if info:
|
| 349 |
+
_load_lexers(info[0])
|
| 350 |
+
cls = _lexer_cache[info[1]]
|
| 351 |
+
setattr(self, name, cls)
|
| 352 |
+
return cls
|
| 353 |
+
if name in COMPAT:
|
| 354 |
+
return getattr(self, COMPAT[name])
|
| 355 |
+
raise AttributeError(name)
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
oldmod = sys.modules[__name__]
|
| 359 |
+
newmod = _automodule(__name__)
|
| 360 |
+
newmod.__dict__.update(oldmod.__dict__)
|
| 361 |
+
sys.modules[__name__] = newmod
|
| 362 |
+
del newmod.newmod, newmod.oldmod, newmod.sys, newmod.types
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""This is invoked in a subprocess to call the build backend hooks.
|
| 2 |
+
|
| 3 |
+
It expects:
|
| 4 |
+
- Command line args: hook_name, control_dir
|
| 5 |
+
- Environment variables:
|
| 6 |
+
_PYPROJECT_HOOKS_BUILD_BACKEND=entry.point:spec
|
| 7 |
+
_PYPROJECT_HOOKS_BACKEND_PATH=paths (separated with os.pathsep)
|
| 8 |
+
- control_dir/input.json:
|
| 9 |
+
- {"kwargs": {...}}
|
| 10 |
+
|
| 11 |
+
Results:
|
| 12 |
+
- control_dir/output.json
|
| 13 |
+
- {"return_val": ...}
|
| 14 |
+
"""
|
| 15 |
+
import json
|
| 16 |
+
import os
|
| 17 |
+
import os.path
|
| 18 |
+
import re
|
| 19 |
+
import shutil
|
| 20 |
+
import sys
|
| 21 |
+
import traceback
|
| 22 |
+
from glob import glob
|
| 23 |
+
from importlib import import_module
|
| 24 |
+
from importlib.machinery import PathFinder
|
| 25 |
+
from os.path import join as pjoin
|
| 26 |
+
|
| 27 |
+
# This file is run as a script, and `import wrappers` is not zip-safe, so we
|
| 28 |
+
# include write_json() and read_json() from wrappers.py.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def write_json(obj, path, **kwargs):
|
| 32 |
+
with open(path, "w", encoding="utf-8") as f:
|
| 33 |
+
json.dump(obj, f, **kwargs)
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def read_json(path):
|
| 37 |
+
with open(path, encoding="utf-8") as f:
|
| 38 |
+
return json.load(f)
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
class BackendUnavailable(Exception):
|
| 42 |
+
"""Raised if we cannot import the backend"""
|
| 43 |
+
|
| 44 |
+
def __init__(self, message, traceback=None):
|
| 45 |
+
super().__init__(message)
|
| 46 |
+
self.message = message
|
| 47 |
+
self.traceback = traceback
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
class HookMissing(Exception):
|
| 51 |
+
"""Raised if a hook is missing and we are not executing the fallback"""
|
| 52 |
+
|
| 53 |
+
def __init__(self, hook_name=None):
|
| 54 |
+
super().__init__(hook_name)
|
| 55 |
+
self.hook_name = hook_name
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def _build_backend():
|
| 59 |
+
"""Find and load the build backend"""
|
| 60 |
+
backend_path = os.environ.get("_PYPROJECT_HOOKS_BACKEND_PATH")
|
| 61 |
+
ep = os.environ["_PYPROJECT_HOOKS_BUILD_BACKEND"]
|
| 62 |
+
mod_path, _, obj_path = ep.partition(":")
|
| 63 |
+
|
| 64 |
+
if backend_path:
|
| 65 |
+
# Ensure in-tree backend directories have the highest priority when importing.
|
| 66 |
+
extra_pathitems = backend_path.split(os.pathsep)
|
| 67 |
+
sys.meta_path.insert(0, _BackendPathFinder(extra_pathitems, mod_path))
|
| 68 |
+
|
| 69 |
+
try:
|
| 70 |
+
obj = import_module(mod_path)
|
| 71 |
+
except ImportError:
|
| 72 |
+
msg = f"Cannot import {mod_path!r}"
|
| 73 |
+
raise BackendUnavailable(msg, traceback.format_exc())
|
| 74 |
+
|
| 75 |
+
if obj_path:
|
| 76 |
+
for path_part in obj_path.split("."):
|
| 77 |
+
obj = getattr(obj, path_part)
|
| 78 |
+
return obj
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
class _BackendPathFinder:
|
| 82 |
+
"""Implements the MetaPathFinder interface to locate modules in ``backend-path``.
|
| 83 |
+
|
| 84 |
+
Since the environment provided by the frontend can contain all sorts of
|
| 85 |
+
MetaPathFinders, the only way to ensure the backend is loaded from the
|
| 86 |
+
right place is to prepend our own.
|
| 87 |
+
"""
|
| 88 |
+
|
| 89 |
+
def __init__(self, backend_path, backend_module):
|
| 90 |
+
self.backend_path = backend_path
|
| 91 |
+
self.backend_module = backend_module
|
| 92 |
+
self.backend_parent, _, _ = backend_module.partition(".")
|
| 93 |
+
|
| 94 |
+
def find_spec(self, fullname, _path, _target=None):
|
| 95 |
+
if "." in fullname:
|
| 96 |
+
# Rely on importlib to find nested modules based on parent's path
|
| 97 |
+
return None
|
| 98 |
+
|
| 99 |
+
# Ignore other items in _path or sys.path and use backend_path instead:
|
| 100 |
+
spec = PathFinder.find_spec(fullname, path=self.backend_path)
|
| 101 |
+
if spec is None and fullname == self.backend_parent:
|
| 102 |
+
# According to the spec, the backend MUST be loaded from backend-path.
|
| 103 |
+
# Therefore, we can halt the import machinery and raise a clean error.
|
| 104 |
+
msg = f"Cannot find module {self.backend_module!r} in {self.backend_path!r}"
|
| 105 |
+
raise BackendUnavailable(msg)
|
| 106 |
+
|
| 107 |
+
return spec
|
| 108 |
+
|
| 109 |
+
if sys.version_info >= (3, 8):
|
| 110 |
+
|
| 111 |
+
def find_distributions(self, context=None):
|
| 112 |
+
# Delayed import: Python 3.7 does not contain importlib.metadata
|
| 113 |
+
from importlib.metadata import DistributionFinder, MetadataPathFinder
|
| 114 |
+
|
| 115 |
+
context = DistributionFinder.Context(path=self.backend_path)
|
| 116 |
+
return MetadataPathFinder.find_distributions(context=context)
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def _supported_features():
|
| 120 |
+
"""Return the list of options features supported by the backend.
|
| 121 |
+
|
| 122 |
+
Returns a list of strings.
|
| 123 |
+
The only possible value is 'build_editable'.
|
| 124 |
+
"""
|
| 125 |
+
backend = _build_backend()
|
| 126 |
+
features = []
|
| 127 |
+
if hasattr(backend, "build_editable"):
|
| 128 |
+
features.append("build_editable")
|
| 129 |
+
return features
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
def get_requires_for_build_wheel(config_settings):
|
| 133 |
+
"""Invoke the optional get_requires_for_build_wheel hook
|
| 134 |
+
|
| 135 |
+
Returns [] if the hook is not defined.
|
| 136 |
+
"""
|
| 137 |
+
backend = _build_backend()
|
| 138 |
+
try:
|
| 139 |
+
hook = backend.get_requires_for_build_wheel
|
| 140 |
+
except AttributeError:
|
| 141 |
+
return []
|
| 142 |
+
else:
|
| 143 |
+
return hook(config_settings)
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
def get_requires_for_build_editable(config_settings):
|
| 147 |
+
"""Invoke the optional get_requires_for_build_editable hook
|
| 148 |
+
|
| 149 |
+
Returns [] if the hook is not defined.
|
| 150 |
+
"""
|
| 151 |
+
backend = _build_backend()
|
| 152 |
+
try:
|
| 153 |
+
hook = backend.get_requires_for_build_editable
|
| 154 |
+
except AttributeError:
|
| 155 |
+
return []
|
| 156 |
+
else:
|
| 157 |
+
return hook(config_settings)
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
def prepare_metadata_for_build_wheel(
|
| 161 |
+
metadata_directory, config_settings, _allow_fallback
|
| 162 |
+
):
|
| 163 |
+
"""Invoke optional prepare_metadata_for_build_wheel
|
| 164 |
+
|
| 165 |
+
Implements a fallback by building a wheel if the hook isn't defined,
|
| 166 |
+
unless _allow_fallback is False in which case HookMissing is raised.
|
| 167 |
+
"""
|
| 168 |
+
backend = _build_backend()
|
| 169 |
+
try:
|
| 170 |
+
hook = backend.prepare_metadata_for_build_wheel
|
| 171 |
+
except AttributeError:
|
| 172 |
+
if not _allow_fallback:
|
| 173 |
+
raise HookMissing()
|
| 174 |
+
else:
|
| 175 |
+
return hook(metadata_directory, config_settings)
|
| 176 |
+
# fallback to build_wheel outside the try block to avoid exception chaining
|
| 177 |
+
# which can be confusing to users and is not relevant
|
| 178 |
+
whl_basename = backend.build_wheel(metadata_directory, config_settings)
|
| 179 |
+
return _get_wheel_metadata_from_wheel(
|
| 180 |
+
whl_basename, metadata_directory, config_settings
|
| 181 |
+
)
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
def prepare_metadata_for_build_editable(
|
| 185 |
+
metadata_directory, config_settings, _allow_fallback
|
| 186 |
+
):
|
| 187 |
+
"""Invoke optional prepare_metadata_for_build_editable
|
| 188 |
+
|
| 189 |
+
Implements a fallback by building an editable wheel if the hook isn't
|
| 190 |
+
defined, unless _allow_fallback is False in which case HookMissing is
|
| 191 |
+
raised.
|
| 192 |
+
"""
|
| 193 |
+
backend = _build_backend()
|
| 194 |
+
try:
|
| 195 |
+
hook = backend.prepare_metadata_for_build_editable
|
| 196 |
+
except AttributeError:
|
| 197 |
+
if not _allow_fallback:
|
| 198 |
+
raise HookMissing()
|
| 199 |
+
try:
|
| 200 |
+
build_hook = backend.build_editable
|
| 201 |
+
except AttributeError:
|
| 202 |
+
raise HookMissing(hook_name="build_editable")
|
| 203 |
+
else:
|
| 204 |
+
whl_basename = build_hook(metadata_directory, config_settings)
|
| 205 |
+
return _get_wheel_metadata_from_wheel(
|
| 206 |
+
whl_basename, metadata_directory, config_settings
|
| 207 |
+
)
|
| 208 |
+
else:
|
| 209 |
+
return hook(metadata_directory, config_settings)
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
WHEEL_BUILT_MARKER = "PYPROJECT_HOOKS_ALREADY_BUILT_WHEEL"
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _dist_info_files(whl_zip):
|
| 216 |
+
"""Identify the .dist-info folder inside a wheel ZipFile."""
|
| 217 |
+
res = []
|
| 218 |
+
for path in whl_zip.namelist():
|
| 219 |
+
m = re.match(r"[^/\\]+-[^/\\]+\.dist-info/", path)
|
| 220 |
+
if m:
|
| 221 |
+
res.append(path)
|
| 222 |
+
if res:
|
| 223 |
+
return res
|
| 224 |
+
raise Exception("No .dist-info folder found in wheel")
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
def _get_wheel_metadata_from_wheel(whl_basename, metadata_directory, config_settings):
|
| 228 |
+
"""Extract the metadata from a wheel.
|
| 229 |
+
|
| 230 |
+
Fallback for when the build backend does not
|
| 231 |
+
define the 'get_wheel_metadata' hook.
|
| 232 |
+
"""
|
| 233 |
+
from zipfile import ZipFile
|
| 234 |
+
|
| 235 |
+
with open(os.path.join(metadata_directory, WHEEL_BUILT_MARKER), "wb"):
|
| 236 |
+
pass # Touch marker file
|
| 237 |
+
|
| 238 |
+
whl_file = os.path.join(metadata_directory, whl_basename)
|
| 239 |
+
with ZipFile(whl_file) as zipf:
|
| 240 |
+
dist_info = _dist_info_files(zipf)
|
| 241 |
+
zipf.extractall(path=metadata_directory, members=dist_info)
|
| 242 |
+
return dist_info[0].split("/")[0]
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def _find_already_built_wheel(metadata_directory):
|
| 246 |
+
"""Check for a wheel already built during the get_wheel_metadata hook."""
|
| 247 |
+
if not metadata_directory:
|
| 248 |
+
return None
|
| 249 |
+
metadata_parent = os.path.dirname(metadata_directory)
|
| 250 |
+
if not os.path.isfile(pjoin(metadata_parent, WHEEL_BUILT_MARKER)):
|
| 251 |
+
return None
|
| 252 |
+
|
| 253 |
+
whl_files = glob(os.path.join(metadata_parent, "*.whl"))
|
| 254 |
+
if not whl_files:
|
| 255 |
+
print("Found wheel built marker, but no .whl files")
|
| 256 |
+
return None
|
| 257 |
+
if len(whl_files) > 1:
|
| 258 |
+
print(
|
| 259 |
+
"Found multiple .whl files; unspecified behaviour. "
|
| 260 |
+
"Will call build_wheel."
|
| 261 |
+
)
|
| 262 |
+
return None
|
| 263 |
+
|
| 264 |
+
# Exactly one .whl file
|
| 265 |
+
return whl_files[0]
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
def build_wheel(wheel_directory, config_settings, metadata_directory=None):
|
| 269 |
+
"""Invoke the mandatory build_wheel hook.
|
| 270 |
+
|
| 271 |
+
If a wheel was already built in the
|
| 272 |
+
prepare_metadata_for_build_wheel fallback, this
|
| 273 |
+
will copy it rather than rebuilding the wheel.
|
| 274 |
+
"""
|
| 275 |
+
prebuilt_whl = _find_already_built_wheel(metadata_directory)
|
| 276 |
+
if prebuilt_whl:
|
| 277 |
+
shutil.copy2(prebuilt_whl, wheel_directory)
|
| 278 |
+
return os.path.basename(prebuilt_whl)
|
| 279 |
+
|
| 280 |
+
return _build_backend().build_wheel(
|
| 281 |
+
wheel_directory, config_settings, metadata_directory
|
| 282 |
+
)
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
def build_editable(wheel_directory, config_settings, metadata_directory=None):
|
| 286 |
+
"""Invoke the optional build_editable hook.
|
| 287 |
+
|
| 288 |
+
If a wheel was already built in the
|
| 289 |
+
prepare_metadata_for_build_editable fallback, this
|
| 290 |
+
will copy it rather than rebuilding the wheel.
|
| 291 |
+
"""
|
| 292 |
+
backend = _build_backend()
|
| 293 |
+
try:
|
| 294 |
+
hook = backend.build_editable
|
| 295 |
+
except AttributeError:
|
| 296 |
+
raise HookMissing()
|
| 297 |
+
else:
|
| 298 |
+
prebuilt_whl = _find_already_built_wheel(metadata_directory)
|
| 299 |
+
if prebuilt_whl:
|
| 300 |
+
shutil.copy2(prebuilt_whl, wheel_directory)
|
| 301 |
+
return os.path.basename(prebuilt_whl)
|
| 302 |
+
|
| 303 |
+
return hook(wheel_directory, config_settings, metadata_directory)
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
def get_requires_for_build_sdist(config_settings):
|
| 307 |
+
"""Invoke the optional get_requires_for_build_wheel hook
|
| 308 |
+
|
| 309 |
+
Returns [] if the hook is not defined.
|
| 310 |
+
"""
|
| 311 |
+
backend = _build_backend()
|
| 312 |
+
try:
|
| 313 |
+
hook = backend.get_requires_for_build_sdist
|
| 314 |
+
except AttributeError:
|
| 315 |
+
return []
|
| 316 |
+
else:
|
| 317 |
+
return hook(config_settings)
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
class _DummyException(Exception):
|
| 321 |
+
"""Nothing should ever raise this exception"""
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
class GotUnsupportedOperation(Exception):
|
| 325 |
+
"""For internal use when backend raises UnsupportedOperation"""
|
| 326 |
+
|
| 327 |
+
def __init__(self, traceback):
|
| 328 |
+
self.traceback = traceback
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
def build_sdist(sdist_directory, config_settings):
|
| 332 |
+
"""Invoke the mandatory build_sdist hook."""
|
| 333 |
+
backend = _build_backend()
|
| 334 |
+
try:
|
| 335 |
+
return backend.build_sdist(sdist_directory, config_settings)
|
| 336 |
+
except getattr(backend, "UnsupportedOperation", _DummyException):
|
| 337 |
+
raise GotUnsupportedOperation(traceback.format_exc())
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
HOOK_NAMES = {
|
| 341 |
+
"get_requires_for_build_wheel",
|
| 342 |
+
"prepare_metadata_for_build_wheel",
|
| 343 |
+
"build_wheel",
|
| 344 |
+
"get_requires_for_build_editable",
|
| 345 |
+
"prepare_metadata_for_build_editable",
|
| 346 |
+
"build_editable",
|
| 347 |
+
"get_requires_for_build_sdist",
|
| 348 |
+
"build_sdist",
|
| 349 |
+
"_supported_features",
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
def main():
|
| 354 |
+
if len(sys.argv) < 3:
|
| 355 |
+
sys.exit("Needs args: hook_name, control_dir")
|
| 356 |
+
hook_name = sys.argv[1]
|
| 357 |
+
control_dir = sys.argv[2]
|
| 358 |
+
if hook_name not in HOOK_NAMES:
|
| 359 |
+
sys.exit("Unknown hook: %s" % hook_name)
|
| 360 |
+
|
| 361 |
+
# Remove the parent directory from sys.path to avoid polluting the backend
|
| 362 |
+
# import namespace with this directory.
|
| 363 |
+
here = os.path.dirname(__file__)
|
| 364 |
+
if here in sys.path:
|
| 365 |
+
sys.path.remove(here)
|
| 366 |
+
|
| 367 |
+
hook = globals()[hook_name]
|
| 368 |
+
|
| 369 |
+
hook_input = read_json(pjoin(control_dir, "input.json"))
|
| 370 |
+
|
| 371 |
+
json_out = {"unsupported": False, "return_val": None}
|
| 372 |
+
try:
|
| 373 |
+
json_out["return_val"] = hook(**hook_input["kwargs"])
|
| 374 |
+
except BackendUnavailable as e:
|
| 375 |
+
json_out["no_backend"] = True
|
| 376 |
+
json_out["traceback"] = e.traceback
|
| 377 |
+
json_out["backend_error"] = e.message
|
| 378 |
+
except GotUnsupportedOperation as e:
|
| 379 |
+
json_out["unsupported"] = True
|
| 380 |
+
json_out["traceback"] = e.traceback
|
| 381 |
+
except HookMissing as e:
|
| 382 |
+
json_out["hook_missing"] = True
|
| 383 |
+
json_out["missing_hook_name"] = e.hook_name or hook_name
|
| 384 |
+
|
| 385 |
+
write_json(json_out, pjoin(control_dir, "output.json"), indent=2)
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
if __name__ == "__main__":
|
| 389 |
+
main()
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/requests/cookies.py
ADDED
|
@@ -0,0 +1,561 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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atibility code to be able to use `http.cookiejar.CookieJar` with requests.
|
| 6 |
+
|
| 7 |
+
requests.utils imports from here, so be careful with imports.
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import calendar
|
| 11 |
+
import copy
|
| 12 |
+
import time
|
| 13 |
+
|
| 14 |
+
from ._internal_utils import to_native_string
|
| 15 |
+
from .compat import Morsel, MutableMapping, cookielib, urlparse, urlunparse
|
| 16 |
+
|
| 17 |
+
try:
|
| 18 |
+
import threading
|
| 19 |
+
except ImportError:
|
| 20 |
+
import dummy_threading as threading
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class MockRequest:
|
| 24 |
+
"""Wraps a `requests.Request` to mimic a `urllib2.Request`.
|
| 25 |
+
|
| 26 |
+
The code in `http.cookiejar.CookieJar` expects this interface in order to correctly
|
| 27 |
+
manage cookie policies, i.e., determine whether a cookie can be set, given the
|
| 28 |
+
domains of the request and the cookie.
|
| 29 |
+
|
| 30 |
+
The original request object is read-only. The client is responsible for collecting
|
| 31 |
+
the new headers via `get_new_headers()` and interpreting them appropriately. You
|
| 32 |
+
probably want `get_cookie_header`, defined below.
|
| 33 |
+
"""
|
| 34 |
+
|
| 35 |
+
def __init__(self, request):
|
| 36 |
+
self._r = request
|
| 37 |
+
self._new_headers = {}
|
| 38 |
+
self.type = urlparse(self._r.url).scheme
|
| 39 |
+
|
| 40 |
+
def get_type(self):
|
| 41 |
+
return self.type
|
| 42 |
+
|
| 43 |
+
def get_host(self):
|
| 44 |
+
return urlparse(self._r.url).netloc
|
| 45 |
+
|
| 46 |
+
def get_origin_req_host(self):
|
| 47 |
+
return self.get_host()
|
| 48 |
+
|
| 49 |
+
def get_full_url(self):
|
| 50 |
+
# Only return the response's URL if the user hadn't set the Host
|
| 51 |
+
# header
|
| 52 |
+
if not self._r.headers.get("Host"):
|
| 53 |
+
return self._r.url
|
| 54 |
+
# If they did set it, retrieve it and reconstruct the expected domain
|
| 55 |
+
host = to_native_string(self._r.headers["Host"], encoding="utf-8")
|
| 56 |
+
parsed = urlparse(self._r.url)
|
| 57 |
+
# Reconstruct the URL as we expect it
|
| 58 |
+
return urlunparse(
|
| 59 |
+
[
|
| 60 |
+
parsed.scheme,
|
| 61 |
+
host,
|
| 62 |
+
parsed.path,
|
| 63 |
+
parsed.params,
|
| 64 |
+
parsed.query,
|
| 65 |
+
parsed.fragment,
|
| 66 |
+
]
|
| 67 |
+
)
|
| 68 |
+
|
| 69 |
+
def is_unverifiable(self):
|
| 70 |
+
return True
|
| 71 |
+
|
| 72 |
+
def has_header(self, name):
|
| 73 |
+
return name in self._r.headers or name in self._new_headers
|
| 74 |
+
|
| 75 |
+
def get_header(self, name, default=None):
|
| 76 |
+
return self._r.headers.get(name, self._new_headers.get(name, default))
|
| 77 |
+
|
| 78 |
+
def add_header(self, key, val):
|
| 79 |
+
"""cookiejar has no legitimate use for this method; add it back if you find one."""
|
| 80 |
+
raise NotImplementedError(
|
| 81 |
+
"Cookie headers should be added with add_unredirected_header()"
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
+
def add_unredirected_header(self, name, value):
|
| 85 |
+
self._new_headers[name] = value
|
| 86 |
+
|
| 87 |
+
def get_new_headers(self):
|
| 88 |
+
return self._new_headers
|
| 89 |
+
|
| 90 |
+
@property
|
| 91 |
+
def unverifiable(self):
|
| 92 |
+
return self.is_unverifiable()
|
| 93 |
+
|
| 94 |
+
@property
|
| 95 |
+
def origin_req_host(self):
|
| 96 |
+
return self.get_origin_req_host()
|
| 97 |
+
|
| 98 |
+
@property
|
| 99 |
+
def host(self):
|
| 100 |
+
return self.get_host()
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
class MockResponse:
|
| 104 |
+
"""Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.
|
| 105 |
+
|
| 106 |
+
...what? Basically, expose the parsed HTTP headers from the server response
|
| 107 |
+
the way `http.cookiejar` expects to see them.
|
| 108 |
+
"""
|
| 109 |
+
|
| 110 |
+
def __init__(self, headers):
|
| 111 |
+
"""Make a MockResponse for `cookiejar` to read.
|
| 112 |
+
|
| 113 |
+
:param headers: a httplib.HTTPMessage or analogous carrying the headers
|
| 114 |
+
"""
|
| 115 |
+
self._headers = headers
|
| 116 |
+
|
| 117 |
+
def info(self):
|
| 118 |
+
return self._headers
|
| 119 |
+
|
| 120 |
+
def getheaders(self, name):
|
| 121 |
+
self._headers.getheaders(name)
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def extract_cookies_to_jar(jar, request, response):
|
| 125 |
+
"""Extract the cookies from the response into a CookieJar.
|
| 126 |
+
|
| 127 |
+
:param jar: http.cookiejar.CookieJar (not necessarily a RequestsCookieJar)
|
| 128 |
+
:param request: our own requests.Request object
|
| 129 |
+
:param response: urllib3.HTTPResponse object
|
| 130 |
+
"""
|
| 131 |
+
if not (hasattr(response, "_original_response") and response._original_response):
|
| 132 |
+
return
|
| 133 |
+
# the _original_response field is the wrapped httplib.HTTPResponse object,
|
| 134 |
+
req = MockRequest(request)
|
| 135 |
+
# pull out the HTTPMessage with the headers and put it in the mock:
|
| 136 |
+
res = MockResponse(response._original_response.msg)
|
| 137 |
+
jar.extract_cookies(res, req)
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
def get_cookie_header(jar, request):
|
| 141 |
+
"""
|
| 142 |
+
Produce an appropriate Cookie header string to be sent with `request`, or None.
|
| 143 |
+
|
| 144 |
+
:rtype: str
|
| 145 |
+
"""
|
| 146 |
+
r = MockRequest(request)
|
| 147 |
+
jar.add_cookie_header(r)
|
| 148 |
+
return r.get_new_headers().get("Cookie")
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
def remove_cookie_by_name(cookiejar, name, domain=None, path=None):
|
| 152 |
+
"""Unsets a cookie by name, by default over all domains and paths.
|
| 153 |
+
|
| 154 |
+
Wraps CookieJar.clear(), is O(n).
|
| 155 |
+
"""
|
| 156 |
+
clearables = []
|
| 157 |
+
for cookie in cookiejar:
|
| 158 |
+
if cookie.name != name:
|
| 159 |
+
continue
|
| 160 |
+
if domain is not None and domain != cookie.domain:
|
| 161 |
+
continue
|
| 162 |
+
if path is not None and path != cookie.path:
|
| 163 |
+
continue
|
| 164 |
+
clearables.append((cookie.domain, cookie.path, cookie.name))
|
| 165 |
+
|
| 166 |
+
for domain, path, name in clearables:
|
| 167 |
+
cookiejar.clear(domain, path, name)
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
class CookieConflictError(RuntimeError):
|
| 171 |
+
"""There are two cookies that meet the criteria specified in the cookie jar.
|
| 172 |
+
Use .get and .set and include domain and path args in order to be more specific.
|
| 173 |
+
"""
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
class RequestsCookieJar(cookielib.CookieJar, MutableMapping):
|
| 177 |
+
"""Compatibility class; is a http.cookiejar.CookieJar, but exposes a dict
|
| 178 |
+
interface.
|
| 179 |
+
|
| 180 |
+
This is the CookieJar we create by default for requests and sessions that
|
| 181 |
+
don't specify one, since some clients may expect response.cookies and
|
| 182 |
+
session.cookies to support dict operations.
|
| 183 |
+
|
| 184 |
+
Requests does not use the dict interface internally; it's just for
|
| 185 |
+
compatibility with external client code. All requests code should work
|
| 186 |
+
out of the box with externally provided instances of ``CookieJar``, e.g.
|
| 187 |
+
``LWPCookieJar`` and ``FileCookieJar``.
|
| 188 |
+
|
| 189 |
+
Unlike a regular CookieJar, this class is pickleable.
|
| 190 |
+
|
| 191 |
+
.. warning:: dictionary operations that are normally O(1) may be O(n).
|
| 192 |
+
"""
|
| 193 |
+
|
| 194 |
+
def get(self, name, default=None, domain=None, path=None):
|
| 195 |
+
"""Dict-like get() that also supports optional domain and path args in
|
| 196 |
+
order to resolve naming collisions from using one cookie jar over
|
| 197 |
+
multiple domains.
|
| 198 |
+
|
| 199 |
+
.. warning:: operation is O(n), not O(1).
|
| 200 |
+
"""
|
| 201 |
+
try:
|
| 202 |
+
return self._find_no_duplicates(name, domain, path)
|
| 203 |
+
except KeyError:
|
| 204 |
+
return default
|
| 205 |
+
|
| 206 |
+
def set(self, name, value, **kwargs):
|
| 207 |
+
"""Dict-like set() that also supports optional domain and path args in
|
| 208 |
+
order to resolve naming collisions from using one cookie jar over
|
| 209 |
+
multiple domains.
|
| 210 |
+
"""
|
| 211 |
+
# support client code that unsets cookies by assignment of a None value:
|
| 212 |
+
if value is None:
|
| 213 |
+
remove_cookie_by_name(
|
| 214 |
+
self, name, domain=kwargs.get("domain"), path=kwargs.get("path")
|
| 215 |
+
)
|
| 216 |
+
return
|
| 217 |
+
|
| 218 |
+
if isinstance(value, Morsel):
|
| 219 |
+
c = morsel_to_cookie(value)
|
| 220 |
+
else:
|
| 221 |
+
c = create_cookie(name, value, **kwargs)
|
| 222 |
+
self.set_cookie(c)
|
| 223 |
+
return c
|
| 224 |
+
|
| 225 |
+
def iterkeys(self):
|
| 226 |
+
"""Dict-like iterkeys() that returns an iterator of names of cookies
|
| 227 |
+
from the jar.
|
| 228 |
+
|
| 229 |
+
.. seealso:: itervalues() and iteritems().
|
| 230 |
+
"""
|
| 231 |
+
for cookie in iter(self):
|
| 232 |
+
yield cookie.name
|
| 233 |
+
|
| 234 |
+
def keys(self):
|
| 235 |
+
"""Dict-like keys() that returns a list of names of cookies from the
|
| 236 |
+
jar.
|
| 237 |
+
|
| 238 |
+
.. seealso:: values() and items().
|
| 239 |
+
"""
|
| 240 |
+
return list(self.iterkeys())
|
| 241 |
+
|
| 242 |
+
def itervalues(self):
|
| 243 |
+
"""Dict-like itervalues() that returns an iterator of values of cookies
|
| 244 |
+
from the jar.
|
| 245 |
+
|
| 246 |
+
.. seealso:: iterkeys() and iteritems().
|
| 247 |
+
"""
|
| 248 |
+
for cookie in iter(self):
|
| 249 |
+
yield cookie.value
|
| 250 |
+
|
| 251 |
+
def values(self):
|
| 252 |
+
"""Dict-like values() that returns a list of values of cookies from the
|
| 253 |
+
jar.
|
| 254 |
+
|
| 255 |
+
.. seealso:: keys() and items().
|
| 256 |
+
"""
|
| 257 |
+
return list(self.itervalues())
|
| 258 |
+
|
| 259 |
+
def iteritems(self):
|
| 260 |
+
"""Dict-like iteritems() that returns an iterator of name-value tuples
|
| 261 |
+
from the jar.
|
| 262 |
+
|
| 263 |
+
.. seealso:: iterkeys() and itervalues().
|
| 264 |
+
"""
|
| 265 |
+
for cookie in iter(self):
|
| 266 |
+
yield cookie.name, cookie.value
|
| 267 |
+
|
| 268 |
+
def items(self):
|
| 269 |
+
"""Dict-like items() that returns a list of name-value tuples from the
|
| 270 |
+
jar. Allows client-code to call ``dict(RequestsCookieJar)`` and get a
|
| 271 |
+
vanilla python dict of key value pairs.
|
| 272 |
+
|
| 273 |
+
.. seealso:: keys() and values().
|
| 274 |
+
"""
|
| 275 |
+
return list(self.iteritems())
|
| 276 |
+
|
| 277 |
+
def list_domains(self):
|
| 278 |
+
"""Utility method to list all the domains in the jar."""
|
| 279 |
+
domains = []
|
| 280 |
+
for cookie in iter(self):
|
| 281 |
+
if cookie.domain not in domains:
|
| 282 |
+
domains.append(cookie.domain)
|
| 283 |
+
return domains
|
| 284 |
+
|
| 285 |
+
def list_paths(self):
|
| 286 |
+
"""Utility method to list all the paths in the jar."""
|
| 287 |
+
paths = []
|
| 288 |
+
for cookie in iter(self):
|
| 289 |
+
if cookie.path not in paths:
|
| 290 |
+
paths.append(cookie.path)
|
| 291 |
+
return paths
|
| 292 |
+
|
| 293 |
+
def multiple_domains(self):
|
| 294 |
+
"""Returns True if there are multiple domains in the jar.
|
| 295 |
+
Returns False otherwise.
|
| 296 |
+
|
| 297 |
+
:rtype: bool
|
| 298 |
+
"""
|
| 299 |
+
domains = []
|
| 300 |
+
for cookie in iter(self):
|
| 301 |
+
if cookie.domain is not None and cookie.domain in domains:
|
| 302 |
+
return True
|
| 303 |
+
domains.append(cookie.domain)
|
| 304 |
+
return False # there is only one domain in jar
|
| 305 |
+
|
| 306 |
+
def get_dict(self, domain=None, path=None):
|
| 307 |
+
"""Takes as an argument an optional domain and path and returns a plain
|
| 308 |
+
old Python dict of name-value pairs of cookies that meet the
|
| 309 |
+
requirements.
|
| 310 |
+
|
| 311 |
+
:rtype: dict
|
| 312 |
+
"""
|
| 313 |
+
dictionary = {}
|
| 314 |
+
for cookie in iter(self):
|
| 315 |
+
if (domain is None or cookie.domain == domain) and (
|
| 316 |
+
path is None or cookie.path == path
|
| 317 |
+
):
|
| 318 |
+
dictionary[cookie.name] = cookie.value
|
| 319 |
+
return dictionary
|
| 320 |
+
|
| 321 |
+
def __contains__(self, name):
|
| 322 |
+
try:
|
| 323 |
+
return super().__contains__(name)
|
| 324 |
+
except CookieConflictError:
|
| 325 |
+
return True
|
| 326 |
+
|
| 327 |
+
def __getitem__(self, name):
|
| 328 |
+
"""Dict-like __getitem__() for compatibility with client code. Throws
|
| 329 |
+
exception if there are more than one cookie with name. In that case,
|
| 330 |
+
use the more explicit get() method instead.
|
| 331 |
+
|
| 332 |
+
.. warning:: operation is O(n), not O(1).
|
| 333 |
+
"""
|
| 334 |
+
return self._find_no_duplicates(name)
|
| 335 |
+
|
| 336 |
+
def __setitem__(self, name, value):
|
| 337 |
+
"""Dict-like __setitem__ for compatibility with client code. Throws
|
| 338 |
+
exception if there is already a cookie of that name in the jar. In that
|
| 339 |
+
case, use the more explicit set() method instead.
|
| 340 |
+
"""
|
| 341 |
+
self.set(name, value)
|
| 342 |
+
|
| 343 |
+
def __delitem__(self, name):
|
| 344 |
+
"""Deletes a cookie given a name. Wraps ``http.cookiejar.CookieJar``'s
|
| 345 |
+
``remove_cookie_by_name()``.
|
| 346 |
+
"""
|
| 347 |
+
remove_cookie_by_name(self, name)
|
| 348 |
+
|
| 349 |
+
def set_cookie(self, cookie, *args, **kwargs):
|
| 350 |
+
if (
|
| 351 |
+
hasattr(cookie.value, "startswith")
|
| 352 |
+
and cookie.value.startswith('"')
|
| 353 |
+
and cookie.value.endswith('"')
|
| 354 |
+
):
|
| 355 |
+
cookie.value = cookie.value.replace('\\"', "")
|
| 356 |
+
return super().set_cookie(cookie, *args, **kwargs)
|
| 357 |
+
|
| 358 |
+
def update(self, other):
|
| 359 |
+
"""Updates this jar with cookies from another CookieJar or dict-like"""
|
| 360 |
+
if isinstance(other, cookielib.CookieJar):
|
| 361 |
+
for cookie in other:
|
| 362 |
+
self.set_cookie(copy.copy(cookie))
|
| 363 |
+
else:
|
| 364 |
+
super().update(other)
|
| 365 |
+
|
| 366 |
+
def _find(self, name, domain=None, path=None):
|
| 367 |
+
"""Requests uses this method internally to get cookie values.
|
| 368 |
+
|
| 369 |
+
If there are conflicting cookies, _find arbitrarily chooses one.
|
| 370 |
+
See _find_no_duplicates if you want an exception thrown if there are
|
| 371 |
+
conflicting cookies.
|
| 372 |
+
|
| 373 |
+
:param name: a string containing name of cookie
|
| 374 |
+
:param domain: (optional) string containing domain of cookie
|
| 375 |
+
:param path: (optional) string containing path of cookie
|
| 376 |
+
:return: cookie.value
|
| 377 |
+
"""
|
| 378 |
+
for cookie in iter(self):
|
| 379 |
+
if cookie.name == name:
|
| 380 |
+
if domain is None or cookie.domain == domain:
|
| 381 |
+
if path is None or cookie.path == path:
|
| 382 |
+
return cookie.value
|
| 383 |
+
|
| 384 |
+
raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
|
| 385 |
+
|
| 386 |
+
def _find_no_duplicates(self, name, domain=None, path=None):
|
| 387 |
+
"""Both ``__get_item__`` and ``get`` call this function: it's never
|
| 388 |
+
used elsewhere in Requests.
|
| 389 |
+
|
| 390 |
+
:param name: a string containing name of cookie
|
| 391 |
+
:param domain: (optional) string containing domain of cookie
|
| 392 |
+
:param path: (optional) string containing path of cookie
|
| 393 |
+
:raises KeyError: if cookie is not found
|
| 394 |
+
:raises CookieConflictError: if there are multiple cookies
|
| 395 |
+
that match name and optionally domain and path
|
| 396 |
+
:return: cookie.value
|
| 397 |
+
"""
|
| 398 |
+
toReturn = None
|
| 399 |
+
for cookie in iter(self):
|
| 400 |
+
if cookie.name == name:
|
| 401 |
+
if domain is None or cookie.domain == domain:
|
| 402 |
+
if path is None or cookie.path == path:
|
| 403 |
+
if toReturn is not None:
|
| 404 |
+
# if there are multiple cookies that meet passed in criteria
|
| 405 |
+
raise CookieConflictError(
|
| 406 |
+
f"There are multiple cookies with name, {name!r}"
|
| 407 |
+
)
|
| 408 |
+
# we will eventually return this as long as no cookie conflict
|
| 409 |
+
toReturn = cookie.value
|
| 410 |
+
|
| 411 |
+
if toReturn:
|
| 412 |
+
return toReturn
|
| 413 |
+
raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}")
|
| 414 |
+
|
| 415 |
+
def __getstate__(self):
|
| 416 |
+
"""Unlike a normal CookieJar, this class is pickleable."""
|
| 417 |
+
state = self.__dict__.copy()
|
| 418 |
+
# remove the unpickleable RLock object
|
| 419 |
+
state.pop("_cookies_lock")
|
| 420 |
+
return state
|
| 421 |
+
|
| 422 |
+
def __setstate__(self, state):
|
| 423 |
+
"""Unlike a normal CookieJar, this class is pickleable."""
|
| 424 |
+
self.__dict__.update(state)
|
| 425 |
+
if "_cookies_lock" not in self.__dict__:
|
| 426 |
+
self._cookies_lock = threading.RLock()
|
| 427 |
+
|
| 428 |
+
def copy(self):
|
| 429 |
+
"""Return a copy of this RequestsCookieJar."""
|
| 430 |
+
new_cj = RequestsCookieJar()
|
| 431 |
+
new_cj.set_policy(self.get_policy())
|
| 432 |
+
new_cj.update(self)
|
| 433 |
+
return new_cj
|
| 434 |
+
|
| 435 |
+
def get_policy(self):
|
| 436 |
+
"""Return the CookiePolicy instance used."""
|
| 437 |
+
return self._policy
|
| 438 |
+
|
| 439 |
+
|
| 440 |
+
def _copy_cookie_jar(jar):
|
| 441 |
+
if jar is None:
|
| 442 |
+
return None
|
| 443 |
+
|
| 444 |
+
if hasattr(jar, "copy"):
|
| 445 |
+
# We're dealing with an instance of RequestsCookieJar
|
| 446 |
+
return jar.copy()
|
| 447 |
+
# We're dealing with a generic CookieJar instance
|
| 448 |
+
new_jar = copy.copy(jar)
|
| 449 |
+
new_jar.clear()
|
| 450 |
+
for cookie in jar:
|
| 451 |
+
new_jar.set_cookie(copy.copy(cookie))
|
| 452 |
+
return new_jar
|
| 453 |
+
|
| 454 |
+
|
| 455 |
+
def create_cookie(name, value, **kwargs):
|
| 456 |
+
"""Make a cookie from underspecified parameters.
|
| 457 |
+
|
| 458 |
+
By default, the pair of `name` and `value` will be set for the domain ''
|
| 459 |
+
and sent on every request (this is sometimes called a "supercookie").
|
| 460 |
+
"""
|
| 461 |
+
result = {
|
| 462 |
+
"version": 0,
|
| 463 |
+
"name": name,
|
| 464 |
+
"value": value,
|
| 465 |
+
"port": None,
|
| 466 |
+
"domain": "",
|
| 467 |
+
"path": "/",
|
| 468 |
+
"secure": False,
|
| 469 |
+
"expires": None,
|
| 470 |
+
"discard": True,
|
| 471 |
+
"comment": None,
|
| 472 |
+
"comment_url": None,
|
| 473 |
+
"rest": {"HttpOnly": None},
|
| 474 |
+
"rfc2109": False,
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
badargs = set(kwargs) - set(result)
|
| 478 |
+
if badargs:
|
| 479 |
+
raise TypeError(
|
| 480 |
+
f"create_cookie() got unexpected keyword arguments: {list(badargs)}"
|
| 481 |
+
)
|
| 482 |
+
|
| 483 |
+
result.update(kwargs)
|
| 484 |
+
result["port_specified"] = bool(result["port"])
|
| 485 |
+
result["domain_specified"] = bool(result["domain"])
|
| 486 |
+
result["domain_initial_dot"] = result["domain"].startswith(".")
|
| 487 |
+
result["path_specified"] = bool(result["path"])
|
| 488 |
+
|
| 489 |
+
return cookielib.Cookie(**result)
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
def morsel_to_cookie(morsel):
|
| 493 |
+
"""Convert a Morsel object into a Cookie containing the one k/v pair."""
|
| 494 |
+
|
| 495 |
+
expires = None
|
| 496 |
+
if morsel["max-age"]:
|
| 497 |
+
try:
|
| 498 |
+
expires = int(time.time() + int(morsel["max-age"]))
|
| 499 |
+
except ValueError:
|
| 500 |
+
raise TypeError(f"max-age: {morsel['max-age']} must be integer")
|
| 501 |
+
elif morsel["expires"]:
|
| 502 |
+
time_template = "%a, %d-%b-%Y %H:%M:%S GMT"
|
| 503 |
+
expires = calendar.timegm(time.strptime(morsel["expires"], time_template))
|
| 504 |
+
return create_cookie(
|
| 505 |
+
comment=morsel["comment"],
|
| 506 |
+
comment_url=bool(morsel["comment"]),
|
| 507 |
+
discard=False,
|
| 508 |
+
domain=morsel["domain"],
|
| 509 |
+
expires=expires,
|
| 510 |
+
name=morsel.key,
|
| 511 |
+
path=morsel["path"],
|
| 512 |
+
port=None,
|
| 513 |
+
rest={"HttpOnly": morsel["httponly"]},
|
| 514 |
+
rfc2109=False,
|
| 515 |
+
secure=bool(morsel["secure"]),
|
| 516 |
+
value=morsel.value,
|
| 517 |
+
version=morsel["version"] or 0,
|
| 518 |
+
)
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
def cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True):
|
| 522 |
+
"""Returns a CookieJar from a key/value dictionary.
|
| 523 |
+
|
| 524 |
+
:param cookie_dict: Dict of key/values to insert into CookieJar.
|
| 525 |
+
:param cookiejar: (optional) A cookiejar to add the cookies to.
|
| 526 |
+
:param overwrite: (optional) If False, will not replace cookies
|
| 527 |
+
already in the jar with new ones.
|
| 528 |
+
:rtype: CookieJar
|
| 529 |
+
"""
|
| 530 |
+
if cookiejar is None:
|
| 531 |
+
cookiejar = RequestsCookieJar()
|
| 532 |
+
|
| 533 |
+
if cookie_dict is not None:
|
| 534 |
+
names_from_jar = [cookie.name for cookie in cookiejar]
|
| 535 |
+
for name in cookie_dict:
|
| 536 |
+
if overwrite or (name not in names_from_jar):
|
| 537 |
+
cookiejar.set_cookie(create_cookie(name, cookie_dict[name]))
|
| 538 |
+
|
| 539 |
+
return cookiejar
|
| 540 |
+
|
| 541 |
+
|
| 542 |
+
def merge_cookies(cookiejar, cookies):
|
| 543 |
+
"""Add cookies to cookiejar and returns a merged CookieJar.
|
| 544 |
+
|
| 545 |
+
:param cookiejar: CookieJar object to add the cookies to.
|
| 546 |
+
:param cookies: Dictionary or CookieJar object to be added.
|
| 547 |
+
:rtype: CookieJar
|
| 548 |
+
"""
|
| 549 |
+
if not isinstance(cookiejar, cookielib.CookieJar):
|
| 550 |
+
raise ValueError("You can only merge into CookieJar")
|
| 551 |
+
|
| 552 |
+
if isinstance(cookies, dict):
|
| 553 |
+
cookiejar = cookiejar_from_dict(cookies, cookiejar=cookiejar, overwrite=False)
|
| 554 |
+
elif isinstance(cookies, cookielib.CookieJar):
|
| 555 |
+
try:
|
| 556 |
+
cookiejar.update(cookies)
|
| 557 |
+
except AttributeError:
|
| 558 |
+
for cookie_in_jar in cookies:
|
| 559 |
+
cookiejar.set_cookie(cookie_in_jar)
|
| 560 |
+
|
| 561 |
+
return cookiejar
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/resolvelib/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2018, Tzu-ping Chung <uranusjr@gmail.com>
|
| 2 |
+
|
| 3 |
+
Permission to use, copy, modify, and distribute this software for any
|
| 4 |
+
purpose with or without fee is hereby granted, provided that the above
|
| 5 |
+
copyright notice and this permission notice appear in all copies.
|
| 6 |
+
|
| 7 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
| 8 |
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
| 9 |
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
| 10 |
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 11 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 12 |
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
| 13 |
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ..structs import RequirementInformation
|
| 2 |
+
from .abstract import AbstractResolver, Result
|
| 3 |
+
from .criterion import Criterion
|
| 4 |
+
from .exceptions import (
|
| 5 |
+
InconsistentCandidate,
|
| 6 |
+
RequirementsConflicted,
|
| 7 |
+
ResolutionError,
|
| 8 |
+
ResolutionImpossible,
|
| 9 |
+
ResolutionTooDeep,
|
| 10 |
+
ResolverException,
|
| 11 |
+
)
|
| 12 |
+
from .resolution import Resolution, Resolver
|
| 13 |
+
|
| 14 |
+
__all__ = [
|
| 15 |
+
"AbstractResolver",
|
| 16 |
+
"Criterion",
|
| 17 |
+
"InconsistentCandidate",
|
| 18 |
+
"RequirementInformation",
|
| 19 |
+
"RequirementsConflicted",
|
| 20 |
+
"Resolution",
|
| 21 |
+
"ResolutionError",
|
| 22 |
+
"ResolutionImpossible",
|
| 23 |
+
"ResolutionTooDeep",
|
| 24 |
+
"Resolver",
|
| 25 |
+
"ResolverException",
|
| 26 |
+
"Result",
|
| 27 |
+
]
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers/exceptions.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import TYPE_CHECKING, Collection, Generic
|
| 4 |
+
|
| 5 |
+
from ..structs import CT, RT, RequirementInformation
|
| 6 |
+
|
| 7 |
+
if TYPE_CHECKING:
|
| 8 |
+
from .criterion import Criterion
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
class ResolverException(Exception):
|
| 12 |
+
"""A base class for all exceptions raised by this module.
|
| 13 |
+
|
| 14 |
+
Exceptions derived by this class should all be handled in this module. Any
|
| 15 |
+
bubbling pass the resolver should be treated as a bug.
|
| 16 |
+
"""
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class RequirementsConflicted(ResolverException, Generic[RT, CT]):
|
| 20 |
+
def __init__(self, criterion: Criterion[RT, CT]) -> None:
|
| 21 |
+
super().__init__(criterion)
|
| 22 |
+
self.criterion = criterion
|
| 23 |
+
|
| 24 |
+
def __str__(self) -> str:
|
| 25 |
+
return "Requirements conflict: {}".format(
|
| 26 |
+
", ".join(repr(r) for r in self.criterion.iter_requirement()),
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
class InconsistentCandidate(ResolverException, Generic[RT, CT]):
|
| 31 |
+
def __init__(self, candidate: CT, criterion: Criterion[RT, CT]):
|
| 32 |
+
super().__init__(candidate, criterion)
|
| 33 |
+
self.candidate = candidate
|
| 34 |
+
self.criterion = criterion
|
| 35 |
+
|
| 36 |
+
def __str__(self) -> str:
|
| 37 |
+
return "Provided candidate {!r} does not satisfy {}".format(
|
| 38 |
+
self.candidate,
|
| 39 |
+
", ".join(repr(r) for r in self.criterion.iter_requirement()),
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class ResolutionError(ResolverException):
|
| 44 |
+
pass
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
class ResolutionImpossible(ResolutionError, Generic[RT, CT]):
|
| 48 |
+
def __init__(self, causes: Collection[RequirementInformation[RT, CT]]):
|
| 49 |
+
super().__init__(causes)
|
| 50 |
+
# causes is a list of RequirementInformation objects
|
| 51 |
+
self.causes = causes
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
class ResolutionTooDeep(ResolutionError):
|
| 55 |
+
def __init__(self, round_count: int) -> None:
|
| 56 |
+
super().__init__(round_count)
|
| 57 |
+
self.round_count = round_count
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2020 Will McGugan
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 4 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 5 |
+
in the Software without restriction, including without limitation the rights
|
| 6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 7 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 8 |
+
furnished to do so, subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in all
|
| 11 |
+
copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 19 |
+
SOFTWARE.
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_codes.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_emoji_replace.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Match, Optional
|
| 2 |
+
import re
|
| 3 |
+
|
| 4 |
+
from ._emoji_codes import EMOJI
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
_ReStringMatch = Match[str] # regex match object
|
| 8 |
+
_ReSubCallable = Callable[[_ReStringMatch], str] # Callable invoked by re.sub
|
| 9 |
+
_EmojiSubMethod = Callable[[_ReSubCallable, str], str] # Sub method of a compiled re
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def _emoji_replace(
|
| 13 |
+
text: str,
|
| 14 |
+
default_variant: Optional[str] = None,
|
| 15 |
+
_emoji_sub: _EmojiSubMethod = re.compile(r"(:(\S*?)(?:(?:\-)(emoji|text))?:)").sub,
|
| 16 |
+
) -> str:
|
| 17 |
+
"""Replace emoji code in text."""
|
| 18 |
+
get_emoji = EMOJI.__getitem__
|
| 19 |
+
variants = {"text": "\uFE0E", "emoji": "\uFE0F"}
|
| 20 |
+
get_variant = variants.get
|
| 21 |
+
default_variant_code = variants.get(default_variant, "") if default_variant else ""
|
| 22 |
+
|
| 23 |
+
def do_replace(match: Match[str]) -> str:
|
| 24 |
+
emoji_code, emoji_name, variant = match.groups()
|
| 25 |
+
try:
|
| 26 |
+
return get_emoji(emoji_name.lower()) + get_variant(
|
| 27 |
+
variant, default_variant_code
|
| 28 |
+
)
|
| 29 |
+
except KeyError:
|
| 30 |
+
return emoji_code
|
| 31 |
+
|
| 32 |
+
return _emoji_sub(do_replace, text)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_export_format.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CONSOLE_HTML_FORMAT = """\
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html>
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<style>
|
| 7 |
+
{stylesheet}
|
| 8 |
+
body {{
|
| 9 |
+
color: {foreground};
|
| 10 |
+
background-color: {background};
|
| 11 |
+
}}
|
| 12 |
+
</style>
|
| 13 |
+
</head>
|
| 14 |
+
<body>
|
| 15 |
+
<pre style="font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace"><code style="font-family:inherit">{code}</code></pre>
|
| 16 |
+
</body>
|
| 17 |
+
</html>
|
| 18 |
+
"""
|
| 19 |
+
|
| 20 |
+
CONSOLE_SVG_FORMAT = """\
|
| 21 |
+
<svg class="rich-terminal" viewBox="0 0 {width} {height}" xmlns="http://www.w3.org/2000/svg">
|
| 22 |
+
<!-- Generated with Rich https://www.textualize.io -->
|
| 23 |
+
<style>
|
| 24 |
+
|
| 25 |
+
@font-face {{
|
| 26 |
+
font-family: "Fira Code";
|
| 27 |
+
src: local("FiraCode-Regular"),
|
| 28 |
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
|
| 29 |
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
|
| 30 |
+
font-style: normal;
|
| 31 |
+
font-weight: 400;
|
| 32 |
+
}}
|
| 33 |
+
@font-face {{
|
| 34 |
+
font-family: "Fira Code";
|
| 35 |
+
src: local("FiraCode-Bold"),
|
| 36 |
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
|
| 37 |
+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
|
| 38 |
+
font-style: bold;
|
| 39 |
+
font-weight: 700;
|
| 40 |
+
}}
|
| 41 |
+
|
| 42 |
+
.{unique_id}-matrix {{
|
| 43 |
+
font-family: Fira Code, monospace;
|
| 44 |
+
font-size: {char_height}px;
|
| 45 |
+
line-height: {line_height}px;
|
| 46 |
+
font-variant-east-asian: full-width;
|
| 47 |
+
}}
|
| 48 |
+
|
| 49 |
+
.{unique_id}-title {{
|
| 50 |
+
font-size: 18px;
|
| 51 |
+
font-weight: bold;
|
| 52 |
+
font-family: arial;
|
| 53 |
+
}}
|
| 54 |
+
|
| 55 |
+
{styles}
|
| 56 |
+
</style>
|
| 57 |
+
|
| 58 |
+
<defs>
|
| 59 |
+
<clipPath id="{unique_id}-clip-terminal">
|
| 60 |
+
<rect x="0" y="0" width="{terminal_width}" height="{terminal_height}" />
|
| 61 |
+
</clipPath>
|
| 62 |
+
{lines}
|
| 63 |
+
</defs>
|
| 64 |
+
|
| 65 |
+
{chrome}
|
| 66 |
+
<g transform="translate({terminal_x}, {terminal_y})" clip-path="url(#{unique_id}-clip-terminal)">
|
| 67 |
+
{backgrounds}
|
| 68 |
+
<g class="{unique_id}-matrix">
|
| 69 |
+
{matrix}
|
| 70 |
+
</g>
|
| 71 |
+
</g>
|
| 72 |
+
</svg>
|
| 73 |
+
"""
|
| 74 |
+
|
| 75 |
+
_SVG_FONT_FAMILY = "Rich Fira Code"
|
| 76 |
+
_SVG_CLASSES_PREFIX = "rich-svg"
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_extension.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def load_ipython_extension(ip: Any) -> None: # pragma: no cover
|
| 5 |
+
# prevent circular import
|
| 6 |
+
from pip._vendor.rich.pretty import install
|
| 7 |
+
from pip._vendor.rich.traceback import install as tr_install
|
| 8 |
+
|
| 9 |
+
install()
|
| 10 |
+
tr_install()
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_inspect.py
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import inspect
|
| 2 |
+
from inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature
|
| 3 |
+
from typing import Any, Collection, Iterable, Optional, Tuple, Type, Union
|
| 4 |
+
|
| 5 |
+
from .console import Group, RenderableType
|
| 6 |
+
from .control import escape_control_codes
|
| 7 |
+
from .highlighter import ReprHighlighter
|
| 8 |
+
from .jupyter import JupyterMixin
|
| 9 |
+
from .panel import Panel
|
| 10 |
+
from .pretty import Pretty
|
| 11 |
+
from .table import Table
|
| 12 |
+
from .text import Text, TextType
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def _first_paragraph(doc: str) -> str:
|
| 16 |
+
"""Get the first paragraph from a docstring."""
|
| 17 |
+
paragraph, _, _ = doc.partition("\n\n")
|
| 18 |
+
return paragraph
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class Inspect(JupyterMixin):
|
| 22 |
+
"""A renderable to inspect any Python Object.
|
| 23 |
+
|
| 24 |
+
Args:
|
| 25 |
+
obj (Any): An object to inspect.
|
| 26 |
+
title (str, optional): Title to display over inspect result, or None use type. Defaults to None.
|
| 27 |
+
help (bool, optional): Show full help text rather than just first paragraph. Defaults to False.
|
| 28 |
+
methods (bool, optional): Enable inspection of callables. Defaults to False.
|
| 29 |
+
docs (bool, optional): Also render doc strings. Defaults to True.
|
| 30 |
+
private (bool, optional): Show private attributes (beginning with underscore). Defaults to False.
|
| 31 |
+
dunder (bool, optional): Show attributes starting with double underscore. Defaults to False.
|
| 32 |
+
sort (bool, optional): Sort attributes alphabetically. Defaults to True.
|
| 33 |
+
all (bool, optional): Show all attributes. Defaults to False.
|
| 34 |
+
value (bool, optional): Pretty print value of object. Defaults to True.
|
| 35 |
+
"""
|
| 36 |
+
|
| 37 |
+
def __init__(
|
| 38 |
+
self,
|
| 39 |
+
obj: Any,
|
| 40 |
+
*,
|
| 41 |
+
title: Optional[TextType] = None,
|
| 42 |
+
help: bool = False,
|
| 43 |
+
methods: bool = False,
|
| 44 |
+
docs: bool = True,
|
| 45 |
+
private: bool = False,
|
| 46 |
+
dunder: bool = False,
|
| 47 |
+
sort: bool = True,
|
| 48 |
+
all: bool = True,
|
| 49 |
+
value: bool = True,
|
| 50 |
+
) -> None:
|
| 51 |
+
self.highlighter = ReprHighlighter()
|
| 52 |
+
self.obj = obj
|
| 53 |
+
self.title = title or self._make_title(obj)
|
| 54 |
+
if all:
|
| 55 |
+
methods = private = dunder = True
|
| 56 |
+
self.help = help
|
| 57 |
+
self.methods = methods
|
| 58 |
+
self.docs = docs or help
|
| 59 |
+
self.private = private or dunder
|
| 60 |
+
self.dunder = dunder
|
| 61 |
+
self.sort = sort
|
| 62 |
+
self.value = value
|
| 63 |
+
|
| 64 |
+
def _make_title(self, obj: Any) -> Text:
|
| 65 |
+
"""Make a default title."""
|
| 66 |
+
title_str = (
|
| 67 |
+
str(obj)
|
| 68 |
+
if (isclass(obj) or callable(obj) or ismodule(obj))
|
| 69 |
+
else str(type(obj))
|
| 70 |
+
)
|
| 71 |
+
title_text = self.highlighter(title_str)
|
| 72 |
+
return title_text
|
| 73 |
+
|
| 74 |
+
def __rich__(self) -> Panel:
|
| 75 |
+
return Panel.fit(
|
| 76 |
+
Group(*self._render()),
|
| 77 |
+
title=self.title,
|
| 78 |
+
border_style="scope.border",
|
| 79 |
+
padding=(0, 1),
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
def _get_signature(self, name: str, obj: Any) -> Optional[Text]:
|
| 83 |
+
"""Get a signature for a callable."""
|
| 84 |
+
try:
|
| 85 |
+
_signature = str(signature(obj)) + ":"
|
| 86 |
+
except ValueError:
|
| 87 |
+
_signature = "(...)"
|
| 88 |
+
except TypeError:
|
| 89 |
+
return None
|
| 90 |
+
|
| 91 |
+
source_filename: Optional[str] = None
|
| 92 |
+
try:
|
| 93 |
+
source_filename = getfile(obj)
|
| 94 |
+
except (OSError, TypeError):
|
| 95 |
+
# OSError is raised if obj has no source file, e.g. when defined in REPL.
|
| 96 |
+
pass
|
| 97 |
+
|
| 98 |
+
callable_name = Text(name, style="inspect.callable")
|
| 99 |
+
if source_filename:
|
| 100 |
+
callable_name.stylize(f"link file://{source_filename}")
|
| 101 |
+
signature_text = self.highlighter(_signature)
|
| 102 |
+
|
| 103 |
+
qualname = name or getattr(obj, "__qualname__", name)
|
| 104 |
+
|
| 105 |
+
# If obj is a module, there may be classes (which are callable) to display
|
| 106 |
+
if inspect.isclass(obj):
|
| 107 |
+
prefix = "class"
|
| 108 |
+
elif inspect.iscoroutinefunction(obj):
|
| 109 |
+
prefix = "async def"
|
| 110 |
+
else:
|
| 111 |
+
prefix = "def"
|
| 112 |
+
|
| 113 |
+
qual_signature = Text.assemble(
|
| 114 |
+
(f"{prefix} ", f"inspect.{prefix.replace(' ', '_')}"),
|
| 115 |
+
(qualname, "inspect.callable"),
|
| 116 |
+
signature_text,
|
| 117 |
+
)
|
| 118 |
+
|
| 119 |
+
return qual_signature
|
| 120 |
+
|
| 121 |
+
def _render(self) -> Iterable[RenderableType]:
|
| 122 |
+
"""Render object."""
|
| 123 |
+
|
| 124 |
+
def sort_items(item: Tuple[str, Any]) -> Tuple[bool, str]:
|
| 125 |
+
key, (_error, value) = item
|
| 126 |
+
return (callable(value), key.strip("_").lower())
|
| 127 |
+
|
| 128 |
+
def safe_getattr(attr_name: str) -> Tuple[Any, Any]:
|
| 129 |
+
"""Get attribute or any exception."""
|
| 130 |
+
try:
|
| 131 |
+
return (None, getattr(obj, attr_name))
|
| 132 |
+
except Exception as error:
|
| 133 |
+
return (error, None)
|
| 134 |
+
|
| 135 |
+
obj = self.obj
|
| 136 |
+
keys = dir(obj)
|
| 137 |
+
total_items = len(keys)
|
| 138 |
+
if not self.dunder:
|
| 139 |
+
keys = [key for key in keys if not key.startswith("__")]
|
| 140 |
+
if not self.private:
|
| 141 |
+
keys = [key for key in keys if not key.startswith("_")]
|
| 142 |
+
not_shown_count = total_items - len(keys)
|
| 143 |
+
items = [(key, safe_getattr(key)) for key in keys]
|
| 144 |
+
if self.sort:
|
| 145 |
+
items.sort(key=sort_items)
|
| 146 |
+
|
| 147 |
+
items_table = Table.grid(padding=(0, 1), expand=False)
|
| 148 |
+
items_table.add_column(justify="right")
|
| 149 |
+
add_row = items_table.add_row
|
| 150 |
+
highlighter = self.highlighter
|
| 151 |
+
|
| 152 |
+
if callable(obj):
|
| 153 |
+
signature = self._get_signature("", obj)
|
| 154 |
+
if signature is not None:
|
| 155 |
+
yield signature
|
| 156 |
+
yield ""
|
| 157 |
+
|
| 158 |
+
if self.docs:
|
| 159 |
+
_doc = self._get_formatted_doc(obj)
|
| 160 |
+
if _doc is not None:
|
| 161 |
+
doc_text = Text(_doc, style="inspect.help")
|
| 162 |
+
doc_text = highlighter(doc_text)
|
| 163 |
+
yield doc_text
|
| 164 |
+
yield ""
|
| 165 |
+
|
| 166 |
+
if self.value and not (isclass(obj) or callable(obj) or ismodule(obj)):
|
| 167 |
+
yield Panel(
|
| 168 |
+
Pretty(obj, indent_guides=True, max_length=10, max_string=60),
|
| 169 |
+
border_style="inspect.value.border",
|
| 170 |
+
)
|
| 171 |
+
yield ""
|
| 172 |
+
|
| 173 |
+
for key, (error, value) in items:
|
| 174 |
+
key_text = Text.assemble(
|
| 175 |
+
(
|
| 176 |
+
key,
|
| 177 |
+
"inspect.attr.dunder" if key.startswith("__") else "inspect.attr",
|
| 178 |
+
),
|
| 179 |
+
(" =", "inspect.equals"),
|
| 180 |
+
)
|
| 181 |
+
if error is not None:
|
| 182 |
+
warning = key_text.copy()
|
| 183 |
+
warning.stylize("inspect.error")
|
| 184 |
+
add_row(warning, highlighter(repr(error)))
|
| 185 |
+
continue
|
| 186 |
+
|
| 187 |
+
if callable(value):
|
| 188 |
+
if not self.methods:
|
| 189 |
+
continue
|
| 190 |
+
|
| 191 |
+
_signature_text = self._get_signature(key, value)
|
| 192 |
+
if _signature_text is None:
|
| 193 |
+
add_row(key_text, Pretty(value, highlighter=highlighter))
|
| 194 |
+
else:
|
| 195 |
+
if self.docs:
|
| 196 |
+
docs = self._get_formatted_doc(value)
|
| 197 |
+
if docs is not None:
|
| 198 |
+
_signature_text.append("\n" if "\n" in docs else " ")
|
| 199 |
+
doc = highlighter(docs)
|
| 200 |
+
doc.stylize("inspect.doc")
|
| 201 |
+
_signature_text.append(doc)
|
| 202 |
+
|
| 203 |
+
add_row(key_text, _signature_text)
|
| 204 |
+
else:
|
| 205 |
+
add_row(key_text, Pretty(value, highlighter=highlighter))
|
| 206 |
+
if items_table.row_count:
|
| 207 |
+
yield items_table
|
| 208 |
+
elif not_shown_count:
|
| 209 |
+
yield Text.from_markup(
|
| 210 |
+
f"[b cyan]{not_shown_count}[/][i] attribute(s) not shown.[/i] "
|
| 211 |
+
f"Run [b][magenta]inspect[/]([not b]inspect[/])[/b] for options."
|
| 212 |
+
)
|
| 213 |
+
|
| 214 |
+
def _get_formatted_doc(self, object_: Any) -> Optional[str]:
|
| 215 |
+
"""
|
| 216 |
+
Extract the docstring of an object, process it and returns it.
|
| 217 |
+
The processing consists in cleaning up the docstring's indentation,
|
| 218 |
+
taking only its 1st paragraph if `self.help` is not True,
|
| 219 |
+
and escape its control codes.
|
| 220 |
+
|
| 221 |
+
Args:
|
| 222 |
+
object_ (Any): the object to get the docstring from.
|
| 223 |
+
|
| 224 |
+
Returns:
|
| 225 |
+
Optional[str]: the processed docstring, or None if no docstring was found.
|
| 226 |
+
"""
|
| 227 |
+
docs = getdoc(object_)
|
| 228 |
+
if docs is None:
|
| 229 |
+
return None
|
| 230 |
+
docs = cleandoc(docs).strip()
|
| 231 |
+
if not self.help:
|
| 232 |
+
docs = _first_paragraph(docs)
|
| 233 |
+
return escape_control_codes(docs)
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
def get_object_types_mro(obj: Union[object, Type[Any]]) -> Tuple[type, ...]:
|
| 237 |
+
"""Returns the MRO of an object's class, or of the object itself if it's a class."""
|
| 238 |
+
if not hasattr(obj, "__mro__"):
|
| 239 |
+
# N.B. we cannot use `if type(obj) is type` here because it doesn't work with
|
| 240 |
+
# some types of classes, such as the ones that use abc.ABCMeta.
|
| 241 |
+
obj = type(obj)
|
| 242 |
+
return getattr(obj, "__mro__", ())
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
def get_object_types_mro_as_strings(obj: object) -> Collection[str]:
|
| 246 |
+
"""
|
| 247 |
+
Returns the MRO of an object's class as full qualified names, or of the object itself if it's a class.
|
| 248 |
+
|
| 249 |
+
Examples:
|
| 250 |
+
`object_types_mro_as_strings(JSONDecoder)` will return `['json.decoder.JSONDecoder', 'builtins.object']`
|
| 251 |
+
"""
|
| 252 |
+
return [
|
| 253 |
+
f'{getattr(type_, "__module__", "")}.{getattr(type_, "__qualname__", "")}'
|
| 254 |
+
for type_ in get_object_types_mro(obj)
|
| 255 |
+
]
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
def is_object_one_of_types(
|
| 259 |
+
obj: object, fully_qualified_types_names: Collection[str]
|
| 260 |
+
) -> bool:
|
| 261 |
+
"""
|
| 262 |
+
Returns `True` if the given object's class (or the object itself, if it's a class) has one of the
|
| 263 |
+
fully qualified names in its MRO.
|
| 264 |
+
"""
|
| 265 |
+
for type_name in get_object_types_mro_as_strings(obj):
|
| 266 |
+
if type_name in fully_qualified_types_names:
|
| 267 |
+
return True
|
| 268 |
+
return False
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_palettes.py
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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4 |
+
# Taken from https://en.wikipedia.org/wiki/ANSI_escape_code (Windows 10 column)
|
| 5 |
+
WINDOWS_PALETTE = Palette(
|
| 6 |
+
[
|
| 7 |
+
(12, 12, 12),
|
| 8 |
+
(197, 15, 31),
|
| 9 |
+
(19, 161, 14),
|
| 10 |
+
(193, 156, 0),
|
| 11 |
+
(0, 55, 218),
|
| 12 |
+
(136, 23, 152),
|
| 13 |
+
(58, 150, 221),
|
| 14 |
+
(204, 204, 204),
|
| 15 |
+
(118, 118, 118),
|
| 16 |
+
(231, 72, 86),
|
| 17 |
+
(22, 198, 12),
|
| 18 |
+
(249, 241, 165),
|
| 19 |
+
(59, 120, 255),
|
| 20 |
+
(180, 0, 158),
|
| 21 |
+
(97, 214, 214),
|
| 22 |
+
(242, 242, 242),
|
| 23 |
+
]
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
# # The standard ansi colors (including bright variants)
|
| 27 |
+
STANDARD_PALETTE = Palette(
|
| 28 |
+
[
|
| 29 |
+
(0, 0, 0),
|
| 30 |
+
(170, 0, 0),
|
| 31 |
+
(0, 170, 0),
|
| 32 |
+
(170, 85, 0),
|
| 33 |
+
(0, 0, 170),
|
| 34 |
+
(170, 0, 170),
|
| 35 |
+
(0, 170, 170),
|
| 36 |
+
(170, 170, 170),
|
| 37 |
+
(85, 85, 85),
|
| 38 |
+
(255, 85, 85),
|
| 39 |
+
(85, 255, 85),
|
| 40 |
+
(255, 255, 85),
|
| 41 |
+
(85, 85, 255),
|
| 42 |
+
(255, 85, 255),
|
| 43 |
+
(85, 255, 255),
|
| 44 |
+
(255, 255, 255),
|
| 45 |
+
]
|
| 46 |
+
)
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
# The 256 color palette
|
| 50 |
+
EIGHT_BIT_PALETTE = Palette(
|
| 51 |
+
[
|
| 52 |
+
(0, 0, 0),
|
| 53 |
+
(128, 0, 0),
|
| 54 |
+
(0, 128, 0),
|
| 55 |
+
(128, 128, 0),
|
| 56 |
+
(0, 0, 128),
|
| 57 |
+
(128, 0, 128),
|
| 58 |
+
(0, 128, 128),
|
| 59 |
+
(192, 192, 192),
|
| 60 |
+
(128, 128, 128),
|
| 61 |
+
(255, 0, 0),
|
| 62 |
+
(0, 255, 0),
|
| 63 |
+
(255, 255, 0),
|
| 64 |
+
(0, 0, 255),
|
| 65 |
+
(255, 0, 255),
|
| 66 |
+
(0, 255, 255),
|
| 67 |
+
(255, 255, 255),
|
| 68 |
+
(0, 0, 0),
|
| 69 |
+
(0, 0, 95),
|
| 70 |
+
(0, 0, 135),
|
| 71 |
+
(0, 0, 175),
|
| 72 |
+
(0, 0, 215),
|
| 73 |
+
(0, 0, 255),
|
| 74 |
+
(0, 95, 0),
|
| 75 |
+
(0, 95, 95),
|
| 76 |
+
(0, 95, 135),
|
| 77 |
+
(0, 95, 175),
|
| 78 |
+
(0, 95, 215),
|
| 79 |
+
(0, 95, 255),
|
| 80 |
+
(0, 135, 0),
|
| 81 |
+
(0, 135, 95),
|
| 82 |
+
(0, 135, 135),
|
| 83 |
+
(0, 135, 175),
|
| 84 |
+
(0, 135, 215),
|
| 85 |
+
(0, 135, 255),
|
| 86 |
+
(0, 175, 0),
|
| 87 |
+
(0, 175, 95),
|
| 88 |
+
(0, 175, 135),
|
| 89 |
+
(0, 175, 175),
|
| 90 |
+
(0, 175, 215),
|
| 91 |
+
(0, 175, 255),
|
| 92 |
+
(0, 215, 0),
|
| 93 |
+
(0, 215, 95),
|
| 94 |
+
(0, 215, 135),
|
| 95 |
+
(0, 215, 175),
|
| 96 |
+
(0, 215, 215),
|
| 97 |
+
(0, 215, 255),
|
| 98 |
+
(0, 255, 0),
|
| 99 |
+
(0, 255, 95),
|
| 100 |
+
(0, 255, 135),
|
| 101 |
+
(0, 255, 175),
|
| 102 |
+
(0, 255, 215),
|
| 103 |
+
(0, 255, 255),
|
| 104 |
+
(95, 0, 0),
|
| 105 |
+
(95, 0, 95),
|
| 106 |
+
(95, 0, 135),
|
| 107 |
+
(95, 0, 175),
|
| 108 |
+
(95, 0, 215),
|
| 109 |
+
(95, 0, 255),
|
| 110 |
+
(95, 95, 0),
|
| 111 |
+
(95, 95, 95),
|
| 112 |
+
(95, 95, 135),
|
| 113 |
+
(95, 95, 175),
|
| 114 |
+
(95, 95, 215),
|
| 115 |
+
(95, 95, 255),
|
| 116 |
+
(95, 135, 0),
|
| 117 |
+
(95, 135, 95),
|
| 118 |
+
(95, 135, 135),
|
| 119 |
+
(95, 135, 175),
|
| 120 |
+
(95, 135, 215),
|
| 121 |
+
(95, 135, 255),
|
| 122 |
+
(95, 175, 0),
|
| 123 |
+
(95, 175, 95),
|
| 124 |
+
(95, 175, 135),
|
| 125 |
+
(95, 175, 175),
|
| 126 |
+
(95, 175, 215),
|
| 127 |
+
(95, 175, 255),
|
| 128 |
+
(95, 215, 0),
|
| 129 |
+
(95, 215, 95),
|
| 130 |
+
(95, 215, 135),
|
| 131 |
+
(95, 215, 175),
|
| 132 |
+
(95, 215, 215),
|
| 133 |
+
(95, 215, 255),
|
| 134 |
+
(95, 255, 0),
|
| 135 |
+
(95, 255, 95),
|
| 136 |
+
(95, 255, 135),
|
| 137 |
+
(95, 255, 175),
|
| 138 |
+
(95, 255, 215),
|
| 139 |
+
(95, 255, 255),
|
| 140 |
+
(135, 0, 0),
|
| 141 |
+
(135, 0, 95),
|
| 142 |
+
(135, 0, 135),
|
| 143 |
+
(135, 0, 175),
|
| 144 |
+
(135, 0, 215),
|
| 145 |
+
(135, 0, 255),
|
| 146 |
+
(135, 95, 0),
|
| 147 |
+
(135, 95, 95),
|
| 148 |
+
(135, 95, 135),
|
| 149 |
+
(135, 95, 175),
|
| 150 |
+
(135, 95, 215),
|
| 151 |
+
(135, 95, 255),
|
| 152 |
+
(135, 135, 0),
|
| 153 |
+
(135, 135, 95),
|
| 154 |
+
(135, 135, 135),
|
| 155 |
+
(135, 135, 175),
|
| 156 |
+
(135, 135, 215),
|
| 157 |
+
(135, 135, 255),
|
| 158 |
+
(135, 175, 0),
|
| 159 |
+
(135, 175, 95),
|
| 160 |
+
(135, 175, 135),
|
| 161 |
+
(135, 175, 175),
|
| 162 |
+
(135, 175, 215),
|
| 163 |
+
(135, 175, 255),
|
| 164 |
+
(135, 215, 0),
|
| 165 |
+
(135, 215, 95),
|
| 166 |
+
(135, 215, 135),
|
| 167 |
+
(135, 215, 175),
|
| 168 |
+
(135, 215, 215),
|
| 169 |
+
(135, 215, 255),
|
| 170 |
+
(135, 255, 0),
|
| 171 |
+
(135, 255, 95),
|
| 172 |
+
(135, 255, 135),
|
| 173 |
+
(135, 255, 175),
|
| 174 |
+
(135, 255, 215),
|
| 175 |
+
(135, 255, 255),
|
| 176 |
+
(175, 0, 0),
|
| 177 |
+
(175, 0, 95),
|
| 178 |
+
(175, 0, 135),
|
| 179 |
+
(175, 0, 175),
|
| 180 |
+
(175, 0, 215),
|
| 181 |
+
(175, 0, 255),
|
| 182 |
+
(175, 95, 0),
|
| 183 |
+
(175, 95, 95),
|
| 184 |
+
(175, 95, 135),
|
| 185 |
+
(175, 95, 175),
|
| 186 |
+
(175, 95, 215),
|
| 187 |
+
(175, 95, 255),
|
| 188 |
+
(175, 135, 0),
|
| 189 |
+
(175, 135, 95),
|
| 190 |
+
(175, 135, 135),
|
| 191 |
+
(175, 135, 175),
|
| 192 |
+
(175, 135, 215),
|
| 193 |
+
(175, 135, 255),
|
| 194 |
+
(175, 175, 0),
|
| 195 |
+
(175, 175, 95),
|
| 196 |
+
(175, 175, 135),
|
| 197 |
+
(175, 175, 175),
|
| 198 |
+
(175, 175, 215),
|
| 199 |
+
(175, 175, 255),
|
| 200 |
+
(175, 215, 0),
|
| 201 |
+
(175, 215, 95),
|
| 202 |
+
(175, 215, 135),
|
| 203 |
+
(175, 215, 175),
|
| 204 |
+
(175, 215, 215),
|
| 205 |
+
(175, 215, 255),
|
| 206 |
+
(175, 255, 0),
|
| 207 |
+
(175, 255, 95),
|
| 208 |
+
(175, 255, 135),
|
| 209 |
+
(175, 255, 175),
|
| 210 |
+
(175, 255, 215),
|
| 211 |
+
(175, 255, 255),
|
| 212 |
+
(215, 0, 0),
|
| 213 |
+
(215, 0, 95),
|
| 214 |
+
(215, 0, 135),
|
| 215 |
+
(215, 0, 175),
|
| 216 |
+
(215, 0, 215),
|
| 217 |
+
(215, 0, 255),
|
| 218 |
+
(215, 95, 0),
|
| 219 |
+
(215, 95, 95),
|
| 220 |
+
(215, 95, 135),
|
| 221 |
+
(215, 95, 175),
|
| 222 |
+
(215, 95, 215),
|
| 223 |
+
(215, 95, 255),
|
| 224 |
+
(215, 135, 0),
|
| 225 |
+
(215, 135, 95),
|
| 226 |
+
(215, 135, 135),
|
| 227 |
+
(215, 135, 175),
|
| 228 |
+
(215, 135, 215),
|
| 229 |
+
(215, 135, 255),
|
| 230 |
+
(215, 175, 0),
|
| 231 |
+
(215, 175, 95),
|
| 232 |
+
(215, 175, 135),
|
| 233 |
+
(215, 175, 175),
|
| 234 |
+
(215, 175, 215),
|
| 235 |
+
(215, 175, 255),
|
| 236 |
+
(215, 215, 0),
|
| 237 |
+
(215, 215, 95),
|
| 238 |
+
(215, 215, 135),
|
| 239 |
+
(215, 215, 175),
|
| 240 |
+
(215, 215, 215),
|
| 241 |
+
(215, 215, 255),
|
| 242 |
+
(215, 255, 0),
|
| 243 |
+
(215, 255, 95),
|
| 244 |
+
(215, 255, 135),
|
| 245 |
+
(215, 255, 175),
|
| 246 |
+
(215, 255, 215),
|
| 247 |
+
(215, 255, 255),
|
| 248 |
+
(255, 0, 0),
|
| 249 |
+
(255, 0, 95),
|
| 250 |
+
(255, 0, 135),
|
| 251 |
+
(255, 0, 175),
|
| 252 |
+
(255, 0, 215),
|
| 253 |
+
(255, 0, 255),
|
| 254 |
+
(255, 95, 0),
|
| 255 |
+
(255, 95, 95),
|
| 256 |
+
(255, 95, 135),
|
| 257 |
+
(255, 95, 175),
|
| 258 |
+
(255, 95, 215),
|
| 259 |
+
(255, 95, 255),
|
| 260 |
+
(255, 135, 0),
|
| 261 |
+
(255, 135, 95),
|
| 262 |
+
(255, 135, 135),
|
| 263 |
+
(255, 135, 175),
|
| 264 |
+
(255, 135, 215),
|
| 265 |
+
(255, 135, 255),
|
| 266 |
+
(255, 175, 0),
|
| 267 |
+
(255, 175, 95),
|
| 268 |
+
(255, 175, 135),
|
| 269 |
+
(255, 175, 175),
|
| 270 |
+
(255, 175, 215),
|
| 271 |
+
(255, 175, 255),
|
| 272 |
+
(255, 215, 0),
|
| 273 |
+
(255, 215, 95),
|
| 274 |
+
(255, 215, 135),
|
| 275 |
+
(255, 215, 175),
|
| 276 |
+
(255, 215, 215),
|
| 277 |
+
(255, 215, 255),
|
| 278 |
+
(255, 255, 0),
|
| 279 |
+
(255, 255, 95),
|
| 280 |
+
(255, 255, 135),
|
| 281 |
+
(255, 255, 175),
|
| 282 |
+
(255, 255, 215),
|
| 283 |
+
(255, 255, 255),
|
| 284 |
+
(8, 8, 8),
|
| 285 |
+
(18, 18, 18),
|
| 286 |
+
(28, 28, 28),
|
| 287 |
+
(38, 38, 38),
|
| 288 |
+
(48, 48, 48),
|
| 289 |
+
(58, 58, 58),
|
| 290 |
+
(68, 68, 68),
|
| 291 |
+
(78, 78, 78),
|
| 292 |
+
(88, 88, 88),
|
| 293 |
+
(98, 98, 98),
|
| 294 |
+
(108, 108, 108),
|
| 295 |
+
(118, 118, 118),
|
| 296 |
+
(128, 128, 128),
|
| 297 |
+
(138, 138, 138),
|
| 298 |
+
(148, 148, 148),
|
| 299 |
+
(158, 158, 158),
|
| 300 |
+
(168, 168, 168),
|
| 301 |
+
(178, 178, 178),
|
| 302 |
+
(188, 188, 188),
|
| 303 |
+
(198, 198, 198),
|
| 304 |
+
(208, 208, 208),
|
| 305 |
+
(218, 218, 218),
|
| 306 |
+
(228, 228, 228),
|
| 307 |
+
(238, 238, 238),
|
| 308 |
+
]
|
| 309 |
+
)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def pick_bool(*values: Optional[bool]) -> bool:
|
| 5 |
+
"""Pick the first non-none bool or return the last value.
|
| 6 |
+
|
| 7 |
+
Args:
|
| 8 |
+
*values (bool): Any number of boolean or None values.
|
| 9 |
+
|
| 10 |
+
Returns:
|
| 11 |
+
bool: First non-none boolean.
|
| 12 |
+
"""
|
| 13 |
+
assert values, "1 or more values required"
|
| 14 |
+
for value in values:
|
| 15 |
+
if value is not None:
|
| 16 |
+
return value
|
| 17 |
+
return bool(value)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/_stack.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, TypeVar
|
| 2 |
+
|
| 3 |
+
T = TypeVar("T")
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class Stack(List[T]):
|
| 7 |
+
"""A small shim over builtin list."""
|
| 8 |
+
|
| 9 |
+
@property
|
| 10 |
+
def top(self) -> T:
|
| 11 |
+
"""Get top of stack."""
|
| 12 |
+
return self[-1]
|
| 13 |
+
|
| 14 |
+
def push(self, item: T) -> None:
|
| 15 |
+
"""Push an item on to the stack (append in stack nomenclature)."""
|
| 16 |
+
self.append(item)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/ansi.py
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import re
|
| 2 |
+
import sys
|
| 3 |
+
from contextlib import suppress
|
| 4 |
+
from typing import Iterable, NamedTuple, Optional
|
| 5 |
+
|
| 6 |
+
from .color import Color
|
| 7 |
+
from .style import Style
|
| 8 |
+
from .text import Text
|
| 9 |
+
|
| 10 |
+
re_ansi = re.compile(
|
| 11 |
+
r"""
|
| 12 |
+
(?:\x1b[0-?])|
|
| 13 |
+
(?:\x1b\](.*?)\x1b\\)|
|
| 14 |
+
(?:\x1b([(@-Z\\-_]|\[[0-?]*[ -/]*[@-~]))
|
| 15 |
+
""",
|
| 16 |
+
re.VERBOSE,
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class _AnsiToken(NamedTuple):
|
| 21 |
+
"""Result of ansi tokenized string."""
|
| 22 |
+
|
| 23 |
+
plain: str = ""
|
| 24 |
+
sgr: Optional[str] = ""
|
| 25 |
+
osc: Optional[str] = ""
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def _ansi_tokenize(ansi_text: str) -> Iterable[_AnsiToken]:
|
| 29 |
+
"""Tokenize a string in to plain text and ANSI codes.
|
| 30 |
+
|
| 31 |
+
Args:
|
| 32 |
+
ansi_text (str): A String containing ANSI codes.
|
| 33 |
+
|
| 34 |
+
Yields:
|
| 35 |
+
AnsiToken: A named tuple of (plain, sgr, osc)
|
| 36 |
+
"""
|
| 37 |
+
|
| 38 |
+
position = 0
|
| 39 |
+
sgr: Optional[str]
|
| 40 |
+
osc: Optional[str]
|
| 41 |
+
for match in re_ansi.finditer(ansi_text):
|
| 42 |
+
start, end = match.span(0)
|
| 43 |
+
osc, sgr = match.groups()
|
| 44 |
+
if start > position:
|
| 45 |
+
yield _AnsiToken(ansi_text[position:start])
|
| 46 |
+
if sgr:
|
| 47 |
+
if sgr == "(":
|
| 48 |
+
position = end + 1
|
| 49 |
+
continue
|
| 50 |
+
if sgr.endswith("m"):
|
| 51 |
+
yield _AnsiToken("", sgr[1:-1], osc)
|
| 52 |
+
else:
|
| 53 |
+
yield _AnsiToken("", sgr, osc)
|
| 54 |
+
position = end
|
| 55 |
+
if position < len(ansi_text):
|
| 56 |
+
yield _AnsiToken(ansi_text[position:])
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
SGR_STYLE_MAP = {
|
| 60 |
+
1: "bold",
|
| 61 |
+
2: "dim",
|
| 62 |
+
3: "italic",
|
| 63 |
+
4: "underline",
|
| 64 |
+
5: "blink",
|
| 65 |
+
6: "blink2",
|
| 66 |
+
7: "reverse",
|
| 67 |
+
8: "conceal",
|
| 68 |
+
9: "strike",
|
| 69 |
+
21: "underline2",
|
| 70 |
+
22: "not dim not bold",
|
| 71 |
+
23: "not italic",
|
| 72 |
+
24: "not underline",
|
| 73 |
+
25: "not blink",
|
| 74 |
+
26: "not blink2",
|
| 75 |
+
27: "not reverse",
|
| 76 |
+
28: "not conceal",
|
| 77 |
+
29: "not strike",
|
| 78 |
+
30: "color(0)",
|
| 79 |
+
31: "color(1)",
|
| 80 |
+
32: "color(2)",
|
| 81 |
+
33: "color(3)",
|
| 82 |
+
34: "color(4)",
|
| 83 |
+
35: "color(5)",
|
| 84 |
+
36: "color(6)",
|
| 85 |
+
37: "color(7)",
|
| 86 |
+
39: "default",
|
| 87 |
+
40: "on color(0)",
|
| 88 |
+
41: "on color(1)",
|
| 89 |
+
42: "on color(2)",
|
| 90 |
+
43: "on color(3)",
|
| 91 |
+
44: "on color(4)",
|
| 92 |
+
45: "on color(5)",
|
| 93 |
+
46: "on color(6)",
|
| 94 |
+
47: "on color(7)",
|
| 95 |
+
49: "on default",
|
| 96 |
+
51: "frame",
|
| 97 |
+
52: "encircle",
|
| 98 |
+
53: "overline",
|
| 99 |
+
54: "not frame not encircle",
|
| 100 |
+
55: "not overline",
|
| 101 |
+
90: "color(8)",
|
| 102 |
+
91: "color(9)",
|
| 103 |
+
92: "color(10)",
|
| 104 |
+
93: "color(11)",
|
| 105 |
+
94: "color(12)",
|
| 106 |
+
95: "color(13)",
|
| 107 |
+
96: "color(14)",
|
| 108 |
+
97: "color(15)",
|
| 109 |
+
100: "on color(8)",
|
| 110 |
+
101: "on color(9)",
|
| 111 |
+
102: "on color(10)",
|
| 112 |
+
103: "on color(11)",
|
| 113 |
+
104: "on color(12)",
|
| 114 |
+
105: "on color(13)",
|
| 115 |
+
106: "on color(14)",
|
| 116 |
+
107: "on color(15)",
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
class AnsiDecoder:
|
| 121 |
+
"""Translate ANSI code in to styled Text."""
|
| 122 |
+
|
| 123 |
+
def __init__(self) -> None:
|
| 124 |
+
self.style = Style.null()
|
| 125 |
+
|
| 126 |
+
def decode(self, terminal_text: str) -> Iterable[Text]:
|
| 127 |
+
"""Decode ANSI codes in an iterable of lines.
|
| 128 |
+
|
| 129 |
+
Args:
|
| 130 |
+
lines (Iterable[str]): An iterable of lines of terminal output.
|
| 131 |
+
|
| 132 |
+
Yields:
|
| 133 |
+
Text: Marked up Text.
|
| 134 |
+
"""
|
| 135 |
+
for line in terminal_text.splitlines():
|
| 136 |
+
yield self.decode_line(line)
|
| 137 |
+
|
| 138 |
+
def decode_line(self, line: str) -> Text:
|
| 139 |
+
"""Decode a line containing ansi codes.
|
| 140 |
+
|
| 141 |
+
Args:
|
| 142 |
+
line (str): A line of terminal output.
|
| 143 |
+
|
| 144 |
+
Returns:
|
| 145 |
+
Text: A Text instance marked up according to ansi codes.
|
| 146 |
+
"""
|
| 147 |
+
from_ansi = Color.from_ansi
|
| 148 |
+
from_rgb = Color.from_rgb
|
| 149 |
+
_Style = Style
|
| 150 |
+
text = Text()
|
| 151 |
+
append = text.append
|
| 152 |
+
line = line.rsplit("\r", 1)[-1]
|
| 153 |
+
for plain_text, sgr, osc in _ansi_tokenize(line):
|
| 154 |
+
if plain_text:
|
| 155 |
+
append(plain_text, self.style or None)
|
| 156 |
+
elif osc is not None:
|
| 157 |
+
if osc.startswith("8;"):
|
| 158 |
+
_params, semicolon, link = osc[2:].partition(";")
|
| 159 |
+
if semicolon:
|
| 160 |
+
self.style = self.style.update_link(link or None)
|
| 161 |
+
elif sgr is not None:
|
| 162 |
+
# Translate in to semi-colon separated codes
|
| 163 |
+
# Ignore invalid codes, because we want to be lenient
|
| 164 |
+
codes = [
|
| 165 |
+
min(255, int(_code) if _code else 0)
|
| 166 |
+
for _code in sgr.split(";")
|
| 167 |
+
if _code.isdigit() or _code == ""
|
| 168 |
+
]
|
| 169 |
+
iter_codes = iter(codes)
|
| 170 |
+
for code in iter_codes:
|
| 171 |
+
if code == 0:
|
| 172 |
+
# reset
|
| 173 |
+
self.style = _Style.null()
|
| 174 |
+
elif code in SGR_STYLE_MAP:
|
| 175 |
+
# styles
|
| 176 |
+
self.style += _Style.parse(SGR_STYLE_MAP[code])
|
| 177 |
+
elif code == 38:
|
| 178 |
+
# Foreground
|
| 179 |
+
with suppress(StopIteration):
|
| 180 |
+
color_type = next(iter_codes)
|
| 181 |
+
if color_type == 5:
|
| 182 |
+
self.style += _Style.from_color(
|
| 183 |
+
from_ansi(next(iter_codes))
|
| 184 |
+
)
|
| 185 |
+
elif color_type == 2:
|
| 186 |
+
self.style += _Style.from_color(
|
| 187 |
+
from_rgb(
|
| 188 |
+
next(iter_codes),
|
| 189 |
+
next(iter_codes),
|
| 190 |
+
next(iter_codes),
|
| 191 |
+
)
|
| 192 |
+
)
|
| 193 |
+
elif code == 48:
|
| 194 |
+
# Background
|
| 195 |
+
with suppress(StopIteration):
|
| 196 |
+
color_type = next(iter_codes)
|
| 197 |
+
if color_type == 5:
|
| 198 |
+
self.style += _Style.from_color(
|
| 199 |
+
None, from_ansi(next(iter_codes))
|
| 200 |
+
)
|
| 201 |
+
elif color_type == 2:
|
| 202 |
+
self.style += _Style.from_color(
|
| 203 |
+
None,
|
| 204 |
+
from_rgb(
|
| 205 |
+
next(iter_codes),
|
| 206 |
+
next(iter_codes),
|
| 207 |
+
next(iter_codes),
|
| 208 |
+
),
|
| 209 |
+
)
|
| 210 |
+
|
| 211 |
+
return text
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
if sys.platform != "win32" and __name__ == "__main__": # pragma: no cover
|
| 215 |
+
import io
|
| 216 |
+
import os
|
| 217 |
+
import pty
|
| 218 |
+
import sys
|
| 219 |
+
|
| 220 |
+
decoder = AnsiDecoder()
|
| 221 |
+
|
| 222 |
+
stdout = io.BytesIO()
|
| 223 |
+
|
| 224 |
+
def read(fd: int) -> bytes:
|
| 225 |
+
data = os.read(fd, 1024)
|
| 226 |
+
stdout.write(data)
|
| 227 |
+
return data
|
| 228 |
+
|
| 229 |
+
pty.spawn(sys.argv[1:], read)
|
| 230 |
+
|
| 231 |
+
from .console import Console
|
| 232 |
+
|
| 233 |
+
console = Console(record=True)
|
| 234 |
+
|
| 235 |
+
stdout_result = stdout.getvalue().decode("utf-8")
|
| 236 |
+
print(stdout_result)
|
| 237 |
+
|
| 238 |
+
for line in decoder.decode(stdout_result):
|
| 239 |
+
console.print(line)
|
| 240 |
+
|
| 241 |
+
console.save_html("stdout.html")
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/box.py
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import TYPE_CHECKING, Iterable, List, Literal
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
from ._loop import loop_last
|
| 5 |
+
|
| 6 |
+
if TYPE_CHECKING:
|
| 7 |
+
from pip._vendor.rich.console import ConsoleOptions
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
class Box:
|
| 11 |
+
"""Defines characters to render boxes.
|
| 12 |
+
|
| 13 |
+
┌─┬┐ top
|
| 14 |
+
│ ││ head
|
| 15 |
+
├─┼┤ head_row
|
| 16 |
+
│ ││ mid
|
| 17 |
+
├─┼┤ row
|
| 18 |
+
├─┼┤ foot_row
|
| 19 |
+
│ ││ foot
|
| 20 |
+
└─┴┘ bottom
|
| 21 |
+
|
| 22 |
+
Args:
|
| 23 |
+
box (str): Characters making up box.
|
| 24 |
+
ascii (bool, optional): True if this box uses ascii characters only. Default is False.
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
def __init__(self, box: str, *, ascii: bool = False) -> None:
|
| 28 |
+
self._box = box
|
| 29 |
+
self.ascii = ascii
|
| 30 |
+
line1, line2, line3, line4, line5, line6, line7, line8 = box.splitlines()
|
| 31 |
+
# top
|
| 32 |
+
self.top_left, self.top, self.top_divider, self.top_right = iter(line1)
|
| 33 |
+
# head
|
| 34 |
+
self.head_left, _, self.head_vertical, self.head_right = iter(line2)
|
| 35 |
+
# head_row
|
| 36 |
+
(
|
| 37 |
+
self.head_row_left,
|
| 38 |
+
self.head_row_horizontal,
|
| 39 |
+
self.head_row_cross,
|
| 40 |
+
self.head_row_right,
|
| 41 |
+
) = iter(line3)
|
| 42 |
+
|
| 43 |
+
# mid
|
| 44 |
+
self.mid_left, _, self.mid_vertical, self.mid_right = iter(line4)
|
| 45 |
+
# row
|
| 46 |
+
self.row_left, self.row_horizontal, self.row_cross, self.row_right = iter(line5)
|
| 47 |
+
# foot_row
|
| 48 |
+
(
|
| 49 |
+
self.foot_row_left,
|
| 50 |
+
self.foot_row_horizontal,
|
| 51 |
+
self.foot_row_cross,
|
| 52 |
+
self.foot_row_right,
|
| 53 |
+
) = iter(line6)
|
| 54 |
+
# foot
|
| 55 |
+
self.foot_left, _, self.foot_vertical, self.foot_right = iter(line7)
|
| 56 |
+
# bottom
|
| 57 |
+
self.bottom_left, self.bottom, self.bottom_divider, self.bottom_right = iter(
|
| 58 |
+
line8
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
def __repr__(self) -> str:
|
| 62 |
+
return "Box(...)"
|
| 63 |
+
|
| 64 |
+
def __str__(self) -> str:
|
| 65 |
+
return self._box
|
| 66 |
+
|
| 67 |
+
def substitute(self, options: "ConsoleOptions", safe: bool = True) -> "Box":
|
| 68 |
+
"""Substitute this box for another if it won't render due to platform issues.
|
| 69 |
+
|
| 70 |
+
Args:
|
| 71 |
+
options (ConsoleOptions): Console options used in rendering.
|
| 72 |
+
safe (bool, optional): Substitute this for another Box if there are known problems
|
| 73 |
+
displaying on the platform (currently only relevant on Windows). Default is True.
|
| 74 |
+
|
| 75 |
+
Returns:
|
| 76 |
+
Box: A different Box or the same Box.
|
| 77 |
+
"""
|
| 78 |
+
box = self
|
| 79 |
+
if options.legacy_windows and safe:
|
| 80 |
+
box = LEGACY_WINDOWS_SUBSTITUTIONS.get(box, box)
|
| 81 |
+
if options.ascii_only and not box.ascii:
|
| 82 |
+
box = ASCII
|
| 83 |
+
return box
|
| 84 |
+
|
| 85 |
+
def get_plain_headed_box(self) -> "Box":
|
| 86 |
+
"""If this box uses special characters for the borders of the header, then
|
| 87 |
+
return the equivalent box that does not.
|
| 88 |
+
|
| 89 |
+
Returns:
|
| 90 |
+
Box: The most similar Box that doesn't use header-specific box characters.
|
| 91 |
+
If the current Box already satisfies this criterion, then it's returned.
|
| 92 |
+
"""
|
| 93 |
+
return PLAIN_HEADED_SUBSTITUTIONS.get(self, self)
|
| 94 |
+
|
| 95 |
+
def get_top(self, widths: Iterable[int]) -> str:
|
| 96 |
+
"""Get the top of a simple box.
|
| 97 |
+
|
| 98 |
+
Args:
|
| 99 |
+
widths (List[int]): Widths of columns.
|
| 100 |
+
|
| 101 |
+
Returns:
|
| 102 |
+
str: A string of box characters.
|
| 103 |
+
"""
|
| 104 |
+
|
| 105 |
+
parts: List[str] = []
|
| 106 |
+
append = parts.append
|
| 107 |
+
append(self.top_left)
|
| 108 |
+
for last, width in loop_last(widths):
|
| 109 |
+
append(self.top * width)
|
| 110 |
+
if not last:
|
| 111 |
+
append(self.top_divider)
|
| 112 |
+
append(self.top_right)
|
| 113 |
+
return "".join(parts)
|
| 114 |
+
|
| 115 |
+
def get_row(
|
| 116 |
+
self,
|
| 117 |
+
widths: Iterable[int],
|
| 118 |
+
level: Literal["head", "row", "foot", "mid"] = "row",
|
| 119 |
+
edge: bool = True,
|
| 120 |
+
) -> str:
|
| 121 |
+
"""Get the top of a simple box.
|
| 122 |
+
|
| 123 |
+
Args:
|
| 124 |
+
width (List[int]): Widths of columns.
|
| 125 |
+
|
| 126 |
+
Returns:
|
| 127 |
+
str: A string of box characters.
|
| 128 |
+
"""
|
| 129 |
+
if level == "head":
|
| 130 |
+
left = self.head_row_left
|
| 131 |
+
horizontal = self.head_row_horizontal
|
| 132 |
+
cross = self.head_row_cross
|
| 133 |
+
right = self.head_row_right
|
| 134 |
+
elif level == "row":
|
| 135 |
+
left = self.row_left
|
| 136 |
+
horizontal = self.row_horizontal
|
| 137 |
+
cross = self.row_cross
|
| 138 |
+
right = self.row_right
|
| 139 |
+
elif level == "mid":
|
| 140 |
+
left = self.mid_left
|
| 141 |
+
horizontal = " "
|
| 142 |
+
cross = self.mid_vertical
|
| 143 |
+
right = self.mid_right
|
| 144 |
+
elif level == "foot":
|
| 145 |
+
left = self.foot_row_left
|
| 146 |
+
horizontal = self.foot_row_horizontal
|
| 147 |
+
cross = self.foot_row_cross
|
| 148 |
+
right = self.foot_row_right
|
| 149 |
+
else:
|
| 150 |
+
raise ValueError("level must be 'head', 'row' or 'foot'")
|
| 151 |
+
|
| 152 |
+
parts: List[str] = []
|
| 153 |
+
append = parts.append
|
| 154 |
+
if edge:
|
| 155 |
+
append(left)
|
| 156 |
+
for last, width in loop_last(widths):
|
| 157 |
+
append(horizontal * width)
|
| 158 |
+
if not last:
|
| 159 |
+
append(cross)
|
| 160 |
+
if edge:
|
| 161 |
+
append(right)
|
| 162 |
+
return "".join(parts)
|
| 163 |
+
|
| 164 |
+
def get_bottom(self, widths: Iterable[int]) -> str:
|
| 165 |
+
"""Get the bottom of a simple box.
|
| 166 |
+
|
| 167 |
+
Args:
|
| 168 |
+
widths (List[int]): Widths of columns.
|
| 169 |
+
|
| 170 |
+
Returns:
|
| 171 |
+
str: A string of box characters.
|
| 172 |
+
"""
|
| 173 |
+
|
| 174 |
+
parts: List[str] = []
|
| 175 |
+
append = parts.append
|
| 176 |
+
append(self.bottom_left)
|
| 177 |
+
for last, width in loop_last(widths):
|
| 178 |
+
append(self.bottom * width)
|
| 179 |
+
if not last:
|
| 180 |
+
append(self.bottom_divider)
|
| 181 |
+
append(self.bottom_right)
|
| 182 |
+
return "".join(parts)
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
# fmt: off
|
| 186 |
+
ASCII: Box = Box(
|
| 187 |
+
"+--+\n"
|
| 188 |
+
"| ||\n"
|
| 189 |
+
"|-+|\n"
|
| 190 |
+
"| ||\n"
|
| 191 |
+
"|-+|\n"
|
| 192 |
+
"|-+|\n"
|
| 193 |
+
"| ||\n"
|
| 194 |
+
"+--+\n",
|
| 195 |
+
ascii=True,
|
| 196 |
+
)
|
| 197 |
+
|
| 198 |
+
ASCII2: Box = Box(
|
| 199 |
+
"+-++\n"
|
| 200 |
+
"| ||\n"
|
| 201 |
+
"+-++\n"
|
| 202 |
+
"| ||\n"
|
| 203 |
+
"+-++\n"
|
| 204 |
+
"+-++\n"
|
| 205 |
+
"| ||\n"
|
| 206 |
+
"+-++\n",
|
| 207 |
+
ascii=True,
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
ASCII_DOUBLE_HEAD: Box = Box(
|
| 211 |
+
"+-++\n"
|
| 212 |
+
"| ||\n"
|
| 213 |
+
"+=++\n"
|
| 214 |
+
"| ||\n"
|
| 215 |
+
"+-++\n"
|
| 216 |
+
"+-++\n"
|
| 217 |
+
"| ||\n"
|
| 218 |
+
"+-++\n",
|
| 219 |
+
ascii=True,
|
| 220 |
+
)
|
| 221 |
+
|
| 222 |
+
SQUARE: Box = Box(
|
| 223 |
+
"┌─┬┐\n"
|
| 224 |
+
"│ ││\n"
|
| 225 |
+
"├─┼┤\n"
|
| 226 |
+
"│ ││\n"
|
| 227 |
+
"├─┼┤\n"
|
| 228 |
+
"├─┼┤\n"
|
| 229 |
+
"│ ││\n"
|
| 230 |
+
"└─┴┘\n"
|
| 231 |
+
)
|
| 232 |
+
|
| 233 |
+
SQUARE_DOUBLE_HEAD: Box = Box(
|
| 234 |
+
"┌─┬┐\n"
|
| 235 |
+
"│ ││\n"
|
| 236 |
+
"╞═╪╡\n"
|
| 237 |
+
"│ ││\n"
|
| 238 |
+
"├─┼┤\n"
|
| 239 |
+
"├─┼┤\n"
|
| 240 |
+
"│ ││\n"
|
| 241 |
+
"└─┴┘\n"
|
| 242 |
+
)
|
| 243 |
+
|
| 244 |
+
MINIMAL: Box = Box(
|
| 245 |
+
" ╷ \n"
|
| 246 |
+
" │ \n"
|
| 247 |
+
"╶─┼╴\n"
|
| 248 |
+
" │ \n"
|
| 249 |
+
"╶─┼╴\n"
|
| 250 |
+
"╶─┼╴\n"
|
| 251 |
+
" │ \n"
|
| 252 |
+
" ╵ \n"
|
| 253 |
+
)
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
MINIMAL_HEAVY_HEAD: Box = Box(
|
| 257 |
+
" ╷ \n"
|
| 258 |
+
" │ \n"
|
| 259 |
+
"╺━┿╸\n"
|
| 260 |
+
" │ \n"
|
| 261 |
+
"╶─┼╴\n"
|
| 262 |
+
"╶─┼╴\n"
|
| 263 |
+
" │ \n"
|
| 264 |
+
" ╵ \n"
|
| 265 |
+
)
|
| 266 |
+
|
| 267 |
+
MINIMAL_DOUBLE_HEAD: Box = Box(
|
| 268 |
+
" ╷ \n"
|
| 269 |
+
" │ \n"
|
| 270 |
+
" ═╪ \n"
|
| 271 |
+
" │ \n"
|
| 272 |
+
" ─┼ \n"
|
| 273 |
+
" ─┼ \n"
|
| 274 |
+
" │ \n"
|
| 275 |
+
" ╵ \n"
|
| 276 |
+
)
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
SIMPLE: Box = Box(
|
| 280 |
+
" \n"
|
| 281 |
+
" \n"
|
| 282 |
+
" ── \n"
|
| 283 |
+
" \n"
|
| 284 |
+
" \n"
|
| 285 |
+
" ── \n"
|
| 286 |
+
" \n"
|
| 287 |
+
" \n"
|
| 288 |
+
)
|
| 289 |
+
|
| 290 |
+
SIMPLE_HEAD: Box = Box(
|
| 291 |
+
" \n"
|
| 292 |
+
" \n"
|
| 293 |
+
" ── \n"
|
| 294 |
+
" \n"
|
| 295 |
+
" \n"
|
| 296 |
+
" \n"
|
| 297 |
+
" \n"
|
| 298 |
+
" \n"
|
| 299 |
+
)
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
SIMPLE_HEAVY: Box = Box(
|
| 303 |
+
" \n"
|
| 304 |
+
" \n"
|
| 305 |
+
" ━━ \n"
|
| 306 |
+
" \n"
|
| 307 |
+
" \n"
|
| 308 |
+
" ━━ \n"
|
| 309 |
+
" \n"
|
| 310 |
+
" \n"
|
| 311 |
+
)
|
| 312 |
+
|
| 313 |
+
|
| 314 |
+
HORIZONTALS: Box = Box(
|
| 315 |
+
" ── \n"
|
| 316 |
+
" \n"
|
| 317 |
+
" ── \n"
|
| 318 |
+
" \n"
|
| 319 |
+
" ── \n"
|
| 320 |
+
" ── \n"
|
| 321 |
+
" \n"
|
| 322 |
+
" ── \n"
|
| 323 |
+
)
|
| 324 |
+
|
| 325 |
+
ROUNDED: Box = Box(
|
| 326 |
+
"╭─┬╮\n"
|
| 327 |
+
"│ ││\n"
|
| 328 |
+
"├─┼┤\n"
|
| 329 |
+
"│ ││\n"
|
| 330 |
+
"├─┼┤\n"
|
| 331 |
+
"├─┼┤\n"
|
| 332 |
+
"│ ││\n"
|
| 333 |
+
"╰─┴╯\n"
|
| 334 |
+
)
|
| 335 |
+
|
| 336 |
+
HEAVY: Box = Box(
|
| 337 |
+
"┏━┳┓\n"
|
| 338 |
+
"┃ ┃┃\n"
|
| 339 |
+
"┣━╋┫\n"
|
| 340 |
+
"┃ ┃┃\n"
|
| 341 |
+
"┣━╋┫\n"
|
| 342 |
+
"┣━╋┫\n"
|
| 343 |
+
"┃ ┃┃\n"
|
| 344 |
+
"┗━┻┛\n"
|
| 345 |
+
)
|
| 346 |
+
|
| 347 |
+
HEAVY_EDGE: Box = Box(
|
| 348 |
+
"┏━┯┓\n"
|
| 349 |
+
"┃ │┃\n"
|
| 350 |
+
"┠─┼┨\n"
|
| 351 |
+
"┃ │┃\n"
|
| 352 |
+
"┠─┼┨\n"
|
| 353 |
+
"┠─┼┨\n"
|
| 354 |
+
"┃ │┃\n"
|
| 355 |
+
"┗━┷┛\n"
|
| 356 |
+
)
|
| 357 |
+
|
| 358 |
+
HEAVY_HEAD: Box = Box(
|
| 359 |
+
"┏━┳┓\n"
|
| 360 |
+
"┃ ┃┃\n"
|
| 361 |
+
"┡━╇┩\n"
|
| 362 |
+
"│ ││\n"
|
| 363 |
+
"├─┼┤\n"
|
| 364 |
+
"├─┼┤\n"
|
| 365 |
+
"│ ││\n"
|
| 366 |
+
"└─┴┘\n"
|
| 367 |
+
)
|
| 368 |
+
|
| 369 |
+
DOUBLE: Box = Box(
|
| 370 |
+
"╔═╦╗\n"
|
| 371 |
+
"║ ║║\n"
|
| 372 |
+
"╠═╬╣\n"
|
| 373 |
+
"║ ║║\n"
|
| 374 |
+
"╠═╬╣\n"
|
| 375 |
+
"╠═╬╣\n"
|
| 376 |
+
"║ ║║\n"
|
| 377 |
+
"╚═╩╝\n"
|
| 378 |
+
)
|
| 379 |
+
|
| 380 |
+
DOUBLE_EDGE: Box = Box(
|
| 381 |
+
"╔═╤╗\n"
|
| 382 |
+
"║ │║\n"
|
| 383 |
+
"╟─┼╢\n"
|
| 384 |
+
"║ │║\n"
|
| 385 |
+
"╟─┼╢\n"
|
| 386 |
+
"╟─┼╢\n"
|
| 387 |
+
"║ │║\n"
|
| 388 |
+
"╚═╧╝\n"
|
| 389 |
+
)
|
| 390 |
+
|
| 391 |
+
MARKDOWN: Box = Box(
|
| 392 |
+
" \n"
|
| 393 |
+
"| ||\n"
|
| 394 |
+
"|-||\n"
|
| 395 |
+
"| ||\n"
|
| 396 |
+
"|-||\n"
|
| 397 |
+
"|-||\n"
|
| 398 |
+
"| ||\n"
|
| 399 |
+
" \n",
|
| 400 |
+
ascii=True,
|
| 401 |
+
)
|
| 402 |
+
# fmt: on
|
| 403 |
+
|
| 404 |
+
# Map Boxes that don't render with raster fonts on to equivalent that do
|
| 405 |
+
LEGACY_WINDOWS_SUBSTITUTIONS = {
|
| 406 |
+
ROUNDED: SQUARE,
|
| 407 |
+
MINIMAL_HEAVY_HEAD: MINIMAL,
|
| 408 |
+
SIMPLE_HEAVY: SIMPLE,
|
| 409 |
+
HEAVY: SQUARE,
|
| 410 |
+
HEAVY_EDGE: SQUARE,
|
| 411 |
+
HEAVY_HEAD: SQUARE,
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
# Map headed boxes to their headerless equivalents
|
| 415 |
+
PLAIN_HEADED_SUBSTITUTIONS = {
|
| 416 |
+
HEAVY_HEAD: SQUARE,
|
| 417 |
+
SQUARE_DOUBLE_HEAD: SQUARE,
|
| 418 |
+
MINIMAL_DOUBLE_HEAD: MINIMAL,
|
| 419 |
+
MINIMAL_HEAVY_HEAD: MINIMAL,
|
| 420 |
+
ASCII_DOUBLE_HEAD: ASCII2,
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
if __name__ == "__main__": # pragma: no cover
|
| 425 |
+
from pip._vendor.rich.columns import Columns
|
| 426 |
+
from pip._vendor.rich.panel import Panel
|
| 427 |
+
|
| 428 |
+
from . import box as box
|
| 429 |
+
from .console import Console
|
| 430 |
+
from .table import Table
|
| 431 |
+
from .text import Text
|
| 432 |
+
|
| 433 |
+
console = Console(record=True)
|
| 434 |
+
|
| 435 |
+
BOXES = [
|
| 436 |
+
"ASCII",
|
| 437 |
+
"ASCII2",
|
| 438 |
+
"ASCII_DOUBLE_HEAD",
|
| 439 |
+
"SQUARE",
|
| 440 |
+
"SQUARE_DOUBLE_HEAD",
|
| 441 |
+
"MINIMAL",
|
| 442 |
+
"MINIMAL_HEAVY_HEAD",
|
| 443 |
+
"MINIMAL_DOUBLE_HEAD",
|
| 444 |
+
"SIMPLE",
|
| 445 |
+
"SIMPLE_HEAD",
|
| 446 |
+
"SIMPLE_HEAVY",
|
| 447 |
+
"HORIZONTALS",
|
| 448 |
+
"ROUNDED",
|
| 449 |
+
"HEAVY",
|
| 450 |
+
"HEAVY_EDGE",
|
| 451 |
+
"HEAVY_HEAD",
|
| 452 |
+
"DOUBLE",
|
| 453 |
+
"DOUBLE_EDGE",
|
| 454 |
+
"MARKDOWN",
|
| 455 |
+
]
|
| 456 |
+
|
| 457 |
+
console.print(Panel("[bold green]Box Constants", style="green"), justify="center")
|
| 458 |
+
console.print()
|
| 459 |
+
|
| 460 |
+
columns = Columns(expand=True, padding=2)
|
| 461 |
+
for box_name in sorted(BOXES):
|
| 462 |
+
table = Table(
|
| 463 |
+
show_footer=True, style="dim", border_style="not dim", expand=True
|
| 464 |
+
)
|
| 465 |
+
table.add_column("Header 1", "Footer 1")
|
| 466 |
+
table.add_column("Header 2", "Footer 2")
|
| 467 |
+
table.add_row("Cell", "Cell")
|
| 468 |
+
table.add_row("Cell", "Cell")
|
| 469 |
+
table.box = getattr(box, box_name)
|
| 470 |
+
table.title = Text(f"box.{box_name}", style="magenta")
|
| 471 |
+
columns.add_renderable(table)
|
| 472 |
+
console.print(columns)
|
| 473 |
+
|
| 474 |
+
# console.save_svg("box.svg")
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/columns.py
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections import defaultdict
|
| 2 |
+
from itertools import chain
|
| 3 |
+
from operator import itemgetter
|
| 4 |
+
from typing import Dict, Iterable, List, Optional, Tuple
|
| 5 |
+
|
| 6 |
+
from .align import Align, AlignMethod
|
| 7 |
+
from .console import Console, ConsoleOptions, RenderableType, RenderResult
|
| 8 |
+
from .constrain import Constrain
|
| 9 |
+
from .measure import Measurement
|
| 10 |
+
from .padding import Padding, PaddingDimensions
|
| 11 |
+
from .table import Table
|
| 12 |
+
from .text import TextType
|
| 13 |
+
from .jupyter import JupyterMixin
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class Columns(JupyterMixin):
|
| 17 |
+
"""Display renderables in neat columns.
|
| 18 |
+
|
| 19 |
+
Args:
|
| 20 |
+
renderables (Iterable[RenderableType]): Any number of Rich renderables (including str).
|
| 21 |
+
width (int, optional): The desired width of the columns, or None to auto detect. Defaults to None.
|
| 22 |
+
padding (PaddingDimensions, optional): Optional padding around cells. Defaults to (0, 1).
|
| 23 |
+
expand (bool, optional): Expand columns to full width. Defaults to False.
|
| 24 |
+
equal (bool, optional): Arrange in to equal sized columns. Defaults to False.
|
| 25 |
+
column_first (bool, optional): Align items from top to bottom (rather than left to right). Defaults to False.
|
| 26 |
+
right_to_left (bool, optional): Start column from right hand side. Defaults to False.
|
| 27 |
+
align (str, optional): Align value ("left", "right", or "center") or None for default. Defaults to None.
|
| 28 |
+
title (TextType, optional): Optional title for Columns.
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
def __init__(
|
| 32 |
+
self,
|
| 33 |
+
renderables: Optional[Iterable[RenderableType]] = None,
|
| 34 |
+
padding: PaddingDimensions = (0, 1),
|
| 35 |
+
*,
|
| 36 |
+
width: Optional[int] = None,
|
| 37 |
+
expand: bool = False,
|
| 38 |
+
equal: bool = False,
|
| 39 |
+
column_first: bool = False,
|
| 40 |
+
right_to_left: bool = False,
|
| 41 |
+
align: Optional[AlignMethod] = None,
|
| 42 |
+
title: Optional[TextType] = None,
|
| 43 |
+
) -> None:
|
| 44 |
+
self.renderables = list(renderables or [])
|
| 45 |
+
self.width = width
|
| 46 |
+
self.padding = padding
|
| 47 |
+
self.expand = expand
|
| 48 |
+
self.equal = equal
|
| 49 |
+
self.column_first = column_first
|
| 50 |
+
self.right_to_left = right_to_left
|
| 51 |
+
self.align: Optional[AlignMethod] = align
|
| 52 |
+
self.title = title
|
| 53 |
+
|
| 54 |
+
def add_renderable(self, renderable: RenderableType) -> None:
|
| 55 |
+
"""Add a renderable to the columns.
|
| 56 |
+
|
| 57 |
+
Args:
|
| 58 |
+
renderable (RenderableType): Any renderable object.
|
| 59 |
+
"""
|
| 60 |
+
self.renderables.append(renderable)
|
| 61 |
+
|
| 62 |
+
def __rich_console__(
|
| 63 |
+
self, console: Console, options: ConsoleOptions
|
| 64 |
+
) -> RenderResult:
|
| 65 |
+
render_str = console.render_str
|
| 66 |
+
renderables = [
|
| 67 |
+
render_str(renderable) if isinstance(renderable, str) else renderable
|
| 68 |
+
for renderable in self.renderables
|
| 69 |
+
]
|
| 70 |
+
if not renderables:
|
| 71 |
+
return
|
| 72 |
+
_top, right, _bottom, left = Padding.unpack(self.padding)
|
| 73 |
+
width_padding = max(left, right)
|
| 74 |
+
max_width = options.max_width
|
| 75 |
+
widths: Dict[int, int] = defaultdict(int)
|
| 76 |
+
column_count = len(renderables)
|
| 77 |
+
|
| 78 |
+
get_measurement = Measurement.get
|
| 79 |
+
renderable_widths = [
|
| 80 |
+
get_measurement(console, options, renderable).maximum
|
| 81 |
+
for renderable in renderables
|
| 82 |
+
]
|
| 83 |
+
if self.equal:
|
| 84 |
+
renderable_widths = [max(renderable_widths)] * len(renderable_widths)
|
| 85 |
+
|
| 86 |
+
def iter_renderables(
|
| 87 |
+
column_count: int,
|
| 88 |
+
) -> Iterable[Tuple[int, Optional[RenderableType]]]:
|
| 89 |
+
item_count = len(renderables)
|
| 90 |
+
if self.column_first:
|
| 91 |
+
width_renderables = list(zip(renderable_widths, renderables))
|
| 92 |
+
|
| 93 |
+
column_lengths: List[int] = [item_count // column_count] * column_count
|
| 94 |
+
for col_no in range(item_count % column_count):
|
| 95 |
+
column_lengths[col_no] += 1
|
| 96 |
+
|
| 97 |
+
row_count = (item_count + column_count - 1) // column_count
|
| 98 |
+
cells = [[-1] * column_count for _ in range(row_count)]
|
| 99 |
+
row = col = 0
|
| 100 |
+
for index in range(item_count):
|
| 101 |
+
cells[row][col] = index
|
| 102 |
+
column_lengths[col] -= 1
|
| 103 |
+
if column_lengths[col]:
|
| 104 |
+
row += 1
|
| 105 |
+
else:
|
| 106 |
+
col += 1
|
| 107 |
+
row = 0
|
| 108 |
+
for index in chain.from_iterable(cells):
|
| 109 |
+
if index == -1:
|
| 110 |
+
break
|
| 111 |
+
yield width_renderables[index]
|
| 112 |
+
else:
|
| 113 |
+
yield from zip(renderable_widths, renderables)
|
| 114 |
+
# Pad odd elements with spaces
|
| 115 |
+
if item_count % column_count:
|
| 116 |
+
for _ in range(column_count - (item_count % column_count)):
|
| 117 |
+
yield 0, None
|
| 118 |
+
|
| 119 |
+
table = Table.grid(padding=self.padding, collapse_padding=True, pad_edge=False)
|
| 120 |
+
table.expand = self.expand
|
| 121 |
+
table.title = self.title
|
| 122 |
+
|
| 123 |
+
if self.width is not None:
|
| 124 |
+
column_count = (max_width) // (self.width + width_padding)
|
| 125 |
+
for _ in range(column_count):
|
| 126 |
+
table.add_column(width=self.width)
|
| 127 |
+
else:
|
| 128 |
+
while column_count > 1:
|
| 129 |
+
widths.clear()
|
| 130 |
+
column_no = 0
|
| 131 |
+
for renderable_width, _ in iter_renderables(column_count):
|
| 132 |
+
widths[column_no] = max(widths[column_no], renderable_width)
|
| 133 |
+
total_width = sum(widths.values()) + width_padding * (
|
| 134 |
+
len(widths) - 1
|
| 135 |
+
)
|
| 136 |
+
if total_width > max_width:
|
| 137 |
+
column_count = len(widths) - 1
|
| 138 |
+
break
|
| 139 |
+
else:
|
| 140 |
+
column_no = (column_no + 1) % column_count
|
| 141 |
+
else:
|
| 142 |
+
break
|
| 143 |
+
|
| 144 |
+
get_renderable = itemgetter(1)
|
| 145 |
+
_renderables = [
|
| 146 |
+
get_renderable(_renderable)
|
| 147 |
+
for _renderable in iter_renderables(column_count)
|
| 148 |
+
]
|
| 149 |
+
if self.equal:
|
| 150 |
+
_renderables = [
|
| 151 |
+
None
|
| 152 |
+
if renderable is None
|
| 153 |
+
else Constrain(renderable, renderable_widths[0])
|
| 154 |
+
for renderable in _renderables
|
| 155 |
+
]
|
| 156 |
+
if self.align:
|
| 157 |
+
align = self.align
|
| 158 |
+
_Align = Align
|
| 159 |
+
_renderables = [
|
| 160 |
+
None if renderable is None else _Align(renderable, align)
|
| 161 |
+
for renderable in _renderables
|
| 162 |
+
]
|
| 163 |
+
|
| 164 |
+
right_to_left = self.right_to_left
|
| 165 |
+
add_row = table.add_row
|
| 166 |
+
for start in range(0, len(_renderables), column_count):
|
| 167 |
+
row = _renderables[start : start + column_count]
|
| 168 |
+
if right_to_left:
|
| 169 |
+
row = row[::-1]
|
| 170 |
+
add_row(*row)
|
| 171 |
+
yield table
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
if __name__ == "__main__": # pragma: no cover
|
| 175 |
+
import os
|
| 176 |
+
|
| 177 |
+
console = Console()
|
| 178 |
+
|
| 179 |
+
files = [f"{i} {s}" for i, s in enumerate(sorted(os.listdir()))]
|
| 180 |
+
columns = Columns(files, padding=(0, 1), expand=False, equal=False)
|
| 181 |
+
console.print(columns)
|
| 182 |
+
console.rule()
|
| 183 |
+
columns.column_first = True
|
| 184 |
+
console.print(columns)
|
| 185 |
+
columns.right_to_left = True
|
| 186 |
+
console.rule()
|
| 187 |
+
console.print(columns)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/default_styles.py
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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| 7 |
+
"reset": Style(
|
| 8 |
+
color="default",
|
| 9 |
+
bgcolor="default",
|
| 10 |
+
dim=False,
|
| 11 |
+
bold=False,
|
| 12 |
+
italic=False,
|
| 13 |
+
underline=False,
|
| 14 |
+
blink=False,
|
| 15 |
+
blink2=False,
|
| 16 |
+
reverse=False,
|
| 17 |
+
conceal=False,
|
| 18 |
+
strike=False,
|
| 19 |
+
),
|
| 20 |
+
"dim": Style(dim=True),
|
| 21 |
+
"bright": Style(dim=False),
|
| 22 |
+
"bold": Style(bold=True),
|
| 23 |
+
"strong": Style(bold=True),
|
| 24 |
+
"code": Style(reverse=True, bold=True),
|
| 25 |
+
"italic": Style(italic=True),
|
| 26 |
+
"emphasize": Style(italic=True),
|
| 27 |
+
"underline": Style(underline=True),
|
| 28 |
+
"blink": Style(blink=True),
|
| 29 |
+
"blink2": Style(blink2=True),
|
| 30 |
+
"reverse": Style(reverse=True),
|
| 31 |
+
"strike": Style(strike=True),
|
| 32 |
+
"black": Style(color="black"),
|
| 33 |
+
"red": Style(color="red"),
|
| 34 |
+
"green": Style(color="green"),
|
| 35 |
+
"yellow": Style(color="yellow"),
|
| 36 |
+
"magenta": Style(color="magenta"),
|
| 37 |
+
"cyan": Style(color="cyan"),
|
| 38 |
+
"white": Style(color="white"),
|
| 39 |
+
"inspect.attr": Style(color="yellow", italic=True),
|
| 40 |
+
"inspect.attr.dunder": Style(color="yellow", italic=True, dim=True),
|
| 41 |
+
"inspect.callable": Style(bold=True, color="red"),
|
| 42 |
+
"inspect.async_def": Style(italic=True, color="bright_cyan"),
|
| 43 |
+
"inspect.def": Style(italic=True, color="bright_cyan"),
|
| 44 |
+
"inspect.class": Style(italic=True, color="bright_cyan"),
|
| 45 |
+
"inspect.error": Style(bold=True, color="red"),
|
| 46 |
+
"inspect.equals": Style(),
|
| 47 |
+
"inspect.help": Style(color="cyan"),
|
| 48 |
+
"inspect.doc": Style(dim=True),
|
| 49 |
+
"inspect.value.border": Style(color="green"),
|
| 50 |
+
"live.ellipsis": Style(bold=True, color="red"),
|
| 51 |
+
"layout.tree.row": Style(dim=False, color="red"),
|
| 52 |
+
"layout.tree.column": Style(dim=False, color="blue"),
|
| 53 |
+
"logging.keyword": Style(bold=True, color="yellow"),
|
| 54 |
+
"logging.level.notset": Style(dim=True),
|
| 55 |
+
"logging.level.debug": Style(color="green"),
|
| 56 |
+
"logging.level.info": Style(color="blue"),
|
| 57 |
+
"logging.level.warning": Style(color="yellow"),
|
| 58 |
+
"logging.level.error": Style(color="red", bold=True),
|
| 59 |
+
"logging.level.critical": Style(color="red", bold=True, reverse=True),
|
| 60 |
+
"log.level": Style.null(),
|
| 61 |
+
"log.time": Style(color="cyan", dim=True),
|
| 62 |
+
"log.message": Style.null(),
|
| 63 |
+
"log.path": Style(dim=True),
|
| 64 |
+
"repr.ellipsis": Style(color="yellow"),
|
| 65 |
+
"repr.indent": Style(color="green", dim=True),
|
| 66 |
+
"repr.error": Style(color="red", bold=True),
|
| 67 |
+
"repr.str": Style(color="green", italic=False, bold=False),
|
| 68 |
+
"repr.brace": Style(bold=True),
|
| 69 |
+
"repr.comma": Style(bold=True),
|
| 70 |
+
"repr.ipv4": Style(bold=True, color="bright_green"),
|
| 71 |
+
"repr.ipv6": Style(bold=True, color="bright_green"),
|
| 72 |
+
"repr.eui48": Style(bold=True, color="bright_green"),
|
| 73 |
+
"repr.eui64": Style(bold=True, color="bright_green"),
|
| 74 |
+
"repr.tag_start": Style(bold=True),
|
| 75 |
+
"repr.tag_name": Style(color="bright_magenta", bold=True),
|
| 76 |
+
"repr.tag_contents": Style(color="default"),
|
| 77 |
+
"repr.tag_end": Style(bold=True),
|
| 78 |
+
"repr.attrib_name": Style(color="yellow", italic=False),
|
| 79 |
+
"repr.attrib_equal": Style(bold=True),
|
| 80 |
+
"repr.attrib_value": Style(color="magenta", italic=False),
|
| 81 |
+
"repr.number": Style(color="cyan", bold=True, italic=False),
|
| 82 |
+
"repr.number_complex": Style(color="cyan", bold=True, italic=False), # same
|
| 83 |
+
"repr.bool_true": Style(color="bright_green", italic=True),
|
| 84 |
+
"repr.bool_false": Style(color="bright_red", italic=True),
|
| 85 |
+
"repr.none": Style(color="magenta", italic=True),
|
| 86 |
+
"repr.url": Style(underline=True, color="bright_blue", italic=False, bold=False),
|
| 87 |
+
"repr.uuid": Style(color="bright_yellow", bold=False),
|
| 88 |
+
"repr.call": Style(color="magenta", bold=True),
|
| 89 |
+
"repr.path": Style(color="magenta"),
|
| 90 |
+
"repr.filename": Style(color="bright_magenta"),
|
| 91 |
+
"rule.line": Style(color="bright_green"),
|
| 92 |
+
"rule.text": Style.null(),
|
| 93 |
+
"json.brace": Style(bold=True),
|
| 94 |
+
"json.bool_true": Style(color="bright_green", italic=True),
|
| 95 |
+
"json.bool_false": Style(color="bright_red", italic=True),
|
| 96 |
+
"json.null": Style(color="magenta", italic=True),
|
| 97 |
+
"json.number": Style(color="cyan", bold=True, italic=False),
|
| 98 |
+
"json.str": Style(color="green", italic=False, bold=False),
|
| 99 |
+
"json.key": Style(color="blue", bold=True),
|
| 100 |
+
"prompt": Style.null(),
|
| 101 |
+
"prompt.choices": Style(color="magenta", bold=True),
|
| 102 |
+
"prompt.default": Style(color="cyan", bold=True),
|
| 103 |
+
"prompt.invalid": Style(color="red"),
|
| 104 |
+
"prompt.invalid.choice": Style(color="red"),
|
| 105 |
+
"pretty": Style.null(),
|
| 106 |
+
"scope.border": Style(color="blue"),
|
| 107 |
+
"scope.key": Style(color="yellow", italic=True),
|
| 108 |
+
"scope.key.special": Style(color="yellow", italic=True, dim=True),
|
| 109 |
+
"scope.equals": Style(color="red"),
|
| 110 |
+
"table.header": Style(bold=True),
|
| 111 |
+
"table.footer": Style(bold=True),
|
| 112 |
+
"table.cell": Style.null(),
|
| 113 |
+
"table.title": Style(italic=True),
|
| 114 |
+
"table.caption": Style(italic=True, dim=True),
|
| 115 |
+
"traceback.error": Style(color="red", italic=True),
|
| 116 |
+
"traceback.border.syntax_error": Style(color="bright_red"),
|
| 117 |
+
"traceback.border": Style(color="red"),
|
| 118 |
+
"traceback.text": Style.null(),
|
| 119 |
+
"traceback.title": Style(color="red", bold=True),
|
| 120 |
+
"traceback.exc_type": Style(color="bright_red", bold=True),
|
| 121 |
+
"traceback.exc_value": Style.null(),
|
| 122 |
+
"traceback.offset": Style(color="bright_red", bold=True),
|
| 123 |
+
"traceback.error_range": Style(underline=True, bold=True),
|
| 124 |
+
"traceback.note": Style(color="green", bold=True),
|
| 125 |
+
"traceback.group.border": Style(color="magenta"),
|
| 126 |
+
"bar.back": Style(color="grey23"),
|
| 127 |
+
"bar.complete": Style(color="rgb(249,38,114)"),
|
| 128 |
+
"bar.finished": Style(color="rgb(114,156,31)"),
|
| 129 |
+
"bar.pulse": Style(color="rgb(249,38,114)"),
|
| 130 |
+
"progress.description": Style.null(),
|
| 131 |
+
"progress.filesize": Style(color="green"),
|
| 132 |
+
"progress.filesize.total": Style(color="green"),
|
| 133 |
+
"progress.download": Style(color="green"),
|
| 134 |
+
"progress.elapsed": Style(color="yellow"),
|
| 135 |
+
"progress.percentage": Style(color="magenta"),
|
| 136 |
+
"progress.remaining": Style(color="cyan"),
|
| 137 |
+
"progress.data.speed": Style(color="red"),
|
| 138 |
+
"progress.spinner": Style(color="green"),
|
| 139 |
+
"status.spinner": Style(color="green"),
|
| 140 |
+
"tree": Style(),
|
| 141 |
+
"tree.line": Style(),
|
| 142 |
+
"markdown.paragraph": Style(),
|
| 143 |
+
"markdown.text": Style(),
|
| 144 |
+
"markdown.em": Style(italic=True),
|
| 145 |
+
"markdown.emph": Style(italic=True), # For commonmark backwards compatibility
|
| 146 |
+
"markdown.strong": Style(bold=True),
|
| 147 |
+
"markdown.code": Style(bold=True, color="cyan", bgcolor="black"),
|
| 148 |
+
"markdown.code_block": Style(color="cyan", bgcolor="black"),
|
| 149 |
+
"markdown.block_quote": Style(color="magenta"),
|
| 150 |
+
"markdown.list": Style(color="cyan"),
|
| 151 |
+
"markdown.item": Style(),
|
| 152 |
+
"markdown.item.bullet": Style(color="yellow", bold=True),
|
| 153 |
+
"markdown.item.number": Style(color="yellow", bold=True),
|
| 154 |
+
"markdown.hr": Style(color="yellow"),
|
| 155 |
+
"markdown.h1.border": Style(),
|
| 156 |
+
"markdown.h1": Style(bold=True),
|
| 157 |
+
"markdown.h2": Style(bold=True, underline=True),
|
| 158 |
+
"markdown.h3": Style(bold=True),
|
| 159 |
+
"markdown.h4": Style(bold=True, dim=True),
|
| 160 |
+
"markdown.h5": Style(underline=True),
|
| 161 |
+
"markdown.h6": Style(italic=True),
|
| 162 |
+
"markdown.h7": Style(italic=True, dim=True),
|
| 163 |
+
"markdown.link": Style(color="bright_blue"),
|
| 164 |
+
"markdown.link_url": Style(color="blue", underline=True),
|
| 165 |
+
"markdown.s": Style(strike=True),
|
| 166 |
+
"iso8601.date": Style(color="blue"),
|
| 167 |
+
"iso8601.time": Style(color="magenta"),
|
| 168 |
+
"iso8601.timezone": Style(color="yellow"),
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
if __name__ == "__main__": # pragma: no cover
|
| 173 |
+
import argparse
|
| 174 |
+
import io
|
| 175 |
+
|
| 176 |
+
from pip._vendor.rich.console import Console
|
| 177 |
+
from pip._vendor.rich.table import Table
|
| 178 |
+
from pip._vendor.rich.text import Text
|
| 179 |
+
|
| 180 |
+
parser = argparse.ArgumentParser()
|
| 181 |
+
parser.add_argument("--html", action="store_true", help="Export as HTML table")
|
| 182 |
+
args = parser.parse_args()
|
| 183 |
+
html: bool = args.html
|
| 184 |
+
console = Console(record=True, width=70, file=io.StringIO()) if html else Console()
|
| 185 |
+
|
| 186 |
+
table = Table("Name", "Styling")
|
| 187 |
+
|
| 188 |
+
for style_name, style in DEFAULT_STYLES.items():
|
| 189 |
+
table.add_row(Text(style_name, style=style), str(style))
|
| 190 |
+
|
| 191 |
+
console.print(table)
|
| 192 |
+
if html:
|
| 193 |
+
print(console.export_html(inline_styles=True))
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/json.py
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
+
from json import loads, dumps
|
| 3 |
+
from typing import Any, Callable, Optional, Union
|
| 4 |
+
|
| 5 |
+
from .text import Text
|
| 6 |
+
from .highlighter import JSONHighlighter, NullHighlighter
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class JSON:
|
| 10 |
+
"""A renderable which pretty prints JSON.
|
| 11 |
+
|
| 12 |
+
Args:
|
| 13 |
+
json (str): JSON encoded data.
|
| 14 |
+
indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2.
|
| 15 |
+
highlight (bool, optional): Enable highlighting. Defaults to True.
|
| 16 |
+
skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
|
| 17 |
+
ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
|
| 18 |
+
check_circular (bool, optional): Check for circular references. Defaults to True.
|
| 19 |
+
allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
|
| 20 |
+
default (Callable, optional): A callable that converts values that can not be encoded
|
| 21 |
+
in to something that can be JSON encoded. Defaults to None.
|
| 22 |
+
sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
|
| 23 |
+
"""
|
| 24 |
+
|
| 25 |
+
def __init__(
|
| 26 |
+
self,
|
| 27 |
+
json: str,
|
| 28 |
+
indent: Union[None, int, str] = 2,
|
| 29 |
+
highlight: bool = True,
|
| 30 |
+
skip_keys: bool = False,
|
| 31 |
+
ensure_ascii: bool = False,
|
| 32 |
+
check_circular: bool = True,
|
| 33 |
+
allow_nan: bool = True,
|
| 34 |
+
default: Optional[Callable[[Any], Any]] = None,
|
| 35 |
+
sort_keys: bool = False,
|
| 36 |
+
) -> None:
|
| 37 |
+
data = loads(json)
|
| 38 |
+
json = dumps(
|
| 39 |
+
data,
|
| 40 |
+
indent=indent,
|
| 41 |
+
skipkeys=skip_keys,
|
| 42 |
+
ensure_ascii=ensure_ascii,
|
| 43 |
+
check_circular=check_circular,
|
| 44 |
+
allow_nan=allow_nan,
|
| 45 |
+
default=default,
|
| 46 |
+
sort_keys=sort_keys,
|
| 47 |
+
)
|
| 48 |
+
highlighter = JSONHighlighter() if highlight else NullHighlighter()
|
| 49 |
+
self.text = highlighter(json)
|
| 50 |
+
self.text.no_wrap = True
|
| 51 |
+
self.text.overflow = None
|
| 52 |
+
|
| 53 |
+
@classmethod
|
| 54 |
+
def from_data(
|
| 55 |
+
cls,
|
| 56 |
+
data: Any,
|
| 57 |
+
indent: Union[None, int, str] = 2,
|
| 58 |
+
highlight: bool = True,
|
| 59 |
+
skip_keys: bool = False,
|
| 60 |
+
ensure_ascii: bool = False,
|
| 61 |
+
check_circular: bool = True,
|
| 62 |
+
allow_nan: bool = True,
|
| 63 |
+
default: Optional[Callable[[Any], Any]] = None,
|
| 64 |
+
sort_keys: bool = False,
|
| 65 |
+
) -> "JSON":
|
| 66 |
+
"""Encodes a JSON object from arbitrary data.
|
| 67 |
+
|
| 68 |
+
Args:
|
| 69 |
+
data (Any): An object that may be encoded in to JSON
|
| 70 |
+
indent (Union[None, int, str], optional): Number of characters to indent by. Defaults to 2.
|
| 71 |
+
highlight (bool, optional): Enable highlighting. Defaults to True.
|
| 72 |
+
default (Callable, optional): Optional callable which will be called for objects that cannot be serialized. Defaults to None.
|
| 73 |
+
skip_keys (bool, optional): Skip keys not of a basic type. Defaults to False.
|
| 74 |
+
ensure_ascii (bool, optional): Escape all non-ascii characters. Defaults to False.
|
| 75 |
+
check_circular (bool, optional): Check for circular references. Defaults to True.
|
| 76 |
+
allow_nan (bool, optional): Allow NaN and Infinity values. Defaults to True.
|
| 77 |
+
default (Callable, optional): A callable that converts values that can not be encoded
|
| 78 |
+
in to something that can be JSON encoded. Defaults to None.
|
| 79 |
+
sort_keys (bool, optional): Sort dictionary keys. Defaults to False.
|
| 80 |
+
|
| 81 |
+
Returns:
|
| 82 |
+
JSON: New JSON object from the given data.
|
| 83 |
+
"""
|
| 84 |
+
json_instance: "JSON" = cls.__new__(cls)
|
| 85 |
+
json = dumps(
|
| 86 |
+
data,
|
| 87 |
+
indent=indent,
|
| 88 |
+
skipkeys=skip_keys,
|
| 89 |
+
ensure_ascii=ensure_ascii,
|
| 90 |
+
check_circular=check_circular,
|
| 91 |
+
allow_nan=allow_nan,
|
| 92 |
+
default=default,
|
| 93 |
+
sort_keys=sort_keys,
|
| 94 |
+
)
|
| 95 |
+
highlighter = JSONHighlighter() if highlight else NullHighlighter()
|
| 96 |
+
json_instance.text = highlighter(json)
|
| 97 |
+
json_instance.text.no_wrap = True
|
| 98 |
+
json_instance.text.overflow = None
|
| 99 |
+
return json_instance
|
| 100 |
+
|
| 101 |
+
def __rich__(self) -> Text:
|
| 102 |
+
return self.text
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
if __name__ == "__main__":
|
| 106 |
+
import argparse
|
| 107 |
+
import sys
|
| 108 |
+
|
| 109 |
+
parser = argparse.ArgumentParser(description="Pretty print json")
|
| 110 |
+
parser.add_argument(
|
| 111 |
+
"path",
|
| 112 |
+
metavar="PATH",
|
| 113 |
+
help="path to file, or - for stdin",
|
| 114 |
+
)
|
| 115 |
+
parser.add_argument(
|
| 116 |
+
"-i",
|
| 117 |
+
"--indent",
|
| 118 |
+
metavar="SPACES",
|
| 119 |
+
type=int,
|
| 120 |
+
help="Number of spaces in an indent",
|
| 121 |
+
default=2,
|
| 122 |
+
)
|
| 123 |
+
args = parser.parse_args()
|
| 124 |
+
|
| 125 |
+
from pip._vendor.rich.console import Console
|
| 126 |
+
|
| 127 |
+
console = Console()
|
| 128 |
+
error_console = Console(stderr=True)
|
| 129 |
+
|
| 130 |
+
try:
|
| 131 |
+
if args.path == "-":
|
| 132 |
+
json_data = sys.stdin.read()
|
| 133 |
+
else:
|
| 134 |
+
json_data = Path(args.path).read_text()
|
| 135 |
+
except Exception as error:
|
| 136 |
+
error_console.print(f"Unable to read {args.path!r}; {error}")
|
| 137 |
+
sys.exit(-1)
|
| 138 |
+
|
| 139 |
+
console.print(JSON(json_data, indent=args.indent), soft_wrap=True)
|
env_gptq3/lib/python3.12/site-packages/pip/_vendor/rich/layout.py
ADDED
|
@@ -0,0 +1,442 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABC, abstractmethod
|
| 2 |
+
from itertools import islice
|
| 3 |
+
from operator import itemgetter
|
| 4 |
+
from threading import RLock
|
| 5 |
+
from typing import (
|
| 6 |
+
TYPE_CHECKING,
|
| 7 |
+
Dict,
|
| 8 |
+
Iterable,
|
| 9 |
+
List,
|
| 10 |
+
NamedTuple,
|
| 11 |
+
Optional,
|
| 12 |
+
Sequence,
|
| 13 |
+
Tuple,
|
| 14 |
+
Union,
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
from ._ratio import ratio_resolve
|
| 18 |
+
from .align import Align
|
| 19 |
+
from .console import Console, ConsoleOptions, RenderableType, RenderResult
|
| 20 |
+
from .highlighter import ReprHighlighter
|
| 21 |
+
from .panel import Panel
|
| 22 |
+
from .pretty import Pretty
|
| 23 |
+
from .region import Region
|
| 24 |
+
from .repr import Result, rich_repr
|
| 25 |
+
from .segment import Segment
|
| 26 |
+
from .style import StyleType
|
| 27 |
+
|
| 28 |
+
if TYPE_CHECKING:
|
| 29 |
+
from pip._vendor.rich.tree import Tree
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class LayoutRender(NamedTuple):
|
| 33 |
+
"""An individual layout render."""
|
| 34 |
+
|
| 35 |
+
region: Region
|
| 36 |
+
render: List[List[Segment]]
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
RegionMap = Dict["Layout", Region]
|
| 40 |
+
RenderMap = Dict["Layout", LayoutRender]
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class LayoutError(Exception):
|
| 44 |
+
"""Layout related error."""
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
class NoSplitter(LayoutError):
|
| 48 |
+
"""Requested splitter does not exist."""
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class _Placeholder:
|
| 52 |
+
"""An internal renderable used as a Layout placeholder."""
|
| 53 |
+
|
| 54 |
+
highlighter = ReprHighlighter()
|
| 55 |
+
|
| 56 |
+
def __init__(self, layout: "Layout", style: StyleType = "") -> None:
|
| 57 |
+
self.layout = layout
|
| 58 |
+
self.style = style
|
| 59 |
+
|
| 60 |
+
def __rich_console__(
|
| 61 |
+
self, console: Console, options: ConsoleOptions
|
| 62 |
+
) -> RenderResult:
|
| 63 |
+
width = options.max_width
|
| 64 |
+
height = options.height or options.size.height
|
| 65 |
+
layout = self.layout
|
| 66 |
+
title = (
|
| 67 |
+
f"{layout.name!r} ({width} x {height})"
|
| 68 |
+
if layout.name
|
| 69 |
+
else f"({width} x {height})"
|
| 70 |
+
)
|
| 71 |
+
yield Panel(
|
| 72 |
+
Align.center(Pretty(layout), vertical="middle"),
|
| 73 |
+
style=self.style,
|
| 74 |
+
title=self.highlighter(title),
|
| 75 |
+
border_style="blue",
|
| 76 |
+
height=height,
|
| 77 |
+
)
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
class Splitter(ABC):
|
| 81 |
+
"""Base class for a splitter."""
|
| 82 |
+
|
| 83 |
+
name: str = ""
|
| 84 |
+
|
| 85 |
+
@abstractmethod
|
| 86 |
+
def get_tree_icon(self) -> str:
|
| 87 |
+
"""Get the icon (emoji) used in layout.tree"""
|
| 88 |
+
|
| 89 |
+
@abstractmethod
|
| 90 |
+
def divide(
|
| 91 |
+
self, children: Sequence["Layout"], region: Region
|
| 92 |
+
) -> Iterable[Tuple["Layout", Region]]:
|
| 93 |
+
"""Divide a region amongst several child layouts.
|
| 94 |
+
|
| 95 |
+
Args:
|
| 96 |
+
children (Sequence(Layout)): A number of child layouts.
|
| 97 |
+
region (Region): A rectangular region to divide.
|
| 98 |
+
"""
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
class RowSplitter(Splitter):
|
| 102 |
+
"""Split a layout region in to rows."""
|
| 103 |
+
|
| 104 |
+
name = "row"
|
| 105 |
+
|
| 106 |
+
def get_tree_icon(self) -> str:
|
| 107 |
+
return "[layout.tree.row]⬌"
|
| 108 |
+
|
| 109 |
+
def divide(
|
| 110 |
+
self, children: Sequence["Layout"], region: Region
|
| 111 |
+
) -> Iterable[Tuple["Layout", Region]]:
|
| 112 |
+
x, y, width, height = region
|
| 113 |
+
render_widths = ratio_resolve(width, children)
|
| 114 |
+
offset = 0
|
| 115 |
+
_Region = Region
|
| 116 |
+
for child, child_width in zip(children, render_widths):
|
| 117 |
+
yield child, _Region(x + offset, y, child_width, height)
|
| 118 |
+
offset += child_width
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
class ColumnSplitter(Splitter):
|
| 122 |
+
"""Split a layout region in to columns."""
|
| 123 |
+
|
| 124 |
+
name = "column"
|
| 125 |
+
|
| 126 |
+
def get_tree_icon(self) -> str:
|
| 127 |
+
return "[layout.tree.column]⬍"
|
| 128 |
+
|
| 129 |
+
def divide(
|
| 130 |
+
self, children: Sequence["Layout"], region: Region
|
| 131 |
+
) -> Iterable[Tuple["Layout", Region]]:
|
| 132 |
+
x, y, width, height = region
|
| 133 |
+
render_heights = ratio_resolve(height, children)
|
| 134 |
+
offset = 0
|
| 135 |
+
_Region = Region
|
| 136 |
+
for child, child_height in zip(children, render_heights):
|
| 137 |
+
yield child, _Region(x, y + offset, width, child_height)
|
| 138 |
+
offset += child_height
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
@rich_repr
|
| 142 |
+
class Layout:
|
| 143 |
+
"""A renderable to divide a fixed height in to rows or columns.
|
| 144 |
+
|
| 145 |
+
Args:
|
| 146 |
+
renderable (RenderableType, optional): Renderable content, or None for placeholder. Defaults to None.
|
| 147 |
+
name (str, optional): Optional identifier for Layout. Defaults to None.
|
| 148 |
+
size (int, optional): Optional fixed size of layout. Defaults to None.
|
| 149 |
+
minimum_size (int, optional): Minimum size of layout. Defaults to 1.
|
| 150 |
+
ratio (int, optional): Optional ratio for flexible layout. Defaults to 1.
|
| 151 |
+
visible (bool, optional): Visibility of layout. Defaults to True.
|
| 152 |
+
"""
|
| 153 |
+
|
| 154 |
+
splitters = {"row": RowSplitter, "column": ColumnSplitter}
|
| 155 |
+
|
| 156 |
+
def __init__(
|
| 157 |
+
self,
|
| 158 |
+
renderable: Optional[RenderableType] = None,
|
| 159 |
+
*,
|
| 160 |
+
name: Optional[str] = None,
|
| 161 |
+
size: Optional[int] = None,
|
| 162 |
+
minimum_size: int = 1,
|
| 163 |
+
ratio: int = 1,
|
| 164 |
+
visible: bool = True,
|
| 165 |
+
) -> None:
|
| 166 |
+
self._renderable = renderable or _Placeholder(self)
|
| 167 |
+
self.size = size
|
| 168 |
+
self.minimum_size = minimum_size
|
| 169 |
+
self.ratio = ratio
|
| 170 |
+
self.name = name
|
| 171 |
+
self.visible = visible
|
| 172 |
+
self.splitter: Splitter = self.splitters["column"]()
|
| 173 |
+
self._children: List[Layout] = []
|
| 174 |
+
self._render_map: RenderMap = {}
|
| 175 |
+
self._lock = RLock()
|
| 176 |
+
|
| 177 |
+
def __rich_repr__(self) -> Result:
|
| 178 |
+
yield "name", self.name, None
|
| 179 |
+
yield "size", self.size, None
|
| 180 |
+
yield "minimum_size", self.minimum_size, 1
|
| 181 |
+
yield "ratio", self.ratio, 1
|
| 182 |
+
|
| 183 |
+
@property
|
| 184 |
+
def renderable(self) -> RenderableType:
|
| 185 |
+
"""Layout renderable."""
|
| 186 |
+
return self if self._children else self._renderable
|
| 187 |
+
|
| 188 |
+
@property
|
| 189 |
+
def children(self) -> List["Layout"]:
|
| 190 |
+
"""Gets (visible) layout children."""
|
| 191 |
+
return [child for child in self._children if child.visible]
|
| 192 |
+
|
| 193 |
+
@property
|
| 194 |
+
def map(self) -> RenderMap:
|
| 195 |
+
"""Get a map of the last render."""
|
| 196 |
+
return self._render_map
|
| 197 |
+
|
| 198 |
+
def get(self, name: str) -> Optional["Layout"]:
|
| 199 |
+
"""Get a named layout, or None if it doesn't exist.
|
| 200 |
+
|
| 201 |
+
Args:
|
| 202 |
+
name (str): Name of layout.
|
| 203 |
+
|
| 204 |
+
Returns:
|
| 205 |
+
Optional[Layout]: Layout instance or None if no layout was found.
|
| 206 |
+
"""
|
| 207 |
+
if self.name == name:
|
| 208 |
+
return self
|
| 209 |
+
else:
|
| 210 |
+
for child in self._children:
|
| 211 |
+
named_layout = child.get(name)
|
| 212 |
+
if named_layout is not None:
|
| 213 |
+
return named_layout
|
| 214 |
+
return None
|
| 215 |
+
|
| 216 |
+
def __getitem__(self, name: str) -> "Layout":
|
| 217 |
+
layout = self.get(name)
|
| 218 |
+
if layout is None:
|
| 219 |
+
raise KeyError(f"No layout with name {name!r}")
|
| 220 |
+
return layout
|
| 221 |
+
|
| 222 |
+
@property
|
| 223 |
+
def tree(self) -> "Tree":
|
| 224 |
+
"""Get a tree renderable to show layout structure."""
|
| 225 |
+
from pip._vendor.rich.styled import Styled
|
| 226 |
+
from pip._vendor.rich.table import Table
|
| 227 |
+
from pip._vendor.rich.tree import Tree
|
| 228 |
+
|
| 229 |
+
def summary(layout: "Layout") -> Table:
|
| 230 |
+
icon = layout.splitter.get_tree_icon()
|
| 231 |
+
|
| 232 |
+
table = Table.grid(padding=(0, 1, 0, 0))
|
| 233 |
+
|
| 234 |
+
text: RenderableType = (
|
| 235 |
+
Pretty(layout) if layout.visible else Styled(Pretty(layout), "dim")
|
| 236 |
+
)
|
| 237 |
+
table.add_row(icon, text)
|
| 238 |
+
_summary = table
|
| 239 |
+
return _summary
|
| 240 |
+
|
| 241 |
+
layout = self
|
| 242 |
+
tree = Tree(
|
| 243 |
+
summary(layout),
|
| 244 |
+
guide_style=f"layout.tree.{layout.splitter.name}",
|
| 245 |
+
highlight=True,
|
| 246 |
+
)
|
| 247 |
+
|
| 248 |
+
def recurse(tree: "Tree", layout: "Layout") -> None:
|
| 249 |
+
for child in layout._children:
|
| 250 |
+
recurse(
|
| 251 |
+
tree.add(
|
| 252 |
+
summary(child),
|
| 253 |
+
guide_style=f"layout.tree.{child.splitter.name}",
|
| 254 |
+
),
|
| 255 |
+
child,
|
| 256 |
+
)
|
| 257 |
+
|
| 258 |
+
recurse(tree, self)
|
| 259 |
+
return tree
|
| 260 |
+
|
| 261 |
+
def split(
|
| 262 |
+
self,
|
| 263 |
+
*layouts: Union["Layout", RenderableType],
|
| 264 |
+
splitter: Union[Splitter, str] = "column",
|
| 265 |
+
) -> None:
|
| 266 |
+
"""Split the layout in to multiple sub-layouts.
|
| 267 |
+
|
| 268 |
+
Args:
|
| 269 |
+
*layouts (Layout): Positional arguments should be (sub) Layout instances.
|
| 270 |
+
splitter (Union[Splitter, str]): Splitter instance or name of splitter.
|
| 271 |
+
"""
|
| 272 |
+
_layouts = [
|
| 273 |
+
layout if isinstance(layout, Layout) else Layout(layout)
|
| 274 |
+
for layout in layouts
|
| 275 |
+
]
|
| 276 |
+
try:
|
| 277 |
+
self.splitter = (
|
| 278 |
+
splitter
|
| 279 |
+
if isinstance(splitter, Splitter)
|
| 280 |
+
else self.splitters[splitter]()
|
| 281 |
+
)
|
| 282 |
+
except KeyError:
|
| 283 |
+
raise NoSplitter(f"No splitter called {splitter!r}")
|
| 284 |
+
self._children[:] = _layouts
|
| 285 |
+
|
| 286 |
+
def add_split(self, *layouts: Union["Layout", RenderableType]) -> None:
|
| 287 |
+
"""Add a new layout(s) to existing split.
|
| 288 |
+
|
| 289 |
+
Args:
|
| 290 |
+
*layouts (Union[Layout, RenderableType]): Positional arguments should be renderables or (sub) Layout instances.
|
| 291 |
+
|
| 292 |
+
"""
|
| 293 |
+
_layouts = (
|
| 294 |
+
layout if isinstance(layout, Layout) else Layout(layout)
|
| 295 |
+
for layout in layouts
|
| 296 |
+
)
|
| 297 |
+
self._children.extend(_layouts)
|
| 298 |
+
|
| 299 |
+
def split_row(self, *layouts: Union["Layout", RenderableType]) -> None:
|
| 300 |
+
"""Split the layout in to a row (layouts side by side).
|
| 301 |
+
|
| 302 |
+
Args:
|
| 303 |
+
*layouts (Layout): Positional arguments should be (sub) Layout instances.
|
| 304 |
+
"""
|
| 305 |
+
self.split(*layouts, splitter="row")
|
| 306 |
+
|
| 307 |
+
def split_column(self, *layouts: Union["Layout", RenderableType]) -> None:
|
| 308 |
+
"""Split the layout in to a column (layouts stacked on top of each other).
|
| 309 |
+
|
| 310 |
+
Args:
|
| 311 |
+
*layouts (Layout): Positional arguments should be (sub) Layout instances.
|
| 312 |
+
"""
|
| 313 |
+
self.split(*layouts, splitter="column")
|
| 314 |
+
|
| 315 |
+
def unsplit(self) -> None:
|
| 316 |
+
"""Reset splits to initial state."""
|
| 317 |
+
del self._children[:]
|
| 318 |
+
|
| 319 |
+
def update(self, renderable: RenderableType) -> None:
|
| 320 |
+
"""Update renderable.
|
| 321 |
+
|
| 322 |
+
Args:
|
| 323 |
+
renderable (RenderableType): New renderable object.
|
| 324 |
+
"""
|
| 325 |
+
with self._lock:
|
| 326 |
+
self._renderable = renderable
|
| 327 |
+
|
| 328 |
+
def refresh_screen(self, console: "Console", layout_name: str) -> None:
|
| 329 |
+
"""Refresh a sub-layout.
|
| 330 |
+
|
| 331 |
+
Args:
|
| 332 |
+
console (Console): Console instance where Layout is to be rendered.
|
| 333 |
+
layout_name (str): Name of layout.
|
| 334 |
+
"""
|
| 335 |
+
with self._lock:
|
| 336 |
+
layout = self[layout_name]
|
| 337 |
+
region, _lines = self._render_map[layout]
|
| 338 |
+
(x, y, width, height) = region
|
| 339 |
+
lines = console.render_lines(
|
| 340 |
+
layout, console.options.update_dimensions(width, height)
|
| 341 |
+
)
|
| 342 |
+
self._render_map[layout] = LayoutRender(region, lines)
|
| 343 |
+
console.update_screen_lines(lines, x, y)
|
| 344 |
+
|
| 345 |
+
def _make_region_map(self, width: int, height: int) -> RegionMap:
|
| 346 |
+
"""Create a dict that maps layout on to Region."""
|
| 347 |
+
stack: List[Tuple[Layout, Region]] = [(self, Region(0, 0, width, height))]
|
| 348 |
+
push = stack.append
|
| 349 |
+
pop = stack.pop
|
| 350 |
+
layout_regions: List[Tuple[Layout, Region]] = []
|
| 351 |
+
append_layout_region = layout_regions.append
|
| 352 |
+
while stack:
|
| 353 |
+
append_layout_region(pop())
|
| 354 |
+
layout, region = layout_regions[-1]
|
| 355 |
+
children = layout.children
|
| 356 |
+
if children:
|
| 357 |
+
for child_and_region in layout.splitter.divide(children, region):
|
| 358 |
+
push(child_and_region)
|
| 359 |
+
|
| 360 |
+
region_map = {
|
| 361 |
+
layout: region
|
| 362 |
+
for layout, region in sorted(layout_regions, key=itemgetter(1))
|
| 363 |
+
}
|
| 364 |
+
return region_map
|
| 365 |
+
|
| 366 |
+
def render(self, console: Console, options: ConsoleOptions) -> RenderMap:
|
| 367 |
+
"""Render the sub_layouts.
|
| 368 |
+
|
| 369 |
+
Args:
|
| 370 |
+
console (Console): Console instance.
|
| 371 |
+
options (ConsoleOptions): Console options.
|
| 372 |
+
|
| 373 |
+
Returns:
|
| 374 |
+
RenderMap: A dict that maps Layout on to a tuple of Region, lines
|
| 375 |
+
"""
|
| 376 |
+
render_width = options.max_width
|
| 377 |
+
render_height = options.height or console.height
|
| 378 |
+
region_map = self._make_region_map(render_width, render_height)
|
| 379 |
+
layout_regions = [
|
| 380 |
+
(layout, region)
|
| 381 |
+
for layout, region in region_map.items()
|
| 382 |
+
if not layout.children
|
| 383 |
+
]
|
| 384 |
+
render_map: Dict["Layout", "LayoutRender"] = {}
|
| 385 |
+
render_lines = console.render_lines
|
| 386 |
+
update_dimensions = options.update_dimensions
|
| 387 |
+
|
| 388 |
+
for layout, region in layout_regions:
|
| 389 |
+
lines = render_lines(
|
| 390 |
+
layout.renderable, update_dimensions(region.width, region.height)
|
| 391 |
+
)
|
| 392 |
+
render_map[layout] = LayoutRender(region, lines)
|
| 393 |
+
return render_map
|
| 394 |
+
|
| 395 |
+
def __rich_console__(
|
| 396 |
+
self, console: Console, options: ConsoleOptions
|
| 397 |
+
) -> RenderResult:
|
| 398 |
+
with self._lock:
|
| 399 |
+
width = options.max_width or console.width
|
| 400 |
+
height = options.height or console.height
|
| 401 |
+
render_map = self.render(console, options.update_dimensions(width, height))
|
| 402 |
+
self._render_map = render_map
|
| 403 |
+
layout_lines: List[List[Segment]] = [[] for _ in range(height)]
|
| 404 |
+
_islice = islice
|
| 405 |
+
for region, lines in render_map.values():
|
| 406 |
+
_x, y, _layout_width, layout_height = region
|
| 407 |
+
for row, line in zip(
|
| 408 |
+
_islice(layout_lines, y, y + layout_height), lines
|
| 409 |
+
):
|
| 410 |
+
row.extend(line)
|
| 411 |
+
|
| 412 |
+
new_line = Segment.line()
|
| 413 |
+
for layout_row in layout_lines:
|
| 414 |
+
yield from layout_row
|
| 415 |
+
yield new_line
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
if __name__ == "__main__":
|
| 419 |
+
from pip._vendor.rich.console import Console
|
| 420 |
+
|
| 421 |
+
console = Console()
|
| 422 |
+
layout = Layout()
|
| 423 |
+
|
| 424 |
+
layout.split_column(
|
| 425 |
+
Layout(name="header", size=3),
|
| 426 |
+
Layout(ratio=1, name="main"),
|
| 427 |
+
Layout(size=10, name="footer"),
|
| 428 |
+
)
|
| 429 |
+
|
| 430 |
+
layout["main"].split_row(Layout(name="side"), Layout(name="body", ratio=2))
|
| 431 |
+
|
| 432 |
+
layout["body"].split_row(Layout(name="content", ratio=2), Layout(name="s2"))
|
| 433 |
+
|
| 434 |
+
layout["s2"].split_column(
|
| 435 |
+
Layout(name="top"), Layout(name="middle"), Layout(name="bottom")
|
| 436 |
+
)
|
| 437 |
+
|
| 438 |
+
layout["side"].split_column(Layout(layout.tree, name="left1"), Layout(name="left2"))
|
| 439 |
+
|
| 440 |
+
layout["content"].update("foo")
|
| 441 |
+
|
| 442 |
+
console.print(layout)
|